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 memoization)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix platform)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix utils)
|
||||
|
@ -283,21 +284,27 @@ driver.")
|
|||
`(,glib "bin")
|
||||
help2man
|
||||
gettext-minimal))
|
||||
(inputs (list bash-completion
|
||||
libgudev
|
||||
libxmlb
|
||||
sqlite
|
||||
polkit
|
||||
eudev
|
||||
libelf
|
||||
tpm2-tss
|
||||
cairo
|
||||
efivar
|
||||
pango
|
||||
protobuf-c
|
||||
mingw-w64-tools
|
||||
libsmbios
|
||||
gnu-efi))
|
||||
(inputs (append
|
||||
(list bash-completion
|
||||
libgudev
|
||||
libxmlb
|
||||
sqlite
|
||||
polkit
|
||||
eudev
|
||||
libelf
|
||||
tpm2-tss
|
||||
cairo
|
||||
efivar
|
||||
pango
|
||||
protobuf-c
|
||||
mingw-w64-tools
|
||||
gnu-efi)
|
||||
(if (supported-package? libsmbios
|
||||
(or (and=> (%current-target-system)
|
||||
platform-target->system)
|
||||
(%current-system)))
|
||||
(list libsmbios)
|
||||
'())))
|
||||
;; In Requires of fwupd*.pc.
|
||||
(propagated-inputs (list curl
|
||||
gcab
|
||||
|
|
Reference in New Issue