nixpkgs/pkgs/applications/networking/cluster/cni/plugins.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.2 KiB
Nix
Raw Normal View History

2020-05-19 00:40:59 +00:00
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
2020-05-14 07:36:00 +00:00
buildGoModule rec {
pname = "cni-plugins";
version = "1.1.1";
src = fetchFromGitHub {
owner = "containernetworking";
repo = "plugins";
rev = "v${version}";
sha256 = "sha256-I9OmTO5obTwAj4hkecUfmRYR4Q3rdllMfbpESv66eEQ=";
};
2020-05-14 07:36:00 +00:00
vendorSha256 = null;
doCheck = false;
ldflags = [
"-X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=v${version}"
];
2019-06-21 07:44:38 +00:00
subPackages = [
"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"
"plugins/meta/bandwidth"
"plugins/meta/firewall"
"plugins/meta/portmap"
"plugins/meta/sbr"
"plugins/meta/tuning"
"plugins/meta/vrf"
2019-06-21 07:44:38 +00:00
];
passthru.tests = { inherit (nixosTests) cri-o podman; };
2020-05-19 00:40:59 +00:00
meta = with lib; {
description = "Some standard networking plugins, maintained by the CNI team";
homepage = "https://www.cni.dev/plugins/";
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;
};
}