nss: fix non-cross builds

+3 -1
+3 -1
pkgs/development/libraries/nss/generic.nix
··· 121 121 ] 122 122 ++ lib.optional enableFIPS "--enable-fips" 123 123 ++ lib.optional stdenv.hostPlatform.isDarwin "--clang" 124 - ++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 124 + ++ lib.optionals (target_system != stdenv.buildPlatform.uname.system) [ 125 125 "-DOS=${target_system}" 126 + ] 127 + ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 126 128 "--disable-tests" 127 129 ]; 128 130 in