2017-03-01 16:03:30 +00:00
|
|
|
{ stdenv, fetchurl, fetchFromGitHub, linuxHeaders }:
|
2015-04-24 22:01:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "trinity-${version}";
|
2018-02-27 00:32:06 +00:00
|
|
|
version = "1.8-git-2017-02-13";
|
2015-04-24 22:01:10 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kernelslacker";
|
|
|
|
repo = "trinity";
|
2018-02-27 00:32:06 +00:00
|
|
|
rev = "2989c11ce77bc7bec23da62987e2c3a0dd8a83c9";
|
|
|
|
sha256 = "19asyrypjhx2cgjdmwfvmgc0hk3xg00zvgkl89vwxngdb40bkwfq";
|
2015-04-24 22:01:10 +01:00
|
|
|
};
|
|
|
|
|
2018-03-06 19:37:18 +00:00
|
|
|
# Fails on 32-bit otherwise
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
|
|
|
2017-03-01 16:03:30 +00:00
|
|
|
postPatch = ''
|
2017-11-08 14:19:38 +00:00
|
|
|
patchShebangs ./configure
|
2015-04-24 22:01:10 +01:00
|
|
|
patchShebangs ./scripts/
|
|
|
|
'';
|
|
|
|
|
2017-03-01 16:03:30 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-04-24 22:01:10 +01:00
|
|
|
installPhase = "make DESTDIR=$out install";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Linux System call fuzz tester";
|
|
|
|
homepage = http://codemonkey.org.uk/projects/trinity/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.dezgeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|