2022-11-21 17:40:18 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "amazon-ecs-agent";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.78.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
owner = "aws";
|
|
|
|
repo = pname;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-8/hHv5veTQXNg8c5oew+5FWLAQkytTD2+Gdb30sY9lo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
modRoot = "./agent";
|
|
|
|
|
|
|
|
excludedPackages = [ "./version/gen" ];
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "The agent that runs on AWS EC2 container instances and starts containers on behalf of Amazon ECS";
|
2022-11-21 17:40:18 +00:00
|
|
|
homepage = "https://github.com/aws/amazon-ecs-agent";
|
|
|
|
changelog = "https://github.com/aws/amazon-ecs-agent/raw/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ copumpkin ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "agent";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|