hmcl: support wayland for game instances
Replaces `glfw` with `glfw3-minecraft` and forces LWJGL to use the system GLFW library when running on Wayland. This improves compatibility for Minecraft instances on Wayland compositors.
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
xrandr,
|
||||
glib,
|
||||
libGL,
|
||||
glfw,
|
||||
glfw3-minecraft,
|
||||
openal,
|
||||
libglvnd,
|
||||
alsa-lib,
|
||||
@@ -137,7 +137,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
runtimeDeps = [
|
||||
libGL
|
||||
glfw
|
||||
glfw3-minecraft
|
||||
glib
|
||||
openal
|
||||
libglvnd
|
||||
@@ -188,6 +188,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
lib.makeBinPath (minecraftJdks ++ lib.optional stdenv.hostPlatform.isLinux xrandr)
|
||||
}" \
|
||||
--run 'cd $HOME' \
|
||||
--prefix JAVA_TOOL_OPTIONS " " "-Dorg.lwjgl.glfw.libname=${lib.getLib glfw3-minecraft}/lib/libglfw.so" \
|
||||
''${gappsWrapperArgs[@]}
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user