nixpkgs/pkgs/tools/security/pretender/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
782 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "pretender";
version = "1.2.0";
src = fetchFromGitHub {
owner = "RedTeamPentesting";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-adWdUlsReRptSgRAjNH9bWy9dpwpuAWtVxlbDL2pMmk=";
};
vendorHash = "sha256-kDHRjd3Y90ocBGSJ0B2jAM9tO+iDSXoUOzLEWX2G0J4=";
# Tests require network access
doCheck = false;
meta = with lib; {
description = "Tool for handling machine-in-the-middle tasks";
mainProgram = "pretender";
homepage = "https://github.com/RedTeamPentesting/pretender";
changelog = "https://github.com/RedTeamPentesting/pretender/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}