From d7fade20b5443765b93ce2922604a6173529a8f1 Mon Sep 17 00:00:00 2001 From: "Maxine E. Aubrey" Date: Wed, 9 Sep 2020 17:36:30 +0200 Subject: [PATCH 1/3] traefik: 2.2.8 -> 2.2.11 --- pkgs/servers/traefik/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/traefik/default.nix b/pkgs/servers/traefik/default.nix index 3d5880245e7..b1f6fbbeeb7 100644 --- a/pkgs/servers/traefik/default.nix +++ b/pkgs/servers/traefik/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "traefik"; - version = "2.2.8"; + version = "2.2.11"; src = fetchFromGitHub { owner = "containous"; repo = "traefik"; rev = "v${version}"; - sha256 = "1p2qv8vrjxn5wg41ywxbpaghb8585xmkwr8ih5df4dbdjw2m3k1f"; + sha256 = "0l93qb0kjbm5gjba0bxfyb5a0n1p54n5crhcsyzgrki4x586lan0"; }; - vendorSha256 = "0kz7y64k07vlybzfjg6709fdy7krqlv1gkk01nvhs84sk8bnrcvn"; + vendorSha256 = "06x2mcyp6c1jdf5wz51prhcn071d0580322lcv3x2bxk2grx08i2"; doCheck = false; From 1db7f6459758314b3c9a46652b438c40c916ee92 Mon Sep 17 00:00:00 2001 From: "Maxine E. Aubrey" Date: Wed, 9 Sep 2020 18:12:14 +0200 Subject: [PATCH 2/3] traefik: build with go 1.14 See containous/traefik#7234, containous/traefik#7169 --- pkgs/top-level/all-packages.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f4caf98bd19..51926876ff8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1511,7 +1511,10 @@ in caddy = callPackage ../servers/caddy { buildGoModule = buildGo114Module; }; # https://github.com/lucas-clemente/quic-go/issues/2614 caddy1 = callPackage ../servers/caddy/v1.nix { buildGoModule = buildGo114Module; }; - traefik = callPackage ../servers/traefik { }; + + # Traefik 2.2 uses go1.14, pinning can be removed with 2.3 + # https://github.com/containous/traefik/issues/7234#issuecomment-684950612 + traefik = callPackage ../servers/traefik { buildGoModule = buildGo114Module; }; calamares = libsForQt514.callPackage ../tools/misc/calamares { python = python3; From 3d08e8947d43c65499357af1fcd5a2ab9d9d2dc6 Mon Sep 17 00:00:00 2001 From: "Maxine E. Aubrey" Date: Wed, 9 Sep 2020 19:05:05 +0200 Subject: [PATCH 3/3] traefik: fix passing build flags --- pkgs/servers/traefik/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/traefik/default.nix b/pkgs/servers/traefik/default.nix index b1f6fbbeeb7..b18530f8c09 100644 --- a/pkgs/servers/traefik/default.nix +++ b/pkgs/servers/traefik/default.nix @@ -26,9 +26,9 @@ buildGoModule rec { CODENAME=$(awk -F "=" '/CODENAME=/ { print $2}' script/binary) - makeFlagsArray+=("-ldflags=\ - -X github.com/containous/traefik/version.Version=${version} \ - -X github.com/containous/traefik/version.Codename=$CODENAME") + buildFlagsArray+=("-ldflags=\ + -X github.com/containous/traefik/v2/pkg/version.Version=${version} \ + -X github.com/containous/traefik/v2/pkg/version.Codename=$CODENAME") ''; meta = with stdenv.lib; {