janneke pushed a commit to branch wip-hurd
in repository guix.

commit 8a38c22ea94a726db516ad06176a606c8a8bbaa7
Author: Jan Nieuwenhuizen <[email protected]>
AuthorDate: Sat Mar 7 04:05:02 2020 -0500

    gnu: pciutils: Remove kmod dependency for the Hurd.
    
    * gnu/packages/pciutils.scm (pciutils)[inputs]: The Hurd has no kmod;
    omit it on the Hurd.
---
 gnu/packages/pciutils.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/pciutils.scm b/gnu/packages/pciutils.scm
index 0a55299..45d7b49 100644
--- a/gnu/packages/pciutils.scm
+++ b/gnu/packages/pciutils.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2016 Efraim Flashner <[email protected]>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <[email protected]>
 ;;; Copyright © 2019 Mathieu Othacehe <[email protected]>
+;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -27,6 +28,7 @@
   #:use-module (guix build-system gnu)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages hurd)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages base))
 
@@ -100,7 +102,8 @@
      `(("which" ,which)
        ("pkg-config" ,pkg-config)))
     (inputs
-     `(("kmod" ,kmod)
+     `(,@(if (hurd-target?) '() ; Hurd has no kmod
+             `(("kmod" ,kmod)))
        ("zlib" ,zlib)))
     (home-page "https://mj.ucw.cz/sw/pciutils/";)
     (synopsis "Programs for inspecting and manipulating PCI devices")

Reply via email to