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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.0 KiB
Nix
Raw Normal View History

2020-04-28 12:44:22 +00:00
{ lib
2020-05-14 07:36:04 +00:00
, buildGoModule
2020-04-28 12:44:22 +00:00
, fetchFromGitHub
, installShellFiles
}:
2018-01-09 16:18:25 +00:00
2020-05-14 07:36:04 +00:00
buildGoModule rec {
2019-06-01 19:28:53 +00:00
pname = "cri-tools";
2023-04-20 22:17:15 +00:00
version = "1.27.0";
2020-04-28 12:44:22 +00:00
2019-06-01 19:30:03 +00:00
src = fetchFromGitHub {
owner = "kubernetes-sigs";
2019-06-01 19:30:03 +00:00
repo = pname;
rev = "v${version}";
2023-04-20 22:17:15 +00:00
sha256 = "sha256-5fBQkujOmxdiLkNuHL8y4QmuKQVGJuFlC7bRu+xElyk=";
2019-06-01 19:30:03 +00:00
};
2018-01-09 16:18:25 +00:00
2023-04-20 22:17:15 +00:00
vendorHash = null;
2018-01-09 16:18:25 +00:00
doCheck = false;
2020-04-28 12:44:22 +00:00
nativeBuildInputs = [ installShellFiles ];
buildPhase = ''
2021-03-31 06:52:08 +00:00
runHook preBuild
2020-04-28 12:44:22 +00:00
make binaries VERSION=${version}
2021-03-31 06:52:08 +00:00
runHook postBuild
2020-04-28 12:44:22 +00:00
'';
installPhase = ''
2021-03-31 06:52:08 +00:00
runHook preInstall
2020-04-28 12:44:22 +00:00
make install BINDIR=$out/bin
for shell in bash fish zsh; do
$out/bin/crictl completion $shell > crictl.$shell
installShellCompletion crictl.$shell
done
2021-03-31 06:52:08 +00:00
runHook postInstall
'';
meta = with lib; {
2019-06-01 19:30:03 +00:00
description = "CLI and validation tools for Kubelet Container Runtime Interface (CRI)";
homepage = "https://github.com/kubernetes-sigs/cri-tools";
2020-04-28 12:44:22 +00:00
license = licenses.asl20;
2020-04-23 22:07:39 +00:00
maintainers = with maintainers; [ ] ++ teams.podman.members;
2019-06-01 19:30:03 +00:00
};
}