git.iko.soy/typeable/nixpkgs
on master help sign in
lm-sensors: switch to fetchFromGitHub
commit056df0bdddab64883469b7e6516fdc946629c044 authorFelix Buehler <account@buehler.rocks> dateSun 19 Sep 2021, 17:07 (5 years ago) parent41d5127
1 file changed+16−7
pkgs/os-specific/linux/lm-sensors/default.nix+16−7
pkgs/os-specific/linux/lm-sensors/default.nix+16−7
@@ -1,5 +1,12 @@
1−{ lib, stdenv, fetchzip, bison, flex, which, perl
2−, sensord ? false, rrdtool ? null
1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, bison
5+, flex
6+, which
7+, perl
8+, sensord ? false
9+, rrdtool ? null
310}:
411
512assert sensord -> rrdtool != null;
@@ -7,16 +14,18 @@ assert sensord -> rrdtool != null;
714stdenv.mkDerivation rec {
815 pname = "lm-sensors";
916 version = "3.6.0";
10− dashedVersion = lib.replaceStrings ["."] ["-"] version;
17+ dashedVersion = lib.replaceStrings [ "." ] [ "-" ] version;
1118
12− src = fetchzip {
13− url = "https://github.com/lm-sensors/lm-sensors/archive/V${dashedVersion}.tar.gz";
14− sha256 = "1ipf6wjx037sqyhy0r5jh4983h216anq9l68ckn2x5c3qc4wfmzn";
19+ src = fetchFromGitHub {
20+ owner = "lm-sensors";
21+ repo = "lm-sensors";
22+ rev = "V${dashedVersion}";
23+ hash = "sha256-9lfHCcODlS7sZMjQhK0yQcCBEoGyZOChx/oM0CU37sY=";
1524 };
1625
1726 nativeBuildInputs = [ bison flex which ];
1827 buildInputs = [ perl ]
19− ++ lib.optional sensord rrdtool;
28+ ++ lib.optional sensord rrdtool;
2029
2130 makeFlags = [
2231 "PREFIX=${placeholder "out"}"