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_URLThe URL to the Flake repository which should be builtTARGET_PACKAGESSpace-separated list of packages that should be builtNIX_CACHE_PRIVATE_KEY_FILEThe path to the private key that should signNIX_CACHE_UPLOAD_URIURI 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_DIRWhere nix-repo-builder should keep track of which commits were already built. If left empty, it will build all references.REF_REGEXA regular expression to limit which refs to build
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.