depot/third_party/nixpkgs/pkgs/tools/security/cherrybomb/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

38 lines
884 B
Nix

{ 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 ];
};
}