guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Jelle Licht
Subject: [PATCH 2/4] gnu: node: Add search path specification for 'NODE_PATH'.
Date: Sat, 27 Aug 2016 13:23:31 +0200

* gnu/packages/node.scm (node)[native-search-paths]: New field.
---
 gnu/packages/node.scm | 4 ++++
 1 file changed, 4 insertions(+)

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)
-- 
2.9.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]