2018-06-29 21:43:54 +01:00
|
|
|
{pkgs, system, nodejs, stdenv}:
|
|
|
|
|
|
|
|
let
|
|
|
|
nodePackages = import ./composition-v10.nix {
|
|
|
|
inherit pkgs system nodejs;
|
|
|
|
};
|
|
|
|
in
|
2018-07-05 15:49:05 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|