2020-11-13 05:20:00 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-12-08 10:20:00 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "awsweeper";
|
2021-01-18 11:34:01 +01:00
|
|
|
version = "0.11.1";
|
2020-05-01 03:59:00 +02:00
|
|
|
|
2019-12-08 10:20:00 +01:00
|
|
|
src = fetchFromGitHub {
|
2020-11-13 05:20:00 +01:00
|
|
|
owner = "jckuester";
|
2019-12-08 10:20:00 +01:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-01-18 11:34:01 +01:00
|
|
|
sha256 = "sha256-fpWoLFSwSVxaiWyVMSmQTd3o/zOySUXNM2YhxMQ7nsA=";
|
2019-12-08 10:20:00 +01:00
|
|
|
};
|
|
|
|
|
2021-01-18 11:34:01 +01:00
|
|
|
vendorSha256 = "sha256-1u1mzANLlWduAQF1GUX7BJSyYlSZwNQISqKwbyRlGog=";
|
2020-11-13 05:20:00 +01:00
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X github.com/jckuester/awsweeper/internal.version=${version} -X github.com/jckuester/awsweeper/internal.commit=${src.rev} -X github.com/jckuester/awsweeper/internal.date=unknown" ];
|
2019-12-08 10:20:00 +01:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-03-27 08:33:21 +01:00
|
|
|
meta = with lib; {
|
2019-12-08 10:20:00 +01:00
|
|
|
description = "A tool to clean out your AWS account";
|
2020-11-13 05:20:00 +01:00
|
|
|
homepage = "https://github.com/jckuester/awsweeper";
|
2019-12-08 10:20:00 +01:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|