traefik: fix cross compilation

This commit is contained in:
Nick Cao 2022-09-24 14:56:16 +08:00
parent 08a62091a1
commit b5adf1b616
No known key found for this signature in database

View file

@ -16,7 +16,7 @@ buildGoModule rec {
subPackages = [ "cmd/traefik" ];
preBuild = ''
go generate
GOOS= GOARCH= CGO_ENABLED=0 go generate
CODENAME=$(awk -F "=" '/CODENAME=/ { print $2}' script/binary)