diff options
author | volth <volth@webmaster.ms> | 2018-08-07 13:50:01 +0000 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-08-07 15:50:01 +0200 |
commit | 53df81926a769c262d39d36186e0fea28cc8ec6c (patch) | |
tree | 37aae6211c700e8018fbd7961cae7cda11534bd7 | |
parent | 7bff0b71d173256022b08014a8a9e2e42f3ba08e (diff) |
hwdata: fixed-output derivation (#44606)
-rw-r--r-- | pkgs/os-specific/linux/hwdata/default.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/hwdata/default.nix b/pkgs/os-specific/linux/hwdata/default.nix index c1d324de7cffe..d249bc9b1c63b 100644 --- a/pkgs/os-specific/linux/hwdata/default.nix +++ b/pkgs/os-specific/linux/hwdata/default.nix @@ -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"; |