about summary refs log tree commit diff
path: root/nix/buildGo
diff options
context:
space:
mode:
Diffstat (limited to 'nix/buildGo')
-rw-r--r--nix/buildGo/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nix/buildGo/default.nix b/nix/buildGo/default.nix
index 8d790cbea2..03c0b2bc4b 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
   '';