2019-07-09 01:03:22 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-06-13 04:53:52 +02:00
|
|
|
|
2019-07-09 01:03:22 +02:00
|
|
|
buildGoModule rec {
|
2019-06-13 04:53:52 +02:00
|
|
|
pname = "eksctl";
|
2019-09-06 18:29:26 +02:00
|
|
|
version = "0.5.2";
|
2019-06-13 04:53:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaveworks";
|
2019-07-12 04:48:08 +02:00
|
|
|
repo = pname;
|
2019-06-13 04:53:52 +02:00
|
|
|
rev = version;
|
2019-09-06 18:29:26 +02:00
|
|
|
sha256 = "1aw69kcb2wx832hdfbx0944wwvdn5jbpr164pv6z0bxqzc0yi2kv";
|
2019-06-13 04:53:52 +02:00
|
|
|
};
|
|
|
|
|
2019-09-06 08:53:20 +02:00
|
|
|
modSha256 = "0c8hbb73w1922qh895lsk0m9i7lk9kzrvxjc4crwsfpn9pv0qgd3";
|
2019-06-13 04:53:52 +02:00
|
|
|
|
|
|
|
subPackages = [ "cmd/eksctl" ];
|
|
|
|
|
2019-08-06 05:07:45 +02:00
|
|
|
buildFlags = [ "-tags netgo" "-tags release" ];
|
2019-06-13 04:53:52 +02:00
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
2019-07-09 01:03:22 +02: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 04:53:52 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|