mkvtoolnix: fix GUI on darwin (#133848)

The MKVToolNix GUI has been marked as unsupported on darwin since
88d7718a64d (mkvtoolnix-cli: fix build on darwin, 2017-03-13), but
currently it builds without issues. It is when mkvtoolnix-gui is run
that the window doesn't appear.

Setting the environment variable QT_MAC_WANTS_LAYER=1 fixes it and now
the GUI runs on Darwin too.

Tested on Big Sur.

Picked from 461466306ef (octaveFull: set QT_MAC_WANTS_LAYER=1 on Darwin,
2021-07-22).

authored by

Sebastián Mancilla and committed by
GitHub
a299818b 21a6e4fa

+6 -2
+6 -2
pkgs/applications/video/mkvtoolnix/default.nix
··· 122 122 123 123 dontWrapQtApps = true; 124 124 125 + # Avoid Qt 5.12 problem on Big Sur: https://bugreports.qt.io/browse/QTBUG-87014 126 + qtWrapperArgs = lib.optionals stdenv.isDarwin [ 127 + "--set QT_MAC_WANTS_LAYER 1" 128 + ]; 129 + 125 130 postFixup = optionalString withGUI '' 126 131 wrapQtApp $out/bin/mkvtoolnix-gui 127 132 ''; ··· 131 136 homepage = "https://mkvtoolnix.download/"; 132 137 license = licenses.gpl2Only; 133 138 maintainers = with maintainers; [ codyopel rnhmjoj ]; 134 - platforms = platforms.linux 135 - ++ optionals (!withGUI) platforms.darwin; 139 + platforms = platforms.unix; 136 140 }; 137 141 }