mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
2c2f1e37d4
It is deprecated and will be removed after 18.09.
26 lines
508 B
Nix
26 lines
508 B
Nix
{ pkgs, nodejs, stdenv }:
|
|
|
|
let
|
|
nodePackages = import ./composition-v10.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
|
|
'';
|
|
};
|
|
|
|
}
|