depot/third_party/nixpkgs/pkgs/tools/virtualization/cri-tools/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

43 lines
938 B
Nix

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