eksctl: modernize

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-09-30 18:41:49 -04:00
parent cc4eee3567
commit d689564de6

View File

@@ -4,6 +4,7 @@
buildGoModule,
fetchFromGitHub,
installShellFiles,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
@@ -30,7 +31,6 @@ buildGoModule (finalAttrs: {
ldflags = [
"-s"
"-w"
"-X github.com/weaveworks/eksctl/pkg/version.gitCommit=${finalAttrs.src.rev}"
"-X github.com/weaveworks/eksctl/pkg/version.buildDate=19700101-00:00:00"
];
@@ -44,6 +44,10 @@ buildGoModule (finalAttrs: {
--zsh <($out/bin/eksctl completion zsh)
'';
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "version";
doInstallCheck = true;
meta = {
description = "CLI for Amazon EKS";
homepage = "https://github.com/eksctl-io/eksctl";