2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "eksctl";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "0.21.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaveworks";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "0pfjv5m1fly7n9hmxy8bnpblfh5rzbjkiav3dczy4hkmq226gjsa";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
vendorSha256 = "09c3a5g27aqmy4ml42c6zwzrv8yas7i04w3j9jbvp90npwvc62cz";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/eksctl" ];
|
|
|
|
|
|
|
|
buildFlags = [ "-tags netgo" "-tags release" ];
|
|
|
|
|
2020-05-03 17:38:23 +00:00
|
|
|
postInstall = ''
|
2020-04-24 23:36:52 +00: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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|