2021-12-07 16:35:29 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2016-06-03 13:17:53 +02:00
|
|
|
|
2016-09-27 22:51:09 +02:00
|
|
|
with lib;
|
|
|
|
|
2021-12-07 16:35:29 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "flannel";
|
2022-03-08 12:25:48 +01:00
|
|
|
version = "0.17.0";
|
2016-06-03 13:17:53 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
|
2021-12-07 16:35:29 +01:00
|
|
|
vendorSha256 = null;
|
2016-06-03 13:17:53 +02:00
|
|
|
|
2016-06-06 12:26:56 +02:00
|
|
|
src = fetchFromGitHub {
|
2016-06-03 13:17:53 +02:00
|
|
|
inherit rev;
|
2021-12-07 16:35:29 +01:00
|
|
|
owner = "flannel-io";
|
2016-06-06 12:26:56 +02:00
|
|
|
repo = "flannel";
|
2022-03-08 12:25:48 +01:00
|
|
|
sha256 = "sha256-YM/cGmtHDTzgu6Bfy52oP8E1HmLNuBHNgEpz/qTj7rg=";
|
2016-09-27 22:51:09 +02:00
|
|
|
};
|
|
|
|
|
2021-12-07 16:35:29 +01:00
|
|
|
ldflags = [ "-X github.com/flannel-io/flannel/version.Version=${rev}" ];
|
|
|
|
|
|
|
|
# TestRouteCache/TestV6RouteCache fail with "Failed to create newns: operation not permitted"
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests = { inherit (nixosTests) flannel; };
|
|
|
|
|
2016-09-27 22:51:09 +02:00
|
|
|
meta = {
|
|
|
|
description = "Network fabric for containers, designed for Kubernetes";
|
|
|
|
license = licenses.asl20;
|
2021-12-07 16:35:29 +01:00
|
|
|
homepage = "https://github.com/flannel-io/flannel";
|
|
|
|
maintainers = with maintainers; [ johanot offline ];
|
2016-09-27 22:51:09 +02:00
|
|
|
platforms = with platforms; linux;
|
2016-06-03 13:17:53 +02:00
|
|
|
};
|
|
|
|
}
|