cloud-nuke: disable telemetry

This commit is contained in:
Mario Rodas 2023-05-12 08:17:00 +00:00
parent 6a7c8a7c51
commit 3d50aaec61

View file

@ -1,6 +1,7 @@
{ lib { lib
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, makeBinaryWrapper
}: }:
buildGoModule rec { buildGoModule rec {
@ -16,6 +17,10 @@ buildGoModule rec {
vendorHash = "sha256-DPJ6+akisNtMsbDdHWEWavZ2GJfeWjFIV6K+bV91FEY="; vendorHash = "sha256-DPJ6+akisNtMsbDdHWEWavZ2GJfeWjFIV6K+bV91FEY=";
nativeBuildInputs = [
makeBinaryWrapper
];
ldflags = [ ldflags = [
"-s" "-s"
"-w" "-w"
@ -24,6 +29,10 @@ buildGoModule rec {
doCheck = false; doCheck = false;
postInstall = ''
wrapProgram $out/bin/cloud-nuke --set-default DISABLE_TELEMETRY true
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/gruntwork-io/cloud-nuke"; homepage = "https://github.com/gruntwork-io/cloud-nuke";
description = "A tool for cleaning up your cloud accounts by nuking (deleting) all resources within it"; description = "A tool for cleaning up your cloud accounts by nuking (deleting) all resources within it";