···187187 # Fix linker error on Darwin (see https://trac.macports.org/ticket/61865)
188188 NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-lobjc";
189189190190- # Avoid Qt 5.12 problem on Big Sur: https://bugreports.qt.io/browse/QTBUG-87014
191191- qtWrapperArgs = lib.optionals stdenv.isDarwin [
192192- "--set QT_MAC_WANTS_LAYER 1"
193193- ];
194194-195190 # See https://savannah.gnu.org/bugs/?50339
196191 F77_INTEGER_8_FLAG = if use64BitIdx then "-fdefault-integer-8" else "";
197192
+11
pkgs/development/libraries/qt-5/5.12/default.nix
···7070 # Ensure -I${includedir} is added to Cflags in pkg-config files.
7171 # See https://github.com/NixOS/nixpkgs/issues/52457
7272 ./qtbase.patch.d/0014-qtbase-pkg-config.patch
7373+7474+ # Make Qt applications work on macOS Big Sur even if they're
7575+ # built with an older version of the macOS SDK (<10.14). This
7676+ # issue is fixed in 5.12.11, but it requires macOS SDK 10.13 to
7777+ # build. See https://bugreports.qt.io/browse/QTBUG-87014 for
7878+ # more info.
7979+ (fetchpatch {
8080+ name = "big_sur_layer_backed_views.patch";
8181+ url = "https://codereview.qt-project.org/gitweb?p=qt/qtbase.git;a=patch;h=c5d904639dbd690a36306e2b455610029704d821";
8282+ sha256 = "0crkw3j1iwdc1pbf5dhar0b4q3h5gs2q1sika8m12y02yk3ns697";
8383+ })
7384 ];
7485 qtdeclarative = [ ./qtdeclarative.patch ];
7586 qtlocation = [ ./qtlocation-gcc-9.patch ];