2018-08-20 20:11:29 +01:00
|
|
|
{ pkgs, nodejs, stdenv }:
|
2016-09-01 13:12:12 +01:00
|
|
|
|
|
|
|
let
|
2016-10-30 08:59:56 +00:00
|
|
|
nodePackages = import ./composition-v6.nix {
|
2018-08-20 20:11:29 +01:00
|
|
|
inherit pkgs nodejs;
|
|
|
|
inherit (stdenv.hostPlatform) system;
|
2016-09-01 13:12:12 +01:00
|
|
|
};
|
|
|
|
in
|
|
|
|
nodePackages // {
|
2018-08-28 11:01:41 +01:00
|
|
|
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}
|
2016-09-15 00:51:56 +01:00
|
|
|
done
|
|
|
|
'';
|
2018-06-28 22:26:44 +01:00
|
|
|
};
|
2016-09-01 13:12:12 +01:00
|
|
|
}
|