2021-01-15 15:45:37 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2005-08-24 19:13:24 +02:00
|
|
|
|
2016-08-13 04:06:34 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "hwdata";
|
2021-02-14 19:23:42 +01:00
|
|
|
version = "0.344";
|
2013-11-28 08:15:47 +01:00
|
|
|
|
2018-08-07 15:50:01 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vcrhonek";
|
|
|
|
repo = "hwdata";
|
|
|
|
rev = "v${version}";
|
2021-02-14 19:23:42 +01:00
|
|
|
sha256 = "0rsnm94r814shr86jk6f2323i1n4p58inkgkx7362yz9k4a8ir7a";
|
2013-11-28 08:15:47 +01:00
|
|
|
};
|
|
|
|
|
2015-01-08 10:26:49 +01:00
|
|
|
preConfigure = "patchShebangs ./configure";
|
|
|
|
|
2018-10-26 21:20:27 +02:00
|
|
|
configureFlags = [ "--datadir=${placeholder "out"}/share" ];
|
2013-11-28 08:15:47 +01:00
|
|
|
|
2018-04-25 05:20:18 +02:00
|
|
|
doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
|
|
|
|
|
2018-08-07 15:50:01 +02:00
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHashAlgo = "sha256";
|
2021-02-14 19:23:42 +01:00
|
|
|
outputHash = "011lyldzskfb4sfn4i7qyyq3i4gaf1v9yfbc82889cabka0n4nfz";
|
2018-08-07 15:50:01 +02:00
|
|
|
|
2013-11-28 08:15:47 +01:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/vcrhonek/hwdata";
|
2013-11-28 08:15:47 +01:00
|
|
|
description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
|
2021-02-15 09:22:01 +01:00
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
platforms = lib.platforms.all;
|
2005-08-24 19:13:24 +02:00
|
|
|
};
|
|
|
|
}
|