mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 06:37:08 +01:00
gnu: pciutils: Fix the conditional for the kmod input.
Fixes <https://issues.guix.gnu.org/52411>. Thanks to Maxime Devos for suggesting the solution. * gnu/packages/pciutils.scm (pciutils): Delete trailing #t. [inputs]{kmod}: Use the hurd-target? procedure in the condition, which correctly handles the Nix system of %current-system and GNU triplet of %current-target-system.
This commit is contained in:
parent
2257e65079
commit
3d91c07875
1 changed files with 2 additions and 5 deletions
|
@ -87,8 +87,7 @@ (define-public pciutils
|
|||
|
||||
(("^IDSDIR=.*$")
|
||||
;; Installation directory of 'pci.ids.gz'.
|
||||
"IDSDIR = $(SHAREDIR)/hwdata\n"))
|
||||
#t))
|
||||
"IDSDIR = $(SHAREDIR)/hwdata\n"))))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
;; Install the commands, library, and .pc files.
|
||||
|
@ -111,9 +110,7 @@ (define-public pciutils
|
|||
(native-inputs
|
||||
(list which pkg-config))
|
||||
(inputs
|
||||
`(,@(if (member (or (%current-target-system)
|
||||
(%current-system))
|
||||
(package-supported-systems kmod))
|
||||
`(,@(if (not (hurd-target?))
|
||||
`(("kmod" ,kmod))
|
||||
'())
|
||||
,@(if (hurd-target?)
|
||||
|
|
Loading…
Reference in a new issue