Commit a61841a5 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

nixVersions.nix_2_3: add knownVulnerabilities

parent 10634730
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -18,7 +18,9 @@ let

  pkgs = import nixpkgs' {
    inherit system;
    config = { };
    config = {
      permittedInsecurePackages = [ "nix-2.3.18" ];
    };
    overlays = [ ];
  };

+10 −3
Original line number Diff line number Diff line
@@ -2,7 +2,14 @@
  # The pkgs used for dependencies for the testing itself
  # Don't test properties of pkgs.lib, but rather the lib in the parent directory
  system ? builtins.currentSystem,
  pkgs ? import ../.. { inherit system; } // {
  pkgs ?
    import ../.. {
      inherit system;
      config = {
        permittedInsecurePackages = [ "nix-2.3.18" ];
      };
    }
    // {
      lib = throw "pkgs.lib accessed, but the lib tests should use nixpkgs' lib path directly!";
    },
  # For testing someone may edit impure.nix to return cross pkgs, use `pkgsBuildBuild` directly so everything here works.
+2 −1
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
    inherit hash;
  },
  patches ? [ ],
  knownVulnerabilities ? [ ],
  maintainers ? [
    lib.maintainers.lovesegfault
    lib.maintainers.artturin
@@ -335,7 +336,7 @@ let
      '';
      homepage = "https://nixos.org/";
      license = licenses.lgpl21Plus;
      inherit maintainers teams;
      inherit knownVulnerabilities maintainers teams;
      platforms = platforms.unix;
      outputsToInstall = [ "out" ] ++ optional enableDocumentation "man";
      mainProgram = "nix";
+9 −0
Original line number Diff line number Diff line
@@ -159,6 +159,15 @@ lib.makeExtensible (
            patch-monitorfdhup
          ];
          self_attribute_name = "nix_2_3";
          knownVulnerabilities = [
            "CVE-2024-38531"
            "CVE-2024-47174"
            "CVE-2025-46415"
            "CVE-2025-46416"
            "CVE-2025-52991"
            "CVE-2025-52992"
            "CVE-2025-52993"
          ];
          maintainers = with lib.maintainers; [ flokli ];
          teams = [ ];
        }).overrideAttrs
+7 −1
Original line number Diff line number Diff line
@@ -3,7 +3,13 @@
  officialRelease,
  pkgs ? import nixpkgs.outPath { },
  nix ? pkgs.nix,
  lib-tests ? import ../../lib/tests/release.nix { inherit pkgs; },
  lib-tests ? import ../../lib/tests/release.nix {
    pkgs = import nixpkgs.outPath {
      config = {
        permittedInsecurePackages = [ "nix-2.3.18" ];
      };
    };
  },
}:

pkgs.releaseTools.sourceTarball {
Loading