nixpkgs/pkgs/os-specific/linux/lm-sensors/default.nix

24 lines
554 B
Nix
Raw Normal View History

{ stdenv, fetchurl, bison, flex, which, perl }:
2014-02-04 10:43:15 +00:00
let version = "3.3.5"; in
stdenv.mkDerivation rec {
name = "lm-sensors-${version}";
src = fetchurl {
url = "http://dl.lm-sensors.org/lm-sensors/releases/lm_sensors-${version}.tar.bz2";
2014-02-04 10:43:15 +00:00
sha256 = "1ksgrynxgrq590nb2fwxrl1gwzisjkqlyg3ljfd1al0ibrk6mbjx";
};
buildInputs = [ bison flex which perl ];
preBuild = ''
makeFlagsArray=(PREFIX=$out ETCDIR=$out/etc)
'';
meta = {
homepage = http://www.lm-sensors.org/;
description = "Tools for reading hardware sensors";
};
}