mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 00:25:24 +00:00
57bccb3cb8
* treewide: http -> https sources This updates the source urls of all top-level packages from http to https where possible. * buildtorrent: fix url and tab -> spaces
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ sensord ? false,
|
|
stdenv, fetchurl, bison, flex, which, perl,
|
|
rrdtool ? null
|
|
}:
|
|
|
|
assert sensord -> rrdtool != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "lm-sensors-${version}";
|
|
version = "3.4.0"; # don't forget to tweak fedoraproject mirror URL hash
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${version}.tar.bz2"
|
|
"https://src.fedoraproject.org/repo/pkgs/lm_sensors/lm_sensors-${version}.tar.bz2/c03675ae9d43d60322110c679416901a/lm_sensors-${version}.tar.bz2"
|
|
];
|
|
sha256 = "07q6811l4pp0f7pxr8bk3s97ippb84mx5qdg7v92s9hs10b90mz0";
|
|
};
|
|
|
|
buildInputs = [ bison flex which perl ]
|
|
++ stdenv.lib.optional sensord rrdtool;
|
|
|
|
patches = [ ./musl-fix-includes.patch ];
|
|
|
|
preBuild = ''
|
|
makeFlagsArray=(PREFIX=$out ETCDIR=$out/etc
|
|
${stdenv.lib.optionalString sensord "PROG_EXTRA=sensord"})
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://www.lm-sensors.org/;
|
|
description = "Tools for reading hardware sensors";
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|