From 8b2d735d1a04ad7bac167433fbad6d010a76944d Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 10 Jun 2020 04:20:00 -0500 Subject: [PATCH] nss: fix build on darwin --- pkgs/development/libraries/nss/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/nss/default.nix b/pkgs/development/libraries/nss/default.nix index 5251c680361..622d11c3160 100644 --- a/pkgs/development/libraries/nss/default.nix +++ b/pkgs/development/libraries/nss/default.nix @@ -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}"