nss: fix build on darwin

This commit is contained in:
Mario Rodas 2020-06-10 04:20:00 -05:00
parent d6c0115cee
commit 8b2d735d1a
No known key found for this signature in database
GPG Key ID: 325649BCA6D53027

View File

@ -66,6 +66,7 @@ in stdenv.mkDerivation rec {
"USE_SYSTEM_ZLIB=1"
"NSS_USE_SYSTEM_SQLITE=1"
"NATIVE_CC=${buildPackages.stdenv.cc}/bin/cc"
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [
# Pass in CPU even if we're not cross compiling, because otherwise it tries to guess with
# uname, which can be wrong if e.g. we're compiling for aarch32 on aarch64
"OS_TEST=${cpu}"