3
0
Fork 0
forked from mirrors/nixpkgs

traefik: fix passing build flags

This commit is contained in:
Maxine E. Aubrey 2020-09-09 19:05:05 +02:00
parent 1db7f64597
commit 3d08e8947d
No known key found for this signature in database
GPG key ID: F6FE033DFCB899F7

View file

@ -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; {