gnu: node: Add search path specification for 'NODE_PATH'.
authorJelle Licht <jlicht@fsfe.org>
Tue, 23 Aug 2016 02:41:28 +0000 (04:41 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Tue, 18 Jul 2017 15:49:02 +0000 (17:49 +0200)
* gnu/packages/node.scm (node)[native-search-paths]: New field.

gnu/packages/node.scm

index d4415fc..2cebabb 100644 (file)
        ("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)