boringssl: support cross compile

set GOARCH to allow codegen programs to run on the buildPlatform
main
squalus 2 years ago
parent 62595afea7
commit 4d32ee26c5
  1. 2
      pkgs/development/libraries/boringssl/default.nix

@ -26,6 +26,8 @@ buildGoModule {
# (if we use postConfigure then cmake will loop runHook postConfigure) # (if we use postConfigure then cmake will loop runHook postConfigure)
preBuild = '' preBuild = ''
cmakeConfigurePhase cmakeConfigurePhase
'' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
export GOARCH=$(go env GOHOSTARCH)
''; '';
buildPhase = '' buildPhase = ''

Loading…
Cancel
Save