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.
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.
More changes that I think people might care for:
nix flake show
no longer evaluates derivations for foreign systems. This not only speeds up nix flake show
but also makes it no longer error out for derivations that use IFD, for example Haskell packages using cabal2nix. Implemented in: nix flake show: don't evaluate derivations for foreign systems by default by max-privatevoid · Pull Request #6988 · NixOS/nix · GitHub
nix flake show
will no longer show empty attrsets/outputs, this is mostly noticeable to users of flake-parts that have only one system enabled. Implemented in: nix flake show: Ignore empty attrsets by roberth · Pull Request #7726 · NixOS/nix · GitHub
@Kranzes would you please open a PR to update the release notes? Not everyone using Nix reads Discourse.
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.
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.
Yes, that’s extremely annoying bug breaking so many CIs. Is anybody working on quick fix ?
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
.
I’ve uploaded 2.14.1 which should fix the problem with the profile script.
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?
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.
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.