hwdata: fixed-output derivation (#44606)

This commit is contained in:
volth 2018-08-07 13:50:01 +00:00 committed by xeji
parent 7bff0b71d1
commit 53df81926a

@ -1,12 +1,14 @@
{ stdenv, fetchurl }:
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "hwdata-${version}";
version = "0.313";
src = fetchurl {
url = "https://github.com/vcrhonek/hwdata/archive/v0.313.tar.gz";
sha256 = "0x0qk2cim1mv8cl8h8rwqn8mbbs43j04rn06m81b531i182zii17";
src = fetchFromGitHub {
owner = "vcrhonek";
repo = "hwdata";
rev = "v${version}";
sha256 = "1mmqiy4ams14mdiakz60dm07wfan343hisiiz0dwvh685mjxap8h";
};
preConfigure = "patchShebangs ./configure";
@ -15,6 +17,10 @@ stdenv.mkDerivation rec {
doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
outputHashMode = "recursive";
outputHashAlgo = "sha256";
outputHash = "0lz8pykpfw6aqkpdaqdc3jnny1iqgsqnc0wm61784xxml7zqfdvx";
meta = {
homepage = https://github.com/vcrhonek/hwdata;
description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";