From 0734f91c942e24b563ca6e8ee1aa12138bfe49e5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Aug 2026 17:16:06 +0200 Subject: [PATCH] adhammer: init at 1.3.10 Active Directory security-assessment toolkit https://github.com/icedracon/adhammer --- pkgs/by-name/ad/adhammer/package.nix | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkgs/by-name/ad/adhammer/package.nix diff --git a/pkgs/by-name/ad/adhammer/package.nix b/pkgs/by-name/ad/adhammer/package.nix new file mode 100644 index 000000000000..a7d137916a74 --- /dev/null +++ b/pkgs/by-name/ad/adhammer/package.nix @@ -0,0 +1,47 @@ +{ + lib, + fetchFromGitHub, + nix-update-script, + openssl, + pkg-config, + rustPlatform, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "adhammer"; + version = "1.3.10"; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "icedracon"; + repo = "adhammer"; + tag = "v${finalAttrs.version}"; + hash = "sha256-QQjiyvj3e5unEsh17UyKck2rs8oKeLO5eodBG7cn1LQ="; + }; + + cargoHash = "sha256-Ebkvxl/JyiZ84ucv7FmOluHTqYd14I3B6z53QNmVQZw="; + + nativeBuildInputs = [ + pkg-config + rustPlatform.bindgenHook + ]; + + buildInputs = [ openssl ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Active Directory security-assessment toolkit"; + homepage = "https://github.com/icedracon/adhammer"; + changelog = "https://github.com/icedracon/adhammer/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "adhammer"; + }; +})