My personal project and infrastructure archive
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "eksctl";
|
|
|
|
version = "0.1.38";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "weaveworks";
|
|
|
|
repo = "eksctl";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1nhsy4d1a1vh7g2ibcxnzgxnldfyh51hiq4v4vy123487b6ndqd0";
|
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/weaveworks/eksctl";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/eksctl" ];
|
|
|
|
|
|
|
|
buildFlags =
|
|
|
|
''
|
|
|
|
-ldflags=-s
|
|
|
|
-ldflags=-w
|
|
|
|
-tags netgo
|
|
|
|
-tags release
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mkdir -p "$bin/share/"{bash-completion/completions,zsh/site-functions}
|
|
|
|
$bin/bin/eksctl completion bash > "$bin/share/bash-completion/completions/eksctl"
|
|
|
|
$bin/bin/eksctl completion zsh > "$bin/share/zsh/site-functions/_eksctl"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A CLI for Amazon EKS";
|
|
|
|
homepage = "https://github.com/weaveworks/eksctl";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ xrelkd ];
|
|
|
|
};
|
|
|
|
}
|