Skip to content

Commit

Permalink
[release-24.05] Nix 2.24.6 + nix git bump (#341049)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored Sep 10, 2024
2 parents c1db88d + 6c55848 commit 64db23c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
6 changes: 6 additions & 0 deletions pkgs/tools/package-management/nix/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ self = stdenv.mkDerivation {
# See https://github.com/NixOS/nix/issues/5687
+ lib.optionalString (atLeast25 && stdenv.isDarwin) ''
echo "exit 99" > tests/gc-non-blocking.sh
'' # TODO: investigate why this broken
+ lib.optionalString (atLeast25 && stdenv.hostPlatform.system == "aarch64-linux") ''
echo "exit 0" > tests/functional/flakes/show.sh
'' + ''
# nixStatic otherwise does not find its man pages in tests.
export MANPATH=$man/share/man:$MANPATH
'';

separateDebugInfo = stdenv.isLinux && (atLeast24 -> !enableStatic);
Expand Down
24 changes: 8 additions & 16 deletions pkgs/tools/package-management/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ in lib.makeExtensible (self: ({
self_attribute_name = "nix_2_23";
};

nix_2_24 = ((common {
version = "2.24.3";
hash = "sha256-aBuGXm0UwDekCYLl7xDyw+BAJOg7728i57TbSXzPacc=";
nix_2_24 = (common {
version = "2.24.6";
hash = "sha256-kgq3B+olx62bzGD5C6ighdAoDweLq+AebxVHcDnKH4w=";
self_attribute_name = "nix_2_24";
}).override (lib.optionalAttrs (stdenv.isDarwin && stdenv.isx86_64) {
# Fix the following error with the default x86_64-darwin SDK:
Expand All @@ -197,20 +197,16 @@ in lib.makeExtensible (self: ({
# allocation function Clang uses with this setting actually works
# all the way back to 10.6.
stdenv = overrideSDK stdenv { darwinMinVersion = "10.13"; };
})).overrideAttrs (o: {
meta.knownVulnerabilities = [
"Nix >= 2.24.0 and master have a vulnerability. Please downgrade from nix_2_24 to nix_2_23"
];
});

git = ((common rec {
git = (common rec {
version = "2.25.0";
suffix = "pre20240807_${lib.substring 0 8 src.rev}";
suffix = "pre20240910_${lib.substring 0 8 src.rev}";
src = fetchFromGitHub {
owner = "NixOS";
repo = "nix";
rev = "cfe66dbec325d5dcb601b642bd9c149ae1353147";
hash = "sha256-1hqjl4br3MRK1pkzDrhBSxKUhdfQ/P4b5KbLfGua64g=";
rev = "b9d3cdfbd2b873cf34600b262247d77109dfd905";
hash = "sha256-7zH8TU5g3Bsg6ES0O8RcTm6JGYOMuDCGlSI3AQKbKy8=";
};
self_attribute_name = "git";
}).override (lib.optionalAttrs (stdenv.isDarwin && stdenv.isx86_64) {
Expand All @@ -222,13 +218,9 @@ in lib.makeExtensible (self: ({
# allocation function Clang uses with this setting actually works
# all the way back to 10.6.
stdenv = overrideSDK stdenv { darwinMinVersion = "10.13"; };
})).overrideAttrs (o: {
meta.knownVulnerabilities = [
"Nix >= 2.24.0 and master have a vulnerability. Please downgrade from nixVersions.git to nixVersions.nix_2_23"
];
});

latest = self.nix_2_23;
latest = self.nix_2_24;

# The minimum Nix version supported by Nixpkgs
# Note that some functionality *might* have been backported into this Nix version,
Expand Down

0 comments on commit 64db23c

Please sign in to comment.