2011-12-21 10:28:09 +00:00
|
|
|
{ stdenv, fetchurl, bison, flex, which, perl }:
|
|
|
|
|
2009-09-15 22:06:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-09-07 14:10:27 +00:00
|
|
|
name = "lm-sensors-${version}";
|
2016-05-18 13:57:09 +00:00
|
|
|
version = "3.4.0"; # don't forget to tweak fedoraproject mirror URL hash
|
2008-09-01 11:42:43 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-05-18 13:57:09 +00:00
|
|
|
urls = [
|
|
|
|
"http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${version}.tar.bz2"
|
|
|
|
"http://pkgs.fedoraproject.org/repo/pkgs/lm_sensors/lm_sensors-${version}.tar.bz2/c03675ae9d43d60322110c679416901a/lm_sensors-${version}.tar.bz2"
|
|
|
|
];
|
2016-05-10 19:05:31 +00:00
|
|
|
sha256 = "07q6811l4pp0f7pxr8bk3s97ippb84mx5qdg7v92s9hs10b90mz0";
|
2008-09-01 11:42:43 +00:00
|
|
|
};
|
|
|
|
|
2011-12-21 10:28:09 +00:00
|
|
|
buildInputs = [ bison flex which perl ];
|
2008-09-01 11:42:43 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(PREFIX=$out ETCDIR=$out/etc)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.lm-sensors.org/;
|
|
|
|
description = "Tools for reading hardware sensors";
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-09-01 11:42:43 +00:00
|
|
|
};
|
|
|
|
}
|