{ lib, stdenv, buildGoModule, fetchFromGitHub, versionCheckHook, }: buildGoModule rec { pname = "azurehound"; version = "2.7.1"; src = fetchFromGitHub { owner = "SpecterOps"; repo = "AzureHound"; tag = "v${version}"; hash = "sha256-fCs9C86IO1aTzBFZiA7SaVlk0Zdm/ItWtLhE8Ii2W0A="; }; vendorHash = "sha256-ScFHEIarDvxd9R6eUONdECmtK+5aZRdo71khljLz8c4="; nativeInstallCheckInputs = [ versionCheckHook ]; ldflags = [ "-s" "-w" "-X=github.com/bloodhoundad/azurehound/v2/constants.Version=${version}" ]; doInstallCheck = true; versionCheckProgramArg = "--version"; meta = { description = "Azure Data Exporter for BloodHound"; homepage = "https://github.com/SpecterOps/AzureHound"; changelog = "https://github.com/SpecterOps/AzureHound/releases/tag/v${version}"; license = lib.licenses.gpl3Only; maintainers = with lib.maintainers; [ fab ]; mainProgram = "azurehound"; broken = stdenv.hostPlatform.isDarwin; }; }