mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
lm-sensors: switch to fetchFromGitHub
This commit is contained in:
parent
41d512768f
commit
056df0bddd
|
@ -1,5 +1,12 @@
|
|||
{ lib, stdenv, fetchzip, bison, flex, which, perl
|
||||
, sensord ? false, rrdtool ? null
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, bison
|
||||
, flex
|
||||
, which
|
||||
, perl
|
||||
, sensord ? false
|
||||
, rrdtool ? null
|
||||
}:
|
||||
|
||||
assert sensord -> rrdtool != null;
|
||||
|
@ -7,16 +14,18 @@ assert sensord -> rrdtool != null;
|
|||
stdenv.mkDerivation rec {
|
||||
pname = "lm-sensors";
|
||||
version = "3.6.0";
|
||||
dashedVersion = lib.replaceStrings ["."] ["-"] version;
|
||||
dashedVersion = lib.replaceStrings [ "." ] [ "-" ] version;
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/lm-sensors/lm-sensors/archive/V${dashedVersion}.tar.gz";
|
||||
sha256 = "1ipf6wjx037sqyhy0r5jh4983h216anq9l68ckn2x5c3qc4wfmzn";
|
||||
src = fetchFromGitHub {
|
||||
owner = "lm-sensors";
|
||||
repo = "lm-sensors";
|
||||
rev = "V${dashedVersion}";
|
||||
hash = "sha256-9lfHCcODlS7sZMjQhK0yQcCBEoGyZOChx/oM0CU37sY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bison flex which ];
|
||||
buildInputs = [ perl ]
|
||||
++ lib.optional sensord rrdtool;
|
||||
++ lib.optional sensord rrdtool;
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=${placeholder "out"}"
|
||||
|
|
Loading…
Reference in a new issue