2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "eksctl";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "0.151.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaveworks";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-XZo4g66r/pvIHT5XqvQYcwPzrYUGoQKNE2h5skhPzU4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
vendorHash = "sha256-p+zCwVKUP6igQLR5GycsmF2oNyDfP/EEgg89kBDS1VU=";
|
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 ];
|
2023-08-22 20:05:09 +00:00
|
|
|
mainProgram = "eksctl";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|