mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
34 lines
864 B
Nix
34 lines
864 B
Nix
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
with lib;
|
|
|
|
buildGoModule rec {
|
|
pname = "flannel";
|
|
version = "0.20.1";
|
|
rev = "v${version}";
|
|
|
|
vendorSha256 = null;
|
|
|
|
src = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "flannel-io";
|
|
repo = "flannel";
|
|
sha256 = "sha256-0DRHUT2kXHQMnIEGHwzF70Gr3eP+Zg3rvAGtYyqtzLo=";
|
|
};
|
|
|
|
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; };
|
|
|
|
meta = {
|
|
description = "Network fabric for containers, designed for Kubernetes";
|
|
license = licenses.asl20;
|
|
homepage = "https://github.com/flannel-io/flannel";
|
|
maintainers = with maintainers; [ johanot offline ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|