nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 27 lines 660 B view raw
1{ 2 callPackage, 3 lib, 4 makeSetupHook, 5 srcOnly, 6 nodejs, 7}: 8{ 9 npmConfigHook = makeSetupHook { 10 name = "npm-config-hook"; 11 substitutions = { 12 nodeSrc = srcOnly nodejs; 13 nodeGyp = "${nodejs}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js"; 14 canonicalizeSymlinksScript = ./canonicalize-symlinks.js; 15 storePrefix = builtins.storeDir; 16 }; 17 } ./npm-config-hook.sh; 18 19 linkNodeModulesHook = makeSetupHook { 20 name = "node-modules-hook.sh"; 21 substitutions = { 22 nodejs = lib.getExe nodejs; 23 script = ./link-node-modules.js; 24 storePrefix = builtins.storeDir; 25 }; 26 } ./link-node-modules-hook.sh; 27}