diff options
author | Pedro Magalhães <pedrojrmagalhaes@gmail.com> | 2023-05-22 22:02:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 17:02:55 -0400 |
commit | 351ff5aefca3ad9ed8d8b56e258ffa30de9dc8f6 (patch) | |
tree | 600eea70273515b00a198bf76d123e0926a2da49 /pkgs/applications/networking/cluster/tf-summarize | |
parent | e5df58503b5c4e137def0fdbf4c9e36585928532 (diff) |
tf-summarize: init a 0.3.2 (#233472)
Diffstat (limited to 'pkgs/applications/networking/cluster/tf-summarize')
-rw-r--r-- | pkgs/applications/networking/cluster/tf-summarize/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
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 0000000000000..8cc48d7a2e8f0 --- /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 ]; + }; +} |