git.iko.soy/typeable/nixpkgs
on master help sign in
hwdata: fixed-output derivation (#44606)
commit53df81926a769c262d39d36186e0fea28cc8ec6c authorvolth <volth@webmaster.ms> dateTue 7 Aug 2018, 13:50 (8 years ago) parent7bff0b7
1 file changed+10−4
pkgs/os-specific/linux/hwdata/default.nix+10−4
pkgs/os-specific/linux/hwdata/default.nix+10−4
@@ -1,12 +1,14 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchFromGitHub }:
22
33stdenv.mkDerivation rec {
44 name = "hwdata-${version}";
55 version = "0.313";
66
7− src = fetchurl {
8− url = "https://github.com/vcrhonek/hwdata/archive/v0.313.tar.gz";
9− sha256 = "0x0qk2cim1mv8cl8h8rwqn8mbbs43j04rn06m81b531i182zii17";
7+ src = fetchFromGitHub {
8+ owner = "vcrhonek";
9+ repo = "hwdata";
10+ rev = "v${version}";
11+ sha256 = "1mmqiy4ams14mdiakz60dm07wfan343hisiiz0dwvh685mjxap8h";
1012 };
1113
1214 preConfigure = "patchShebangs ./configure";
@@ -15,6 +17,10 @@ stdenv.mkDerivation rec {
1517
1618 doCheck = false; # this does build machine-specific checks (e.g. enumerates PCI bus)
1719
20+ outputHashMode = "recursive";
21+ outputHashAlgo = "sha256";
22+ outputHash = "0lz8pykpfw6aqkpdaqdc3jnny1iqgsqnc0wm61784xxml7zqfdvx";
23+
1824 meta = {
1925 homepage = https://github.com/vcrhonek/hwdata;
2026 description = "Hardware Database, including Monitors, pci.ids, usb.ids, and video cards";