mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
36 lines
927 B
Nix
36 lines
927 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "eksctl";
|
|
version = "0.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "weaveworks";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1m4hcj2bi9v3ngjj2x1fifcnb450jrij06vbi3j28slsdwn1bcc8";
|
|
};
|
|
|
|
modSha256 = "1c8qyxzfazgw77rlv3yw2x39ymaq66jjd51im0jl4131a6hzj6fd";
|
|
|
|
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 ];
|
|
};
|
|
}
|