nixpkgs-suyu/pkgs/development/node-packages/default-v6.nix

24 lines
505 B
Nix
Raw Normal View History

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