nixpkgs/pkgs/os-specific/linux/mcelog/default.nix
Tobias Geerinckx-Rice 217566ede4 mcelog 117 -> 118
Changet to mcelog(8) to support new architectural extentions in
Intel CPUs.
2015-06-01 21:13:34 +02:00

31 lines
768 B
Nix

{ stdenv, fetchFromGitHub }:
let version = "118"; in
stdenv.mkDerivation {
name = "mcelog-${version}";
src = fetchFromGitHub {
sha256 = "04hzadxyqlnhjn328bv711lpkipfn5k3gszswydmvvjpis2vhbrr";
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";
meta = with stdenv.lib; {
inherit version;
description = "Log machine checks (memory, IO, and CPU hardware errors)";
homepage = http://mcelog.org/;
license = licenses.gpl2;
maintainers = with maintainers; [ nckx ];
};
}