From 53df81926a769c262d39d36186e0fea28cc8ec6c Mon Sep 17 00:00:00 2001 From: volth Date: Tue, 7 Aug 2018 13:50:01 +0000 Subject: [PATCH] hwdata: fixed-output derivation (#44606) --- pkgs/os-specific/linux/hwdata/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/hwdata/default.nix b/pkgs/os-specific/linux/hwdata/default.nix index c1d324de7cff..d249bc9b1c63 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";