nixpkgs/pkgs/os-specific/linux/mcelog/default.nix
Tobias Geerinckx-Rice c71d93c519 mcelog: 121 -> 122
Enable IMC status bank for Haswell-E, as described in Intel SDM Vol.3C
Table 35-27.
2015-07-28 23:19:35 +02:00

30 lines
768 B
Nix

{ stdenv, fetchFromGitHub }:
let version = "122"; in
stdenv.mkDerivation {
name = "mcelog-${version}";
src = fetchFromGitHub {
sha256 = "0g3bp6wfgpjh345n988r2bxzdkbac8mls9v7fsylmfxf78y7n92d";
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 ];
};
}