diff options
author | Rafael Fernández López <ereslibre@ereslibre.es> | 2022-07-26 16:29:06 +0200 |
---|---|---|
committer | Rafael Fernández López <ereslibre@ereslibre.es> | 2022-07-28 14:02:08 +0200 |
commit | e05e2253c6dbb26917f0eeec43cc7a20328ace1e (patch) | |
tree | d41a147b00ce7c601933415b4400413bad0a40df /pkgs/misc/fastly/default.nix | |
parent | 2d9b7cb5f0a41da95fccc120acf730fd20d8598d (diff) |
fastly: specify go OS and arch explicitly
Use `GOHOSTOS` and `GOHOSTARCH` instead of `go version`; supported in the fastly source code since e2f1500bf591e919e3fd9683294ac9d5b0606789.
Diffstat (limited to 'pkgs/misc/fastly/default.nix')
-rw-r--r-- | pkgs/misc/fastly/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/misc/fastly/default.nix b/pkgs/misc/fastly/default.nix index eb0ebd27b8ab1..a56b396881305 100644 --- a/pkgs/misc/fastly/default.nix +++ b/pkgs/misc/fastly/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, installShellFiles, buildGoModule }: +{ lib, fetchFromGitHub, installShellFiles, buildGoModule, go }: buildGoModule rec { pname = "fastly"; @@ -34,10 +34,11 @@ buildGoModule rec { "-w" "-X github.com/fastly/cli/pkg/revision.AppVersion=v${version}" "-X github.com/fastly/cli/pkg/revision.Environment=release" + "-X github.com/fastly/cli/pkg/revision.GoHostOS=${go.GOHOSTOS}" + "-X github.com/fastly/cli/pkg/revision.GoHostArch=${go.GOHOSTARCH}" ]; preBuild = '' ldflags+=" -X github.com/fastly/cli/pkg/revision.GitCommit=$(cat COMMIT)" - ldflags+=" -X 'github.com/fastly/cli/pkg/revision.GoVersion=$(go version)'" ''; postInstall = '' |