Nix 2.16 released

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.

26 Likes

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 called max-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 argument to . That is, to is only evaluated when its corresponding pattern in from is matched in the string s .

I can’t wait to test this release, especially the perf improvements! Congrats to all contributors.

12 Likes

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.

3 Likes

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.

https://github.com/NixOS/nixpkgs/pull/235221

https://nixpk.gs/pr-tracker.html?pr=235221

3 Likes

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.

4 Likes

Thanks to both of you! I should’ve looked in the nixpkgs PRs in the first place.

3 Likes

Before you ask, 2.16.1 has been released, here’s the diff: Comparing 2.16.0...2.16.1 · NixOS/nix · GitHub

5 Likes