boringssl: support cross compile

set GOARCH to allow codegen programs to run on the buildPlatform
This commit is contained in:
squalus 2022-05-12 21:34:57 -07:00
parent 62595afea7
commit 4d32ee26c5

View File

@ -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 = ''