diff options
author | squalus <squalus@squalus.net> | 2022-05-12 21:34:57 -0700 |
---|---|---|
committer | squalus <squalus@squalus.net> | 2022-05-12 21:35:40 -0700 |
commit | 4d32ee26c53cca65de6991e93e6de654d75f1eeb (patch) | |
tree | ba1385866de75fc176863edf8a3b859037b5843d /pkgs/development/libraries/boringssl | |
parent | 62595afea705348c4fe25bb8bf8996bc03a75ed0 (diff) |
boringssl: support cross compile
set GOARCH to allow codegen programs to run on the buildPlatform
Diffstat (limited to 'pkgs/development/libraries/boringssl')
-rw-r--r-- | pkgs/development/libraries/boringssl/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/boringssl/default.nix b/pkgs/development/libraries/boringssl/default.nix index b9b2e568ce6b9..efcb64a7fd5c5 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 = '' |