2021-01-15 14:45:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2005-08-24 17:13:24 +00:00
|
|
|
|
2016-08-13 02:06:34 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "hwdata";
|
2023-10-09 05:36:07 +00:00
|
|
|
version = "0.375";
|
2013-11-28 07:15:47 +00:00
|
|
|
|
2018-08-07 13:50:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vcrhonek";
|
|
|
|
repo = "hwdata";
|
|
|
|
rev = "v${version}";
|
2023-10-09 05:36:07 +00:00
|
|
|
hash = "sha256-2cahF9kOtr1R42zhwdwRqXSbWK9EkknTPnjs0DJl4TU=";
|
2013-11-28 07:15:47 +00:00
|
|
|
};
|
|
|
|
|
2022-06-07 20:54:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./configure
|
|
|
|
'';
|
2015-01-08 09:26:49 +00:00
|
|
|
|
2018-10-26 19:20:27 +00:00
|
|
|
configureFlags = [ "--datadir=${placeholder "out"}/share" ];
|
2013-11-28 07:15:47 +00:00
|
|
|
|
2018-04-25 03:20:18 +00:00
|
|
|
doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
|
|
|
|
|
2013-11-28 07:15:47 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/vcrhonek/hwdata";
|
2013-11-28 07:15:47 +00:00
|
|
|
description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
|
2021-02-15 08:22:01 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2023-02-08 15:42:40 +00:00
|
|
|
maintainers = with lib.maintainers; [ pedrohlc ];
|
2021-02-15 08:22:01 +00:00
|
|
|
platforms = lib.platforms.all;
|
2005-08-24 17:13:24 +00:00
|
|
|
};
|
|
|
|
}
|