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

24 lines
505 B
Nix
Raw Normal View History

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