diff options
author | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2019-06-13 10:53:52 +0800 |
---|---|---|
committer | xrelkd <46590321+xrelkd@users.noreply.github.com> | 2019-06-13 13:05:39 +0800 |
commit | 66ee3ae31f27ef7ed2c6e0a5af511e70f6bbce48 (patch) | |
tree | b8a576014d14ffcffb717e24b6f905a0e33bed9a /pkgs | |
parent | c3311fb38bf6891059827db1dcef88e65b5f88f3 (diff) |
eksctl: init at 0.1.35
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/admin/eksctl/default.nix | 40 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/tools/admin/eksctl/default.nix b/pkgs/tools/admin/eksctl/default.nix new file mode 100644 index 000000000000..e04e49c62e74 --- /dev/null +++ b/pkgs/tools/admin/eksctl/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 93b4a3fca9d6..1a40e630ffdf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { }; |