nix-cache-watcher
Table of Contents
About
A very WIP tool for uploading Nix build artifacts to an s3 compatible binary cache. This will eventually support direct upload to s3/b2, and possibly direct singing, but at the moment it shells out to the nix to perform those operations.
Takes a snapshot of your nix store state before your build, and then signs and uploads new installable afterwards.
Getting Started
Prerequisites
This program is only intended to run on systems with nix
installed, and has the following
dependencies:
xz
curl
Installing
Install though cargo:
or through Nix:
Usage
See nix-cache-watcher --help
for full syntax and options.
Before starting your build, you must take a snapshot of the current nix store state:
Then, run your build. After your build completes, first sign the new store paths, and then send them off for upload:
Note: you must already have your AWS SDK credentials configured for this to work.