Hi,
I’m pleased to announce the availability of Nix 2.16.0. It is available from https://nixos.org/download.html 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
NobbZ
June 1, 2023, 5:44pm
4
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.
NixOS:master
← lovesegfault:nix-2.16.0
opened 03:52PM - 31 May 23 UTC
###### Description of changes
- nixVersions: use hash instead of sha256
- nixVe… rsions.nix_2_16: init at 2.16.0
- nixVersions.unstable: 2.15 -> 2.16
###### Things done
- Built on platform(s)
- [ ] x86_64-linux
- [ ] aarch64-linux
- [ ] x86_64-darwin
- [ ] aarch64-darwin
- [ ] For non-Linux: Is `sandbox = true` set in `nix.conf`? (See [Nix manual](https://nixos.org/manual/nix/stable/command-ref/conf-file.html))
- [ ] Tested, as applicable:
- [NixOS test(s)](https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests) (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))
- and/or [package tests](https://nixos.org/manual/nixpkgs/unstable/#sec-package-tests)
- or, for functions and "core" functionality, tests in [lib/tests](https://github.com/NixOS/nixpkgs/blob/master/lib/tests) or [pkgs/test](https://github.com/NixOS/nixpkgs/blob/master/pkgs/test)
- made sure NixOS tests are [linked](https://nixos.org/manual/nixpkgs/unstable/#ssec-nixos-tests-linking) to the relevant packages
- [ ] Tested compilation of all packages that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"`. Note: all changes have to be committed, also see [nixpkgs-review usage](https://github.com/Mic92/nixpkgs-review#usage)
- [ ] Tested basic functionality of all binary files (usually in `./result/bin/`)
- [23.05 Release Notes (or backporting 22.11 Release notes)](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#generating-2305-release-notes)
- [ ] (Package updates) Added a release notes entry if the change is major or breaking
- [ ] (Module updates) Added a release notes entry if the change is significant
- [ ] (Module addition) Added a release notes entry if adding a new NixOS module
- [ ] Fits [CONTRIBUTING.md](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md).
<!--
To help with the large amounts of pull requests, we would appreciate your
reviews of other pull requests, especially simple package updates. Just leave a
comment describing what you have tested in the relevant package/service.
Reviewing helps to reduce the average time-to-merge for everyone.
Thanks a lot if you do!
List of open PRs: https://github.com/NixOS/nixpkgs/pulls
Reviewing guidelines: https://nixos.org/manual/nixpkgs/unstable/#chap-reviewing-contributions
-->
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