From b624396bd1c785cca8281847baceb0718eec542a Mon Sep 17 00:00:00 2001 From: arne Date: Sun, 18 Dec 2022 12:08:24 +0100 Subject: [PATCH] Fix problems with wayland / x11 again I first installed a global `xwayland` alongside this, but it seems fine without? --- flake.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 4beec3b..3d8c31c 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,7 @@ name = "quil-env"; buildInputs = with pkgs; [ xorg_sys_opengl + xorg.libXxf86vm # xwayland clojure ]; @@ -18,14 +19,14 @@ # wayland compat # see https://discourse.ubuntu.com/t/environment-variables-for-wayland-hackers/12750 - WAYLAND_DISPLAY = "no"; - DISPLAY = ":0"; - _JAVA_AWT_WM_NONREPARENTING = "1"; + # WAYLAND_DISPLAY = "no"; + # DISPLAY = ":0"; + # _JAVA_AWT_WM_NONREPARENTING = "1"; # we need to make sure the library is on the path for JOGL; # also, there's a bug that is avoided with the variable # https://github.com/processing/processing/issues/5476 - # JAVA_OPTS = "-Djava.library.path=${lib.makeLibraryPath buildInputs} -Djogl.disable.openglcore=true"; + JAVA_OPTS = "-Djogl.disable.openglcore=false"; # LIBGL_ALWAYS_SOFTWARE = true; # ← this is the same as passing -Djogl.disable.openglcore="true" }; };