diff options
author | Marius Bakke <[email protected]> | 2020-12-29 17:39:24 +0100 |
---|---|---|
committer | Marius Bakke <[email protected]> | 2020-12-29 17:39:24 +0100 |
commit | 78cf7a4571081ff9c9e4ab678bf67368de1add59 (patch) | |
tree | d37341b9129f7ea1c6288f5095af2d046fb27710 /gnu/packages/node.scm | |
parent | afa493c4c7ef307455b16b52a87d180f0c4a8c6b (diff) | |
parent | a22e75c073c785a3a71c952d97fb7ab87dfd282d (diff) |
Merge branch 'ungrafting' into staging
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 <[email protected]> ;;; Copyright © 2018, 2019, 2020 Marius Bakke <[email protected]> ;;; Copyright © 2020 Pierre Langlois <[email protected]> +;;; Copyright © 2020 Ricardo Wurmus <[email protected]> ;;; ;;; 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) |