2022-07-14 12:49:19 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "awsrm";
|
|
|
|
version = "0.4.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jckuester";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-KAujqYDtZbCBRO5WK9b9mxqe84ZllbBoO2tLnDH/bdo=";
|
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-CldEAeiFH7gdFNLbIe/oTzs8Pdnde7EqLr7vP7SMDGU=";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Remove command for AWS resources";
|
2022-07-14 12:49:19 +00:00
|
|
|
homepage = "https://github.com/jckuester/awsrm";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.markus1189 ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "awsrm";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
}
|