1{ lib, stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 pname = "hwdata";
5 version = "0.347";
6
7 src = fetchFromGitHub {
8 owner = "vcrhonek";
9 repo = "hwdata";
10 rev = "v${version}";
11 sha256 = "19kmz25zq6qqs67ppqhws4mh3qf6zrp55cpyxyw36q95yjdcqp21";
12 };
13
14 preConfigure = "patchShebangs ./configure";
15
16 configureFlags = [ "--datadir=${placeholder "out"}/share" ];
17
18 doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
19
20 outputHashMode = "recursive";
21 outputHashAlgo = "sha256";
22 outputHash = "0haaczd6pi9q2vdlvbwn7100sb87zsy64z94xhpbmlari4vzjmz0";
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 = lib.licenses.gpl2Plus;
28 platforms = lib.platforms.all;
29 };
30}