Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Bump Nix to 2.18.1 #974

Merged
merged 2 commits into from
Dec 17, 2023
Merged

ci: Bump Nix to 2.18.1 #974

merged 2 commits into from
Dec 17, 2023

Conversation

sigprof
Copy link
Owner

@sigprof sigprof commented Dec 17, 2023

Nix 2.18.1 is the stable release used by NixOS 23.11; it is also the last release which still uses the old syntax for the nix flake lock --update-input <dependency> command (see cpcloud/flake-update-action#227; although the compatibility should be restored in Nix 2.19.2, that version also prints deprecation warnings for the old syntax).

This may also fix some random CI failures on MacOS (NixOS/nix#8049 was merged in Nix 2.15.0, but that version was not used due to compatibility issues with nix-build-uncached, which were apparently fixed).

Change `CI_NIX_INSTALL_URL` to point to Nix 2.18.1.  This should not
break anything, because the old `cpcloud/flake-update-action` should
still be compatible with that version, and the `nix-build-uncached`
package in the locked `nixpkgs` input (NixOS 23.11) is updated for
compatibility with Nix >= 2.15.

Note that the input of `nix-build-uncached` does not need to have the
`^*` suffixes added to `*.drv` paths, because that input is passed to
`nix-build`, which did not have incompatible changes in Nix 2.15 (the
changes were made to `nix build`, which is used internally by
`nix-build-uncached` after getting the list of derivations that needs to
be built from `nix-build --dry-run`).
By default `nix flake check` skips systems which are incompatible with
the host; add the `--all-systems` option to check evaluations for all
supported systems.
@sigprof sigprof merged commit a8691bc into master Dec 17, 2023
21 checks passed
@sigprof sigprof deleted the ci-bump-nix branch December 17, 2023 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant