mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
d9a5c6fa60
hwdata is just a collection of (plain-text) databases and hence makes sense on any platform. The impetus for this commit was #112644, where we wanted to change pciutils so that it uses the database from hwdata. At this time, pciutils was marked as platforms.unix but hwdata only as platforms.linux.
31 lines
843 B
Nix
31 lines
843 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "hwdata";
|
|
version = "0.344";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vcrhonek";
|
|
repo = "hwdata";
|
|
rev = "v${version}";
|
|
sha256 = "0rsnm94r814shr86jk6f2323i1n4p58inkgkx7362yz9k4a8ir7a";
|
|
};
|
|
|
|
preConfigure = "patchShebangs ./configure";
|
|
|
|
configureFlags = [ "--datadir=${placeholder "out"}/share" ];
|
|
|
|
doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
|
|
|
|
outputHashMode = "recursive";
|
|
outputHashAlgo = "sha256";
|
|
outputHash = "011lyldzskfb4sfn4i7qyyq3i4gaf1v9yfbc82889cabka0n4nfz";
|
|
|
|
meta = {
|
|
homepage = "https://github.com/vcrhonek/hwdata";
|
|
description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";
|
|
license = lib.licenses.gpl2Plus;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|