gnu: polkit-duktape: Fix cross-compiling.

* gnu/packages/polkit.scm (polkit-duktape)[arguments]: When
cross-compiling also search native-inputs for inputs.
This commit is contained in:
Efraim Flashner 2022-09-06 16:29:32 +03:00
parent e7532d281b
commit 67e5b56960
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -118,14 +118,25 @@
(string-append out "/share/gir-1.0/")) (string-append out "/share/gir-1.0/"))
(("@INTROSPECTION_TYPELIBDIR@") (("@INTROSPECTION_TYPELIBDIR@")
(string-append out "/lib/girepository-1.0/")))))) (string-append out "/lib/girepository-1.0/"))))))
(add-after 'unpack 'fix-manpage-generation ;; TODO: Core-updates: Unify on the cross-build version.
(lambda* (#:key inputs #:allow-other-keys) ,@(if (%current-target-system)
(let ((xsldoc (string-append (assoc-ref inputs "docbook-xsl") `((add-after 'unpack 'fix-manpage-generation
"/xml/xsl/docbook-xsl-" (lambda* (#:key inputs native-inputs #:allow-other-keys)
,(package-version docbook-xsl)))) (let ((xsldoc (string-append (assoc-ref (or native-inputs inputs)
(substitute* '("docs/man/Makefile.am" "docs/man/Makefile.in") "docbook-xsl")
(("http://docbook.sourceforge.net/release/xsl/current") "/xml/xsl/docbook-xsl-"
xsldoc))))) ,(package-version docbook-xsl))))
(substitute* '("docs/man/Makefile.am" "docs/man/Makefile.in")
(("http://docbook.sourceforge.net/release/xsl/current")
xsldoc))))))
`((add-after 'unpack 'fix-manpage-generation
(lambda* (#:key inputs #:allow-other-keys)
(let ((xsldoc (string-append (assoc-ref inputs "docbook-xsl")
"/xml/xsl/docbook-xsl-"
,(package-version docbook-xsl))))
(substitute* '("docs/man/Makefile.am" "docs/man/Makefile.in")
(("http://docbook.sourceforge.net/release/xsl/current")
xsldoc)))))))
(replace (replace
'install 'install
(lambda* (#:key outputs (make-flags '()) #:allow-other-keys) (lambda* (#:key outputs (make-flags '()) #:allow-other-keys)