Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
878 B
Nix
42 lines
878 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
testers,
|
|
tf-summarize,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "tf-summarize";
|
|
version = "0.3.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dineshba";
|
|
repo = "tf-summarize";
|
|
rev = "v${version}";
|
|
hash = "sha256-yjketL/7+gsWIvltqotouSNgTCBOqVrHqiblXoCsWgI=";
|
|
};
|
|
|
|
vendorHash = "sha256-e17oCuvPkPAJGPhFoaNZ5Bl4/OoVujkNII1akuQviE0=";
|
|
|
|
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";
|
|
mainProgram = "tf-summarize";
|
|
homepage = "https://github.com/dineshba/tf-summarize";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ pjrm ];
|
|
};
|
|
}
|