From d01a35d3ef5b2619807b666e4f4126143a0bf08a Mon Sep 17 00:00:00 2001 From: Jelle Licht Date: Wed, 15 Jun 2016 12:22:40 +0200 Subject: [PATCH] gnu: node: Correctly patch npm shebang. To: guix-devel@gnu.org * gnu/packages/node.scm (node): Correctly patch npm shebang. --- gnu/packages/node.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 2f269d0..2cedda8 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -51,8 +51,14 @@ "--shared-zlib" "--shared-libuv" "--without-snapshot") + ;#:tests? #f #:phases (modify-phases %standard-phases + (add-after 'patch-shebangs 'patch-npm-shebang + (lambda* (#:key outputs #:allow-other-keys) + ;; XXX: patch-shebangs does not patch this file by default + (let ((out (assoc-ref outputs "out"))) + (patch-shebang (string-append out "/lib/node_modules/npm/bin/npm-cli.js") (list (string-append out "/bin")))))) (add-before 'configure 'patch-files (lambda* (#:key inputs #:allow-other-keys) ;; Fix hardcoded /bin/sh references. -- 2.8.4