diff options
author | Marius Bakke <marius@gnu.org> | 2020-12-29 17:37:17 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2020-12-29 17:37:17 +0100 |
commit | a22e75c073c785a3a71c952d97fb7ab87dfd282d (patch) | |
tree | c0ef12b8c271c9de37bcce9287b67adf8628ed93 /gnu/packages/node.scm | |
parent | bbe4ed65ed5fe7dc8ed9d226042852387cee3b1e (diff) | |
parent | 789bf7fcc241d010cb583dc76c366110bfca8b35 (diff) | |
download | guix-a22e75c073c785a3a71c952d97fb7ab87dfd282d.tar.gz |
Merge branch 'master' into ungrafting
Diffstat (limited to 'gnu/packages/node.scm')
-rw-r--r-- | gnu/packages/node.scm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm index 66ef4f0905..1ecf76b62a 100644 --- a/gnu/packages/node.scm +++ b/gnu/packages/node.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2018, 2019, 2020 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2020 Pierre Langlois <pierre.langlois@gmx.com> +;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net> ;;; ;;; This file is part of GNU Guix. ;;; @@ -170,6 +171,14 @@ (target (readlink npm))) (with-directory-excursion bindir (patch-shebang target (list bindir)) + #t)))) + (add-after 'install 'patch-node-shebang + (lambda* (#:key outputs #:allow-other-keys) + (let* ((bindir (string-append (assoc-ref outputs "out") + "/bin")) + (npx (readlink (string-append bindir "/npx")))) + (with-directory-excursion bindir + (patch-shebang npx (list bindir)) #t))))))) (native-inputs `(("python" ,python-2) |