2021-03-03 17:38:09 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
2018-12-06 12:10:36 +01:00
|
|
|
pname = "terraform-docs";
|
2021-03-31 11:42:27 +02:00
|
|
|
version = "0.12.1";
|
2018-12-06 12:10:36 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-03-03 17:38:09 +01:00
|
|
|
owner = "terraform-docs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-03-31 11:42:27 +02:00
|
|
|
sha256 = "sha256-zQFPuHxfFvfwPVV0vPeA+A6XCw2Vt4tY4S2JBGcqaBQ=";
|
2018-12-06 12:10:36 +01:00
|
|
|
};
|
|
|
|
|
2021-03-24 23:06:09 +01:00
|
|
|
vendorSha256 = "sha256-HO2E8i5A/2Xi7Pq+Mqb/2ogK1to8IvZjRuDXfzGvOXk=";
|
2021-03-03 17:38:09 +01:00
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2018-12-06 12:10:36 +01:00
|
|
|
preBuild = ''
|
|
|
|
buildFlagsArray+=("-ldflags" "-X main.version=${version}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A utility to generate documentation from Terraform modules in various output formats";
|
2021-03-03 17:38:09 +01:00
|
|
|
homepage = "https://github.com/terraform-docs/terraform-docs/";
|
2018-12-06 12:10:36 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|