2019-06-21 07:44:38 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, go, removeReferencesTo, buildGoPackage }:
|
|
|
|
buildGoPackage rec {
|
2019-06-01 07:02:41 +00:00
|
|
|
pname = "cni-plugins";
|
2019-11-11 15:13:16 +00:00
|
|
|
version = "0.8.3";
|
2018-03-17 05:35:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containernetworking";
|
|
|
|
repo = "plugins";
|
|
|
|
rev = "v${version}";
|
2019-11-11 15:13:16 +00:00
|
|
|
sha256 = "0dc4fs08x4x518yhgvq3drjvansnc0cb8rm4h5wiw7k3whjii3cd";
|
2018-03-17 05:35:35 +00:00
|
|
|
};
|
|
|
|
|
2019-06-21 07:44:38 +00:00
|
|
|
goDeps = ./plugins-deps.nix;
|
|
|
|
goPackagePath = "github.com/containernetworking/plugins";
|
|
|
|
subPackages = [
|
|
|
|
"plugins/meta/bandwidth"
|
|
|
|
"plugins/meta/firewall"
|
|
|
|
"plugins/meta/flannel"
|
|
|
|
"plugins/meta/portmap"
|
|
|
|
"plugins/meta/sbr"
|
|
|
|
"plugins/meta/tuning"
|
|
|
|
"plugins/main/bridge"
|
|
|
|
"plugins/main/host-device"
|
|
|
|
"plugins/main/ipvlan"
|
|
|
|
"plugins/main/loopback"
|
|
|
|
"plugins/main/macvlan"
|
|
|
|
"plugins/main/ptp"
|
|
|
|
"plugins/main/vlan"
|
|
|
|
"plugins/ipam/dhcp"
|
|
|
|
"plugins/ipam/host-local"
|
|
|
|
"plugins/ipam/static"
|
|
|
|
];
|
2018-03-17 05:35:35 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Some standard networking plugins, maintained by the CNI team";
|
|
|
|
homepage = https://github.com/containernetworking/plugins;
|
|
|
|
license = licenses.asl20;
|
2019-06-21 07:44:38 +00:00
|
|
|
platforms = platforms.linux;
|
2019-11-11 15:13:16 +00:00
|
|
|
maintainers = with maintainers; [ cstrahan saschagrunert ];
|
2018-03-17 05:35:35 +00:00
|
|
|
};
|
|
|
|
}
|