nixpkgs-suyu/pkgs/development/web/nodejs/setup-hook.sh

5 lines
104 B
Bash

addNodePath () {
addToSearchPath NODE_PATH $1/node_modules
}
envHooks=(${envHooks[@]} addNodePath)