Continuous Integration (CI)
Nix nicely integrates into your CI.
TODO: some general tips & tricks
Avoid downloading already built results
nix-build will always ensure the built store path is put in the local store, be it by building or by downloading from a substituter. On CI, we often only want to check whether we can build the derivation, without using or running the output.
This can be achieved by using `--dry-run` to check whether the result would be fetched, and only building it it has to be built.
nix-build-if-changed.py implements this in a relatively straightforward (but naïve) Python script.
nix-build-uncached implements it in a slightly more elaborate manner, and is available on nixpkgs (as the
Instructions for specific CI Providers
See Nix_on_Travis article
See the Buildkite article
There is no official NixOS module however both drone and drone-cli are packaged in nixpkgs.