mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
36 lines
926 B
Nix
36 lines
926 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "eksctl";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "weaveworks";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1xinkr9xnbfbr58ci7hprabqv0p292x016knbb7fqxzb8043f9lh";
|
|
};
|
|
|
|
modSha256 = "1y0pkd588wsqhqywlv1yd5mlr4limybfpdj2g3pbxw09hv18ysa4";
|
|
|
|
subPackages = [ "cmd/eksctl" ];
|
|
|
|
buildFlags = [ "-tags netgo" "-tags release" ];
|
|
|
|
postInstall =
|
|
''
|
|
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"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|