1{ stdenv, fetchFromGitHub }:
2
3stdenv.mkDerivation rec {
4 name = "trinity-${version}";
5 version = "1.8-git-2018-06-08";
6
7 src = fetchFromGitHub {
8 owner = "kernelslacker";
9 repo = "trinity";
10 rev = "1b2d43cb383cef86a05acb2df046ce5e9b17a7fe";
11 sha256 = "0dsq10vmd6ii1dnpaqhizk9p8mbd6mwgpmi13b11dxwxpcvbhlar";
12 };
13
14 # Fails on 32-bit otherwise
15 NIX_CFLAGS_COMPILE = [
16 "-Wno-error=int-to-pointer-cast"
17 "-Wno-error=pointer-to-int-cast"
18 "-Wno-error=incompatible-pointer-types"
19 ];
20
21 postPatch = ''
22 patchShebangs ./configure
23 patchShebangs ./scripts/
24 '';
25
26 enableParallelBuilding = true;
27
28 makeFlags = [ "DESTDIR=$(out)" ];
29
30 meta = with stdenv.lib; {
31 description = "A Linux System call fuzz tester";
32 homepage = https://codemonkey.org.uk/projects/trinity/;
33 license = licenses.gpl2;
34 maintainers = [ maintainers.dezgeg ];
35 platforms = platforms.linux;
36 };
37}