libtas: Add withForceX11 option

libTAS needs to be run under X11 to capture inputs. Since libTAS is a QT app, it can launch in Wayland though. Thus, add an override option (enabled by default) which passes a `QT_QPA_PLATFORM=xcb` environment variable to force QT to run on X11.

+5
+5
pkgs/by-name/li/libtas/package.nix
··· 14 14 file, 15 15 binutils, 16 16 makeDesktopItem, 17 + 18 + # Forces libTAS to run in X11. 19 + # Enabled by default because libTAS does not support Wayland. 20 + withForceX11 ? true, 17 21 }: 18 22 19 23 stdenv.mkDerivation (finalAttrs: { ··· 73 77 ffmpeg.lib 74 78 ] 75 79 } \ 80 + ${lib.optionalString withForceX11 "--set QT_QPA_PLATFORM xcb"} \ 76 81 --set-default LIBTAS_SO_PATH $out/lib/libtas.so 77 82 ''; 78 83