3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/flannel/default.nix

34 lines
865 B
Nix
Raw Normal View History

2021-12-07 15:35:29 +00:00
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2016-06-03 12:17:53 +01:00
2016-09-27 21:51:09 +01:00
with lib;
2021-12-07 15:35:29 +00:00
buildGoModule rec {
pname = "flannel";
2021-12-07 15:35:29 +00:00
version = "0.15.1";
2016-06-03 12:17:53 +01:00
rev = "v${version}";
2021-12-07 15:35:29 +00:00
vendorSha256 = null;
2016-06-03 12:17:53 +01:00
src = fetchFromGitHub {
2016-06-03 12:17:53 +01:00
inherit rev;
2021-12-07 15:35:29 +00:00
owner = "flannel-io";
repo = "flannel";
2021-12-07 15:35:29 +00:00
sha256 = "1p4rz4kdiif8i78zgxhw6dd0c1bq159f6l1idvig5apph7zi2bwm";
2016-09-27 21:51:09 +01:00
};
2021-12-07 15:35:29 +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; };
2016-09-27 21:51:09 +01:00
meta = {
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 21:51:09 +01:00
platforms = with platforms; linux;
2016-06-03 12:17:53 +01:00
};
}