Added setup hook that adds a Node package automatically to NODE_PATH, if included in the buildInputs parameter
This commit is contained in:
5
pkgs/development/web/nodejs/setup-hook.sh
Normal file
5
pkgs/development/web/nodejs/setup-hook.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
addNodePath () {
|
||||
addToSearchPath NODE_PATH $1/node_modules
|
||||
}
|
||||
|
||||
envHooks=(${envHooks[@]} addNodePath)
|
||||
Reference in New Issue
Block a user