46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
makeBinaryWrapper,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "cloud-nuke";
|
|
version = "0.52.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gruntwork-io";
|
|
repo = "cloud-nuke";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-UW6n1TFKkricWX71/zHGwLY+0fLtZRkAUU8bQQc5Lwg=";
|
|
};
|
|
|
|
vendorHash = "sha256-ztaQ4PnBk5lr5PXK6O0MYt+dUNKIxB+/gpGZ4izaqWs=";
|
|
|
|
nativeBuildInputs = [
|
|
makeBinaryWrapper
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=main.VERSION=${finalAttrs.version}"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/cloud-nuke --set-default DISABLE_TELEMETRY true
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/gruntwork-io/cloud-nuke";
|
|
description = "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${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
})
|