pciutils: add trivial updater

This commit is contained in:
Sergei Trofimovich 2022-12-18 13:02:10 +00:00
parent 3a63bcb4b6
commit d8b734f6a4

View File

@ -2,6 +2,7 @@
, hwdata
, static ? stdenv.hostPlatform.isStatic
, IOKit
, gitUpdater
}:
stdenv.mkDerivation rec {
@ -43,6 +44,12 @@ stdenv.mkDerivation rec {
cp --reflink=auto ${hwdata}/share/hwdata/pci.ids $out/share/pci.ids
'';
passthru.updateScript = gitUpdater {
# No nicer place to find latest release.
url = "https://github.com/pciutils/pciutils.git";
rev-prefix = "v";
};
meta = with lib; {
homepage = "https://mj.ucw.cz/sw/pciutils/";
description = "A collection of programs for inspecting and manipulating configuration of PCI devices";