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