about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/terraform-docs
diff options
context:
space:
mode:
authorSamuel Noordhuis <samuel@snoord.com>2021-03-04 03:38:09 +1100
committerGitHub <noreply@github.com>2021-03-03 17:38:09 +0100
commite0a6314775cca8a617b791663fb76c0e108ea88e (patch)
treedcd115744d867c68ab6ea1fb66ea9e23cd9622ab /pkgs/applications/networking/cluster/terraform-docs
parent5c99d24d1ecc148bb9cb3bea8beb5f9e1ee4388b (diff)
terraform-docs: 0.9.1 -> 0.11.2 (#114803)
The owner of the repository has changed from segmentio to terraform-docs
since the last pull request.

This commit also introduces the use of buildGoModule in place of
buildGoPackage, so that we can avoid generating a deps.nix file for
module dependencies.
Diffstat (limited to 'pkgs/applications/networking/cluster/terraform-docs')
-rw-r--r--pkgs/applications/networking/cluster/terraform-docs/default.nix22
1 files changed, 12 insertions, 10 deletions
diff --git a/pkgs/applications/networking/cluster/terraform-docs/default.nix b/pkgs/applications/networking/cluster/terraform-docs/default.nix
index a5b6e7d2f5e71..804659e084ac7 100644
--- a/pkgs/applications/networking/cluster/terraform-docs/default.nix
+++ b/pkgs/applications/networking/cluster/terraform-docs/default.nix
@@ -1,24 +1,26 @@
-{ lib, buildGoPackage, fetchFromGitHub }:
-buildGoPackage rec {
+{ lib, buildGoModule, fetchFromGitHub }:
+buildGoModule rec {
   pname = "terraform-docs";
-  version = "0.9.1";
-
-  goPackagePath = "github.com/segmentio/${pname}";
+  version = "0.11.2";
 
   src = fetchFromGitHub {
-    owner  = "segmentio";
-    repo   = pname;
-    rev    = "v${version}";
-    sha256 = "00sfzdqhf8g85m03r6mbzfas5vvc67iq7syb8ljcgxg8l1knxnjx";
+    owner = "terraform-docs";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-x2YTd4ZnimTRkFWbwFp4qz6BymD6ESVxBy6YE+QqQ6k=";
   };
 
+  vendorSha256 = "sha256-drfhfY03Ao0fqleBdzbAnPsE4kVrJMcUbec0txaEIP0=";
+
+  subPackages = [ "." ];
+
   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/";
+    homepage = "https://github.com/terraform-docs/terraform-docs/";
     license = licenses.mit;
     maintainers = with maintainers; [ zimbatm ];
   };