summary refs log tree commit diff
path: root/pkgs/os-specific/linux/trinity/default.nix
blob: e0ab2b2802f1a438789a659c2e59162f01ac0afe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "trinity";
  version = "1.9-unstable-2023-07-10";

  src = fetchFromGitHub {
    owner = "kernelslacker";
    repo = "trinity";
    rev = "e71872454d26baf37ae1d12e9b04a73d64179555";
    hash = "sha256-Zy+4L1CuB2Ul5iF+AokDkAW1wheDzoCTNkvRZFGRNps=";
  };

  postPatch = ''
    patchShebangs configure
    patchShebangs scripts
  '';

  enableParallelBuilding = true;

  installFlags = [ "DESTDIR=$(out)" ];

  meta = with lib; {
    description = "A Linux System call fuzz tester";
    homepage = "https://github.com/kernelslacker/trinity";
    license = licenses.gpl2Only;
    maintainers = [ maintainers.dezgeg ];
    platforms = platforms.linux;
  };
}