From d98d00194819760c8727a1a49e6a16bc19f6fe4b Mon Sep 17 00:00:00 2001 From: figsoda Date: Sat, 20 May 2023 22:05:31 -0400 Subject: [PATCH] cherrybomb: init at 1.0.0 https://github.com/blst-security/cherrybomb --- pkgs/tools/security/cherrybomb/default.nix | 38 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/tools/security/cherrybomb/default.nix diff --git a/pkgs/tools/security/cherrybomb/default.nix b/pkgs/tools/security/cherrybomb/default.nix new file mode 100644 index 000000000000..9f1478a8d231 --- /dev/null +++ b/pkgs/tools/security/cherrybomb/default.nix @@ -0,0 +1,38 @@ +{ lib +, rustPlatform +, fetchCrate +, pkg-config +, openssl +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "cherrybomb"; + version = "1.0.0"; + + src = fetchCrate { + inherit pname version; + hash = "sha256-qZ1eKcRAwCzrzvw6QR28oZ8sGnsXmoOW/bWLQTlpqlo="; + }; + + cargoHash = "sha256-eosK7MQ3UB8rxKHCrb3s3+BVarv19h0cL+uzwg95Hc8="; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + openssl + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + meta = with lib; { + description = "A CLI tool that helps you avoid undefined user behavior by validating your API specifications"; + homepage = "https://github.com/blst-security/cherrybomb"; + changelog = "https://github.com/blst-security/cherrybomb/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ figsoda ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 86a96c255e4c..e9b9a5d17996 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6191,6 +6191,8 @@ with pkgs; checkmake = callPackage ../development/tools/checkmake { }; + cherrybomb = callPackage ../tools/security/cherrybomb { }; + chit = callPackage ../development/tools/chit { }; chkrootkit = callPackage ../tools/security/chkrootkit { };