1{ stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 name = "hwdata-${version}";
5 version = "0.314";
6
7 src = fetchFromGitHub {
8 owner = "vcrhonek";
9 repo = "hwdata";
10 rev = "v${version}";
11 sha256 = "12k466ndg152fqld1w5v1zfdyv000yypazcwy75ywlxvlknv4y90";
12 };
13
14 preConfigure = "patchShebangs ./configure";
15
16 configureFlags = [ "--datadir=$(prefix)/data" ];
17
18 doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
19
20 outputHashMode = "recursive";
21 outputHashAlgo = "sha256";
22 outputHash = "1w00y5kj8rd8slzydw1gw8cablxlkham4vq786kdd8zga286zabb";
23
24 meta = {
25 homepage = https://github.com/vcrhonek/hwdata;
26 description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
27 license = stdenv.lib.licenses.gpl2;
28 platforms = stdenv.lib.platforms.linux;
29 };
30}