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