depot/third_party/nixpkgs/pkgs/by-name/ek/eksctl/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

57 lines
1.2 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
installShellFiles,
}:
buildGoModule rec {
pname = "eksctl";
version = "0.203.0";
src = fetchFromGitHub {
owner = "weaveworks";
repo = pname;
rev = version;
hash = "sha256-hBHWj1Brn4qbtOLZjxlr6tBuipItCFwbL9bm2wlfL80=";
};
vendorHash = "sha256-IFi9FhsiWWg9joPAGnEnZfq4PzBjR6bJ5MWvFIPyfJo=";
doCheck = false;
subPackages = [ "cmd/eksctl" ];
tags = [
"netgo"
"release"
];
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"
];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion --cmd eksctl \
--bash <($out/bin/eksctl completion bash) \
--fish <($out/bin/eksctl completion fish) \
--zsh <($out/bin/eksctl completion zsh)
'';
meta = with lib; {
description = "CLI for Amazon EKS";
homepage = "https://github.com/weaveworks/eksctl";
changelog = "https://github.com/eksctl-io/eksctl/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [
xrelkd
Chili-Man
];
mainProgram = "eksctl";
};
}