Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, bison, flex }: 2 3stdenv.mkDerivation rec { 4 pname = "mceinject"; 5 version = "unstable-2013-01-19"; 6 7 src = fetchFromGitHub { 8 owner = "andikleen"; 9 repo = "mce-inject"; 10 rev = "4cbe46321b4a81365ff3aafafe63967264dbfec5"; 11 sha256 = "0gjapg2hrlxp8ssrnhvc19i3r1xpcnql7xv0zjgbv09zyha08g6z"; 12 }; 13 14 nativeBuildInputs = [ flex bison ]; 15 16 env.NIX_CFLAGS_COMPILE = "-Os -g -Wall"; 17 18 NIX_LDFLAGS = [ "-lpthread" ]; 19 20 makeFlags = [ "prefix=" ]; 21 22 enableParallelBuilding = true; 23 24 installFlags = [ "destdir=$(out)" "manprefix=/share" ]; 25 26 meta = with lib; { 27 description = "A tool to inject machine checks into x86 kernel for testing"; 28 longDescription = '' 29 mce-inject allows to inject machine check errors on the software level 30 into a running Linux kernel. This is intended for validation of the 31 kernel machine check handler. 32 ''; 33 homepage = "https://github.com/andikleen/mce-inject/"; 34 license = licenses.gpl2; 35 maintainers = with maintainers; [ arkivm ]; 36 platforms = platforms.linux; 37 }; 38}