d614edeb32
This was supposed to go through a pull request Revert "nodePackages: Regenerate node packages for nodejs 10 & 12" This reverts commit6a17bdf397
. Revert "nodejs-8_x: Drop package" This reverts commite06c97b71d
.
27 lines
607 B
Nix
27 lines
607 B
Nix
{ pkgs, nodejs, stdenv }:
|
|
|
|
let
|
|
nodePackages = import ./composition-v8.nix {
|
|
inherit pkgs nodejs;
|
|
inherit (stdenv.hostPlatform) system;
|
|
};
|
|
in
|
|
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
|
|
'';
|
|
};
|
|
|
|
stf = nodePackages.stf.override {
|
|
nativeBuildInputs = with pkgs; [ yasm czmq protobufc ];
|
|
};
|
|
}
|