nixpkgs/pkgs/tools/virtualization/cri-tools/default.nix

44 lines
938 B
Nix
Raw Normal View History

2020-04-28 05:44:22 -07:00
{ lib
2020-05-14 00:36:04 -07:00
, buildGoModule
2020-04-28 05:44:22 -07:00
, fetchFromGitHub
, installShellFiles
}:
2018-01-09 08:18:25 -08:00
2020-05-14 00:36:04 -07:00
buildGoModule rec {
2019-06-01 12:28:53 -07:00
pname = "cri-tools";
2021-01-18 05:51:13 -08:00
version = "1.20.0";
2020-04-28 05:44:22 -07:00
2019-06-01 12:30:03 -07:00
src = fetchFromGitHub {
owner = "kubernetes-sigs";
2019-06-01 12:30:03 -07:00
repo = pname;
rev = "v${version}";
2021-01-18 05:51:13 -08:00
sha256 = "sha256-fU3g0m2drUsa2Jyz+QYXi4xWTOLINGsDw3dKcesAkkE=";
2019-06-01 12:30:03 -07:00
};
2018-01-09 08:18:25 -08:00
2020-05-14 00:36:04 -07:00
vendorSha256 = null;
2018-01-09 08:18:25 -08:00
doCheck = false;
2020-04-28 05:44:22 -07:00
nativeBuildInputs = [ installShellFiles ];
buildPhase = ''
2020-04-28 05:44:22 -07:00
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; {
2019-06-01 12:30:03 -07:00
description = "CLI and validation tools for Kubelet Container Runtime Interface (CRI)";
homepage = "https://github.com/kubernetes-sigs/cri-tools";
2020-04-28 05:44:22 -07:00
license = licenses.asl20;
2020-04-23 15:07:39 -07:00
maintainers = with maintainers; [ ] ++ teams.podman.members;
2019-06-01 12:30:03 -07:00
};
}