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.

44 lines
984 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";
version = "0.33.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}";
hash = "sha256-yTCeltueOxGkOin6Cq6RzY7YNmHMz64wza8e0Pwr36E=";
2019-06-12 21:20:00 +00:00
};
vendorHash = "sha256-BnfWivu7xRmgDQgPIkjF48dOpU7hkw+Qkvb11eASDEk=";
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";
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;
2023-05-06 11:45:23 +00:00
maintainers = with maintainers; [ marsam ];
2019-06-12 21:20:00 +00:00
};
}