blob: f86bc4898371a4b08a71d0180af3c5319884e229 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
with stdenv.lib;
buildGoPackage rec {
pname = "kind";
version = "0.7.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "kubernetes-sigs";
repo = "kind";
sha256 = "0hvb0rbi1m0d1flk15l3wws96kmmjhsy6islkhy5h7jalc4k0nx4";
};
goDeps = ./deps.nix;
goPackagePath = "sigs.k8s.io/kind";
subPackages = [ "." ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
$bin/bin/kind completion bash > kind.bash
$bin/bin/kind completion zsh > kind.zsh
installShellCompletion kind.{bash,zsh}
'';
meta = {
description = "Kubernetes IN Docker - local clusters for testing Kubernetes";
homepage = "https://github.com/kubernetes-sigs/kind";
maintainers = with maintainers; [ offline rawkode ];
license = stdenv.lib.licenses.asl20;
platforms = platforms.unix;
};
}
|