diff options
Diffstat (limited to 'pkgs/tools/admin')
-rw-r--r-- | pkgs/tools/admin/eksctl/default.nix | 40 |
1 files changed, 40 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 ]; + }; +} |