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-09-28 08:20:29 +00:00
|
|
|
version = "0.22.3";
|
2016-06-03 11:17:53 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
2023-09-28 08:20:29 +00:00
|
|
|
vendorHash = "sha256-2P9gEbItK7rCtveXIZkFMcvppjK4GLzTSoLrkMPeCig=";
|
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-09-28 08:20:29 +00:00
|
|
|
sha256 = "sha256-sO3iFs6pAmnqpc9+hxx2WZQWOP37/4XS1m5U4nerVLI=";
|
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
|
|
|
};
|
|
|
|
}
|