mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
cff6722b4c
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.
26 lines
700 B
Nix
26 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 ];
|
|
};
|
|
}
|