Author: amiddelk
Date: Fri Feb 24 20:20:59 2012
New Revision: 32547
URL: https://nixos.org/websvn/nix/?rev=32547&sc=1
Log:
mcelog: a tool to access the machine check exceptions logged by the kernel.
The kernel indicated that machine check exceptions were logged, but did not
tell what kind of exceptions.
In my case, this is usually the processor being throttled because it gets too
hot (laptop...), but it
may also be more severe problems. Anyway, with this tool you can access these
logs.
Added:
nixpkgs/trunk/pkgs/os-specific/linux/mcelog/
nixpkgs/trunk/pkgs/os-specific/linux/mcelog/default.nix
Modified:
nixpkgs/trunk/pkgs/top-level/all-packages.nix
Added: nixpkgs/trunk/pkgs/os-specific/linux/mcelog/default.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/os-specific/linux/mcelog/default.nix Fri Feb 24
20:20:59 2012 (r32547)
@@ -0,0 +1,33 @@
+{ 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-${rev}";
+ sha256 = "15eea3acd76190c7922c71028b31963221a2eefd8afa713879e191a26bc22ae7";
+
+in stdenv.mkDerivation {
+
+ name = "mcelog-${version}";
+
+ src = fetchgit {
+ url = "https://github.com/andikleen/mcelog";
+ inherit sha256;
+ inherit rev;
+ };
+
+ makeFlags = "prefix=$(out) etcprefix=$(out) DOCDIR=$(out)/share/doc";
+
+ meta = {
+ description = "Tool to display logged machine check exceptions";
+ homepage = http://mcelog.org/;
+ license = stdenv.lib.licenses.gpl2;
+ };
+}
\ No newline at end of file
Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix Fri Feb 24 20:18:32
2012 (r32546)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix Fri Feb 24 20:20:59
2012 (r32547)
@@ -444,6 +444,8 @@
syslogng = callPackage ../tools/system/syslog-ng { };
+ mcelog = callPackage ../os-specific/linux/mcelog { };
+
asciidoc = callPackage ../tools/typesetting/asciidoc { };
autossh = callPackage ../tools/networking/autossh { };
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits