azurehound: migrate to finalAttrs

This commit is contained in:
Fabian Affolter
2026-01-17 11:07:24 +01:00
committed by GitHub
parent de11f2d34d
commit 7bfd9b4e88
+5 -5
View File
@@ -6,14 +6,14 @@
versionCheckHook,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "azurehound";
version = "2.8.3";
src = fetchFromGitHub {
owner = "SpecterOps";
repo = "AzureHound";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-ecLpNIYczim4dLbNwkOtwieJrjoSOXv4KHvSMuMjOw0=";
};
@@ -24,7 +24,7 @@ buildGoModule rec {
ldflags = [
"-s"
"-w"
"-X=github.com/bloodhoundad/azurehound/v2/constants.Version=${version}"
"-X=github.com/bloodhoundad/azurehound/v2/constants.Version=${finalAttrs.version}"
];
doInstallCheck = true;
@@ -32,10 +32,10 @@ buildGoModule rec {
meta = {
description = "Azure Data Exporter for BloodHound";
homepage = "https://github.com/SpecterOps/AzureHound";
changelog = "https://github.com/SpecterOps/AzureHound/releases/tag/v${version}";
changelog = "https://github.com/SpecterOps/AzureHound/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "azurehound";
broken = stdenv.hostPlatform.isDarwin;
};
}
})