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
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
'';
};
}