1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
7 src = fetchFromGitHub {
9 owner = "kubernetes-sigs";
11 hash = "sha256-vndN3ssiaaJdpPZQ0vBdqr4xPuY2bAHAd+SJamNrX6Q=";
15 # fix kernel module path used by kind
16 ./kernel-module-path.patch
19 vendorHash = "sha256-VfqNM48M39R2LaUHirKmSXCdvBXUHu09oMzDPmAQC4o=";
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;