nixpkgs/pkgs/os-specific/linux/mcelog/default.nix
Tobias Geerinckx-Rice 2a29cf9eaa mcelog 116 -> 117
That was quick.
2015-04-30 13:11:31 +02:00

30 lines
774 B
Nix

{ stdenv, fetchFromGitHub }:
let version = "117"; in
stdenv.mkDerivation {
name = "mcelog-${version}";
src = fetchFromGitHub {
sha256 = "0szc5s0bag16ypna336spwb5fagwbxaparn0h78w73wv05kcvwqw";
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 = with licenses; gpl2;
maintainers = with maintainers; [ nckx ];
};
}