diff --git a/pkgs/tools/package-management/nix/common.nix b/pkgs/tools/package-management/nix/common.nix index 26192b4ea011..f3629c42d78b 100644 --- a/pkgs/tools/package-management/nix/common.nix +++ b/pkgs/tools/package-management/nix/common.nix @@ -21,6 +21,7 @@ let atLeast220 = lib.versionAtLeast version "2.20pre"; atLeast221 = lib.versionAtLeast version "2.21pre"; atLeast224 = lib.versionAtLeast version "2.24pre"; + atLeast225 = lib.versionAtLeast version "2.25pre"; # Major.minor versions unaffected by CVE-2024-27297 unaffectedByFodSandboxEscape = [ "2.3" @@ -69,9 +70,9 @@ in , mdbook-linkcheck , nlohmann_json , nixosTests -, nixVersions , openssl , perl +, python3 , pkg-config , rapidcheck , Security @@ -151,6 +152,8 @@ self = stdenv.mkDerivation { libgit2 ] ++ lib.optionals (atLeast224 || lib.versionAtLeast version "pre20240626") [ toml11 + ] ++ lib.optionals (atLeast225 && enableDocumentation) [ + python3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ] ++ lib.optionals (stdenv.hostPlatform.isx86_64) [ @@ -174,10 +177,9 @@ self = stdenv.mkDerivation { (darwinMinVersionHook "10.13") ]; - propagatedBuildInputs = [ boehmgc - ] ++ lib.optionals (atLeast27) [ + ] ++ lib.optionals atLeast27 [ nlohmann_json ]; diff --git a/pkgs/tools/package-management/nix/default.nix b/pkgs/tools/package-management/nix/default.nix index ad9892ab0ebf..3a3169d3497f 100644 --- a/pkgs/tools/package-management/nix/default.nix +++ b/pkgs/tools/package-management/nix/default.nix @@ -233,7 +233,7 @@ in lib.makeExtensible (self: ({ self_attribute_name = "git"; }; - latest = self.nix_2_24; + latest = self.nix_2_25; # The minimum Nix version supported by Nixpkgs # Note that some functionality *might* have been backported into this Nix version,