mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
bc9bb977d2
Signed-off-by: Austin Seipp <aseipp@pobox.com>
38 lines
933 B
Nix
38 lines
933 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
with lib;
|
|
|
|
buildGoModule rec {
|
|
pname = "kind";
|
|
version = "0.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "kubernetes-sigs";
|
|
repo = "kind";
|
|
sha256 = "020s1fr92lv9yiy5kbnrfb8n0lpslriwyh5z31aym3x44qpc6jaj";
|
|
};
|
|
|
|
vendorSha256 = "08cjvhk587f3aar4drn0hq9q1zlsnl4p7by4j38jzb4r8ix5s98y";
|
|
|
|
doCheck = false;
|
|
|
|
subPackages = [ "." ];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
postInstall = ''
|
|
for shell in bash fish zsh; do
|
|
$out/bin/kind completion $shell > kind.$shell
|
|
installShellCompletion kind.$shell
|
|
done
|
|
'';
|
|
|
|
meta = {
|
|
description = "Kubernetes IN Docker - local clusters for testing Kubernetes";
|
|
homepage = "https://github.com/kubernetes-sigs/kind";
|
|
maintainers = with maintainers; [ offline rawkode ];
|
|
license = lib.licenses.asl20;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|