Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2
3buildGoModule rec {
4 pname = "eksctl";
5 version = "0.144.0";
6
7 src = fetchFromGitHub {
8 owner = "weaveworks";
9 repo = pname;
10 rev = version;
11 hash = "sha256-ZbapTT9tZFz+TGefElU3oHhLc6mWqxd4L9HxcryFuHw=";
12 };
13
14 vendorHash = "sha256-4ORKH9jnrow3gbV6zyiWb93yJzJVfIe/O+wST5+DmFQ=";
15
16 doCheck = false;
17
18 subPackages = [ "cmd/eksctl" ];
19
20 tags = [ "netgo" "release" ];
21
22 ldflags = [
23 "-s"
24 "-w"
25 "-X github.com/weaveworks/eksctl/pkg/version.gitCommit=${src.rev}"
26 "-X github.com/weaveworks/eksctl/pkg/version.buildDate=19700101-00:00:00"
27 ];
28
29 nativeBuildInputs = [ installShellFiles ];
30
31 postInstall = ''
32 installShellCompletion --cmd eksctl \
33 --bash <($out/bin/eksctl completion bash) \
34 --fish <($out/bin/eksctl completion fish) \
35 --zsh <($out/bin/eksctl completion zsh)
36 '';
37
38 meta = with lib; {
39 description = "A CLI for Amazon EKS";
40 homepage = "https://github.com/weaveworks/eksctl";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ xrelkd Chili-Man ];
43 };
44}