diff options
author | zimbatm <zimbatm@zimbatm.com> | 2018-12-06 12:10:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-06 12:10:36 +0100 |
commit | e4d06cbab6e994c9b339eaaf7c84cf3f1b7b3858 (patch) | |
tree | cb7d6b82deca84d4b92698a688cd2138f6b254d4 /pkgs/applications/networking/cluster/terraform-docs | |
parent | 54e0718cfc48294b22d5711eea2e27d7dd4f72d4 (diff) |
terraform-docs: init at 0.5.0 (#51579)
Diffstat (limited to 'pkgs/applications/networking/cluster/terraform-docs')
-rw-r--r-- | pkgs/applications/networking/cluster/terraform-docs/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/terraform-docs/default.nix b/pkgs/applications/networking/cluster/terraform-docs/default.nix new file mode 100644 index 0000000000000..708b59fce2432 --- /dev/null +++ b/pkgs/applications/networking/cluster/terraform-docs/default.nix @@ -0,0 +1,26 @@ +{ lib, buildGoPackage, fetchFromGitHub }: +buildGoPackage rec { + name = "${pname}-${version}"; + pname = "terraform-docs"; + version = "0.5.0"; + + goPackagePath = "github.com/segmentio/${pname}"; + + src = fetchFromGitHub { + owner = "segmentio"; + repo = pname; + rev = "v${version}"; + sha256 = "12w2yr669hk5kxdb9rrzsn8hwvx8rzrc1rmn8hs9l8z1bkfhr4gg"; + }; + + 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 ]; + }; +} |