gnu: fwupd: Depend on libsmbios only on supported systems.
* gnu/packages/firmware.scm (fwupd)[inputs]: Add libsmbios conditionally. Change-Id: Id34135b180f5ee6e7abd2fd4eb10e0d3c6308e06 Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>master
parent
d693983b60
commit
97296f8239
|
@ -31,6 +31,7 @@
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix memoization)
|
#:use-module (guix memoization)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
|
#:use-module (guix platform)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
#:use-module (guix gexp)
|
#:use-module (guix gexp)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
|
@ -283,7 +284,8 @@ driver.")
|
||||||
`(,glib "bin")
|
`(,glib "bin")
|
||||||
help2man
|
help2man
|
||||||
gettext-minimal))
|
gettext-minimal))
|
||||||
(inputs (list bash-completion
|
(inputs (append
|
||||||
|
(list bash-completion
|
||||||
libgudev
|
libgudev
|
||||||
libxmlb
|
libxmlb
|
||||||
sqlite
|
sqlite
|
||||||
|
@ -296,8 +298,13 @@ driver.")
|
||||||
pango
|
pango
|
||||||
protobuf-c
|
protobuf-c
|
||||||
mingw-w64-tools
|
mingw-w64-tools
|
||||||
libsmbios
|
gnu-efi)
|
||||||
gnu-efi))
|
(if (supported-package? libsmbios
|
||||||
|
(or (and=> (%current-target-system)
|
||||||
|
platform-target->system)
|
||||||
|
(%current-system)))
|
||||||
|
(list libsmbios)
|
||||||
|
'())))
|
||||||
;; In Requires of fwupd*.pc.
|
;; In Requires of fwupd*.pc.
|
||||||
(propagated-inputs (list curl
|
(propagated-inputs (list curl
|
||||||
gcab
|
gcab
|
||||||
|
|
Reference in New Issue