3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/cni/plugins.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

2020-05-19 01:40:59 +01:00
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
2020-05-14 08:36:00 +01:00
buildGoModule rec {
pname = "cni-plugins";
version = "0.8.6";
src = fetchFromGitHub {
owner = "containernetworking";
repo = "plugins";
rev = "v${version}";
sha256 = "0f1cqxjf26sy1c4aw6y7pyd9lrz0vknby4q5j6xj77a1pab9073m";
};
2020-05-14 08:36:00 +01:00
vendorSha256 = null;
buildFlagsArray = [
2020-05-14 08:36:00 +01:00
"-ldflags=-X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=${version}"
];
2019-06-21 08:44:38 +01:00
subPackages = [
"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"
"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-05-19 01:40:59 +01:00
passthru.tests.podman = nixosTests.podman;
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 08:44:38 +01:00
platforms = platforms.linux;
2020-04-23 23:07:38 +01:00
maintainers = with maintainers; [ cstrahan ] ++ teams.podman.members;
};
}