mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
30 lines
770 B
Nix
30 lines
770 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hwdata";
|
|
version = "0.371";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vcrhonek";
|
|
repo = "hwdata";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bK61nvuzm8LTotVSBtGyBMELZPqoENkPM4NKtgEx9qw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs ./configure
|
|
'';
|
|
|
|
configureFlags = [ "--datadir=${placeholder "out"}/share" ];
|
|
|
|
doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
|
|
|
|
meta = {
|
|
homepage = "https://github.com/vcrhonek/hwdata";
|
|
description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ pedrohlc ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|