From b8c778b37bc16bad720b56084f060aa2126e6703 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 26 Nov 2024 10:04:12 +0100 Subject: [PATCH] genzai: init at 1.0 Toolkit to help identify IoT related dashboards and scan them for default passwords and vulnerabilities https://github.com/umair9747/Genzai --- pkgs/by-name/ge/genzai/package.nix | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 pkgs/by-name/ge/genzai/package.nix diff --git a/pkgs/by-name/ge/genzai/package.nix b/pkgs/by-name/ge/genzai/package.nix new file mode 100644 index 0000000000000..d7477b783a1b2 --- /dev/null +++ b/pkgs/by-name/ge/genzai/package.nix @@ -0,0 +1,37 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, +}: + +buildGoModule rec { + pname = "genzai"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "umair9747"; + repo = "Genzai"; + rev = "refs/tags/${version}"; + hash = "sha256-OTkHPzZcPOYZRzEKrJekrgKE/XfGUDL85RjznmrVZb8="; + }; + + vendorHash = null; + + ldflags = [ + "-s" + "-w" + ]; + + postFixup = '' + install -vD *.json -t $out/share + ''; + + meta = { + description = "Toolkit to help identify IoT related dashboards and scan them for default passwords and vulnerabilities"; + homepage = "https://github.com/umair9747/Genzai"; + changelog = "https://github.com/umair9747/Genzai/releases/tag/${version}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "genzai"; + }; +}