lol

nix: 2.18 -> 2.24 (#335342)

authored by

Fabián Heredia Montiel and committed by
GitHub
e25a409c 261a20d9

+35 -11
+8
nixos/doc/manual/release-notes/rl-2411.section.md
··· 8 8 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. 9 9 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. 10 10 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. 11 19 12 20 - Convenience options for `amdgpu`, open source driver for Radeon cards, is now available under `hardware.amdgpu`. 13 21
+6 -5
nixos/modules/installer/tools/nix-fallback-paths.nix
··· 1 1 { 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"; 7 8 }
+6 -3
pkgs/development/libraries/nix-plugins/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "nix-plugins"; 5 - version = "14.0.0"; 5 + version = "15.0.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "shlevy"; 9 9 repo = "nix-plugins"; 10 10 rev = version; 11 - hash = "sha256-RDKAuLwcZ3Pbn5JUDmGBcfD0xbM6Jud2ouXh/YKpfS8="; 11 + hash = "sha256-C4VqKHi6nVAHuXVhqvTRRyn0Bb619ez4LzgUWPH1cbM="; 12 12 }; 13 13 14 14 nativeBuildInputs = [ cmake pkg-config ]; 15 15 16 - buildInputs = [ nix boost ]; 16 + buildInputs = [ 17 + nix 18 + boost 19 + ]; 17 20 18 21 meta = { 19 22 description = "Collection of miscellaneous plugins for the nix expression language";
+1 -1
pkgs/tools/package-management/nix-doc/default.nix
··· 6 6 , nix 7 7 , pkg-config 8 8 # Whether to build the nix-doc plugin for Nix 9 - , withPlugin ? true 9 + , withPlugin ? false # no longer needed for nix 2.24 10 10 }: 11 11 12 12 let
+10
pkgs/tools/package-management/nix/common.nix
··· 85 85 86 86 # passthru tests 87 87 , pkgsi686Linux 88 + , pkgsStatic 88 89 , runCommand 90 + , pkgs 89 91 }: let 90 92 self = stdenv.mkDerivation { 91 93 pname = "nix"; ··· 262 264 263 265 tests = { 264 266 nixi686 = pkgsi686Linux.nixVersions.${self_attribute_name}; 267 + nixStatic = pkgsStatic.nixVersions.${self_attribute_name}; 268 + 265 269 # Basic smoke test that needs to pass when upgrading nix. 266 270 # Note that this test does only test the nixVersions.stable attribute. 267 271 misc = nixosTests.nix-misc.default; ··· 281 285 fi 282 286 touch $out 283 287 ''; 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 + }; 284 294 }; 285 295 }; 286 296
+4 -2
pkgs/tools/package-management/nix/default.nix
··· 115 115 runCommand "test-nix-fallback-paths-version-equals-nix-stable" { 116 116 paths = lib.concatStringsSep "\n" (builtins.attrValues (import ../../../../nixos/modules/installer/tools/nix-fallback-paths.nix)); 117 117 } '' 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 119 121 echo "nix-fallback-paths not up to date with nixVersions.stable (nix-${pkg.version})" 120 122 echo "The following paths are not up to date:" 121 123 grep -v 'nix-${pkg.version}$' <<< "$paths" ··· 239 241 else 240 242 nix; 241 243 242 - stable = addFallbackPathsCheck self.nix_2_18; 244 + stable = addFallbackPathsCheck self.nix_2_24; 243 245 } // lib.optionalAttrs config.allowAliases ( 244 246 lib.listToAttrs (map ( 245 247 minor: