2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2021-01-04 20:33:03 +01:00
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "aws-nuke";
|
2021-04-22 08:01:44 +02:00
|
|
|
version = "2.15.0";
|
2021-01-04 20:33:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rebuy-de";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-22 08:01:44 +02:00
|
|
|
sha256 = "sha256-FntHZi+L0Ti2QFbd8keF1sxcdXc01hs13Np23hF/pVc=";
|
2021-01-04 20:33:03 +01:00
|
|
|
};
|
|
|
|
|
2021-04-22 08:01:44 +02:00
|
|
|
vendorSha256 = "sha256-VtsHUxI5RuKbQOSu55qPCJHsDO5+cNGT92y9dlibXlc=";
|
2021-01-04 20:33:03 +01:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
if [ "x$outputHashAlgo" != "x" ]; then
|
|
|
|
# Only `go generate` when fetching the go mod vendor code
|
|
|
|
go generate ./...
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-01-04 20:33:03 +01:00
|
|
|
description = "Nuke a whole AWS account and delete all its resources";
|
|
|
|
homepage = "https://github.com/rebuy-de/aws-nuke";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ grahamc ];
|
|
|
|
};
|
|
|
|
}
|