2015-04-16 15:42:45 -07:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2012-02-24 12:20:59 -08:00
|
|
|
|
2015-04-16 15:42:45 -07:00
|
|
|
let version = "114"; in
|
|
|
|
stdenv.mkDerivation {
|
2012-02-24 12:20:59 -08:00
|
|
|
name = "mcelog-${version}";
|
|
|
|
|
2015-04-16 15:42:45 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "1blxz5ilrlh2030gxmfqlhcb53qh2bxp5nxyc97m1z8a52idjh0v";
|
|
|
|
rev = "v${version}";
|
|
|
|
repo = "mcelog";
|
|
|
|
owner = "andikleen";
|
2012-02-24 12:20:59 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc";
|
|
|
|
|
2013-01-20 09:51:41 -08:00
|
|
|
preInstall = ''
|
2015-04-16 15:42:45 -07:00
|
|
|
mkdir -p $out/share/{doc,man/man{5,8}}
|
2013-01-20 09:51:41 -08:00
|
|
|
'';
|
|
|
|
|
2015-04-16 15:42:45 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit version;
|
|
|
|
description = "Log machine checks (memory, IO, and CPU hardware errors)";
|
2012-02-24 12:20:59 -08:00
|
|
|
homepage = http://mcelog.org/;
|
2015-04-16 15:42:45 -07:00
|
|
|
license = with licenses; gpl2;
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
2012-02-24 12:20:59 -08:00
|
|
|
};
|
2013-01-20 09:51:41 -08:00
|
|
|
}
|