From a5f02131483e15b4bd71c63c2ba277ca5e2a966f Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Wed, 1 Nov 2023 07:56:12 +0100 Subject: [PATCH] terraform-plugin-docs: add passthru.{tests,updateScript} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Philipp Böschen --- .../by-name/te/terraform-plugin-docs/package.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/te/terraform-plugin-docs/package.nix b/pkgs/by-name/te/terraform-plugin-docs/package.nix index 85c0dd25d0fe..183ac15c97ba 100644 --- a/pkgs/by-name/te/terraform-plugin-docs/package.nix +++ b/pkgs/by-name/te/terraform-plugin-docs/package.nix @@ -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";