depot/third_party/nixpkgs/pkgs/development/tools/cloud-nuke/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

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; [ ];
};
}