1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/kind/default.nix
Jon Banafato d0bc05438b kind: 0.8.1 -> 0.9.0
kind has a new bugfix release. [Changelog](https://github.com/kubernetes-sigs/kind/releases/tag/v0.9.0)

This commit also enables fish completions, which were added to kind in
0.8.0.
2020-10-24 12:37:52 -04:00

38 lines
949 B
Nix

{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
with stdenv.lib;
buildGoModule rec {
pname = "kind";
version = "0.9.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "kubernetes-sigs";
repo = "kind";
sha256 = "1kyjmlp1kmr3lwylnya6w392j1qpqgbvcacwpnz3ifyh3pbv32qr";
};
vendorSha256 = "04fmqh6lhvvzpvf1l2xk1r8687k5jx2lb5199rgmjbfnjgsa0q2d";
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 = stdenv.lib.licenses.asl20;
platforms = platforms.unix;
};
}