Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 23 lines 505 B view raw
1{ pkgs, nodejs, stdenv }: 2 3let 4 nodePackages = import ./composition-v6.nix { 5 inherit pkgs nodejs; 6 inherit (stdenv.hostPlatform) system; 7 }; 8in 9nodePackages // { 10 pnpm = nodePackages.pnpm.override { 11 nativeBuildInputs = [ pkgs.makeWrapper ]; 12 postInstall = let 13 pnpmLibPath = stdenv.lib.makeBinPath [ 14 nodejs.passthru.python 15 nodejs 16 ]; 17 in '' 18 for prog in $out/bin/*; do 19 wrapProgram "$prog" --prefix PATH : ${pnpmLibPath} 20 done 21 ''; 22 }; 23}