From a9e51112e8d45d241158c4485a55b91fc5d43b98 Mon Sep 17 00:00:00 2001 From: Ivan Babrou Date: Wed, 17 Feb 2021 00:08:56 -0800 Subject: [PATCH] boringssl: fix aarch64-linux build --- pkgs/development/libraries/boringssl/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/boringssl/default.nix b/pkgs/development/libraries/boringssl/default.nix index 7019d39b16c7..aa3eeef48a55 100644 --- a/pkgs/development/libraries/boringssl/default.nix +++ b/pkgs/development/libraries/boringssl/default.nix @@ -15,6 +15,9 @@ stdenv.mkDerivation { makeFlags = [ "GOCACHE=$(TMPDIR)/go-cache" ]; + # CMAKE_OSX_ARCHITECTURES is set to x86_64 by Nix, but it confuses boringssl on aarch64-linux. + cmakeFlags = lib.optionals (stdenv.isLinux) [ "-DCMAKE_OSX_ARCHITECTURES=" ]; + installPhase = '' mkdir -p $bin/bin $out/include $out/lib