mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: wayland: Find docbook-xml when cross-compiling.
* gnu/packages/freedesktop.scm (wayland)[arguments]<#:phases>{patchdocbook-xml}: Look in 'native-inputs' instead of 'inputs' when cross-compiling.
This commit is contained in:
parent
d979c916e8
commit
be58507d5d
1 changed files with 11 additions and 3 deletions
|
@ -983,14 +983,22 @@ (define-public wayland
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-docbook-xml
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
;; TODO(core-updates): Use 'native-inputs' unconditionally
|
||||
(lambda* (#:key ,@(if (%current-target-system)
|
||||
'(native-inputs)
|
||||
'())
|
||||
inputs #:allow-other-keys)
|
||||
(with-directory-excursion "doc"
|
||||
(substitute* (find-files "." "\\.xml$")
|
||||
(("http://www.oasis-open.org/docbook/xml/4\\.5/")
|
||||
(string-append (assoc-ref inputs "docbook-xml")
|
||||
(string-append (assoc-ref ,(if (%current-target-system)
|
||||
'(or native-inputs inputs)
|
||||
'inputs) "docbook-xml")
|
||||
"/xml/dtd/docbook/"))
|
||||
(("http://www.oasis-open.org/docbook/xml/4\\.2/")
|
||||
(string-append (assoc-ref inputs "docbook-xml-4.2")
|
||||
(string-append (assoc-ref ,(if (%current-target-system)
|
||||
'(or native-inputs inputs)
|
||||
'inputs) "docbook-xml-4.2")
|
||||
"/xml/dtd/docbook/"))))
|
||||
#t))
|
||||
(add-after 'install 'move-doc
|
||||
|
|
Loading…
Reference in a new issue