nixpkgs/pkgs/os-specific/linux/hwdata/default.nix

31 lines
846 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub }:
2016-08-13 03:06:34 +01:00
stdenv.mkDerivation rec {
name = "hwdata-${version}";
2018-08-09 20:51:57 +01:00
version = "0.314";
2013-11-28 07:15:47 +00:00
src = fetchFromGitHub {
owner = "vcrhonek";
repo = "hwdata";
rev = "v${version}";
2018-08-09 20:51:57 +01:00
sha256 = "12k466ndg152fqld1w5v1zfdyv000yypazcwy75ywlxvlknv4y90";
2013-11-28 07:15:47 +00:00
};
preConfigure = "patchShebangs ./configure";
2018-07-25 22:44:21 +01:00
configureFlags = [ "--datadir=$(prefix)/data" ];
2013-11-28 07:15:47 +00:00
doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
outputHashMode = "recursive";
outputHashAlgo = "sha256";
2018-08-09 20:51:57 +01:00
outputHash = "1w00y5kj8rd8slzydw1gw8cablxlkham4vq786kdd8zga286zabb";
2013-11-28 07:15:47 +00:00
meta = {
homepage = https://github.com/vcrhonek/hwdata;
2013-11-28 07:15:47 +00:00
description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
license = stdenv.lib.licenses.gpl2;
2013-11-28 07:15:47 +00:00
platforms = stdenv.lib.platforms.linux;
};
}