2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-01-05 17:05:55 +00:00
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "aws-nuke";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "2.23.0";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rebuy-de";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-fvEUZWnYjSZrdTLTq1WVuZ3GaIWqdk3+qnuXDwT0K/0=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
vendorHash = "sha256-c9OpKsP4TQ4aDZnHPSy6tNmNBN6tsj4Kb8WOig5+ogI=";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
overrideModAttrs = _: {
|
|
|
|
preBuild = ''
|
2021-01-05 17:05:55 +00:00
|
|
|
go generate ./...
|
2023-08-22 20:05:09 +00:00
|
|
|
'';
|
|
|
|
};
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-01-05 17:05:55 +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 ];
|
|
|
|
};
|
|
|
|
}
|