3
0
Fork 0
forked from mirrors/nixpkgs

mceinject: init at unstable-2013-01-19

This commit is contained in:
Vikram Narayanan 2021-10-03 13:30:24 -06:00
parent 9e6a39be4d
commit b1c39c644d
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ lib, stdenv, fetchFromGitHub, bison, flex }:
stdenv.mkDerivation rec {
pname = "mceinject";
version = "unstable-2013-01-19";
src = fetchFromGitHub {
owner = "andikleen";
repo = "mce-inject";
rev = "4cbe46321b4a81365ff3aafafe63967264dbfec5";
sha256 = "0gjapg2hrlxp8ssrnhvc19i3r1xpcnql7xv0zjgbv09zyha08g6z";
};
nativeBuildInputs = [ flex bison ];
NIX_CFLAGS_COMPILE = "-Os -g -Wall";
NIX_LDFLAGS = [ "-lpthread" ];
makeFlags = [ "prefix=" ];
enableParallelBuilding = true;
installFlags = [ "destdir=$(out)" "manprefix=/share" ];
meta = with lib; {
description = "A tool to inject machine checks into x86 kernel for testing";
longDescription = ''
mce-inject allows to inject machine check errors on the software level
into a running Linux kernel. This is intended for validation of the
kernel machine check handler.
'';
homepage = "https://github.com/andikleen/mce-inject/";
license = licenses.gpl2;
maintainers = with maintainers; [ arkivm ];
platforms = platforms.linux;
};
}

View file

@ -3518,6 +3518,8 @@ with pkgs;
mslink = callPackage ../tools/misc/mslink { };
mceinject = callPackage ../os-specific/linux/mceinject { };
mcelog = callPackage ../os-specific/linux/mcelog {
util-linux = util-linuxMinimal;
};