2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hwdata";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.371";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vcrhonek";
|
|
|
|
repo = "hwdata";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-bK61nvuzm8LTotVSBtGyBMELZPqoENkPM4NKtgEx9qw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./configure
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--datadir=${placeholder "out"}/share" ];
|
|
|
|
|
|
|
|
doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/vcrhonek/hwdata";
|
|
|
|
description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2023-03-04 12:14:45 +00:00
|
|
|
maintainers = with lib.maintainers; [ pedrohlc ];
|
2021-03-09 03:18:52 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|