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}";
|
2017-11-08 14:19:38 +00:00
|
|
|
version = "1.8";
|
2015-04-24 22:01:10 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kernelslacker";
|
|
|
|
repo = "trinity";
|
|
|
|
rev = "v${version}";
|
2017-11-08 14:19:38 +00:00
|
|
|
sha256 = "1ss6ir3ki2hnj4c8068v5bz8bpa43xqg9zlmzhgagi94g9l05qlf";
|
2015-04-24 22:01:10 +01:00
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|