mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 14:47:06 +00:00
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "cni-plugins";
|
|
version = "0.8.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containernetworking";
|
|
repo = "plugins";
|
|
rev = "v${version}";
|
|
sha256 = "0f1cqxjf26sy1c4aw6y7pyd9lrz0vknby4q5j6xj77a1pab9073m";
|
|
};
|
|
|
|
vendorSha256 = null;
|
|
|
|
buildFlagsArray = [
|
|
"-ldflags=-X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=${version}"
|
|
];
|
|
|
|
subPackages = [
|
|
"plugins/ipam/dhcp"
|
|
"plugins/ipam/host-local"
|
|
"plugins/ipam/static"
|
|
"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"
|
|
];
|
|
|
|
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;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ cstrahan ] ++ teams.podman.members;
|
|
};
|
|
}
|