gnu: global: Fix globash.

* gnu/packages/code.scm (global)[arguments]: Add 'fix-globash phase.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
luhui 2021-04-25 16:49:05 +08:00 committed by Efraim Flashner
parent 5ea5ea6066
commit 93242b54e4
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -15,6 +15,7 @@
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2021 lu hui <luhuins@163.com>
;;;
;;; This file is part of GNU Guix.
;;;
@ -149,6 +150,12 @@ (define-public global ; a global variable
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-globash
(lambda* (#:key inputs #:allow-other-keys)
(let* ((echo (string-append
(assoc-ref inputs "coreutils") "/bin/echo")))
(substitute* "globash/globash.in"
(("/bin/echo") echo)))))
(add-after 'install 'post-install
(lambda* (#:key outputs #:allow-other-keys)
;; Install the plugin files in the right place.