mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
terraform-plugin-docs: add passthru.{tests,updateScript}
Co-authored-by: Philipp Böschen <catouc@philipp.boeschen.me>
This commit is contained in:
parent
d7cd2337c8
commit
a5f0213148
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user