From f4d45825d75719ec54a2c1744094f209cf1affb4 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Mon, 29 Apr 2024 17:37:40 +0100 Subject: [PATCH] traefik: 2.10.7 -> 3.0.0 --- pkgs/servers/traefik/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/traefik/default.nix b/pkgs/servers/traefik/default.nix index 22ad9d0d9429..77fac1c365f7 100644 --- a/pkgs/servers/traefik/default.nix +++ b/pkgs/servers/traefik/default.nix @@ -2,23 +2,23 @@ buildGoModule rec { pname = "traefik"; - version = "2.10.7"; + version = "3.0.0"; # Archive with static assets for webui src = fetchzip { url = "https://github.com/traefik/traefik/releases/download/v${version}/traefik-v${version}.src.tar.gz"; - hash = "sha256-I+jmMtqWadWfT7nk2D9im6C2BGpPLts/7cdJ3NHsIks="; + hash = "sha256-OX9VJpO+SWIsocaSu+BhF3HT+zrhhgxb5NBvaRTadIY="; stripRoot = false; }; - vendorHash = "sha256-3SyD1mC+tc8cf5MGcw891W5VbX+b7d0cIJQfwNq2NU8="; + vendorHash = "sha256-GRVSZB4GojXv2xAdx8Y5RSuhF/3paRhhq7HOWLRmmHE="; subPackages = [ "cmd/traefik" ]; preBuild = '' GOOS= GOARCH= CGO_ENABLED=0 go generate - CODENAME=$(awk -F "=" '/CODENAME=/ { print $2}' script/binary) + CODENAME=$(grep -Po "CODENAME \?=\s\K.+$" Makefile) buildFlagsArray+=("-ldflags= -s -w \ -X github.com/traefik/traefik/v${lib.versions.major version}/pkg/version.Version=${version} \