2015-04-17 00:42:45 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2012-02-24 21:20:59 +01:00
|
|
|
|
2015-06-12 13:08:14 +02:00
|
|
|
let version = "120"; in
|
2015-04-17 00:42:45 +02:00
|
|
|
stdenv.mkDerivation {
|
2012-02-24 21:20:59 +01:00
|
|
|
name = "mcelog-${version}";
|
|
|
|
|
2015-04-17 00:42:45 +02:00
|
|
|
src = fetchFromGitHub {
|
2015-06-12 13:08:14 +02:00
|
|
|
sha256 = "1x50g0vrarcv31x4xszcxkpwklkq6mrv2xr1dxbbds26qz8jk11l";
|
2015-04-17 00:42:45 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
repo = "mcelog";
|
|
|
|
owner = "andikleen";
|
2012-02-24 21:20:59 +01:00
|
|
|
};
|
|
|
|
|
2015-04-23 01:48:21 +02:00
|
|
|
postPatch = ''
|
|
|
|
for i in mcelog.conf paths.h; do
|
|
|
|
substituteInPlace $i --replace /etc $out/etc
|
|
|
|
done
|
|
|
|
touch mcelog.conf.5 # avoid regeneration requiring Python
|
2013-01-20 18:51:41 +01:00
|
|
|
'';
|
|
|
|
|
2015-04-23 01:48:21 +02:00
|
|
|
installFlags = "DESTDIR=$(out) prefix= DOCDIR=/share/doc";
|
|
|
|
|
2015-04-17 00:42:45 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit version;
|
|
|
|
description = "Log machine checks (memory, IO, and CPU hardware errors)";
|
2012-02-24 21:20:59 +01:00
|
|
|
homepage = http://mcelog.org/;
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.gpl2;
|
2015-04-17 00:42:45 +02:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
2012-02-24 21:20:59 +01:00
|
|
|
};
|
2013-01-20 18:51:41 +01:00
|
|
|
}
|