summary refs log tree commit diff
path: root/pkgs/os-specific/linux/mcelog
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-04-23 01:48:21 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-04-23 01:52:18 +0200
commitfb235a871aba61cebd098e22ac84b9a9061d69b3 (patch)
tree737d476e1fddb8e656d9813e44e8f93e1eca76aa /pkgs/os-specific/linux/mcelog
parent07b93560234e919303369533a683ee3866728f00 (diff)
downloadnixlib-fb235a871aba61cebd098e22ac84b9a9061d69b3.tar
nixlib-fb235a871aba61cebd098e22ac84b9a9061d69b3.tar.gz
nixlib-fb235a871aba61cebd098e22ac84b9a9061d69b3.tar.bz2
nixlib-fb235a871aba61cebd098e22ac84b9a9061d69b3.tar.lz
nixlib-fb235a871aba61cebd098e22ac84b9a9061d69b3.tar.xz
nixlib-fb235a871aba61cebd098e22ac84b9a9061d69b3.tar.zst
nixlib-fb235a871aba61cebd098e22ac84b9a9061d69b3.zip
mcelog 114 -> 115: major path fixes
Both $out/bin/mcelog and $out/etc/mcelog/mcelog.conf now point to
the correct $out/etc/mcelog.
Diffstat (limited to 'pkgs/os-specific/linux/mcelog')
-rw-r--r--pkgs/os-specific/linux/mcelog/default.nix15
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)";