2018-08-07 06:50:01 -07:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2005-08-24 10:13:24 -07:00
|
|
|
|
2016-08-12 19:06:34 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "hwdata";
|
2018-10-26 12:20:27 -07:00
|
|
|
version = "0.316";
|
2013-11-27 23:15:47 -08:00
|
|
|
|
2018-08-07 06:50:01 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vcrhonek";
|
|
|
|
repo = "hwdata";
|
|
|
|
rev = "v${version}";
|
2018-10-26 12:20:27 -07:00
|
|
|
sha256 = "0k3fypykbq9943cnxlmmpk0xp9nhhf46pfdhkgm99iaa27b8s1gb";
|
2013-11-27 23:15:47 -08:00
|
|
|
};
|
|
|
|
|
2015-01-08 01:26:49 -08:00
|
|
|
preConfigure = "patchShebangs ./configure";
|
|
|
|
|
2018-10-26 12:20:27 -07:00
|
|
|
configureFlags = [ "--datadir=${placeholder "out"}/share" ];
|
2013-11-27 23:15:47 -08:00
|
|
|
|
2018-04-24 20:20:18 -07:00
|
|
|
doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
|
|
|
|
|
2018-08-07 06:50:01 -07:00
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHashAlgo = "sha256";
|
2018-10-26 12:20:27 -07:00
|
|
|
outputHash = "0g2w4jr4p1hykracp2za7jb0rcr51kks1m43pzcaf7g99x8669ww";
|
2018-08-07 06:50:01 -07:00
|
|
|
|
2013-11-27 23:15:47 -08:00
|
|
|
meta = {
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = https://github.com/vcrhonek/hwdata;
|
2013-11-27 23:15:47 -08:00
|
|
|
description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-11-27 23:15:47 -08:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2005-08-24 10:13:24 -07:00
|
|
|
};
|
|
|
|
}
|