2022-11-13 15:23:56 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
2017-02-10 05:33:48 +01:00
|
|
|
|
2022-11-13 15:23:56 +01:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "amazon-ecs-agent";
|
2022-11-12 06:10:00 +01:00
|
|
|
version = "1.66.2";
|
2017-02-10 05:33:48 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-11-13 15:23:56 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
owner = "aws";
|
|
|
|
repo = pname;
|
|
|
|
hash = "sha256-mZzDvD+40YiC8cBpLlYd7K1p5UBYpso9OMCDijopuik=";
|
2017-02-10 05:33:48 +01:00
|
|
|
};
|
|
|
|
|
2022-11-13 15:23:56 +01:00
|
|
|
vendorHash = null;
|
|
|
|
|
|
|
|
modRoot = "./agent";
|
|
|
|
|
|
|
|
excludedPackages = [ "./version/gen" ];
|
|
|
|
|
2022-11-12 06:10:00 +01:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-02-10 05:33:48 +01:00
|
|
|
description = "The agent that runs on AWS EC2 container instances and starts containers on behalf of Amazon ECS";
|
2022-11-13 15:23:56 +01: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;
|
2017-02-10 05:33:48 +01:00
|
|
|
maintainers = with maintainers; [ copumpkin ];
|
2022-04-01 21:34:55 +02:00
|
|
|
mainProgram = "agent";
|
2017-02-10 05:33:48 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|