diff --git a/pkgs/development/libraries/boringssl/default.nix b/pkgs/development/libraries/boringssl/default.nix index b9b2e568ce6b..efcb64a7fd5c 100644 --- a/pkgs/development/libraries/boringssl/default.nix +++ b/pkgs/development/libraries/boringssl/default.nix @@ -26,6 +26,8 @@ buildGoModule { # (if we use postConfigure then cmake will loop runHook postConfigure) preBuild = '' cmakeConfigurePhase + '' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' + export GOARCH=$(go env GOHOSTARCH) ''; buildPhase = ''