{ lib , buildGoModule , fetchFromGitHub , installShellFiles }: buildGoModule rec { pname = "cri-tools"; version = "1.20.0"; src = fetchFromGitHub { owner = "kubernetes-sigs"; repo = pname; rev = "v${version}"; sha256 = "sha256-fU3g0m2drUsa2Jyz+QYXi4xWTOLINGsDw3dKcesAkkE="; }; vendorSha256 = null; doCheck = false; nativeBuildInputs = [ installShellFiles ]; buildPhase = '' make binaries VERSION=${version} ''; installPhase = '' make install BINDIR=$out/bin for shell in bash fish zsh; do $out/bin/crictl completion $shell > crictl.$shell installShellCompletion crictl.$shell done ''; meta = with lib; { description = "CLI and validation tools for Kubelet Container Runtime Interface (CRI)"; homepage = "https://github.com/kubernetes-sigs/cri-tools"; license = licenses.asl20; maintainers = with maintainers; [ ] ++ teams.podman.members; }; }