nixpkgs/pkgs/applications/networking/cluster/terraform-docs/default.nix
Nikola Knežević cff6722b4c
terraform-docs: 0.6.0 -> 0.9.1 (#84807)
0.6.0 is quite an old version, that doesn't support Terraform 0.12. As
  Terraform 0.12 is the default on master, upgrading terraform-docs to
0.9.1 brings tools on par.
2020-04-09 12:55:33 +00:00

25 lines
700 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "terraform-docs";
version = "0.9.1";
goPackagePath = "github.com/segmentio/${pname}";
src = fetchFromGitHub {
owner = "segmentio";
repo = pname;
rev = "v${version}";
sha256 = "00sfzdqhf8g85m03r6mbzfas5vvc67iq7syb8ljcgxg8l1knxnjx";
};
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 ];
};
}