Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub }: 2 3stdenv.mkDerivation rec { 4 pname = "hwdata"; 5 version = "0.370"; 6 7 src = fetchFromGitHub { 8 owner = "vcrhonek"; 9 repo = "hwdata"; 10 rev = "v${version}"; 11 sha256 = "sha256-fqhYPKqtuI+7h/SgdWI4i7jBTgluy/hI8Q6pq4LKtY4="; 12 }; 13 14 postPatch = '' 15 patchShebangs ./configure 16 ''; 17 18 configureFlags = [ "--datadir=${placeholder "out"}/share" ]; 19 20 doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus) 21 22 meta = { 23 homepage = "https://github.com/vcrhonek/hwdata"; 24 description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards"; 25 license = lib.licenses.gpl2Plus; 26 maintainers = with lib.maintainers; [ pedrohlc ]; 27 platforms = lib.platforms.all; 28 }; 29}