From 3d08e8947d43c65499357af1fcd5a2ab9d9d2dc6 Mon Sep 17 00:00:00 2001 From: "Maxine E. Aubrey" Date: Wed, 9 Sep 2020 19:05:05 +0200 Subject: [PATCH] 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 b1f6fbbeeb7a..b18530f8c09e 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; {