jetbrains: add forceWayland flag (#424521)

This commit is contained in:
Thiago Kenji Okada
2025-07-13 10:50:35 +01:00
committed by GitHub
@@ -37,6 +37,7 @@ in
libX11,
vmopts ? null,
forceWayland ? false,
}:
let
@@ -83,9 +84,13 @@ let
inherit
pname
jdk
extraWrapperArgs
extraBuildInputs
;
extraWrapperArgs =
extraWrapperArgs
++ lib.optionals (stdenv.hostPlatform.isLinux && forceWayland) [
''--add-flags "\''${WAYLAND_DISPLAY:+-Dawt.toolkit.name=WLToolkit}"''
];
extraLdPath = extraLdPath ++ lib.optionals (stdenv.hostPlatform.isLinux) [ libGL ];
src =
if fromSource then