7 , terraform-plugin-docs
12 pname = "terraform-plugin-docs";
15 src = fetchFromGitHub {
17 repo = "terraform-plugin-docs";
18 rev = "refs/tags/v${version}";
19 sha256 = "sha256-5vbi69GMgkzvN3aEQbNTbk99rg+kfvAvUrdDsuyIm9s=";
22 vendorHash = "sha256-AjW6BokLVDkIWXToJ7wNq/g19xKTAfpQ/gVlKCV5qw0=";
24 nativeBuildInputs = [ makeWrapper ];
30 allowGoReference = true;
37 "-X main.version=${version}"
38 "-X main.commit=${src.rev}"
42 wrapProgram $out/bin/tfplugindocs --prefix PATH : ${lib.makeBinPath [ go ]}
46 tests.version = testers.testVersion {
47 command = "tfplugindocs --version";
48 package = terraform-plugin-docs;
50 updateScript = nix-update-script { };
54 description = "Generate and validate Terraform plugin/provider documentation";
55 homepage = "https://github.com/hashicorp/terraform-plugin-docs";
56 changelog = "https://github.com/hashicorp/terraform-plugin-docs/releases/tag/v${version}";
57 license = licenses.mpl20;
58 mainProgram = "tfplugindocs";
59 maintainers = with maintainers; [ lewo ];