Merge pull request #63041 from xrelkd/add/eksctl

eksctl: init at 0.1.35
This commit is contained in:
Mario Rodas 2019-06-15 08:13:04 -05:00 committed by GitHub
commit 1cafe467b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 { };