diff --git a/pkgs/development/tools/pnpm/default.nix b/pkgs/development/tools/pnpm/default.nix index 4339c86d09cb..49ab2f14ee5e 100644 --- a/pkgs/development/tools/pnpm/default.nix +++ b/pkgs/development/tools/pnpm/default.nix @@ -42,12 +42,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 diff --git a/pkgs/development/tools/pnpm/generic.nix b/pkgs/development/tools/pnpm/generic.nix index f3cdc920f26d..9de5e0ab6bef 100644 --- a/pkgs/development/tools/pnpm/generic.nix +++ b/pkgs/development/tools/pnpm/generic.nix @@ -17,7 +17,7 @@ withNode ? true, version, hash, - knownVulnerabilities, + knownVulnerabilities ? [ ], }: let majorVersion = lib.versions.major version;