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
This commit is contained in:
Efraim Flashner 2024-05-23 14:42:42 +03:00
parent 4ab8657b23
commit 0ad3cc75ae
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -579,9 +579,13 @@ (define-public shared-mime-info
(inputs (inputs
(list glib libxml2)) (list glib libxml2))
(native-inputs (native-inputs
(list gettext-minimal pkg-config python xdgmime (append
;; For 'doc' output. (if (%current-target-system)
docbook-xml-4.1.2 docbook-xsl xmlto)) (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")) (outputs (list "out" "doc"))
(home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info") (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info")
(synopsis "Database of common MIME types") (synopsis "Database of common MIME types")