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-17 00:42:45 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-04-17 00:46:22 +0200
commit2123be342d97ad48a1e211f270bc65cf481cee86 (patch)
tree06ccab6663203818889cdbe90ab6dec6aa1cac8e /pkgs/os-specific/linux/mcelog
parentccee24ebf78ceac8d31120f4e1b61037b7216bbe (diff)
downloadnixlib-2123be342d97ad48a1e211f270bc65cf481cee86.tar
nixlib-2123be342d97ad48a1e211f270bc65cf481cee86.tar.gz
nixlib-2123be342d97ad48a1e211f270bc65cf481cee86.tar.bz2
nixlib-2123be342d97ad48a1e211f270bc65cf481cee86.tar.lz
nixlib-2123be342d97ad48a1e211f270bc65cf481cee86.tar.xz
nixlib-2123be342d97ad48a1e211f270bc65cf481cee86.tar.zst
nixlib-2123be342d97ad48a1e211f270bc65cf481cee86.zip
mcelog 1.0pre-7fa9981 -> 114
Diffstat (limited to 'pkgs/os-specific/linux/mcelog')
-rw-r--r--pkgs/os-specific/linux/mcelog/default.nix38
1 files changed, 14 insertions, 24 deletions
diff --git a/pkgs/os-specific/linux/mcelog/default.nix b/pkgs/os-specific/linux/mcelog/default.nix
index 463722d2c961..00fb4fc38921 100644
--- a/pkgs/os-specific/linux/mcelog/default.nix
+++ b/pkgs/os-specific/linux/mcelog/default.nix
@@ -1,37 +1,27 @@
-{ stdenv, fetchgit }:
-
-# Shows the machine check exceptions logged by the kernel.
-# E.g. a log is generated when intel processors cpu-throttle.
-
-# The releases of this package are no longer on kernel.org
-# hence we fetch them from github. Apparently, these
-# are also more recent.
-
-let
-
-  rev = "7fa99818367a6d17014b36d6f918ad848cbe7ce2";
-  version = "1.0pre-${stdenv.lib.strings.substring 0 7 rev}"; 
-  sha256 = "15eea3acd76190c7922c71028b31963221a2eefd8afa713879e191a26bc22ae7";
-
-in stdenv.mkDerivation {
+{ stdenv, fetchFromGitHub }:
 
+let version = "114"; in
+stdenv.mkDerivation {
   name = "mcelog-${version}";
 
-  src = fetchgit {
-    url = "https://github.com/andikleen/mcelog";
-    inherit sha256;
-    inherit rev;
+  src = fetchFromGitHub {
+    sha256 = "1blxz5ilrlh2030gxmfqlhcb53qh2bxp5nxyc97m1z8a52idjh0v";
+    rev = "v${version}";
+    repo = "mcelog";
+    owner = "andikleen";
   };
 
   makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc";
 
   preInstall = ''
-    mkdir -p $out/share/doc
+    mkdir -p $out/share/{doc,man/man{5,8}}
   '';
 
-  meta = {
-    description = "Tool to display logged machine check exceptions";
+  meta = with stdenv.lib; {
+    inherit version;
+    description = "Log machine checks (memory, IO, and CPU hardware errors)";
     homepage = http://mcelog.org/;
-    license = stdenv.lib.licenses.gpl2;
+    license = with licenses; gpl2;
+    maintainers = with maintainers; [ nckx ];
   };
 }