diff options
author | Nick Cao | 2022-09-24 14:56:16 +0800 |
---|---|---|
committer | Nick Cao | 2023-12-29 17:04:05 -0500 |
commit | b5adf1b6165b8da9d6a5200b7f2a7e85cea612b6 (patch) | |
tree | b28028de6a48c5abecc7fe56b74187ee0e2e7c0a /pkgs/servers/traefik | |
parent | 08a62091a13d6ce63fb319a2673da65f2ce77a7f (diff) |
traefik: fix cross compilation
Diffstat (limited to 'pkgs/servers/traefik')
-rw-r--r-- | pkgs/servers/traefik/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/traefik/default.nix b/pkgs/servers/traefik/default.nix index f1c40b707350..22ad9d0d9429 100644 --- a/pkgs/servers/traefik/default.nix +++ b/pkgs/servers/traefik/default.nix @@ -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) |