nixpkgs/pkgs/by-name/tf/tf-summarize/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
871 B
Nix
Raw Normal View History

2023-05-22 21:02:55 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, tf-summarize
}:
buildGoModule rec {
pname = "tf-summarize";
2024-10-03 18:21:25 +00:00
version = "0.3.11";
2023-05-22 21:02:55 +00:00
src = fetchFromGitHub {
owner = "dineshba";
repo = "tf-summarize";
rev = "v${version}";
2024-10-03 18:21:25 +00:00
hash = "sha256-HXmFxbYfzEp6hxdmvNcSI+8zM3wh7pVpFjquwP/t4PU=";
2023-05-22 21:02:55 +00:00
};
2024-03-09 12:26:52 +00:00
vendorHash = "sha256-nfontEgMj2qPbrM35iR7b65qrkWHCMY1v944iYdNLG8=";
2023-08-15 08:44:59 +00:00
2023-05-22 21:02:55 +00:00
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";
2023-05-22 21:02:55 +00:00
homepage = "https://github.com/dineshba/tf-summarize";
license = licenses.mit;
maintainers = with maintainers; [ pjrm ];
};
}