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-03 17:38:09 +01:00
|
|
|
version = "0.11.2";
|
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}";
|
|
|
|
sha256 = "sha256-x2YTd4ZnimTRkFWbwFp4qz6BymD6ESVxBy6YE+QqQ6k=";
|
2018-12-06 12:10:36 +01:00
|
|
|
};
|
|
|
|
|
2021-03-03 17:38:09 +01:00
|
|
|
vendorSha256 = "sha256-drfhfY03Ao0fqleBdzbAnPsE4kVrJMcUbec0txaEIP0=";
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|