Unverified Commit a5f02131 authored by Anthony Roussel's avatar Anthony Roussel
Browse files

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

parent d7cd2337
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
{ 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";