2018-08-20 19:11:29 +00:00
|
|
|
{ pkgs, nodejs, stdenv }:
|
2017-12-19 21:17:40 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
nodePackages = import ./composition-v8.nix {
|
2018-08-20 19:11:29 +00:00
|
|
|
inherit pkgs nodejs;
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
2017-12-19 21:17:40 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
nodePackages // {
|
2018-06-28 21:26:44 +00:00
|
|
|
pnpm = nodePackages.pnpm.override {
|
|
|
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
2018-06-06 07:53:27 +00:00
|
|
|
postInstall = let
|
|
|
|
pnpmLibPath = stdenv.lib.makeBinPath [
|
|
|
|
nodejs.passthru.python
|
|
|
|
nodejs
|
|
|
|
];
|
|
|
|
in ''
|
2018-06-01 06:38:54 +00:00
|
|
|
for prog in $out/bin/*; do
|
2018-06-06 07:53:27 +00:00
|
|
|
wrapProgram "$prog" --prefix PATH : ${pnpmLibPath}
|
2018-06-01 06:38:54 +00:00
|
|
|
done
|
|
|
|
'';
|
2018-06-28 21:26:44 +00:00
|
|
|
};
|
2017-12-19 21:17:40 +00:00
|
|
|
}
|