From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CHf6Ot+tGWL12QAAgWs5BA (envelope-from ) for ; Sat, 26 Feb 2022 05:34:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OFrRN9+tGWJBZgEAauVa8A (envelope-from ) for ; Sat, 26 Feb 2022 05:34:39 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8793A327C7 for ; Sat, 26 Feb 2022 05:34:39 +0100 (CET) Received: from localhost ([::1]:36906 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNon0-0002Y5-NG for larch@yhetil.org; Fri, 25 Feb 2022 23:34:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40880) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNomR-00027B-0Y for guix-patches@gnu.org; Fri, 25 Feb 2022 23:34:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60175) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nNomQ-00083h-C5 for guix-patches@gnu.org; Fri, 25 Feb 2022 23:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nNomQ-0005XD-9Y for guix-patches@gnu.org; Fri, 25 Feb 2022 23:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54069] [PATCH v2 1/4] gnu: Add hwdata. References: <635599986.289572.1645350831631@office.mailbox.org> In-Reply-To: <635599986.289572.1645350831631@office.mailbox.org> Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Feb 2022 04:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54069 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54069@debbugs.gnu.org Cc: John Kehayias , Maxim Cournoyer Received: via spool by 54069-submit@debbugs.gnu.org id=B54069.164584998821156 (code B ref 54069); Sat, 26 Feb 2022 04:34:02 +0000 Received: (at 54069) by debbugs.gnu.org; 26 Feb 2022 04:33:08 +0000 Received: from localhost ([127.0.0.1]:54062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNolY-0005V9-A6 for submit@debbugs.gnu.org; Fri, 25 Feb 2022 23:33:08 -0500 Received: from mout-p-101.mailbox.org ([80.241.56.151]:46916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nNolV-0005UV-VN for 54069@debbugs.gnu.org; Fri, 25 Feb 2022 23:33:07 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4K5DK74ngrz9sSc; Sat, 26 Feb 2022 05:32:59 +0100 (CET) From: Brendan Tildesley DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1645849978; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZHRXsluTMAREtph1WiKdD24JGxv0QdYzv69RND/TwqI=; b=rAsWWuxF/6YIZGv0SKFY9HZzrppVmJU2bSidrfrMaMsKlXBNfkihfnlB3MzkQ+CNYMJ0RS w0MGgWxWlZ2mXaPkCTKDwHQo+xRrkoDgtIQ8Vy9I/Ur9DSBoKDw/c/vmYRShveOgRG9tN4 auY7QTtSY1aqZhvJhIjFEMYfpYvup4LNSoBNu9uhrE8kD4t53z4sVbzyPMLIsj/6Wv5JCD iLm6/l7ZTlUKVEXIgbVh2Df8NLrHfXRVVW3MGbExmEKypx0ZPvBEgHIosTHfWqYoI8bB+t OGg+ZC0ZYDADe8v4lR3W2qMPNCbiG5bmrWWmkeEq1OLB4eqBeZ1X/9eOF3RTyQ== Date: Sat, 26 Feb 2022 15:32:35 +1100 Message-Id: <20220226043238.2657-1-mail@brendan.scot> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645850079; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZHRXsluTMAREtph1WiKdD24JGxv0QdYzv69RND/TwqI=; b=tnOA+EEHl6CQxQRz7iJRWqUBs7o/UcdIcRxAbvU9oSvlUl8DQocjGJZdTvuOl2cMmuhstZ K3+Z1BTqL8Mo+Jhp7RXv2P9KbPeGYFgLN6hWCUuSig3yp/hBGOsedSCTgyUBUfsQIYHs/S f6Anvxen981BV7DlYd9P8IZt4Aj+ED/j8zMQ+rJnEg+ekMp7Y3AU+tn2BIxISg0UooDJxp 2l4lWTvJl+DtSEbUL0FYSjZgExDb78H4NabOp/U6/FwM3EHAzACi1SYwM7k+N/svjNuqs/ /fSmU28tLLg9qj7EUqfvZyTzWsjocn8152stJ8aBFCG/u2Eq9UmsSxgJ0tGPEA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645850079; a=rsa-sha256; cv=none; b=iv821FyE4/QsAeCKzz+k4zjiziD6s4GtO+ATYFojfqmYVrL2iOplCQ5VIDzbuI9NGAEB7/ DrhiuBF1IQm9tPlVI6BK9IyZwI6/GYwSBAznrWUIDQqUGrM+r+KwB8FRLmsyTS0N2TA9aK yV+ZKUbdX7OdGvqHXxREL+W1cWbmNjUGmJXPhPjZlpJyjTwCtz/agMfxdp09grkfSzx3/+ aGBKxud1kwd6CAL9zYbo7FAaejX43s7mkwoWyRabxKLkNFXis9UcmA3tM+ooKAR8nXu7l4 BfQIUU54gCPbxFBUo6pKva2093cz3fEM36xQv5yhvgngB3C/Uh7IzaPJk/grcA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=brendan.scot header.s=MBO0001 header.b=rAsWWuxF; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.98 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=brendan.scot header.s=MBO0001 header.b=rAsWWuxF; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8793A327C7 X-Spam-Score: 0.98 X-Migadu-Scanner: scn0.migadu.com X-TUID: YFI8rEhXNyVA * gnu/packages/pciutils.scm (hwdata): New variable. --- gnu/packages/pciutils.scm | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/pciutils.scm b/gnu/packages/pciutils.scm index b6b1e3ad85..f16f420ec2 100644 --- a/gnu/packages/pciutils.scm +++ b/gnu/packages/pciutils.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2019 Mathieu Othacehe ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen +;;; Copyright © 2022 Brendan Tildesley ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,11 +22,14 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages pciutils) + #:use-module (guix gexp) #:use-module (guix packages) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix utils) + #:use-module (guix git-download) #:use-module (guix build-system gnu) + #:use-module (guix build-system trivial) #:use-module (gnu packages) #:use-module (gnu packages compression) #:use-module (gnu packages pkg-config) @@ -33,6 +37,43 @@ (define-module (gnu packages pciutils) #:use-module (gnu packages linux) #:use-module (gnu packages base)) +(define-public hwdata + (package + (name "hwdata") + (version "0.356") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vcrhonek/hwdata") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0m04d93dwiplwp9v74nhnc0hyi2n007mylkg8f0frb46z5qjrpl3")))) + (build-system gnu-build-system) + (outputs '("out" "iab" "oui" "pci" "pnp" "usb")) + (native-inputs (list gzip)) + (arguments + ;; Tests require pciutils, python, podman. Disable to avoid recursive dep. + (list + #:tests? #f + #:configure-flags #~(list (string-append "--datadir=" #$output "/share")) + #:phases + #~(modify-phases %standard-phases + (replace 'install + (lambda _ + (install-file "iab.txt" (string-append #$output:iab "/share/hwdata")) + (install-file "oui.txt" (string-append #$output:oui "/share/hwdata")) + (install-file "pci.ids" (string-append #$output:pci "/share/hwdata")) + (install-file "pnp.ids" (string-append #$output:pnp "/share/hwdata")) + (install-file "usb.ids" (string-append #$output:usb "/share/hwdata"))))))) + (home-page "https://github.com/vcrhonek/hwdata") + (synopsis "Hardware identification and configuration data") + (description "@code{hwdata} contains various hardware identification and + configuration data, such as the @file{pci.ids} and @file{usb.ids} databases.") + (license (list license:gpl2+ + license:expat)))) ;XFree86 1.0 + (define-public pciutils (package (name "pciutils") -- 2.34.0