Simple script to build and upload all versions of a specific Flake output package inside a repository.
The following variables need to be set:
REPO_URL
The URL to the Flake repository which should be builtTARGET_PACKAGES
Space-separated list of packages that should be builtNIX_CACHE_PRIVATE_KEY_FILE
The path to the private key that should signNIX_CACHE_UPLOAD_URI
URI of the Nix cache to which packages should be uploaded. Example:s3://my-nix-cache?scheme=https&endpoint=s3-endpoint.example.com:8080
Optional:
STATE_DIR
Where nix-repo-builder should keep track of which commits were already built. If left empty, it will build all references.
Note that in case you want to use an S3 bucket as cache, you need to set AWS_SECRET_ACCESS_KEY
and AWS_ACCESS_KEY_ID
.