1{ stdenv, fetchurl, fetchFromGitHub, linuxHeaders }:
2
3stdenv.mkDerivation rec {
4 name = "trinity-${version}";
5 version = "1.8-git-2017-02-13";
6
7 src = fetchFromGitHub {
8 owner = "kernelslacker";
9 repo = "trinity";
10 rev = "2989c11ce77bc7bec23da62987e2c3a0dd8a83c9";
11 sha256 = "19asyrypjhx2cgjdmwfvmgc0hk3xg00zvgkl89vwxngdb40bkwfq";
12 };
13
14 postPatch = ''
15 patchShebangs ./configure
16 patchShebangs ./scripts/
17 '';
18
19 enableParallelBuilding = true;
20
21 installPhase = "make DESTDIR=$out install";
22
23 meta = with stdenv.lib; {
24 description = "A Linux System call fuzz tester";
25 homepage = http://codemonkey.org.uk/projects/trinity/;
26 license = licenses.gpl2;
27 maintainers = [ maintainers.dezgeg ];
28 platforms = platforms.linux;
29 };
30}