depot/third_party/nixpkgs/pkgs/tools/admin/aws-nuke/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

36 lines
791 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "aws-nuke";
version = "2.21.2";
src = fetchFromGitHub {
owner = "rebuy-de";
repo = pname;
rev = "v${version}";
sha256 = "sha256-xROZGlQlbmeECLK3edfaCRIBB92gKjdQy2RpuFCiwsg=";
};
vendorSha256 = "sha256-un1H5fZSo6OZOS+Wn7B1Fbe7YbtF4lMj0dT1B9YhtNA=";
preBuild = ''
if [ "x$outputHashAlgo" != "x" ]; then
# Only `go generate` when fetching the go mod vendor code
go generate ./...
fi
'';
doCheck = false;
subPackages = [ "." ];
meta = with lib; {
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 ];
};
}