3
0
Fork 0
forked from mirrors/nixpkgs

nodePackages_10_x.pnpm: init at 2.9.0

This commit is contained in:
adisbladis 2018-07-05 22:49:05 +08:00
parent 96258fc193
commit 355708db80
No known key found for this signature in database
GPG key ID: ED58F95069B004F5
3 changed files with 35 additions and 1 deletions

View file

@ -5,4 +5,20 @@ let
inherit pkgs system nodejs;
};
in
nodePackages
nodePackages // {
pnpm = nodePackages.pnpm.override {
nativeBuildInputs = [ pkgs.makeWrapper ];
postInstall = let
pnpmLibPath = stdenv.lib.makeBinPath [
nodejs.passthru.python
nodejs
];
in ''
for prog in $out/bin/*; do
wrapProgram "$prog" --prefix PATH : ${pnpmLibPath}
done
'';
};
}

View file

@ -2,4 +2,5 @@
"bower"
, "coffee-script"
, "grunt-cli"
, "pnpm"
]

View file

@ -210,4 +210,21 @@ in
production = true;
bypassCache = true;
};
pnpm = nodeEnv.buildNodePackage {
name = "pnpm";
packageName = "pnpm";
version = "2.9.0";
src = fetchurl {
url = "https://registry.npmjs.org/pnpm/-/pnpm-2.9.0.tgz";
sha1 = "1c2f5ade46b87cc3b1f3b7c66eeb7b0f4df4d968";
};
buildInputs = globalBuildInputs;
meta = {
description = "Fast, disk space efficient package manager";
homepage = https://pnpm.js.org/;
license = "MIT";
};
production = true;
bypassCache = true;
};
}