mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
b229cfc894
- Fix clobbered status variable in server_ping - Avoid prefilling memory database when DMI is disabled
30 lines
768 B
Nix
30 lines
768 B
Nix
{ stdenv, fetchFromGitHub }:
|
|
|
|
let version = "119"; in
|
|
stdenv.mkDerivation {
|
|
name = "mcelog-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "04zm8pa7r6awjgza8m048srvqcyayzdzw93vl8yrjzhh37p5m4gp";
|
|
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 ];
|
|
};
|
|
}
|