2019-07-09 02:03:22 +03:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-06-13 05:53:52 +03:00
|
|
|
|
2019-07-09 02:03:22 +03:00
|
|
|
buildGoModule rec {
|
2019-06-13 05:53:52 +03:00
|
|
|
pname = "eksctl";
|
2019-07-12 05:48:08 +03:00
|
|
|
version = "0.1.40";
|
2019-06-13 05:53:52 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaveworks";
|
2019-07-12 05:48:08 +03:00
|
|
|
repo = pname;
|
2019-06-13 05:53:52 +03:00
|
|
|
rev = version;
|
2019-07-12 05:48:08 +03:00
|
|
|
sha256 = "08r4p2brs9gxxqnyv44zi1agv5q3ss8292201z9vh5ji9fmck2vb";
|
2019-06-13 05:53:52 +03:00
|
|
|
};
|
|
|
|
|
2019-07-09 02:03:22 +03:00
|
|
|
modSha256 = "1lmkwx0r19c2wg9nm85k92nlxjzr8q917jf3f333yf3csfyiix2f";
|
2019-06-13 05:53:52 +03:00
|
|
|
|
|
|
|
subPackages = [ "cmd/eksctl" ];
|
|
|
|
|
|
|
|
buildFlags =
|
|
|
|
''
|
|
|
|
-tags netgo
|
|
|
|
-tags release
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
2019-07-09 02:03:22 +03:00
|
|
|
mkdir -p "$out/share/"{bash-completion/completions,zsh/site-functions}
|
|
|
|
|
|
|
|
$out/bin/eksctl completion bash > "$out/share/bash-completion/completions/eksctl"
|
|
|
|
$out/bin/eksctl completion zsh > "$out/share/zsh/site-functions/_eksctl"
|
2019-06-13 05:53:52 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A CLI for Amazon EKS";
|
|
|
|
homepage = "https://github.com/weaveworks/eksctl";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
|
|
};
|
|
|
|
}
|