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