nixpkgs-suyu/pkgs/tools/admin/aws-nuke/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
791 B
Nix
Raw Normal View History

{ lib
2021-01-04 20:33:03 +01:00
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "aws-nuke";
2022-02-10 18:34:43 +01:00
version = "2.17.0";
2021-01-04 20:33:03 +01:00
src = fetchFromGitHub {
owner = "rebuy-de";
repo = pname;
rev = "v${version}";
2022-02-10 18:34:43 +01:00
sha256 = "sha256-e5EtIRIM0Gz2BXGaZx3jiO+MNdD1Eh9h7U+aZSBVFGc=";
2021-01-04 20:33:03 +01:00
};
2022-02-10 18:34:43 +01:00
vendorSha256 = "sha256-tRFYZ0GBJDumvfOYMJDcYqTlTn5do3trZ1gXafuDVi4=";
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 = [ "." ];
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 ];
};
}