Merge pull request #92133 from r-ryantm/auto-update/eksctl
eksctl: 0.21.0 -> 0.22.0
This commit is contained in:
commit
98d49f25a5
1 changed files with 12 additions and 8 deletions
|
@ -1,27 +1,31 @@
|
|||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "eksctl";
|
||||
version = "0.21.0";
|
||||
version = "0.22.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "weaveworks";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0pfjv5m1fly7n9hmxy8bnpblfh5rzbjkiav3dczy4hkmq226gjsa";
|
||||
sha256 = "1l7wcx89d7nil5lbr4x2w04lwranz0z83y892v290wv2l0xnmshj";
|
||||
};
|
||||
|
||||
vendorSha256 = "09c3a5g27aqmy4ml42c6zwzrv8yas7i04w3j9jbvp90npwvc62cz";
|
||||
vendorSha256 = "0fy9m72iciz5pjf2b3323brgi15w6a9fg1m1srpaiay3md87gagg";
|
||||
|
||||
subPackages = [ "cmd/eksctl" ];
|
||||
|
||||
buildFlags = [ "-tags netgo" "-tags release" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p "$out/share/"{bash-completion/completions,zsh/site-functions}
|
||||
buildFlagsArray = [ "-ldflags=-s -w -X github.com/weaveworks/eksctl/pkg/version.gitCommit=${src.rev} -X github.com/weaveworks/eksctl/pkg/version.buildDate=19700101-00:00:00" ];
|
||||
|
||||
$out/bin/eksctl completion bash > "$out/share/bash-completion/completions/eksctl"
|
||||
$out/bin/eksctl completion zsh > "$out/share/zsh/site-functions/_eksctl"
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
for shell in bash fish zsh; do
|
||||
$out/bin/eksctl completion $shell > eksctl.$shell
|
||||
installShellCompletion eksctl.$shell
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue