diff options
Diffstat (limited to 'pkgs/os-specific/linux/mcelog')
-rw-r--r-- | pkgs/os-specific/linux/mcelog/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/os-specific/linux/mcelog/default.nix b/pkgs/os-specific/linux/mcelog/default.nix index 00fb4fc38921..55ab8eda9b56 100644 --- a/pkgs/os-specific/linux/mcelog/default.nix +++ b/pkgs/os-specific/linux/mcelog/default.nix @@ -1,22 +1,25 @@ { stdenv, fetchFromGitHub }: -let version = "114"; in +let version = "115"; in stdenv.mkDerivation { name = "mcelog-${version}"; src = fetchFromGitHub { - sha256 = "1blxz5ilrlh2030gxmfqlhcb53qh2bxp5nxyc97m1z8a52idjh0v"; + sha256 = "13m9y4xfd3klzj2xrwwwwg31pnjfwd0rbrr2845sf557iyqrshki"; rev = "v${version}"; repo = "mcelog"; owner = "andikleen"; }; - makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc"; - - preInstall = '' - mkdir -p $out/share/{doc,man/man{5,8}} + 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)"; |