summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMikael Fangel <34864484+MikaelFangel@users.noreply.github.com>2023-11-16 08:53:46 +0100
committerMikael Fangel <34864484+MikaelFangel@users.noreply.github.com>2023-11-20 10:23:12 +0100
commit963372bb1162951217d8aca9c3849e06f14d3202 (patch)
treec0163f8a6615c24923037acf87a7e9a71e724603 /pkgs
parent8abd30d9c304d21cdbbe6fac23e9665a28c25943 (diff)
legba: init at 0.6.0
Co-authored-by: Fabian Affolter <mail@fabian-affolter.ch>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/le/legba/package.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/by-name/le/legba/package.nix b/pkgs/by-name/le/legba/package.nix
new file mode 100644
index 0000000000000..3c83cc83fb744
--- /dev/null
+++ b/pkgs/by-name/le/legba/package.nix
@@ -0,0 +1,36 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, cmake
+, pkg-config
+, openssl
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "legba";
+  version = "0.6.0";
+
+  src = fetchFromGitHub {
+    owner = "evilsocket";
+    repo = "legba";
+    rev = "v${version}";
+    hash = "sha256-zZQZuMjyQEuXNor3g4P0YLvvj2DaU3A3/FUzCRJxnZQ=";
+  };
+
+  cargoHash = "sha256-qFdV4s//CsLi8tjQ36z3+ECMQR8evtCUKbauf6XpJ04=";
+
+  nativeBuildInputs = [ cmake pkg-config ];
+  buildInputs = [ openssl.dev ];
+
+  # Paho C test fails due to permission issue
+  doCheck = false;
+
+  meta = with lib; {
+    description = "A multiprotocol credentials bruteforcer / password sprayer and enumerator";
+    homepage = "https://github.com/evilsocket/legba";
+    changelog = "https://github.com/evilsocket/legba/releases/tag/v${version}";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ mikaelfangel ];
+    mainProgram = "legba";
+  };
+}