diff mbox

[2/4] gnu: node: Add search path specification for 'NODE_PATH'.

Message ID 20160827112333.1759-3-jlicht@fsfe.org
State New
Headers show

Commit Message

Jelle Licht Aug. 27, 2016, 11:23 a.m. UTC
* gnu/packages/node.scm (node)[native-search-paths]: New field.
---
 gnu/packages/node.scm | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 545aaaa..d1c5e1b 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -151,6 +151,10 @@  it does not buffer data, it can be interrupted at anytime.")
        ("procps" ,procps)
        ("util-linux" ,util-linux)
        ("which" ,which)))
+    (native-search-paths
+     (list (search-path-specification
+            (variable "NODE_PATH")
+            (files '("lib/node_modules")))))
     (inputs
      `(("libuv" ,libuv)
        ("openssl" ,tls:openssl)