nixpkgs/pkgs/os-specific/linux/trinity/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

31 lines
754 B
Nix

{ 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";
mainProgram = "trinity";
homepage = "https://github.com/kernelslacker/trinity";
license = licenses.gpl2Only;
maintainers = [ maintainers.dezgeg ];
platforms = platforms.linux;
};
}