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