1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/os-specific/linux/mcelog/default.nix
Tobias Geerinckx-Rice fb235a871a mcelog 114 -> 115: major path fixes
Both $out/bin/mcelog and $out/etc/mcelog/mcelog.conf now point to
the correct $out/etc/mcelog.
2015-04-23 01:52:18 +02:00

31 lines
774 B
Nix

{ stdenv, fetchFromGitHub }:
let version = "115"; in
stdenv.mkDerivation {
name = "mcelog-${version}";
src = fetchFromGitHub {
sha256 = "13m9y4xfd3klzj2xrwwwwg31pnjfwd0rbrr2845sf557iyqrshki";
rev = "v${version}";
repo = "mcelog";
owner = "andikleen";
};
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)";
homepage = http://mcelog.org/;
license = with licenses; gpl2;
maintainers = with maintainers; [ nckx ];
};
}