summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJelle Licht <jlicht@fsfe.org>2016-08-23 04:41:28 +0200
committerJan Nieuwenhuizen <janneke@gnu.org>2017-07-18 17:49:02 +0200
commit45c18f8529ed25729e9cbdfeeda4aed3c965180d (patch)
tree7048c38e7e5b6f024c6f72c6862bb2476da9510b /gnu/packages
parent21ffcd65c5a3459e939a75eb9151acde6ab53723 (diff)
downloadguix-45c18f8529ed25729e9cbdfeeda4aed3c965180d.tar.gz
gnu: node: Add search path specification for 'NODE_PATH'.
* gnu/packages/node.scm (node)[native-search-paths]: New field.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/node.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index d4415fc501..2cebabbcaf 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -134,6 +134,10 @@
        ("procps" ,procps)
        ("util-linux" ,util-linux)
        ("which" ,which)))
+    (native-search-paths
+     (list (search-path-specification
+            (variable "NODE_PATH")
+            (files '("lib/node_modules")))))
     (inputs
      `(("c-ares" ,c-ares)
        ("http-parser" ,http-parser)