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

28 lines
670 B
Nix
Raw Normal View History

2015-04-16 15:42:45 -07:00
{ stdenv, fetchFromGitHub }:
2015-04-16 15:42:45 -07:00
let version = "114"; in
stdenv.mkDerivation {
name = "mcelog-${version}";
2015-04-16 15:42:45 -07:00
src = fetchFromGitHub {
sha256 = "1blxz5ilrlh2030gxmfqlhcb53qh2bxp5nxyc97m1z8a52idjh0v";
rev = "v${version}";
repo = "mcelog";
owner = "andikleen";
};
makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc";
preInstall = ''
2015-04-16 15:42:45 -07:00
mkdir -p $out/share/{doc,man/man{5,8}}
'';
2015-04-16 15:42:45 -07:00
meta = with stdenv.lib; {
inherit version;
description = "Log machine checks (memory, IO, and CPU hardware errors)";
homepage = http://mcelog.org/;
2015-04-16 15:42:45 -07:00
license = with licenses; gpl2;
maintainers = with maintainers; [ nckx ];
};
}