From 4e936c8316c6e95430cb1641a8bca408fb7e1b39 Mon Sep 17 00:00:00 2001 From: pwnwriter Date: Fri, 9 Aug 2024 21:31:08 +0545 Subject: [PATCH] kanha: init at 0.1.2 --- maintainers/maintainer-list.nix | 12 +++++----- pkgs/by-name/ka/kanha/package.nix | 40 +++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 6 deletions(-) create mode 100644 pkgs/by-name/ka/kanha/package.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index de88e3b112d2..5a28df2fe533 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -16685,12 +16685,6 @@ githubId = 23097564; name = "Nora Widdecke"; }; - pwoelfel = { - name = "Philipp Woelfel"; - email = "philipp.woelfel@gmail.com"; - github = "PhilippWoelfel"; - githubId = 19400064; - }; pwnwriter = { name = "Nabeen Tiwaree"; email = "hey@pwnwriter.xyz"; @@ -16698,6 +16692,12 @@ github = "pwnwriter"; githubId = 90331517; }; + pwoelfel = { + name = "Philipp Woelfel"; + email = "philipp.woelfel@gmail.com"; + github = "PhilippWoelfel"; + githubId = 19400064; + }; pyle = { name = "Adam Pyle"; email = "adam@pyle.dev"; diff --git a/pkgs/by-name/ka/kanha/package.nix b/pkgs/by-name/ka/kanha/package.nix new file mode 100644 index 000000000000..c3f713d0370d --- /dev/null +++ b/pkgs/by-name/ka/kanha/package.nix @@ -0,0 +1,40 @@ +{ + 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.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"; + }; +}