about summary refs log tree commit diff
path: root/pkgs/games/doom-ports/slade/default.nix
diff options
context:
space:
mode:
authorGliczy <129636582+Gliczy@users.noreply.github.com>2024-01-23 15:18:26 +0100
committerGliczy <129636582+Gliczy@users.noreply.github.com>2024-01-23 15:18:26 +0100
commit17783e08cd76e68051dbf4f838f93df4ebb590ff (patch)
tree25eb235a4fe8ec0cbd1ac0e7413502cd1462dae2 /pkgs/games/doom-ports/slade/default.nix
parentec1754f86b482f94671992852731b8eee34e5b6c (diff)
slade: set GDK_BACKEND to x11
Slade has major issues when running in native Wayland:
- The 3D view in the map editor is "spinning", making it unusable.
- The UI will freeze when trying to preview or edit an asset.
- Some crashes
Diffstat (limited to 'pkgs/games/doom-ports/slade/default.nix')
-rw-r--r--pkgs/games/doom-ports/slade/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/games/doom-ports/slade/default.nix b/pkgs/games/doom-ports/slade/default.nix
index 42a8c24851742..9ab3d1f458d5d 100644
--- a/pkgs/games/doom-ports/slade/default.nix
+++ b/pkgs/games/doom-ports/slade/default.nix
@@ -62,6 +62,12 @@ stdenv.mkDerivation rec {
 
   env.NIX_CFLAGS_COMPILE = "-Wno-narrowing";
 
+  preFixup = ''
+    gappsWrapperArgs+=(
+      --prefix GDK_BACKEND : x11
+    )
+  '';
+
   meta = with lib; {
     description = "Doom editor";
     homepage = "http://slade.mancubus.net/";