mcelog 114 -> 115: major path fixes

Both $out/bin/mcelog and $out/etc/mcelog/mcelog.conf now point to
the correct $out/etc/mcelog.
This commit is contained in:
Tobias Geerinckx-Rice 2015-04-23 01:48:21 +02:00
parent 07b9356023
commit fb235a871a

View File

@ -1,22 +1,25 @@
{ stdenv, fetchFromGitHub }: { stdenv, fetchFromGitHub }:
let version = "114"; in let version = "115"; in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "mcelog-${version}"; name = "mcelog-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
sha256 = "1blxz5ilrlh2030gxmfqlhcb53qh2bxp5nxyc97m1z8a52idjh0v"; sha256 = "13m9y4xfd3klzj2xrwwwwg31pnjfwd0rbrr2845sf557iyqrshki";
rev = "v${version}"; rev = "v${version}";
repo = "mcelog"; repo = "mcelog";
owner = "andikleen"; owner = "andikleen";
}; };
makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc"; postPatch = ''
for i in mcelog.conf paths.h; do
preInstall = '' substituteInPlace $i --replace /etc $out/etc
mkdir -p $out/share/{doc,man/man{5,8}} done
touch mcelog.conf.5 # avoid regeneration requiring Python
''; '';
installFlags = "DESTDIR=$(out) prefix= DOCDIR=/share/doc";
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version; inherit version;
description = "Log machine checks (memory, IO, and CPU hardware errors)"; description = "Log machine checks (memory, IO, and CPU hardware errors)";