Skip to content

Commit

Permalink
nixVersions.nix_2_24,git: mark vulnerable
Browse files Browse the repository at this point in the history
(cherry picked from commit c8c6be2)
(cherry picked from commit 17bbb49)
  • Loading branch information
roberth authored and cole-h committed Sep 10, 2024
1 parent bb41063 commit 44a71ff
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pkgs/tools/package-management/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ in lib.makeExtensible (self: ({
self_attribute_name = "nix_2_23";
};

nix_2_24 = (common {
nix_2_24 = ((common {
version = "2.24.3";
hash = "sha256-aBuGXm0UwDekCYLl7xDyw+BAJOg7728i57TbSXzPacc=";
self_attribute_name = "nix_2_24";
Expand All @@ -197,9 +197,13 @@ 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}";
src = fetchFromGitHub {
Expand All @@ -218,9 +222,13 @@ 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_24;
latest = self.nix_2_23;

# 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 44a71ff

Please sign in to comment.