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