nixpkgs/pkgs/tools/admin/eksctl/default.nix

36 lines
927 B
Nix
Raw Normal View History

2019-07-08 16:03:22 -07:00
{ lib, buildGoModule, fetchFromGitHub }:
2019-06-12 19:53:52 -07:00
2019-07-08 16:03:22 -07:00
buildGoModule rec {
2019-06-12 19:53:52 -07:00
pname = "eksctl";
2019-12-04 18:51:54 -08:00
version = "0.11.0";
2019-06-12 19:53:52 -07:00
src = fetchFromGitHub {
owner = "weaveworks";
2019-07-11 19:48:08 -07:00
repo = pname;
2019-06-12 19:53:52 -07:00
rev = version;
2019-12-04 18:51:54 -08:00
sha256 = "0dh2fa60w5jbxkrn4j4nf6dn4ljcfpl2xf8vx0j49k36dirfp8y3";
2019-06-12 19:53:52 -07:00
};
2019-12-04 18:51:54 -08:00
modSha256 = "04ba3dyfwlf0m6kn7yp7qyp3h2qdwp17y1f9pa79y3c6sd2nadk2";
2019-06-12 19:53:52 -07:00
subPackages = [ "cmd/eksctl" ];
2019-08-05 20:07:45 -07:00
buildFlags = [ "-tags netgo" "-tags release" ];
2019-06-12 19:53:52 -07:00
postInstall =
''
2019-07-08 16:03:22 -07:00
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"
2019-06-12 19:53:52 -07:00
'';
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 ];
};
}