diff options
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/trinity')
-rw-r--r-- | nixpkgs/pkgs/os-specific/linux/trinity/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/trinity/default.nix b/nixpkgs/pkgs/os-specific/linux/trinity/default.nix new file mode 100644 index 000000000000..54d9a9bafe97 --- /dev/null +++ b/nixpkgs/pkgs/os-specific/linux/trinity/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "trinity-${version}"; + version = "1.8-git-2018-06-08"; + + src = fetchFromGitHub { + owner = "kernelslacker"; + repo = "trinity"; + rev = "1b2d43cb383cef86a05acb2df046ce5e9b17a7fe"; + sha256 = "0dsq10vmd6ii1dnpaqhizk9p8mbd6mwgpmi13b11dxwxpcvbhlar"; + }; + + # Fails on 32-bit otherwise + NIX_CFLAGS_COMPILE = [ + "-Wno-error=int-to-pointer-cast" + "-Wno-error=pointer-to-int-cast" + "-Wno-error=incompatible-pointer-types" + ]; + + postPatch = '' + patchShebangs ./configure + patchShebangs ./scripts/ + ''; + + enableParallelBuilding = true; + + makeFlags = [ "DESTDIR=$(out)" ]; + + meta = with stdenv.lib; { + description = "A Linux System call fuzz tester"; + homepage = https://codemonkey.org.uk/projects/trinity/; + license = licenses.gpl2; + maintainers = [ maintainers.dezgeg ]; + platforms = platforms.linux; + }; +} |