2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2021-01-04 19:33:03 +00:00
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "aws-nuke";
|
2021-09-14 02:26:52 +01:00
|
|
|
version = "2.16.0";
|
2021-01-04 19:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rebuy-de";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-14 02:26:52 +01:00
|
|
|
sha256 = "sha256-8ILjEWr91YMUUN2GMXnS3sRrwGvUsYjDmRnM+fY5PkY=";
|
2021-01-04 19:33:03 +00:00
|
|
|
};
|
|
|
|
|
2021-09-14 02:26:52 +01:00
|
|
|
vendorSha256 = "sha256-sAII1RD9CG3Ape9OwD0956atlmaJVzSpRRBdo+ozTuk=";
|
2021-01-04 19:33:03 +00: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 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-04 19:33:03 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|