From 1e42f77bd5e3e1de8145d946f29232c04c1afa13 Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 21 Aug 2023 10:32:46 +0300 Subject: [PATCH 1/2] heroic: enable Wayland IME support This doesn't crash anymore on the latest Electron and is useful for Steam Deck users. --- pkgs/games/heroic/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/games/heroic/default.nix b/pkgs/games/heroic/default.nix index 05455ae7c7d..ca9d5799596 100644 --- a/pkgs/games/heroic/default.nix +++ b/pkgs/games/heroic/default.nix @@ -93,7 +93,7 @@ in stdenv.mkDerivation rec { --inherit-argv0 \ --add-flags --disable-gpu-compositing \ --add-flags $out/share/${appName} \ - --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime}}" substituteInPlace "$out/share/${appName}/flatpak/com.heroicgameslauncher.hgl.desktop" \ --replace "Exec=heroic-run" "Exec=heroic" From b0e5c80cd64f145e384105195ba59f63f9b12122 Mon Sep 17 00:00:00 2001 From: K900 Date: Sat, 26 Aug 2023 11:00:12 +0300 Subject: [PATCH 2/2] heroic: keep IPC namespace --- pkgs/games/heroic/fhsenv.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/games/heroic/fhsenv.nix b/pkgs/games/heroic/fhsenv.nix index 40a8ea37efa..3979b282392 100644 --- a/pkgs/games/heroic/fhsenv.nix +++ b/pkgs/games/heroic/fhsenv.nix @@ -12,6 +12,9 @@ buildFHSEnv { # Many Wine and native games need 32-bit libraries. multiArch = true; + # required by Electron + unshareIpc = false; + targetPkgs = pkgs: with pkgs; [ heroic-unwrapped gamemode