3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #173742 from markus1189/awsrm-init

This commit is contained in:
Sandro 2022-06-26 22:37:12 +02:00 committed by GitHub
commit 50fdd2d827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -2659,6 +2659,8 @@ with pkgs;
awsls = callPackage ../tools/admin/awsls { };
awsrm = callPackage ../tools/admin/awsrm { };
awstats = callPackage ../tools/system/awstats { };
awsweeper = callPackage ../tools/admin/awsweeper { };