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

31 lines
840 B
Nix
Raw Normal View History

2021-01-15 14:45:37 +00:00
{ lib, stdenv, fetchFromGitHub }:
2016-08-13 03:06:34 +01:00
stdenv.mkDerivation rec {
pname = "hwdata";
2021-01-29 04:12:21 +00:00
version = "0.343";
2013-11-28 07:15:47 +00:00
src = fetchFromGitHub {
owner = "vcrhonek";
repo = "hwdata";
rev = "v${version}";
2021-01-29 04:12:21 +00:00
sha256 = "sha256-sK9kbjuq3mDSdtW0Y2cHSgrrCtU5Kr/eOjF/Mwe752o=";
2013-11-28 07:15:47 +00:00
};
preConfigure = "patchShebangs ./configure";
2018-10-26 20:20:27 +01:00
configureFlags = [ "--datadir=${placeholder "out"}/share" ];
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";
2021-01-29 04:12:21 +00:00
outputHash = "0zxypzwncx2ql06f19wrm315fn7x2lfsrg9fhl3nr4zwvdksf7jw";
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";
2021-01-15 14:45:37 +00:00
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
};
}