2018-08-20 21:11:29 +02:00
|
|
|
{ pkgs, nodejs, stdenv }:
|
2018-06-29 22:43:54 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
nodePackages = import ./composition-v10.nix {
|
2018-08-20 21:11:29 +02:00
|
|
|
inherit pkgs nodejs;
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
2018-06-29 22:43:54 +02:00
|
|
|
};
|
|
|
|
in
|
2018-07-05 16:49:05 +02: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
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|