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

27 lines
721 B
Nix
Raw Normal View History

2019-06-01 12:28:53 -07:00
{ buildGoPackage, fetchFromGitHub, lib }:
2018-01-09 08:18:25 -08:00
buildGoPackage rec {
2019-06-01 12:28:53 -07:00
pname = "cri-tools";
version = "1.18.0";
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}";
sha256 = "06sxjhjpd893fn945c1s4adri2bf7s50ddvcw5pnwb6qndzfljw6";
2019-06-01 12:30:03 -07:00
};
2018-01-09 08:18:25 -08:00
goPackagePath = "github.com/kubernetes-sigs/cri-tools";
2018-01-09 08:18:25 -08:00
buildPhase = ''
pushd go/src/${goPackagePath}
make all install BINDIR=$bin/bin
'';
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";
2019-06-01 12:30:03 -07:00
license = lib.licenses.asl20;
2020-04-23 15:07:39 -07:00
maintainers = with maintainers; [ ] ++ teams.podman.members;
2019-06-01 12:30:03 -07:00
};
}