jetbrains: add forceWayland flag (#424521)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user