fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
44 lines
1,009 B
Nix
44 lines
1,009 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, makeBinaryWrapper
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "cloud-nuke";
|
|
version = "0.36.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gruntwork-io";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-OFfcr8BXkTEB6lxImwHVFxnvursGcg83dVWsjegKf4w=";
|
|
};
|
|
|
|
vendorHash = "sha256-ealTxDNG6uJc0Lb20e8W3zv0azgpwI2kBn92d0lWaoc=";
|
|
|
|
nativeBuildInputs = [
|
|
makeBinaryWrapper
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.VERSION=${version}"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/cloud-nuke --set-default DISABLE_TELEMETRY true
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/gruntwork-io/cloud-nuke";
|
|
description = "A tool for cleaning up your cloud accounts by nuking (deleting) all resources within it";
|
|
mainProgram = "cloud-nuke";
|
|
changelog = "https://github.com/gruntwork-io/cloud-nuke/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|