diff options
Diffstat (limited to 'nix/buildGo/default.nix')
-rw-r--r-- | nix/buildGo/default.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nix/buildGo/default.nix b/nix/buildGo/default.nix index 8d790cbea2c9..03c0b2bc4b9d 100644 --- a/nix/buildGo/default.nix +++ b/nix/buildGo/default.nix @@ -57,6 +57,7 @@ let in runCommand name {} '' ${go}/bin/go tool compile -o ${name}.a -trimpath=$PWD -trimpath=${go} ${includeSources uniqueDeps} ${spaceOut srcs} mkdir -p $out/bin + export GOROOT_FINAL=go ${go}/bin/go tool link -o $out/bin/${name} -buildid nix ${xFlags x_defs} ${includeLibs uniqueDeps} ${name}.a ''; |