aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-09-06 16:29:32 +0300
committerEfraim Flashner <efraim@flashner.co.il>2022-09-06 18:44:53 +0300
commit67e5b56960dc2d53774509751215e35e86d2b28f (patch)
tree50bf10e9fa9aa2b01f6a265dc8c49ffe71f72803 /gnu/packages
parente7532d281bae4f7d130b22cf32a16aade157aedb (diff)
downloadguix-67e5b56960dc2d53774509751215e35e86d2b28f.tar.gz
guix-67e5b56960dc2d53774509751215e35e86d2b28f.zip
gnu: polkit-duktape: Fix cross-compiling.
* gnu/packages/polkit.scm (polkit-duktape)[arguments]: When cross-compiling also search native-inputs for inputs.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/polkit.scm27
1 files changed, 19 insertions, 8 deletions
diff --git a/gnu/packages/polkit.scm b/gnu/packages/polkit.scm
index a75608cd43..56e2589da3 100644
--- a/gnu/packages/polkit.scm
+++ b/gnu/packages/polkit.scm
@@ -118,14 +118,25 @@
(string-append out "/share/gir-1.0/"))
(("@INTROSPECTION_TYPELIBDIR@")
(string-append out "/lib/girepository-1.0/"))))))
- (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)))))
+ ;; TODO: Core-updates: Unify on the cross-build version.
+ ,@(if (%current-target-system)
+ `((add-after 'unpack 'fix-manpage-generation
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (let ((xsldoc (string-append (assoc-ref (or native-inputs 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))))))
+ `((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
'install
(lambda* (#:key outputs (make-flags '()) #:allow-other-keys)