From 346fcfc04ef54ab0aa4624c45339173da930f0a0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jul 2026 17:51:05 +0200 Subject: [PATCH] hacksguard: init at 0.1 Multi-threaded TUI malware analysis tool https://github.com/Rhacknarok/hacksguard --- pkgs/by-name/ha/hacksguard/package.nix | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/ha/hacksguard/package.nix diff --git a/pkgs/by-name/ha/hacksguard/package.nix b/pkgs/by-name/ha/hacksguard/package.nix new file mode 100644 index 000000000000..faaf681f587a --- /dev/null +++ b/pkgs/by-name/ha/hacksguard/package.nix @@ -0,0 +1,42 @@ +{ + lib, + fetchFromGitHub, + nix-update-script, + pkg-config, + rustPlatform, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "hacksguard"; + version = "0.1"; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "Rhacknarok"; + repo = "hacksguard"; + tag = finalAttrs.version; + hash = "sha256-kS8VF1zD4VV9rSLz4euvNwtOUFWLeW2isAjgjw/iay0="; + }; + + cargoHash = "sha256-7Wt2cFKwWT82P2uxOy/lGEWZcCUSu0BNr9JdgRLwBnw="; + + nativeBuildInputs = [ pkg-config ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Multi-threaded TUI malware analysis tool"; + homepage = "https://github.com/Rhacknarok/hacksguard"; + changelog = "https://github.com/Rhacknarok/hacksguard/releases/tag/${finalAttrs.src.tag}"; + # https://github.com/Rhacknarok/hacksguard/issues/1 + license = lib.licenses.unfree; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "hacksguard"; + }; +})