depot/third_party/nixpkgs/pkgs/development/tools/kind/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
914 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub, installShellFiles }:
with stdenv.lib;
buildGoPackage rec {
pname = "kind";
version = "0.7.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "kubernetes-sigs";
repo = "kind";
sha256 = "0hvb0rbi1m0d1flk15l3wws96kmmjhsy6islkhy5h7jalc4k0nx4";
};
goDeps = ./deps.nix;
goPackagePath = "sigs.k8s.io/kind";
subPackages = [ "." ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
$bin/bin/kind completion bash > kind.bash
$bin/bin/kind completion zsh > kind.zsh
installShellCompletion kind.{bash,zsh}
'';
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;
};
}