From 0ad3cc75aebc4794b38cfa5ef1c8fb8061def1fb Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 23 May 2024 14:42:42 +0300 Subject: [PATCH] gnu: shared-mime-info: Fix cross-compiling. * gnu/packages/freedesktop.scm (shared-mime-info)[native-inputs]: When cross-compiling add libxml2 and this-package. Change-Id: I254a685a492b9080342b134ff23d9ccab0ecec3d --- gnu/packages/freedesktop.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index a77dab5794..c1a84185e1 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -579,9 +579,13 @@ (define-public shared-mime-info (inputs (list glib libxml2)) (native-inputs - (list gettext-minimal pkg-config python xdgmime - ;; For 'doc' output. - docbook-xml-4.1.2 docbook-xsl xmlto)) + (append + (if (%current-target-system) + (list libxml2 this-package) + '()) + (list gettext-minimal pkg-config python xdgmime + ;; For 'doc' output. + docbook-xml-4.1.2 docbook-xsl xmlto))) (outputs (list "out" "doc")) (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info") (synopsis "Database of common MIME types")