mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-21 17:01:10 +03:00
Merge pull request #140415 from arkivm/mce-inject
This commit is contained in:
commit
fe4db7e66e
3 changed files with 46 additions and 0 deletions
|
@ -896,6 +896,12 @@
|
||||||
githubId = 1296771;
|
githubId = 1296771;
|
||||||
name = "Anders Riutta";
|
name = "Anders Riutta";
|
||||||
};
|
};
|
||||||
|
arkivm = {
|
||||||
|
email = "vikram186@gmail.com";
|
||||||
|
github = "arkivm";
|
||||||
|
githubId = 1118815;
|
||||||
|
name = "Vikram Narayanan";
|
||||||
|
};
|
||||||
armijnhemel = {
|
armijnhemel = {
|
||||||
email = "armijn@tjaldur.nl";
|
email = "armijn@tjaldur.nl";
|
||||||
github = "armijnhemel";
|
github = "armijnhemel";
|
||||||
|
|
38
pkgs/os-specific/linux/mceinject/default.nix
Normal file
38
pkgs/os-specific/linux/mceinject/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -3551,6 +3551,8 @@ with pkgs;
|
||||||
|
|
||||||
mslink = callPackage ../tools/misc/mslink { };
|
mslink = callPackage ../tools/misc/mslink { };
|
||||||
|
|
||||||
|
mceinject = callPackage ../os-specific/linux/mceinject { };
|
||||||
|
|
||||||
mcelog = callPackage ../os-specific/linux/mcelog {
|
mcelog = callPackage ../os-specific/linux/mcelog {
|
||||||
util-linux = util-linuxMinimal;
|
util-linux = util-linuxMinimal;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue