From 1a4c30a353847fb558c6fdb1595635d9ba3e8752 Mon Sep 17 00:00:00 2001 From: Markus Hauck Date: Fri, 20 May 2022 11:30:36 +0200 Subject: [PATCH] awsrm: init at 0.4.0 --- pkgs/tools/admin/awsrm/default.nix | 28 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/tools/admin/awsrm/default.nix diff --git a/pkgs/tools/admin/awsrm/default.nix b/pkgs/tools/admin/awsrm/default.nix new file mode 100644 index 000000000000..e01f16267a2e --- /dev/null +++ b/pkgs/tools/admin/awsrm/default.nix @@ -0,0 +1,28 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "awsrm"; + version = "0.4.0"; + + src = fetchFromGitHub { + owner = "jckuester"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-KAujqYDtZbCBRO5WK9b9mxqe84ZllbBoO2tLnDH/bdo="; + }; + + vendorSha256 = "sha256-CldEAeiFH7gdFNLbIe/oTzs8Pdnde7EqLr7vP7SMDGU="; + + ldflags = + let t = "github.com/jckuester/awsrm/internal"; + in [ "-s" "-w" "-X ${t}.version=${version}" "-X ${t}.commit=${src.rev}" "-X ${t}.date=unknown" ]; + + doCheck = false; + + meta = with lib; { + description = "A remove command for AWS resources"; + homepage = "https://github.com/jckuester/awsrm"; + license = licenses.mit; + maintainers = [ maintainers.markus1189 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ed9894e4516b..dac927f5c185 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2607,6 +2607,8 @@ with pkgs; awsls = callPackage ../tools/admin/awsls { }; + awsrm = callPackage ../tools/admin/awsrm { }; + awstats = callPackage ../tools/system/awstats { }; awsweeper = callPackage ../tools/admin/awsweeper { };