Nix 2.14.0 released

Hi,

I’m pleased to announce the availability of Nix 2.14.0. It is available from Download Nix / NixOS | Nix & NixOS and http://releases.nixos.org/?prefix=nix/nix-2.14.0/.

The most important changes are listed in the release notes.

18 Likes

More changes that I think people might care for:

14 Likes

@Kranzes would you please open a PR to update the release notes? Not everyone using Nix reads Discourse.

3 Likes

Hey Eelco,

This release broke install-nix-action: https://github.com/cachix/install-nix-action/issues/161

I applaud more regular releases! Would it be possible to do a release candidate a few days before making an official release?

That way we can catch unfortunate regressions like this that break many setups.

9 Likes

Good point, please open an issue or ideally a PR to the maintainer’s manual so we can put it on the team’s agenda.

1 Like

Yes, that’s extremely annoying bug breaking so many CIs. Is anybody working on quick fix ?

https://github.com/NixOS/nix/pull/7925

Just found it, cachix/install-nix-action@v20 should fix the issue. Thanks heaps @domenkozar .

Well, the master branch is our release candidate (i.e. it’s supposed to be in a releasable state). Maybe it’s possible to set up some continuous testing of install-nix-action against nix-master?

Alternatively, we could delay updating https://nixos.org/nix/install for a few days after release to give people a time to test the new version.

It’s a good idea to pin a specific version of Nix in CI scripts to avoid this kind of breakage, e.g. fetch https://releases.nixos.org/nix/nix-2.12.1/install rather than https://nixos.org/nix/install.

13 Likes

I’ve uploaded 2.14.1 which should fix the problem with the profile script.

3 Likes

While this issue could be caught with automated testing, but not all kinds of testing can be automated.

If you think release candidates wouldn’t help making Nix releases more resilient to regressions, then maybe we could have release dates preannounced a few days before the official release?

2 Likes

The date of the next release can be seen in the milestone on Github. It used to be on the NixOS calendar, but it got lost at some point.

4 Likes

With the update to flakes .outPath for flakes in a subdirectory of a git repository, will the entire git repository still be added to the store on nix build, or just the subdirectory containing the flake?

This release seems to cause flakes to evaluate eagerly, as in for example you can not run an app from a flake if packages does not evaluate despite it not being needed to run the app.

Can you create an issue for that, ideally with a reproducer? I’m not aware of changes in how flakes are evaluated in 2.14.

Yes, it will still add the the entire repo to the store.