mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
pnpm.fetchDeps: allow overriding the pnpm version (#402770)
This commit is contained in:
commit
8151e9a35d
1 changed files with 6 additions and 2 deletions
|
@ -10,11 +10,15 @@
|
|||
yq,
|
||||
}:
|
||||
|
||||
let
|
||||
pnpm' = pnpm;
|
||||
in
|
||||
{
|
||||
fetchDeps = lib.makeOverridable (
|
||||
{
|
||||
hash ? "",
|
||||
pname,
|
||||
pnpm ? pnpm',
|
||||
pnpmWorkspaces ? [ ],
|
||||
prePnpmInstall ? "",
|
||||
pnpmInstallFlags ? [ ],
|
||||
|
@ -52,7 +56,7 @@
|
|||
cacert
|
||||
jq
|
||||
moreutils
|
||||
pnpm
|
||||
args.pnpm or pnpm'
|
||||
yq
|
||||
];
|
||||
|
||||
|
@ -109,7 +113,7 @@
|
|||
|
||||
passthru = {
|
||||
serve = callPackage ./serve.nix {
|
||||
inherit pnpm;
|
||||
pnpm = args.pnpm or pnpm';
|
||||
pnpmDeps = finalAttrs.finalPackage;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue