qt5.qtbase: reinstate -Wno-error=unguarded-availability on darwin

+4
+4
pkgs/development/libraries/qt-5/modules/qtbase.nix
··· 184 184 ''-DNIXPKGS_LIBXCURSOR="${libXcursor.out}/lib/libXcursor"'' 185 185 ] ++ lib.optional libGLSupported ''-DNIXPKGS_MESA_GL="${libGL.out}/lib/libGL"'' 186 186 ++ lib.optional stdenv.isLinux "-DUSE_X11" 187 + ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-darwin") [ 188 + # ignore "is only available on macOS 10.12.2 or newer" in obj-c code 189 + "-Wno-error=unguarded-availability" 190 + ] 187 191 ++ lib.optionals withGtk3 [ 188 192 ''-DNIXPKGS_QGTK3_XDG_DATA_DIRS="${gtk3}/share/gsettings-schemas/${gtk3.name}"'' 189 193 ''-DNIXPKGS_QGTK3_GIO_EXTRA_MODULES="${dconf.lib}/lib/gio/modules"''