depot/pkgs/by-name/ka/kanha/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

40 lines
819 B
Nix

{
lib,
rustPlatform,
fetchCrate,
stdenv,
darwin,
openssl,
}:
rustPlatform.buildRustPackage rec {
pname = "kanha";
version = "0.1.2";
src = fetchCrate {
inherit version;
pname = "kanha";
hash = "sha256-ftTmYCkra3x/oDgGJ2WSf6yLeKXkwLJXhjuBdv7fVLY=";
};
cargoHash = "sha256-kjHLc+qWo5dB4qbdlIWzk/pjpghRaDcX/7kkjEM219c=";
buildInputs =
[ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
CoreFoundation
SystemConfiguration
]
);
meta = {
description = "Web-app pentesting suite written in rust";
homepage = "https://github.com/pwnwriter/kanha";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pwnwriter ];
mainProgram = "kanha";
};
}