azurehound: init at 2.2.1 (#365421)

This commit is contained in:
Fabian Affolter
2024-12-16 22:06:25 +01:00
committed by GitHub
+41
View File
@@ -0,0 +1,41 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule rec {
pname = "azurehound";
version = "2.2.1";
src = fetchFromGitHub {
owner = "SpecterOps";
repo = "AzureHound";
rev = "refs/tags/v${version}";
hash = "sha256-DqoEtL0uyLsP/2PJdOpAmXryEZQDlyGWPQHThF+3gJA=";
};
vendorHash = "sha256-FG3207OTzkMEoSvQsTH7Ky9T3ur7glG7k0ERfd12SO0=";
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";
};
}