2020-03-27 07:33:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-06-13 02:53:52 +00:00
|
|
|
|
2019-07-08 23:03:22 +00:00
|
|
|
buildGoModule rec {
|
2019-06-13 02:53:52 +00:00
|
|
|
pname = "eksctl";
|
2020-05-12 15:34:19 +00:00
|
|
|
version = "0.19.0";
|
2019-06-13 02:53:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaveworks";
|
2019-07-12 02:48:08 +00:00
|
|
|
repo = pname;
|
2019-06-13 02:53:52 +00:00
|
|
|
rev = version;
|
2020-05-12 15:34:19 +00:00
|
|
|
sha256 = "0xlr7hsncih4nzydi6sphp7j7k82cbhmi7jb0sd954i8kzl3sc1q";
|
2019-06-13 02:53:52 +00:00
|
|
|
};
|
|
|
|
|
2020-05-01 01:59:00 +00:00
|
|
|
vendorSha256 = "14d9hl01z7ixp1wa8kp1zs0z1p3pvz6hkp49z582nqllpb2xjmkx";
|
2019-06-13 02:53:52 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/eksctl" ];
|
|
|
|
|
2019-08-06 03:07:45 +00:00
|
|
|
buildFlags = [ "-tags netgo" "-tags release" ];
|
2019-06-13 02:53:52 +00:00
|
|
|
|
2020-04-28 02:38:57 +00:00
|
|
|
postInstall = ''
|
2019-07-08 23:03:22 +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"
|
2019-06-13 02:53:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-03-27 07:33:21 +00:00
|
|
|
meta = with lib; {
|
2019-06-13 02:53:52 +00:00
|
|
|
description = "A CLI for Amazon EKS";
|
|
|
|
homepage = "https://github.com/weaveworks/eksctl";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
|
|
};
|
|
|
|
}
|