2011-12-21 10:28:09 +00:00
|
|
|
{ stdenv, fetchurl, bison, flex, which, perl }:
|
|
|
|
|
2014-02-04 10:43:15 +00:00
|
|
|
let version = "3.3.5"; in
|
2008-09-01 11:42:43 +00:00
|
|
|
|
2009-09-15 22:06:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-09-07 14:10:27 +00:00
|
|
|
name = "lm-sensors-${version}";
|
2008-09-01 11:42:43 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-12-21 10:28:09 +00:00
|
|
|
url = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${version}.tar.bz2";
|
2014-02-04 10:43:15 +00:00
|
|
|
sha256 = "1ksgrynxgrq590nb2fwxrl1gwzisjkqlyg3ljfd1al0ibrk6mbjx";
|
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";
|
|
|
|
};
|
|
|
|
}
|