nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 40 lines 968 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nixosTests, 6}: 7 8buildGoModule rec { 9 pname = "flannel"; 10 version = "0.27.2"; 11 rev = "v${version}"; 12 13 vendorHash = "sha256-48/BYhVWS/Tp1UKgpGX31/gdMC1xpWr06+Y+WoXPAs4="; 14 15 src = fetchFromGitHub { 16 inherit rev; 17 owner = "flannel-io"; 18 repo = "flannel"; 19 sha256 = "sha256-d92kv1cWwZr4BzrFaI3t/JBvYERaClqFSRzrAUFkqRc="; 20 }; 21 22 ldflags = [ "-X github.com/flannel-io/flannel/pkg/version.Version=${rev}" ]; 23 24 # TestRouteCache/TestV6RouteCache fail with "Failed to create newns: operation not permitted" 25 doCheck = false; 26 27 passthru.tests = { inherit (nixosTests) flannel; }; 28 29 meta = with lib; { 30 description = "Network fabric for containers, designed for Kubernetes"; 31 license = licenses.asl20; 32 homepage = "https://github.com/flannel-io/flannel"; 33 maintainers = with maintainers; [ 34 johanot 35 offline 36 ]; 37 platforms = with platforms; linux; 38 mainProgram = "flannel"; 39 }; 40}