summary refs log blame commit diff
path: root/pkgs/os-specific/linux/trinity/default.nix
blob: 46b09dce43797933137d0852594340f965120677 (plain) (tree)
1
2
3
4
5
6
7
8
9
                            


                              
                                 



                            

                                                                    

    


                                    
                
                             
                            

     

                                









                                                          
{ 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;
  };
}