eksctl: init at 0.1.35

This commit is contained in:
xrelkd 2019-06-13 10:53:52 +08:00
parent c3311fb38b
commit 66ee3ae31f
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "eksctl";
version = "0.1.35";
src = fetchFromGitHub {
owner = "weaveworks";
repo = "eksctl";
rev = version;
sha256 = "0b3s7vh85k68wawmsdp96q9l4yhikwhyjn1c7cwxys0aia4i8wkv";
};
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 ];
};
}

View file

@ -1465,6 +1465,8 @@ in
eggdrop = callPackage ../tools/networking/eggdrop { };
eksctl = callPackage ../tools/admin/eksctl { };
elementary-xfce-icon-theme = callPackage ../data/icons/elementary-xfce-icon-theme { };
ell = callPackage ../os-specific/linux/ell { };