Hi,
I’m pleased to announce the availability of Nix 2.16.0. It is available from Download Nix / NixOS | Nix & NixOS and http://releases.nixos.org/?prefix=nix/nix-2.16.0/.
The most important changes are listed in the release notes.
Hi,
I’m pleased to announce the availability of Nix 2.16.0. It is available from Download Nix / NixOS | Nix & NixOS and http://releases.nixos.org/?prefix=nix/nix-2.16.0/.
The most important changes are listed in the release notes.
Copy pasting the changelog here for posterity!
- Speed-up of downloads from binary caches. The number of parallel downloads (also known as substitutions) has been separated from the
--max-jobs
setting. The new setting is calledmax-substitution-jobs
. The number of parallel downloads is now set to 16 by default (previously, the default was 1 due to the coupling to build jobs).- The function
builtins.replaceStrings
is now lazy in the value of its second argumentto
. That is,to
is only evaluated when its corresponding pattern infrom
is matched in the strings
.
I can’t wait to test this release, especially the perf improvements! Congrats to all contributors.
This might be the wrong place to ask, but is there a reason why nix is still version 2.13.3 in unstable and nixVersions.nix_2_16
doesn’t exist yet either?
I assumed I could try this out with nix nix-upgrade
or nix-channel --update && nix profile install unstable#nix
, but it seems I’d have to uninstall and reinstall nix instead.
2.16 has been released only yesterday. It usually needs a week before it hits nixpkgs-unstable
due to the processes involved.
edit
Okay, got merged already.
There were some major breakages with 2.14 which blocked Nix updates in Nixpkgs for a while. 2.15 should work though, and in nix: 2.13.3 -> 2.15.1 by infinisil · Pull Request #233439 · NixOS/nixpkgs · GitHub it’s being made the default. 2.16 should still be further tested before it can be made the default though.
Thanks to both of you! I should’ve looked in the nixpkgs PRs in the first place.
Before you ask, 2.16.1 has been released, here’s the diff: Comparing 2.16.0...2.16.1 · NixOS/nix · GitHub