mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: grub-minimal: Fix cross-compilation.
Fixes a regression introduced in
34a6f12351
that would break
cross-compilation of 'grub-minimal' because it would enable Freetype
support as a side effect but the 'set-freetype-variables' phase was not
inherited in 'grub-minimal'.
* gnu/packages/bootloaders.scm (grub-minimal)[arguments]: Use
'substitute-keyword-arguments' so that the 'set-freetype-variables'
phase is inherited.
This commit is contained in:
parent
98f5548cc7
commit
097b725532
1 changed files with 17 additions and 13 deletions
|
@ -258,21 +258,25 @@ (define-public grub-minimal
|
|||
(fold alist-delete (package-native-inputs grub)
|
||||
'("help2man" "texinfo" "parted" "qemu" "xorriso")))
|
||||
(arguments
|
||||
`(#:configure-flags (list "PYTHON=true")
|
||||
#:phases (modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-stuff
|
||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
||||
(substitute* "grub-core/Makefile.in"
|
||||
(("/bin/sh") (which "sh")))
|
||||
(substitute-keyword-arguments (package-arguments grub)
|
||||
((#:configure-flags _ ''())
|
||||
'(list "PYTHON=true"))
|
||||
((#:tests? _ #t)
|
||||
#f)
|
||||
((#:phases phases '%standard-phases)
|
||||
`(modify-phases ,phases
|
||||
(replace 'patch-stuff
|
||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
||||
(substitute* "grub-core/Makefile.in"
|
||||
(("/bin/sh") (which "sh")))
|
||||
|
||||
;; Make the font visible.
|
||||
(copy-file (assoc-ref (or native-inputs inputs)
|
||||
"unifont")
|
||||
"unifont.bdf.gz")
|
||||
(system* "gunzip" "unifont.bdf.gz")
|
||||
;; Make the font visible.
|
||||
(copy-file (assoc-ref (or native-inputs inputs)
|
||||
"unifont")
|
||||
"unifont.bdf.gz")
|
||||
(system* "gunzip" "unifont.bdf.gz")
|
||||
|
||||
#t)))
|
||||
#:tests? #f))))
|
||||
#t))))))))
|
||||
|
||||
(define-public grub-efi
|
||||
(package
|
||||
|
|
Loading…
Reference in a new issue