2021-12-19 01:06:50 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "flannel";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.25.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
vendorHash = "sha256-3Lm8r1Hm27l5iGgZsXI91RT3aDb2QXKAeo2UbA2D+/I=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
2021-12-19 01:06:50 +00:00
|
|
|
owner = "flannel-io";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "flannel";
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-tdoGOZTt1/y4n351xAtDIiDYunske4v5Abxe2i3BSbk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
ldflags = [ "-X github.com/flannel-io/flannel/pkg/version.Version=${rev}" ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
# TestRouteCache/TestV6RouteCache fail with "Failed to create newns: operation not permitted"
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) flannel; };
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Network fabric for containers, designed for Kubernetes";
|
|
|
|
license = licenses.asl20;
|
2021-12-19 01:06:50 +00:00
|
|
|
homepage = "https://github.com/flannel-io/flannel";
|
|
|
|
maintainers = with maintainers; [ johanot offline ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "flannel";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|