From d80499a8c0fb03b22769fc49a676d29f9efc1a12 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Sep 2026 01:19:32 +0200 Subject: [PATCH] ghosthound: init at 0.1.2 BloodHound OpenGraph extension that surfaces Active Directory https://github.com/JVBotelho/ghosthound --- pkgs/by-name/gh/ghosthound/package.nix | 52 ++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/gh/ghosthound/package.nix diff --git a/pkgs/by-name/gh/ghosthound/package.nix b/pkgs/by-name/gh/ghosthound/package.nix new file mode 100644 index 000000000000..735b6e92e66f --- /dev/null +++ b/pkgs/by-name/gh/ghosthound/package.nix @@ -0,0 +1,52 @@ +{ + lib, + fetchFromGitHub, + nix-update-script, + openssl, + pkg-config, + rustPlatform, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "ghosthound"; + version = "0.1.2"; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "JVBotelho"; + repo = "ghosthound"; + tag = "v${finalAttrs.version}"; + hash = "sha256-UI01b0oiIiH9dIQClgnagTqb6OJgvmhXqIifh1aelDM="; + }; + + cargoHash = "sha256-ut6qwKdLvQgL66G5PQ817QMBCMz72aWNHK7MLpz5ql0="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ openssl ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + env = { + OPENSSL_NO_VENDOR = true; + }; + + doInstallCheck = true; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "BloodHound OpenGraph extension that surfaces Active Directory"; + homepage = "https://github.com/JVBotelho/ghosthound"; + changelog = "https://github.com/JVBotelho/ghosthound/releases/tag/${finalAttrs.src.tag}"; + license = + with lib.licenses; + OR [ + asl20 + mit + ]; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "ghosthound"; + }; +})