1{ stdenv, fetchurl }:
2
3stdenv.mkDerivation rec {
4 name = "hwdata-${version}";
5 version = "0.291";
6
7 src = fetchurl {
8 url = "https://git.fedorahosted.org/cgit/hwdata.git/snapshot/hwdata-${version}.tar.xz";
9 sha256 = "121qixrdhdncva1cnj7m7jlqvi1kbj85dpi844jiis3a8hgpzw5a";
10 };
11
12 preConfigure = "patchShebangs ./configure";
13
14 configureFlags = "--datadir=$(prefix)/data";
15
16 meta = {
17 homepage = "https://fedorahosted.org/hwdata/";
18 description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
19 license = stdenv.lib.licenses.gpl2;
20 platforms = stdenv.lib.platforms.linux;
21 };
22}