diff options
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/hwdata/default.nix')
-rw-r--r-- | nixpkgs/pkgs/os-specific/linux/hwdata/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/hwdata/default.nix b/nixpkgs/pkgs/os-specific/linux/hwdata/default.nix new file mode 100644 index 000000000000..dfca87e27165 --- /dev/null +++ b/nixpkgs/pkgs/os-specific/linux/hwdata/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "hwdata-${version}"; + version = "0.316"; + + src = fetchFromGitHub { + owner = "vcrhonek"; + repo = "hwdata"; + rev = "v${version}"; + sha256 = "0k3fypykbq9943cnxlmmpk0xp9nhhf46pfdhkgm99iaa27b8s1gb"; + }; + + 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 = "0g2w4jr4p1hykracp2za7jb0rcr51kks1m43pzcaf7g99x8669ww"; + + meta = { + homepage = https://github.com/vcrhonek/hwdata; + description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards"; + license = stdenv.lib.licenses.gpl2; + platforms = stdenv.lib.platforms.linux; + }; +} |