2021-12-07 15:35:29 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2016-06-03 11:17:53 +00:00
|
|
|
|
2021-12-07 15:35:29 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "flannel";
|
2023-08-21 00:47:42 +00:00
|
|
|
version = "0.22.2";
|
2016-06-03 11:17:53 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
2023-08-21 00:47:42 +00:00
|
|
|
vendorHash = "sha256-sObAXI9U5U1JXWNzaBNNGfklnfh/G3aUye/MINWwU4s=";
|
2016-06-03 11:17:53 +00:00
|
|
|
|
2016-06-06 10:26:56 +00:00
|
|
|
src = fetchFromGitHub {
|
2016-06-03 11:17:53 +00:00
|
|
|
inherit rev;
|
2021-12-07 15:35:29 +00:00
|
|
|
owner = "flannel-io";
|
2016-06-06 10:26:56 +00:00
|
|
|
repo = "flannel";
|
2023-08-21 00:47:42 +00:00
|
|
|
sha256 = "sha256-ZQyBPsYIOQq6oonn661sIBpccV9uxoXlieOhbIIv5AE=";
|
2016-09-27 20:51:09 +00:00
|
|
|
};
|
|
|
|
|
2023-06-29 07:34:26 +00:00
|
|
|
ldflags = [ "-X github.com/flannel-io/flannel/pkg/version.Version=${rev}" ];
|
2021-12-07 15:35:29 +00:00
|
|
|
|
|
|
|
# TestRouteCache/TestV6RouteCache fail with "Failed to create newns: operation not permitted"
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) flannel; };
|
|
|
|
|
2023-01-24 16:35:54 +00:00
|
|
|
meta = with lib; {
|
2016-09-27 20:51:09 +00:00
|
|
|
description = "Network fabric for containers, designed for Kubernetes";
|
|
|
|
license = licenses.asl20;
|
2021-12-07 15:35:29 +00:00
|
|
|
homepage = "https://github.com/flannel-io/flannel";
|
|
|
|
maintainers = with maintainers; [ johanot offline ];
|
2016-09-27 20:51:09 +00:00
|
|
|
platforms = with platforms; linux;
|
2016-06-03 11:17:53 +00:00
|
|
|
};
|
|
|
|
}
|