gnu: mig: Use gexps.

* gnu/packages/hurd.scm (mig)[arguments]: Use gexps.
This commit is contained in:
Ludovic Courtès 2023-03-04 15:46:41 +01:00
parent ec9192933c
commit cfda54c12f
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015, 2016, 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com> ;;; Copyright © 2014, 2015, 2016, 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
;;; Copyright © 2018, 2020-2022 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2018, 2020-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020, 2022 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2020, 2022 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
@ -125,16 +125,16 @@ (define-public mig
(inputs (list gnumach-headers flex perl)) (inputs (list gnumach-headers flex perl))
(native-inputs (native-inputs
(list flex bison)) (list flex bison))
(arguments `(#:tests? #f (arguments
(list #:tests? #f
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'install 'patch-non-shebang-references (add-after 'install 'patch-non-shebang-references
(lambda* (#:key build inputs outputs #:allow-other-keys) (lambda* (#:key build inputs outputs #:allow-other-keys)
(let ((perl (assoc-ref inputs "perl")) (let ((perl (assoc-ref inputs "perl"))
(out (assoc-ref outputs "out"))) (out (assoc-ref outputs "out")))
(substitute* (string-append out "/bin/mig") (substitute* (string-append out "/bin/mig")
(("perl ") (string-append perl "/bin/perl "))) (("perl ") (string-append perl "/bin/perl ")))))))))
#t))))))
(home-page "https://www.gnu.org/software/hurd/microkernel/mach/mig/gnu_mig.html") (home-page "https://www.gnu.org/software/hurd/microkernel/mach/mig/gnu_mig.html")
(synopsis "Mach 3.0 interface generator for the Hurd") (synopsis "Mach 3.0 interface generator for the Hurd")
(description (description