nixpkgs/pkgs/development/tools/cloud-nuke/default.nix

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

45 lines
1009 B
Nix
Raw Normal View History

2023-05-06 11:45:23 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
2023-05-12 08:17:00 +00:00
, makeBinaryWrapper
2023-05-06 11:45:23 +00:00
}:
2019-06-12 21:20:00 +00:00
2020-11-14 04:20:00 +00:00
buildGoModule rec {
2019-06-12 21:20:00 +00:00
pname = "cloud-nuke";
2024-04-09 00:31:04 +00:00
version = "0.35.0";
2019-06-12 21:20:00 +00:00
src = fetchFromGitHub {
owner = "gruntwork-io";
repo = pname;
2023-05-06 11:45:23 +00:00
rev = "refs/tags/v${version}";
2024-04-09 00:31:04 +00:00
hash = "sha256-mSkQW4fSpylbOS8x/o/578NV+SU4ao/yqB81Ifb7LFQ=";
2019-06-12 21:20:00 +00:00
};
2024-03-18 17:14:13 +00:00
vendorHash = "sha256-Fmfr9feTibAjiZaakJalGTS7X2RhGz6engMNhy48Zus=";
2019-06-12 21:20:00 +00:00
2023-05-12 08:17:00 +00:00
nativeBuildInputs = [
makeBinaryWrapper
];
2023-05-06 11:45:23 +00:00
ldflags = [
"-s"
"-w"
"-X=main.VERSION=${version}"
];
2020-11-14 04:20:00 +00:00
doCheck = false;
2019-06-12 21:20:00 +00:00
2023-05-12 08:17:00 +00:00
postInstall = ''
wrapProgram $out/bin/cloud-nuke --set-default DISABLE_TELEMETRY true
'';
2019-06-12 21:20:00 +00:00
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";
2023-05-06 11:45:23 +00:00
changelog = "https://github.com/gruntwork-io/cloud-nuke/releases/tag/v${version}";
2019-06-12 21:20:00 +00:00
license = licenses.mit;
2024-04-24 04:20:00 +00:00
maintainers = with maintainers; [ ];
2019-06-12 21:20:00 +00:00
};
}