mcelog 114 -> 115: major path fixes

Both $out/bin/mcelog and $out/etc/mcelog/mcelog.conf now point to
the correct $out/etc/mcelog.

+9 -6
+9 -6
pkgs/os-specific/linux/mcelog/default.nix
··· 1 1 { stdenv, fetchFromGitHub }: 2 2 3 - let version = "114"; in 3 + let version = "115"; in 4 4 stdenv.mkDerivation { 5 5 name = "mcelog-${version}"; 6 6 7 7 src = fetchFromGitHub { 8 - sha256 = "1blxz5ilrlh2030gxmfqlhcb53qh2bxp5nxyc97m1z8a52idjh0v"; 8 + sha256 = "13m9y4xfd3klzj2xrwwwwg31pnjfwd0rbrr2845sf557iyqrshki"; 9 9 rev = "v${version}"; 10 10 repo = "mcelog"; 11 11 owner = "andikleen"; 12 12 }; 13 13 14 - makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc"; 14 + postPatch = '' 15 + for i in mcelog.conf paths.h; do 16 + substituteInPlace $i --replace /etc $out/etc 17 + done 18 + touch mcelog.conf.5 # avoid regeneration requiring Python 19 + ''; 15 20 16 - preInstall = '' 17 - mkdir -p $out/share/{doc,man/man{5,8}} 18 - ''; 21 + installFlags = "DESTDIR=$(out) prefix= DOCDIR=/share/doc"; 19 22 20 23 meta = with stdenv.lib; { 21 24 inherit version;