nixpkgs-suyu/pkgs/development/node-packages/default-v6.nix
2018-08-28 11:15:07 +01:00

22 lines
476 B
Nix

{pkgs, system, nodejs, stdenv}:
let
nodePackages = import ./composition-v6.nix {
inherit pkgs system nodejs;
};
in
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
'';
};
}