2011-12-21 02:28:09 -08:00
|
|
|
{ stdenv, fetchurl, bison, flex, which, perl }:
|
|
|
|
|
2013-09-07 07:10:27 -07:00
|
|
|
let version = "3.3.4"; in
|
2008-09-01 04:42:43 -07:00
|
|
|
|
2009-09-15 15:06:38 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2013-09-07 07:10:27 -07:00
|
|
|
name = "lm-sensors-${version}";
|
2008-09-01 04:42:43 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-12-21 02:28:09 -08:00
|
|
|
url = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${version}.tar.bz2";
|
2013-09-07 07:10:27 -07:00
|
|
|
sha256 = "0vd7dgpcri7cbvgl5fwvja53lqz829vkbbp17x7b5r2xrc88cq5l";
|
2008-09-01 04:42:43 -07:00
|
|
|
};
|
|
|
|
|
2011-12-21 02:28:09 -08:00
|
|
|
buildInputs = [ bison flex which perl ];
|
2008-09-01 04:42:43 -07:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(PREFIX=$out ETCDIR=$out/etc)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.lm-sensors.org/;
|
|
|
|
description = "Tools for reading hardware sensors";
|
|
|
|
};
|
|
|
|
}
|