diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3c3360eb6e7e..a9c45507d9b9 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12497,6 +12497,12 @@ githubId = 3737; name = "Peter Jones"; }; + pjrm = { + email = "pedrojrmagalhaes@gmail.com"; + github = "pjrm"; + githubId = 4622652; + name = "Pedro Magalhães"; + }; pkharvey = { email = "kayharvey@protonmail.com"; github = "pkharvey"; diff --git a/pkgs/applications/networking/cluster/tf-summarize/default.nix b/pkgs/applications/networking/cluster/tf-summarize/default.nix new file mode 100644 index 000000000000..8cc48d7a2e8f --- /dev/null +++ b/pkgs/applications/networking/cluster/tf-summarize/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, testers +, tf-summarize +}: + +buildGoModule rec { + pname = "tf-summarize"; + version = "0.3.2"; + + src = fetchFromGitHub { + owner = "dineshba"; + repo = "tf-summarize"; + rev = "v${version}"; + sha256 = "0c6fcz0n22mq8bqr82h9lfxx4n1bk9gjlc7d131lpf14yiacih3p"; + }; + + vendorSha256 = "cnybdZth7qlP2BHK8uvLCoqJtggMIkvaL2+YugiUZRE="; + ldflags = [ + "-s" + "-w" + "-X main.version=${version}" + ]; + + passthru.tests.version = testers.testVersion { + package = tf-summarize; + command = "tf-summarize -v"; + inherit version; + }; + + meta = with lib; { + description = "Command-line utility to print the summary of the terraform plan"; + homepage = "https://github.com/dineshba/tf-summarize"; + license = licenses.mit; + maintainers = with maintainers; [ pjrm ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 665b93e3a784..c4256e10f7f0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -39742,6 +39742,8 @@ with pkgs; terraspace = callPackage ../applications/networking/cluster/terraspace { }; + tf-summarize = callPackage ../applications/networking/cluster/tf-summarize { }; + tfswitch = callPackage ../applications/networking/cluster/tfswitch { }; tfupdate = callPackage ../applications/networking/cluster/tfupdate { };