From 41f364a3e675ee5bd1f70cf00c15eaad0af15dd5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 9 Jul 2026 11:54:46 +0200 Subject: [PATCH] mqattack: init at 0.1.2 MQTT penetration testing tool https://github.com/affolter-engineering/mqattack --- pkgs/by-name/mq/mqattack/package.nix | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/mq/mqattack/package.nix diff --git a/pkgs/by-name/mq/mqattack/package.nix b/pkgs/by-name/mq/mqattack/package.nix new file mode 100644 index 000000000000..bbfe3f465a6a --- /dev/null +++ b/pkgs/by-name/mq/mqattack/package.nix @@ -0,0 +1,38 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "mqattack"; + version = "0.1.2"; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "affolter-engineering"; + repo = "mqattack"; + tag = finalAttrs.version; + hash = "sha256-kUZatTjjpBpyrZ//JHDSki6oXVGunH0thgY0+q3wFyM="; + }; + + cargoHash = "sha256-V1RKag4AZhYaTY9vzt56F19qMAAt3BTdAliu1uKbVwQ="; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "MQTT penetration testing tool"; + homepage = "https://github.com/affolter-engineering/mqattack"; + changelog = "https://github.com/affolter-engineering/mqattack/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "mqattack"; + }; +})