about summary refs log tree commit diff
path: root/pkgs/games/heroic
diff options
context:
space:
mode:
authorAidan Gauland <aidalgol@fastmail.net>2023-05-07 08:22:41 +1200
committerAidan Gauland <aidalgol@fastmail.net>2023-05-07 08:25:46 +1200
commitf89d168e57499356c792b480d522c1886f52a899 (patch)
treeb26f6a637b54bd5617b979ef2d0cacaab7e994a5 /pkgs/games/heroic
parenta166a7294c0306bb02ac0800adb2d247a08690e5 (diff)
heroic: add patch for upstream bugfix
2.7.1 introduced a bug that caused the application to capture common
keyboard shortcuts regardless of focus.  There has been fixed upstream
but not yet made it into a release.
Diffstat (limited to 'pkgs/games/heroic')
-rw-r--r--pkgs/games/heroic/default.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/games/heroic/default.nix b/pkgs/games/heroic/default.nix
index 8e668be5aa0b3..22913264f3c73 100644
--- a/pkgs/games/heroic/default.nix
+++ b/pkgs/games/heroic/default.nix
@@ -2,6 +2,7 @@
 , stdenv
 , fetchFromGitHub
 , fetchYarnDeps
+, fetchpatch
 , gitUpdater
 , yarn
 , fixup_yarn_lock
@@ -30,6 +31,15 @@ in stdenv.mkDerivation rec {
     sha256 = "sha256-R0lZrVfUH8NucuwarcE47jQ8ex5FY2hK6jJJ2TIRSWY=";
   };
 
+  patches = [
+    # Fix for capturing keyboard shortcuts when not in focus.
+    # TODO: Remove when updating past 2.7.1.
+    (fetchpatch {
+      url = "https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/commit/c82e6ca8dd7070071793fe5a3c4c04b4ae02c3c7.patch";
+      hash = "sha256-Pum67YPejfq8ERv6XWVLQzs+/SyNojmTGTQpE0UR4kg=";
+    })
+  ];
+
   nativeBuildInputs = [
     yarn
     fixup_yarn_lock