Unverified Commit 6682fa75 authored by Aaron Jheng's avatar Aaron Jheng
Browse files

kind: 0.20.0 -> 0.22.0

parent f893cc7d
Loading
Loading
Loading
Loading
+18 −16
Original line number Diff line number Diff line
@@ -2,13 +2,13 @@

buildGoModule rec {
  pname = "kind";
  version = "0.20.0";
  version = "0.22.0";

  src = fetchFromGitHub {
    rev = "v${version}";
    owner = "kubernetes-sigs";
    repo = "kind";
    sha256 = "sha256-5yDoxrsnmz8N0Y35juItLtyclTz+pSb75B1P716XPxU=";
    hash = "sha256-DJTsyGEQA36MSmW5eWYTV1Tk6JOBIVJrEARA/x70S0U=";
  };

  patches = [
@@ -18,20 +18,21 @@ buildGoModule rec {

  vendorHash = "sha256-J/sJd2LLMBr53Z3sGrWgnWA8Ry+XqqfCEObqFyUD96g=";

  nativeBuildInputs = [ installShellFiles ];

  subPackages = [ "." ];

  CGO_ENABLED = 0;
  GOFLAGS = [ "-trimpath" ];
  ldflags = [ "-w" ];

  doCheck = false;
  ldflags = [ "-s" "-w" ];

  subPackages = [ "." ];
  doCheck = false;

  nativeBuildInputs = [ installShellFiles ];
  postInstall = ''
    for shell in bash fish zsh; do
      $out/bin/kind completion $shell > kind.$shell
      installShellCompletion kind.$shell
    done
    installShellCompletion --cmd kind \
      --bash <($out/bin/kind completion bash) \
      --fish <($out/bin/kind completion fish) \
      --zsh <($out/bin/kind completion zsh)
  '';

  meta = with lib; {
@@ -39,5 +40,6 @@ buildGoModule rec {
    homepage = "https://github.com/kubernetes-sigs/kind";
    maintainers = with maintainers; [ offline rawkode ];
    license = licenses.asl20;
    mainProgram = "kind";
  };
}