2018-12-06 11:10:36 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "terraform-docs";
|
2020-04-09 13:55:33 +01:00
|
|
|
version = "0.9.1";
|
2018-12-06 11:10:36 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/segmentio/${pname}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "segmentio";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-04-09 13:55:33 +01:00
|
|
|
sha256 = "00sfzdqhf8g85m03r6mbzfas5vvc67iq7syb8ljcgxg8l1knxnjx";
|
2018-12-06 11:10:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
buildFlagsArray+=("-ldflags" "-X main.version=${version}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A utility to generate documentation from Terraform modules in various output formats";
|
|
|
|
homepage = "https://github.com/segmentio/terraform-docs/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
|
|
|
};
|
|
|
|
}
|