1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
8 vendorHash = "sha256-hitYX6Y2ElDhjwgoX5feSNwpTUA6PXqpH70ZnIW9RaM=";
10 src = fetchFromGitHub {
14 sha256 = "sha256-Aa+LPn5fRrv7vzCqqbHzNaVn5nU6/mi09t6y/5nx0+s=";
17 ldflags = [ "-X github.com/flannel-io/flannel/pkg/version.Version=${rev}" ];
19 # TestRouteCache/TestV6RouteCache fail with "Failed to create newns: operation not permitted"
22 passthru.tests = { inherit (nixosTests) flannel; };
25 description = "Network fabric for containers, designed for Kubernetes";
26 license = licenses.asl20;
27 homepage = "https://github.com/flannel-io/flannel";
28 maintainers = with maintainers; [ johanot offline ];
29 platforms = with platforms; linux;
30 mainProgram = "flannel";