gnu: guix: Fix cross-building.

* gnu/packages/package-management.scm (guix)[arguments]: In custom
'set-font-path phase also search native-inputs for the input directory.
This commit is contained in:
Efraim Flashner 2023-05-28 14:43:15 +03:00
parent 6192acf8b7
commit ef5a05bac8
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -275,11 +275,11 @@ (define-public guix
(string-append "\"" xz "/bin/xz")))))
#t))
(add-before 'build 'set-font-path
(lambda* (#:key inputs #:allow-other-keys)
(lambda* (#:key native-inputs inputs #:allow-other-keys)
;; Tell 'dot' where to look for fonts.
(setenv "XDG_DATA_DIRS"
(dirname
(search-input-directory inputs
(search-input-directory (or native-inputs inputs)
"share/fonts")))))
(add-before 'check 'copy-bootstrap-guile
(lambda* (#:key system target inputs #:allow-other-keys)