Merge pull request #172803 from squalus/boringssl

boringssl: support cross compile
This commit is contained in:
Sandro 2022-05-13 17:25:17 +02:00 committed by GitHub
commit 57b441acfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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