diff options
author | Arie Middelkoop <amiddelk@gmail.com> | 2012-02-24 20:20:59 +0000 |
---|---|---|
committer | Arie Middelkoop <amiddelk@gmail.com> | 2012-02-24 20:20:59 +0000 |
commit | 6b10ace1ca7a0eef39c7ff65469057f6a8d41339 (patch) | |
tree | 6510551395d8e8bade025e345c75ec67bd7d4731 /pkgs/os-specific/linux/mcelog | |
parent | d1e84a7498eb73c2f4a48953db5227dfa3e0afd1 (diff) | |
download | nixlib-6b10ace1ca7a0eef39c7ff65469057f6a8d41339.tar nixlib-6b10ace1ca7a0eef39c7ff65469057f6a8d41339.tar.gz nixlib-6b10ace1ca7a0eef39c7ff65469057f6a8d41339.tar.bz2 nixlib-6b10ace1ca7a0eef39c7ff65469057f6a8d41339.tar.lz nixlib-6b10ace1ca7a0eef39c7ff65469057f6a8d41339.tar.xz nixlib-6b10ace1ca7a0eef39c7ff65469057f6a8d41339.tar.zst nixlib-6b10ace1ca7a0eef39c7ff65469057f6a8d41339.zip |
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. svn path=/nixpkgs/trunk/; revision=32547
Diffstat (limited to 'pkgs/os-specific/linux/mcelog')
-rw-r--r-- | pkgs/os-specific/linux/mcelog/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/mcelog/default.nix b/pkgs/os-specific/linux/mcelog/default.nix new file mode 100644 index 000000000000..82c502ede72f --- /dev/null +++ b/pkgs/os-specific/linux/mcelog/default.nix @@ -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 |