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-10-11 18:46:18 +02:00
version = "2.20.0";
2021-01-04 20:33:03 +01:00
src = fetchFromGitHub {
owner = "rebuy-de";
repo = pname;
rev = "v${version}";
2022-10-11 18:46:18 +02:00
sha256 = "sha256-UxisIhV23shgDC+9uN/YSPTHNa/hiPu8Rl06vxjJWNc=";
2021-01-04 20:33:03 +01:00
};
2022-10-11 18:46:18 +02:00
vendorSha256 = "sha256-sdEaYHH5ZsxF4aKyFMjh5YZVwx0dEbSY0S8R3L10ywM=";
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 ];
};
}