nodePackages_8_x: Add nodejs (npm) to wrapper
Some pnpm commands forward to npm which might not exist in $PATH
This commit is contained in:
parent
832973d179
commit
0b97cb69f3
|
@ -68,9 +68,14 @@ nodePackages // {
|
|||
|
||||
pnpm = nodePackages.pnpm.override (oldAttrs: {
|
||||
nativeBuildInputs = oldAttrs.buildInputs ++ [ pkgs.makeWrapper ];
|
||||
postInstall = ''
|
||||
postInstall = let
|
||||
pnpmLibPath = stdenv.lib.makeBinPath [
|
||||
nodejs.passthru.python
|
||||
nodejs
|
||||
];
|
||||
in ''
|
||||
for prog in $out/bin/*; do
|
||||
wrapProgram "$prog" --prefix PATH : ${stdenv.lib.makeBinPath [ nodejs.passthru.python ]}
|
||||
wrapProgram "$prog" --prefix PATH : ${pnpmLibPath}
|
||||
done
|
||||
'';
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue