Merge pull request #182979 from ereslibre/fastly-remove-go-version
This commit is contained in:
commit
fae22496a6
2 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, fetchFromGitHub, installShellFiles, buildGoModule }:
|
{ lib, fetchFromGitHub, installShellFiles, buildGoModule, go }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "fastly";
|
pname = "fastly";
|
||||||
|
@ -34,10 +34,11 @@ buildGoModule rec {
|
||||||
"-w"
|
"-w"
|
||||||
"-X github.com/fastly/cli/pkg/revision.AppVersion=v${version}"
|
"-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.Environment=release"
|
||||||
|
"-X github.com/fastly/cli/pkg/revision.GoHostOS=${go.GOHOSTOS}"
|
||||||
|
"-X github.com/fastly/cli/pkg/revision.GoHostArch=${go.GOHOSTARCH}"
|
||||||
];
|
];
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
ldflags+=" -X github.com/fastly/cli/pkg/revision.GitCommit=$(cat COMMIT)"
|
ldflags+=" -X github.com/fastly/cli/pkg/revision.GitCommit=$(cat COMMIT)"
|
||||||
ldflags+=" -X 'github.com/fastly/cli/pkg/revision.GoVersion=$(go version)'"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
|
@ -3709,7 +3709,9 @@ with pkgs;
|
||||||
|
|
||||||
extrude = callPackage ../tools/security/extrude { };
|
extrude = callPackage ../tools/security/extrude { };
|
||||||
|
|
||||||
fastly = callPackage ../misc/fastly {};
|
fastly = callPackage ../misc/fastly {
|
||||||
|
# If buildGoModule is overriden, provide a matching version of the go attribute
|
||||||
|
};
|
||||||
|
|
||||||
f2 = callPackage ../tools/misc/f2 {};
|
f2 = callPackage ../tools/misc/f2 {};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue