2020-04-21 00:29:29 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoPackage }:
|
|
|
|
|
2019-06-21 08:44:38 +01:00
|
|
|
buildGoPackage rec {
|
2019-06-01 08:02:41 +01:00
|
|
|
pname = "cni-plugins";
|
2020-04-21 00:29:29 +01:00
|
|
|
version = "0.8.5";
|
2018-03-17 05:35:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containernetworking";
|
|
|
|
repo = "plugins";
|
|
|
|
rev = "v${version}";
|
2020-04-21 00:29:29 +01:00
|
|
|
sha256 = "17c8pvpn0dpda6ah7irr9hhd8sk7mnm32zv72nc5pxg1xvfpaipi";
|
2018-03-17 05:35:35 +00:00
|
|
|
};
|
|
|
|
|
2019-06-21 08:44:38 +01:00
|
|
|
goPackagePath = "github.com/containernetworking/plugins";
|
2020-04-21 00:29:29 +01:00
|
|
|
|
2019-06-21 08:44:38 +01:00
|
|
|
subPackages = [
|
2020-04-21 00:29:29 +01:00
|
|
|
"plugins/ipam/dhcp"
|
|
|
|
"plugins/ipam/host-local"
|
|
|
|
"plugins/ipam/static"
|
2019-06-21 08:44:38 +01:00
|
|
|
"plugins/main/bridge"
|
|
|
|
"plugins/main/host-device"
|
|
|
|
"plugins/main/ipvlan"
|
|
|
|
"plugins/main/loopback"
|
|
|
|
"plugins/main/macvlan"
|
|
|
|
"plugins/main/ptp"
|
|
|
|
"plugins/main/vlan"
|
2020-04-21 00:29:29 +01:00
|
|
|
"plugins/meta/bandwidth"
|
|
|
|
"plugins/meta/firewall"
|
|
|
|
"plugins/meta/flannel"
|
|
|
|
"plugins/meta/portmap"
|
|
|
|
"plugins/meta/sbr"
|
|
|
|
"plugins/meta/tuning"
|
2019-06-21 08:44:38 +01:00
|
|
|
];
|
2020-04-21 00:29:29 +01:00
|
|
|
|
2018-03-17 05:35:35 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Some standard networking plugins, maintained by the CNI team";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/containernetworking/plugins";
|
2018-03-17 05:35:35 +00:00
|
|
|
license = licenses.asl20;
|
2019-06-21 08:44:38 +01:00
|
|
|
platforms = platforms.linux;
|
2020-04-23 23:07:38 +01:00
|
|
|
maintainers = with maintainers; [ cstrahan ] ++ teams.podman.members;
|
2018-03-17 05:35:35 +00:00
|
|
|
};
|
|
|
|
}
|