From 3e9b99058e8182e29d866185c90129cc2572713d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 29 Aug 2022 08:33:08 +0200 Subject: [PATCH] pretender: init at 1.0.0 --- pkgs/tools/security/pretender/default.nix | 28 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/security/pretender/default.nix diff --git a/pkgs/tools/security/pretender/default.nix b/pkgs/tools/security/pretender/default.nix new file mode 100644 index 000000000000..d665b72a749d --- /dev/null +++ b/pkgs/tools/security/pretender/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "pretender"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "RedTeamPentesting"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-JTNmebubaJQMtZm1ZGZote1qXjjiMcxSGQYPgLZXd0o="; + }; + + vendorSha256 = "sha256-CpMrxAZ+7Dc1UgH+AnuGh+gpBZpLshck/1+9WJNssEk="; + + # Tests require network access + doCheck = false; + + meta = with lib; { + description = "Tool for handling machine-in-the-middle tasks"; + homepage = "https://github.com/RedTeamPentesting/pretender"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 181ae50c8391..a010ca6fa5d8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10008,6 +10008,8 @@ with pkgs; pre-commit = callPackage ../tools/misc/pre-commit { }; + pretender = callPackage ../tools/security/pretender { }; + pretty-simple = callPackage ../development/tools/pretty-simple { }; prettyping = callPackage ../tools/networking/prettyping { };