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.
This commit is contained in:
parent
5c99d24d1e
commit
e0a6314775
@ -1,24 +1,26 @@
|
|||||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
buildGoPackage rec {
|
buildGoModule rec {
|
||||||
pname = "terraform-docs";
|
pname = "terraform-docs";
|
||||||
version = "0.9.1";
|
version = "0.11.2";
|
||||||
|
|
||||||
goPackagePath = "github.com/segmentio/${pname}";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "segmentio";
|
owner = "terraform-docs";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "00sfzdqhf8g85m03r6mbzfas5vvc67iq7syb8ljcgxg8l1knxnjx";
|
sha256 = "sha256-x2YTd4ZnimTRkFWbwFp4qz6BymD6ESVxBy6YE+QqQ6k=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
vendorSha256 = "sha256-drfhfY03Ao0fqleBdzbAnPsE4kVrJMcUbec0txaEIP0=";
|
||||||
|
|
||||||
|
subPackages = [ "." ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
buildFlagsArray+=("-ldflags" "-X main.version=${version}")
|
buildFlagsArray+=("-ldflags" "-X main.version=${version}")
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A utility to generate documentation from Terraform modules in various output formats";
|
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;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ zimbatm ];
|
maintainers = with maintainers; [ zimbatm ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user