2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2015-04-24 21:01:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "trinity-${version}";
|
2018-08-09 19:04:08 +00:00
|
|
|
version = "1.8-git-2018-06-08";
|
2015-04-24 21:01:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kernelslacker";
|
|
|
|
repo = "trinity";
|
2018-08-09 19:04:08 +00:00
|
|
|
rev = "1b2d43cb383cef86a05acb2df046ce5e9b17a7fe";
|
|
|
|
sha256 = "0dsq10vmd6ii1dnpaqhizk9p8mbd6mwgpmi13b11dxwxpcvbhlar";
|
2015-04-24 21:01:10 +00:00
|
|
|
};
|
|
|
|
|
2018-03-06 19:37:18 +00:00
|
|
|
# Fails on 32-bit otherwise
|
2018-08-09 19:04:08 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-error=int-to-pointer-cast"
|
|
|
|
"-Wno-error=pointer-to-int-cast"
|
|
|
|
"-Wno-error=incompatible-pointer-types"
|
|
|
|
];
|
2018-03-06 19:37:18 +00:00
|
|
|
|
2017-03-01 16:03:30 +00:00
|
|
|
postPatch = ''
|
2017-11-08 14:19:38 +00:00
|
|
|
patchShebangs ./configure
|
2015-04-24 21:01:10 +00:00
|
|
|
patchShebangs ./scripts/
|
|
|
|
'';
|
|
|
|
|
2017-03-01 16:03:30 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-08-09 19:04:08 +00:00
|
|
|
makeFlags = [ "DESTDIR=$(out)" ];
|
2015-04-24 21:01:10 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Linux System call fuzz tester";
|
2018-08-09 19:04:08 +00:00
|
|
|
homepage = https://codemonkey.org.uk/projects/trinity/;
|
2015-04-24 21:01:10 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.dezgeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|