mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
eksctl: modernize
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user