1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
7 src = fetchFromGitHub {
9 owner = "kubernetes-sigs";
11 hash = "sha256-DJTsyGEQA36MSmW5eWYTV1Tk6JOBIVJrEARA/x70S0U=";
15 # fix kernel module path used by kind
16 ./kernel-module-path.patch
19 vendorHash = "sha256-J/sJd2LLMBr53Z3sGrWgnWA8Ry+XqqfCEObqFyUD96g=";
21 nativeBuildInputs = [ installShellFiles ];
23 subPackages = [ "." ];
27 ldflags = [ "-s" "-w" ];
32 installShellCompletion --cmd kind \
33 --bash <($out/bin/kind completion bash) \
34 --fish <($out/bin/kind completion fish) \
35 --zsh <($out/bin/kind completion zsh)
39 description = "Kubernetes IN Docker - local clusters for testing Kubernetes";
40 homepage = "https://github.com/kubernetes-sigs/kind";
41 maintainers = with maintainers; [ offline rawkode ];
42 license = licenses.asl20;