2020-05-19 02:40:59 +02:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
2020-04-21 01:29:29 +02:00
|
|
|
|
2020-05-14 09:36:00 +02:00
|
|
|
buildGoModule rec {
|
2019-06-01 09:02:41 +02:00
|
|
|
pname = "cni-plugins";
|
2020-08-26 23:47:59 +02:00
|
|
|
version = "0.8.7";
|
2018-03-17 06:35:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containernetworking";
|
|
|
|
repo = "plugins";
|
|
|
|
rev = "v${version}";
|
2020-08-26 23:47:59 +02:00
|
|
|
sha256 = "1sjk0cghldygx1jgx4bqv83qky7shk64n6xkkfxl92f12wyvsq9j";
|
2018-03-17 06:35:35 +01:00
|
|
|
};
|
|
|
|
|
2020-05-14 09:36:00 +02:00
|
|
|
vendorSha256 = null;
|
2020-04-21 01:29:29 +02:00
|
|
|
|
2020-08-04 02:26:27 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-05-14 02:19:19 +02:00
|
|
|
buildFlagsArray = [
|
2020-08-26 23:47:59 +02:00
|
|
|
"-ldflags=-X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=v${version}"
|
2020-05-14 02:19:19 +02:00
|
|
|
];
|
|
|
|
|
2019-06-21 09:44:38 +02:00
|
|
|
subPackages = [
|
2020-04-21 01:29:29 +02:00
|
|
|
"plugins/ipam/dhcp"
|
|
|
|
"plugins/ipam/host-local"
|
|
|
|
"plugins/ipam/static"
|
2019-06-21 09:44:38 +02: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 01:29:29 +02:00
|
|
|
"plugins/meta/bandwidth"
|
|
|
|
"plugins/meta/firewall"
|
|
|
|
"plugins/meta/flannel"
|
|
|
|
"plugins/meta/portmap"
|
|
|
|
"plugins/meta/sbr"
|
|
|
|
"plugins/meta/tuning"
|
2019-06-21 09:44:38 +02:00
|
|
|
];
|
2020-04-21 01:29:29 +02:00
|
|
|
|
2020-08-24 00:42:49 +02:00
|
|
|
passthru.tests = { inherit (nixosTests) cri-o podman; };
|
2020-05-19 02:40:59 +02:00
|
|
|
|
2018-03-17 06:35:35 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Some standard networking plugins, maintained by the CNI team";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/containernetworking/plugins";
|
2018-03-17 06:35:35 +01:00
|
|
|
license = licenses.asl20;
|
2019-06-21 09:44:38 +02:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 00:07:38 +02:00
|
|
|
maintainers = with maintainers; [ cstrahan ] ++ teams.podman.members;
|
2018-03-17 06:35:35 +01:00
|
|
|
};
|
|
|
|
}
|