2015-04-16 23:42:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2012-02-24 20:20:59 +00:00
|
|
|
|
2015-04-29 20:43:49 +01:00
|
|
|
let version = "117"; in
|
2015-04-16 23:42:45 +01:00
|
|
|
stdenv.mkDerivation {
|
2012-02-24 20:20:59 +00:00
|
|
|
name = "mcelog-${version}";
|
|
|
|
|
2015-04-16 23:42:45 +01:00
|
|
|
src = fetchFromGitHub {
|
2015-04-29 20:43:49 +01:00
|
|
|
sha256 = "0szc5s0bag16ypna336spwb5fagwbxaparn0h78w73wv05kcvwqw";
|
2015-04-16 23:42:45 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
repo = "mcelog";
|
|
|
|
owner = "andikleen";
|
2012-02-24 20:20:59 +00:00
|
|
|
};
|
|
|
|
|
2015-04-23 00:48:21 +01: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 17:51:41 +00:00
|
|
|
'';
|
|
|
|
|
2015-04-23 00:48:21 +01:00
|
|
|
installFlags = "DESTDIR=$(out) prefix= DOCDIR=/share/doc";
|
|
|
|
|
2015-04-16 23:42:45 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit version;
|
|
|
|
description = "Log machine checks (memory, IO, and CPU hardware errors)";
|
2012-02-24 20:20:59 +00:00
|
|
|
homepage = http://mcelog.org/;
|
2015-04-16 23:42:45 +01:00
|
|
|
license = with licenses; gpl2;
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
2012-02-24 20:20:59 +00:00
|
|
|
};
|
2013-01-20 17:51:41 +00:00
|
|
|
}
|