From 8eea54eaa891c3985d919941b673c41066b68977 Mon Sep 17 00:00:00 2001 From: Justinas Stankevicius Date: Tue, 7 Dec 2021 17:35:29 +0200 Subject: [PATCH] flannel: 0.13.0 -> 0.15.1 --- pkgs/tools/networking/flannel/default.nix | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/networking/flannel/default.nix b/pkgs/tools/networking/flannel/default.nix index 86010f4adb9..3bb1ab38e6b 100644 --- a/pkgs/tools/networking/flannel/default.nix +++ b/pkgs/tools/networking/flannel/default.nix @@ -1,26 +1,33 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, nixosTests }: with lib; -buildGoPackage rec { +buildGoModule rec { pname = "flannel"; - version = "0.13.0"; + version = "0.15.1"; rev = "v${version}"; - goPackagePath = "github.com/coreos/flannel"; + vendorSha256 = null; src = fetchFromGitHub { inherit rev; - owner = "coreos"; + owner = "flannel-io"; repo = "flannel"; - sha256 = "0mmswnaybwpf18h832haapcs5b63wn5w2hax0smm3inldiggsbw8"; + sha256 = "1p4rz4kdiif8i78zgxhw6dd0c1bq159f6l1idvig5apph7zi2bwm"; }; + 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/coreos/flannel"; - maintainers = with maintainers; [johanot offline]; + homepage = "https://github.com/flannel-io/flannel"; + maintainers = with maintainers; [ johanot offline ]; platforms = with platforms; linux; }; }