me
/
guix
Archived
1
0
Fork 0

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
Simon South 2024-01-10 12:16:55 -05:00 committed by Mathieu Othacehe
parent d693983b60
commit 97296f8239
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 22 additions and 15 deletions

View File

@ -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,7 +284,8 @@ driver.")
`(,glib "bin")
help2man
gettext-minimal))
(inputs (list bash-completion
(inputs (append
(list bash-completion
libgudev
libxmlb
sqlite
@ -296,8 +298,13 @@ driver.")
pango
protobuf-c
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.
(propagated-inputs (list curl
gcab