pnpm: don't require knownVulnerabilities to be set (#536830)
This commit is contained in:
@@ -72,12 +72,13 @@ let
|
||||
|
||||
callPnpm =
|
||||
variant:
|
||||
callPackage ./generic.nix {
|
||||
inherit (variant) version hash;
|
||||
knownVulnerabilities = variant.knownVulnerabilities or [ ];
|
||||
#FIXME: remove this hack in a future version.
|
||||
nodejs = null; # Passing null to detect out-of-tree overrides
|
||||
};
|
||||
callPackage ./generic.nix (
|
||||
variant
|
||||
// {
|
||||
#FIXME: remove this hack in a future version.
|
||||
nodejs = null; # Passing null to detect out-of-tree overrides
|
||||
}
|
||||
);
|
||||
|
||||
mkPnpm = versionSuffix: variant: nameValuePair "pnpm_${versionSuffix}" (callPnpm variant);
|
||||
in
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
withNode ? true,
|
||||
version,
|
||||
hash,
|
||||
knownVulnerabilities,
|
||||
knownVulnerabilities ? [ ],
|
||||
}:
|
||||
let
|
||||
majorVersion = lib.versions.major version;
|
||||
|
||||
Reference in New Issue
Block a user