Skip to content

Commit e25a409

Browse files
authored
nix: 2.18 -> 2.24 (#335342)
2 parents 261a20d + ac849e5 commit e25a409

File tree

6 files changed

+35
-11
lines changed

6 files changed

+35
-11
lines changed

nixos/doc/manual/release-notes/rl-2411.section.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
Starting with release 25.05, the minimum supported version will be macOS Big Sur 11, and we cannot guarantee that packages will continue to work on older versions of macOS.
99
Users on old macOS versions should consider upgrading to a supported version (potentially using [OpenCore Legacy Patcher](https://dortania.github.io/OpenCore-Legacy-Patcher/) for old hardware) or installing NixOS.
1010
If neither of those options are viable and you require new versions of software, [MacPorts](https://www.macports.org/) supports back to Mac OS X Snow Leopard 10.6.
11+
- Nix was updated to 2.24, which brings a lot of improvements and fixes. See the release notes for
12+
[2.19](https://nix.dev/manual/nix/latest/release-notes/rl-2.19),
13+
[2.20](https://nix.dev/manual/nix/latest/release-notes/rl-2.20),
14+
[2.21](https://nix.dev/manual/nix/latest/release-notes/rl-2.21),
15+
[2.22](https://nix.dev/manual/nix/latest/release-notes/rl-2.22),
16+
[2.23](https://nix.dev/manual/nix/latest/release-notes/rl-2.23),
17+
[2.24](https://nix.dev/manual/nix/latest/release-notes/rl-2.24).
18+
Notable changes include improvements to Git fetching, documentation comment support in `nix-repl> :doc`, as well as many quality of life improvements.
1119

1220
- Convenience options for `amdgpu`, open source driver for Radeon cards, is now available under `hardware.amdgpu`.
1321

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
x86_64-linux = "/nix/store/f409bhlpp0xkzvdz95qr2yvfjfi8r9jc-nix-2.18.5";
3-
i686-linux = "/nix/store/ra39jzrxq3bcpf55aahwv5037akvylf5-nix-2.18.5";
4-
aarch64-linux = "/nix/store/xiw8a4jbnw18svgdb04hyqzg5bsjspqf-nix-2.18.5";
5-
x86_64-darwin = "/nix/store/k2gzx7i90x3h2c8g6xdi1jkwbl6ic895-nix-2.18.5";
6-
aarch64-darwin = "/nix/store/rqwymbndaqxma6p8s5brcl9k32n5xx54-nix-2.18.5";
2+
x86_64-linux = "/nix/store/fmfy9zigxns8f1wfb4v2arf1jmfdjpjc-nix-2.24.6";
3+
i686-linux = "/nix/store/bl95c09pcihf2fdqpzjyjk4bdq0bsizm-nix-2.24.6";
4+
aarch64-linux = "/nix/store/2sbzgmvas19iq3nhg8xbnd8k0khahk34-nix-2.24.6";
5+
riscv64-linux = "/nix/store/7yy1x9sx83wm77mjawd953d6a6wb669q-nix-riscv64-unknown-linux-gnu-2.24.6";
6+
x86_64-darwin = "/nix/store/vs6bbxkwxqr828q8rj1xlbmsbnx1ry6z-nix-2.24.6";
7+
aarch64-darwin = "/nix/store/d88r5b1qv1fvz2j9qndz8sr31mqgz45x-nix-2.24.6";
78
}

pkgs/development/libraries/nix-plugins/default.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22

33
stdenv.mkDerivation rec {
44
pname = "nix-plugins";
5-
version = "14.0.0";
5+
version = "15.0.0";
66

77
src = fetchFromGitHub {
88
owner = "shlevy";
99
repo = "nix-plugins";
1010
rev = version;
11-
hash = "sha256-RDKAuLwcZ3Pbn5JUDmGBcfD0xbM6Jud2ouXh/YKpfS8=";
11+
hash = "sha256-C4VqKHi6nVAHuXVhqvTRRyn0Bb619ez4LzgUWPH1cbM=";
1212
};
1313

1414
nativeBuildInputs = [ cmake pkg-config ];
1515

16-
buildInputs = [ nix boost ];
16+
buildInputs = [
17+
nix
18+
boost
19+
];
1720

1821
meta = {
1922
description = "Collection of miscellaneous plugins for the nix expression language";

pkgs/tools/package-management/nix-doc/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
, nix
77
, pkg-config
88
# Whether to build the nix-doc plugin for Nix
9-
, withPlugin ? true
9+
, withPlugin ? false # no longer needed for nix 2.24
1010
}:
1111

1212
let

pkgs/tools/package-management/nix/common.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ in
8585

8686
# passthru tests
8787
, pkgsi686Linux
88+
, pkgsStatic
8889
, runCommand
90+
, pkgs
8991
}: let
9092
self = stdenv.mkDerivation {
9193
pname = "nix";
@@ -262,6 +264,8 @@ self = stdenv.mkDerivation {
262264

263265
tests = {
264266
nixi686 = pkgsi686Linux.nixVersions.${self_attribute_name};
267+
nixStatic = pkgsStatic.nixVersions.${self_attribute_name};
268+
265269
# Basic smoke test that needs to pass when upgrading nix.
266270
# Note that this test does only test the nixVersions.stable attribute.
267271
misc = nixosTests.nix-misc.default;
@@ -281,6 +285,12 @@ self = stdenv.mkDerivation {
281285
fi
282286
touch $out
283287
'';
288+
289+
/** Intended to test `lib`, but also a good smoke test for Nix */
290+
nixpkgs-lib = import ../../../../lib/tests/test-with-nix.nix {
291+
inherit lib pkgs;
292+
nix = self;
293+
};
284294
};
285295
};
286296

pkgs/tools/package-management/nix/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ let
115115
runCommand "test-nix-fallback-paths-version-equals-nix-stable" {
116116
paths = lib.concatStringsSep "\n" (builtins.attrValues (import ../../../../nixos/modules/installer/tools/nix-fallback-paths.nix));
117117
} ''
118-
if [[ "" != $(grep -v 'nix-${pkg.version}$' <<< "$paths") ]]; then
118+
# NOTE: name may contain cross compilation details between the pname
119+
# and version this is permitted thanks to ([^-]*-)*
120+
if [[ "" != $(grep -vE 'nix-([^-]*-)*${lib.strings.replaceStrings ["."] ["\\."] pkg.version}$' <<< "$paths") ]]; then
119121
echo "nix-fallback-paths not up to date with nixVersions.stable (nix-${pkg.version})"
120122
echo "The following paths are not up to date:"
121123
grep -v 'nix-${pkg.version}$' <<< "$paths"
@@ -239,7 +241,7 @@ in lib.makeExtensible (self: ({
239241
else
240242
nix;
241243

242-
stable = addFallbackPathsCheck self.nix_2_18;
244+
stable = addFallbackPathsCheck self.nix_2_24;
243245
} // lib.optionalAttrs config.allowAliases (
244246
lib.listToAttrs (map (
245247
minor:

0 commit comments

Comments
 (0)