srid / nixci

Define and build CI for Nix projects anywhere
GNU Affero General Public License v3.0
101 stars 5 forks source link

Add support for `nix-health` minimum version check #62

Closed srid closed 5 days ago

srid commented 1 month ago

https://github.com/juspay/nix-health?tab=readme-ov-file#adding-devshell-check

If a flake.nix has nix-health config specifying minimum Nix version requirement, make sure that that is satisfied (check builtins.nixVersion or nix --version) first, before building the derivations.

srid commented 1 month ago

Note: we don't need to run the full set of health checks (checks like direnv don't make sense in CI, for example).