2021-12-19 01:06:50 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "flannel";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.19.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
vendorSha256 = null;
|
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";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-pWi4JKBfIb6c4fh0EAPf86B4axrDzOPM+ZWquFd6mTk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-19 01:06:50 +00: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; };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|