terraform-plugin-docs: add passthru.{tests,updateScript}

Co-authored-by: Philipp Böschen <catouc@philipp.boeschen.me>
This commit is contained in:
Anthony Roussel 2023-11-01 07:56:12 +01:00
parent d7cd2337c8
commit a5f0213148
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -1,4 +1,10 @@
{ buildGoModule, fetchFromGitHub, lib }:
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, terraform-plugin-docs
, nix-update-script
}:
buildGoModule rec {
pname = "terraform-plugin-docs";
@ -13,6 +19,14 @@ buildGoModule rec {
vendorHash = "sha256-qUlyOAiLzLgrtaAfs/aGpAikGmGcQ9PI7QRyp9+Qn4w=";
passthru = {
tests.version = testers.testVersion {
command = "tfplugindocs --version";
package = terraform-plugin-docs;
};
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Generate and validate Terraform plugin/provider documentation";
homepage = "https://github.com/hashicorp/terraform-plugin-docs";