1{ stdenv, fetchurl}:
2
3stdenv.mkDerivation rec {
4 name = "amazon-ecs-cli-${version}";
5 version = "1.12.1";
6
7 src = fetchurl {
8 url = "https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-v${version}";
9 sha256 = "100iv4cchnxl1s02higga5v3hvawi4c7sqva97x34qigr4r7fxwm";
10 };
11
12 unpackPhase = ":";
13
14 installPhase =
15 ''
16 mkdir -p $out/bin
17 cp $src $out/bin/ecs-cli
18 chmod +x $out/bin/ecs-cli
19 ''; # */
20
21 meta = with stdenv.lib; {
22 homepage = https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_CLI.html;
23 description = "The Amazon ECS command line interface";
24 longDescription = "The Amazon Elastic Container Service (Amazon ECS) command line interface (CLI) provides high-level commands to simplify creating, updating, and monitoring clusters and tasks from a local development environment.";
25 license = licenses.asl20;
26 maintainers = with maintainers; [ Scriptkiddi ];
27 platforms = [ "x86_64-linux" ];
28 };
29}
30