nixpkgs/pkgs/development/tools/kind/default.nix
Austin Seipp bc9bb977d2
kind: 0.10.0 -> 0.11.0
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2021-05-21 04:31:38 -05:00

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;
};
}