Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / virtualization / ecs-agent / default.nix
blob8a0161476863ca7ac6cfef70b5ec8711dbf5ec27
1 { lib, fetchFromGitHub, buildGoModule }:
3 buildGoModule rec {
4   pname = "amazon-ecs-agent";
5   version = "1.78.1";
7   src = fetchFromGitHub {
8     rev = "v${version}";
9     owner = "aws";
10     repo = pname;
11     hash = "sha256-8/hHv5veTQXNg8c5oew+5FWLAQkytTD2+Gdb30sY9lo=";
12   };
14   vendorHash = null;
16   modRoot = "./agent";
18   excludedPackages = [ "./version/gen" ];
20   ldflags = [ "-s" "-w" ];
22   meta = with lib; {
23     description = "The agent that runs on AWS EC2 container instances and starts containers on behalf of Amazon ECS";
24     homepage = "https://github.com/aws/amazon-ecs-agent";
25     changelog = "https://github.com/aws/amazon-ecs-agent/raw/v${version}/CHANGELOG.md";
26     license = licenses.asl20;
27     platforms = platforms.linux;
28     maintainers = with maintainers; [ copumpkin ];
29     mainProgram = "agent";
30   };