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:
Maxim Cournoyer 2021-12-17 22:50:12 -05:00
parent 2257e65079
commit 3d91c07875
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -87,8 +87,7 @@ (define-public pciutils
(("^IDSDIR=.*$") (("^IDSDIR=.*$")
;; Installation directory of 'pci.ids.gz'. ;; Installation directory of 'pci.ids.gz'.
"IDSDIR = $(SHAREDIR)/hwdata\n")) "IDSDIR = $(SHAREDIR)/hwdata\n"))))
#t))
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
;; Install the commands, library, and .pc files. ;; Install the commands, library, and .pc files.
@ -111,9 +110,7 @@ (define-public pciutils
(native-inputs (native-inputs
(list which pkg-config)) (list which pkg-config))
(inputs (inputs
`(,@(if (member (or (%current-target-system) `(,@(if (not (hurd-target?))
(%current-system))
(package-supported-systems kmod))
`(("kmod" ,kmod)) `(("kmod" ,kmod))
'()) '())
,@(if (hurd-target?) ,@(if (hurd-target?)