summary refs log tree commit diff
path: root/pkgs/os-specific/linux/mcelog
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2017-07-27 13:03:26 +0800
committerPeter Hoeg <peter@hoeg.com>2017-07-27 13:03:26 +0800
commit354c979ea85d89e8269e71b5ab4d5d73d8b8bc3c (patch)
treedc24fa01020aa61bf2d569904f977134aea47c90 /pkgs/os-specific/linux/mcelog
parent00512470ec241949148b61e1c120fa76d685cf9a (diff)
downloadnixpkgs-354c979ea85d89e8269e71b5ab4d5d73d8b8bc3c.tar
nixpkgs-354c979ea85d89e8269e71b5ab4d5d73d8b8bc3c.tar.gz
nixpkgs-354c979ea85d89e8269e71b5ab4d5d73d8b8bc3c.tar.bz2
nixpkgs-354c979ea85d89e8269e71b5ab4d5d73d8b8bc3c.tar.lz
nixpkgs-354c979ea85d89e8269e71b5ab4d5d73d8b8bc3c.tar.xz
nixpkgs-354c979ea85d89e8269e71b5ab4d5d73d8b8bc3c.tar.zst
nixpkgs-354c979ea85d89e8269e71b5ab4d5d73d8b8bc3c.zip
mcelog: 148 -> 153
Diffstat (limited to 'pkgs/os-specific/linux/mcelog')
-rw-r--r--pkgs/os-specific/linux/mcelog/default.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/mcelog/default.nix b/pkgs/os-specific/linux/mcelog/default.nix
index 64b937390f1..a7f5ffaae4a 100644
--- a/pkgs/os-specific/linux/mcelog/default.nix
+++ b/pkgs/os-specific/linux/mcelog/default.nix
@@ -2,13 +2,13 @@
 
 stdenv.mkDerivation rec {
   name = "mcelog-${version}";
-  version = "148";
+  version = "153";
 
   src = fetchFromGitHub {
-    sha256 = "04mzscvr38r2q9da9wmv3cxb99vrkxks1mzgvwsxk753xan3p42c";
-    rev = "v${version}";
-    repo = "mcelog";
-    owner = "andikleen";
+    owner  = "andikleen";
+    repo   = "mcelog";
+    rev    = "v${version}";
+    sha256 = "1wz55dzqdiam511d6p1958al6vzlhrhs73s7gly0mzm6kpji0gxa";
   };
 
   postPatch = ''
@@ -28,6 +28,12 @@ stdenv.mkDerivation rec {
 
   installFlags = [ "DESTDIR=$(out)" "prefix=" "DOCDIR=/share/doc" ];
 
+  postInstall = ''
+    mkdir -p $out/lib/systemd/system
+    substitute mcelog.service $out/lib/systemd/system/mcelog.service \
+      --replace /usr/sbin $out/bin
+  '';
+
   meta = with stdenv.lib; {
     description = "Log x86 machine checks: memory, IO, and CPU hardware errors";
     longDescription = ''