36 lines
927 B
Nix
36 lines
927 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "eksctl";
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "weaveworks";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "067q2cj4iwhiijv6nd9crjfncn67829f4d2ls07lwdcsvgi1cyfi";
|
|
};
|
|
|
|
modSha256 = "187jv78asav97cbvn7336ycflqa0c2alvkhvlyv2mp5f3crygagy";
|
|
|
|
subPackages = [ "cmd/eksctl" ];
|
|
|
|
buildFlags = [ "-tags netgo" "-tags release" ];
|
|
|
|
postInstall =
|
|
''
|
|
mkdir -p "$out/share/"{bash-completion/completions,zsh/site-functions}
|
|
|
|
$out/bin/eksctl completion bash > "$out/share/bash-completion/completions/eksctl"
|
|
$out/bin/eksctl completion zsh > "$out/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 ];
|
|
};
|
|
}
|