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

27 lines
681 B
Nix
Raw Normal View History

2019-06-01 21:28:53 +02:00
{ buildGoPackage, fetchFromGitHub, lib }:
2018-01-09 17:18:25 +01:00
buildGoPackage rec {
2019-06-01 21:28:53 +02:00
pname = "cri-tools";
version = "1.15.0";
2019-06-01 21:30:03 +02:00
src = fetchFromGitHub {
owner = "kubernetes-sigs";
2019-06-01 21:30:03 +02:00
repo = pname;
rev = "v${version}";
sha256 = "03fhddncwqrdyxz43m3bak9dlrsqzibqqja3p94nic4ydk2hry62";
2019-06-01 21:30:03 +02:00
};
2018-01-09 17:18:25 +01:00
goPackagePath = "github.com/kubernetes-sigs/cri-tools";
2018-01-09 17:18:25 +01:00
buildPhase = ''
pushd go/src/${goPackagePath}
make
'';
meta = with lib; {
2019-06-01 21:30:03 +02:00
description = "CLI and validation tools for Kubelet Container Runtime Interface (CRI)";
homepage = https://github.com/kubernetes-sigs/cri-tools;
license = lib.licenses.asl20;
maintainers = with maintainers; [ saschagrunert ];
2019-06-01 21:30:03 +02:00
};
}