2020-07-18 16:06:22 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "eksctl";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "0.95.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaveworks";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-WAu2ghQAih+f1PdfflsroUOAV5Cs+hvECOyw34DRugU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
vendorSha256 = "sha256-zedhE9WWCktqYig+bI4v9bQhzSW8laClgTI2Gsrz+FM=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/eksctl" ];
|
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
tags = [ "netgo" "release" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-08 23:34:03 +00:00
|
|
|
ldflags = [
|
2021-08-25 08:27:29 +00:00
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/weaveworks/eksctl/pkg/version.gitCommit=${src.rev}"
|
|
|
|
"-X github.com/weaveworks/eksctl/pkg/version.buildDate=19700101-00:00:00"
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
postInstall = ''
|
2022-04-15 01:41:22 +00:00
|
|
|
installShellCompletion --cmd eksctl \
|
|
|
|
--bash <($out/bin/eksctl completion bash) \
|
|
|
|
--fish <($out/bin/eksctl completion fish) \
|
|
|
|
--zsh <($out/bin/eksctl completion zsh)
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A CLI for Amazon EKS";
|
|
|
|
homepage = "https://github.com/weaveworks/eksctl";
|
|
|
|
license = licenses.asl20;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ xrelkd Chili-Man ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|