mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
40 lines
836 B
Nix
40 lines
836 B
Nix
{ 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}";
|
|
hash = "sha256-d8DIVPQkuEvDCO0wKl+aK1jSu6MJCpTxQrgKYcFnzjA=";
|
|
};
|
|
|
|
vendorHash = "sha256-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 ];
|
|
};
|
|
}
|