Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.2 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule rec {
pname = "tfproviderdocs";
version = "0.12.1";
src = fetchFromGitHub {
owner = "bflad";
repo = "tfproviderdocs";
tag = "v${version}";
hash = "sha256-KCkohIGkh6sg/e0qBi90hMqh/XQQNCBF6Di6V2gxqak=";
};
vendorHash = "sha256-fSb1C2W29zF6ygiIg6iq19A4B6ensZLqyPD5MhQ5ec8=";
ldflags = [
"-s"
"-w"
"-X github.com/bflad/tfproviderdocs/version.Version=${version}"
"-X github.com/bflad/tfproviderdocs/version.VersionPrerelease="
];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgramArg = "version";
meta = with lib; {
description = "Terraform Provider Documentation Tool";
license = licenses.mpl20;
longDescription = ''
tfproviderdocs is an open-source tool for validating the documentation of Terraform providers.
It automates the checking of documentation based on the provider's code specifications and configurations.
This helps developers maintain consistent and up-to-date documentation.
'';
homepage = "https://github.com/bflad/tfproviderdocs";
maintainers = with maintainers; [ tembleking ];
mainProgram = "tfproviderdocs";
};
}