1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 versionCheckHook,
6}:
7buildGoModule rec {
8 pname = "tfproviderdocs";
9 version = "0.12.1";
10
11 src = fetchFromGitHub {
12 owner = "bflad";
13 repo = "tfproviderdocs";
14 tag = "v${version}";
15 hash = "sha256-KCkohIGkh6sg/e0qBi90hMqh/XQQNCBF6Di6V2gxqak=";
16 };
17
18 vendorHash = "sha256-fSb1C2W29zF6ygiIg6iq19A4B6ensZLqyPD5MhQ5ec8=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X github.com/bflad/tfproviderdocs/version.Version=${version}"
24 "-X github.com/bflad/tfproviderdocs/version.VersionPrerelease="
25 ];
26
27 nativeInstallCheckInputs = [
28 versionCheckHook
29 ];
30
31 doInstallCheck = true;
32 versionCheckProgramArg = "version";
33
34 meta = with lib; {
35 description = "Terraform Provider Documentation Tool";
36 license = licenses.mpl20;
37 longDescription = ''
38 tfproviderdocs is an open-source tool for validating the documentation of Terraform providers.
39 It automates the checking of documentation based on the provider's code specifications and configurations.
40 This helps developers maintain consistent and up-to-date documentation.
41 '';
42 homepage = "https://github.com/bflad/tfproviderdocs";
43 maintainers = with maintainers; [ tembleking ];
44 mainProgram = "tfproviderdocs";
45 };
46}