<commit_before>{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  name = "trinity-${version}";
  version = "1.8-git-2017-02-13";

  src = fetchFromGitHub {
    owner = "kernelslacker";
    repo = "trinity";
    rev = "2989c11ce77bc7bec23da62987e2c3a0dd8a83c9";
    sha256 = "19asyrypjhx2cgjdmwfvmgc0hk3xg00zvgkl89vwxngdb40bkwfq";
  };

  # Fails on 32-bit otherwise
  NIX_CFLAGS_COMPILE = "-Wno-error";

  postPatch = ''
    patchShebangs ./configure
    patchShebangs ./scripts/
  '';

  enableParallelBuilding = true;

  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;
  };
}<commit_msg>trinity: 2017-02-13 -> 2018-06-08, fix build, clean up<commit_after>{ 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;
  };
}
{'fraction_non_alphanumeric': 0.13428728673637866, 'fraction_numerical': 0.06274078150798018, 'mean_word_length': 3.444987775061125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3213997', 'n_tokens_mistral': 781, 'n_tokens_neox': 706, 'n_words': 114}