mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
d5d16930f3
Diff: https://github.com/containernetworking/plugins/compare/v1.2.0...v1.3.0 Changelog: https://github.com/containernetworking/plugins/releases/tag/v1.3.0
54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
{ lib, fetchFromGitHub, buildGoModule, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "cni-plugins";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containernetworking";
|
|
repo = "plugins";
|
|
rev = "v${version}";
|
|
hash = "sha256-cbmG9wK3yd79jCiNAKcSSx0COyh6CxR1bgIiCO3i++g=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
doCheck = false;
|
|
|
|
ldflags = [
|
|
"-X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=v${version}"
|
|
];
|
|
|
|
subPackages = [
|
|
"plugins/ipam/dhcp"
|
|
"plugins/ipam/host-local"
|
|
"plugins/ipam/static"
|
|
"plugins/main/bridge"
|
|
"plugins/main/dummy"
|
|
"plugins/main/host-device"
|
|
"plugins/main/ipvlan"
|
|
"plugins/main/loopback"
|
|
"plugins/main/macvlan"
|
|
"plugins/main/ptp"
|
|
"plugins/main/tap"
|
|
"plugins/main/vlan"
|
|
"plugins/meta/bandwidth"
|
|
"plugins/meta/firewall"
|
|
"plugins/meta/portmap"
|
|
"plugins/meta/sbr"
|
|
"plugins/meta/tuning"
|
|
"plugins/meta/vrf"
|
|
];
|
|
|
|
passthru.tests = { inherit (nixosTests) cri-o; };
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/containernetworking/plugins/releases/tag/${src.rev}";
|
|
description = "Some standard networking plugins, maintained by the CNI team";
|
|
homepage = "https://www.cni.dev/plugins/";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ cstrahan ] ++ teams.podman.members;
|
|
};
|
|
}
|