2019-06-01 19:28:53 +00:00
|
|
|
{ buildGoPackage, fetchFromGitHub, lib }:
|
2018-01-09 16:18:25 +00:00
|
|
|
|
2019-08-14 07:13:54 +00:00
|
|
|
buildGoPackage rec {
|
2019-06-01 19:28:53 +00:00
|
|
|
pname = "cri-tools";
|
2019-12-16 08:48:03 +00:00
|
|
|
version = "1.17.0";
|
2019-06-01 19:30:03 +00:00
|
|
|
src = fetchFromGitHub {
|
2019-08-14 07:13:54 +00:00
|
|
|
owner = "kubernetes-sigs";
|
2019-06-01 19:30:03 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-12-16 08:48:03 +00:00
|
|
|
sha256 = "0h9gry56graif761lmcy91q9fzwvmwb15wcx8245927yfg5j0zgh";
|
2019-06-01 19:30:03 +00:00
|
|
|
};
|
2018-01-09 16:18:25 +00:00
|
|
|
|
2019-08-14 07:13:54 +00:00
|
|
|
goPackagePath = "github.com/kubernetes-sigs/cri-tools";
|
2018-01-09 16:18:25 +00:00
|
|
|
|
2019-08-14 07:13:54 +00:00
|
|
|
buildPhase = ''
|
|
|
|
pushd go/src/${goPackagePath}
|
2019-09-19 12:53:28 +00:00
|
|
|
make all install BINDIR=$bin/bin
|
2019-08-14 07:13:54 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
license = lib.licenses.asl20;
|
2019-08-14 07:13:54 +00:00
|
|
|
maintainers = with maintainers; [ saschagrunert ];
|
2019-06-01 19:30:03 +00:00
|
|
|
};
|
|
|
|
}
|