Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
installShellFiles,
|
|
testers,
|
|
nix-update-script,
|
|
kind,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "kind";
|
|
version = "0.30.0";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "kubernetes-sigs";
|
|
repo = "kind";
|
|
hash = "sha256-TssyKO5v3xqSDjS3DYIlO7iOx/zzS3E9O88V9R7S5Ac=";
|
|
};
|
|
|
|
patches = [
|
|
# fix kernel module path used by kind
|
|
./kernel-module-path.patch
|
|
];
|
|
|
|
vendorHash = "sha256-tRpylYpEGF6XqtBl7ESYlXKEEAt+Jws4x4VlUVW8SNI=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
env.CGO_ENABLED = 0;
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
installShellCompletion --cmd kind \
|
|
--bash <($out/bin/kind completion bash) \
|
|
--fish <($out/bin/kind completion fish) \
|
|
--zsh <($out/bin/kind completion zsh)
|
|
'';
|
|
|
|
passthru = {
|
|
tests.version = testers.testVersion {
|
|
package = kind;
|
|
};
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Kubernetes IN Docker - local clusters for testing Kubernetes";
|
|
homepage = "https://github.com/kubernetes-sigs/kind";
|
|
maintainers = with maintainers; [
|
|
offline
|
|
rawkode
|
|
];
|
|
license = licenses.asl20;
|
|
mainProgram = "kind";
|
|
};
|
|
}
|