From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <20160827112333.1759-3-jlicht@fsfe.org> References: <20160827112333.1759-1-jlicht@fsfe.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdbiY-0003Na-7h for guix-devel@gnu.org; Sat, 27 Aug 2016 07:24:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bdbiU-0002Ez-Vx for guix-devel@gnu.org; Sat, 27 Aug 2016 07:24:06 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:32869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bdbiU-0002Eq-Pn for guix-devel@gnu.org; Sat, 27 Aug 2016 07:24:02 -0400 Received: by mail-wm0-f68.google.com with SMTP id o80so2875176wme.0 for ; Sat, 27 Aug 2016 04:24:02 -0700 (PDT) In-Reply-To: <20160827112333.1759-1-jlicht@fsfe.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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