2018-08-07 14:50:01 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2005-08-24 18:13:24 +01:00
|
|
|
|
2016-08-13 03:06:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "hwdata";
|
2020-05-06 05:45:01 +01:00
|
|
|
version = "0.335";
|
2013-11-28 07:15:47 +00:00
|
|
|
|
2018-08-07 14:50:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vcrhonek";
|
|
|
|
repo = "hwdata";
|
|
|
|
rev = "v${version}";
|
2020-05-06 05:45:01 +01:00
|
|
|
sha256 = "0f8ikwfrs6xd5sywypd9rq9cln8a0rf3vj6nm0adwzn1p8mgmrb2";
|
2013-11-28 07:15:47 +00:00
|
|
|
};
|
|
|
|
|
2015-01-08 09:26:49 +00:00
|
|
|
preConfigure = "patchShebangs ./configure";
|
|
|
|
|
2018-10-26 20:20:27 +01:00
|
|
|
configureFlags = [ "--datadir=${placeholder "out"}/share" ];
|
2013-11-28 07:15:47 +00:00
|
|
|
|
2018-04-25 04:20:18 +01:00
|
|
|
doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
|
|
|
|
|
2018-08-07 14:50:01 +01:00
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHashAlgo = "sha256";
|
2020-05-06 05:45:01 +01:00
|
|
|
outputHash = "101lppd1805drwd038b4njr5czzjnqqxf3xlf6v3l22wfwr2cn3l";
|
2018-08-07 14:50:01 +01:00
|
|
|
|
2013-11-28 07:15:47 +00:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01: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";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-11-28 07:15:47 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2005-08-24 18:13:24 +01:00
|
|
|
};
|
|
|
|
}
|