nixpkgs/pkgs/os-specific/linux/mcelog/default.nix

31 lines
768 B
Nix
Raw Normal View History

2015-04-17 00:42:45 +02:00
{ stdenv, fetchFromGitHub }:
let version = "120"; in
2015-04-17 00:42:45 +02:00
stdenv.mkDerivation {
name = "mcelog-${version}";
2015-04-17 00:42:45 +02:00
src = fetchFromGitHub {
sha256 = "1x50g0vrarcv31x4xszcxkpwklkq6mrv2xr1dxbbds26qz8jk11l";
2015-04-17 00:42:45 +02:00
rev = "v${version}";
repo = "mcelog";
owner = "andikleen";
};
postPatch = ''
for i in mcelog.conf paths.h; do
substituteInPlace $i --replace /etc $out/etc
done
touch mcelog.conf.5 # avoid regeneration requiring Python
'';
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)";
homepage = http://mcelog.org/;
license = licenses.gpl2;
2015-04-17 00:42:45 +02:00
maintainers = with maintainers; [ nckx ];
};
}