summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-05-29 20:18:57 +0200
committerGitHub <noreply@github.com>2023-05-29 20:18:57 +0200
commitd14b8ea6d4337d67f39ffd6464e897cc79e5829d (patch)
treededa68a3e1f3b701007f4b5638dcb5aac80c26c6 /pkgs/servers
parent82fbf4ed445ccbb8dc9502728c64875a05994d4c (diff)
parent250cb590d7bf2083a1ec2b5a2b43317adf53e55f (diff)
Merge pull request #234052 from NixOS/backport-231630-to-release-23.05
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/mir/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/servers/mir/default.nix b/pkgs/servers/mir/default.nix
index 45c9efc7b2caa..ea6976cdd6cd6 100644
--- a/pkgs/servers/mir/default.nix
+++ b/pkgs/servers/mir/default.nix
@@ -1,6 +1,7 @@
 { stdenv
 , lib
 , fetchFromGitHub
+, fetchpatch
 , gitUpdater
 , cmake
 , pkg-config
@@ -57,6 +58,16 @@ stdenv.mkDerivation rec {
     hash = "sha256-Ip8p4mjcgmZQJTU4MNvWkTTtSJc+cCL3x1mMDFlZrVY=";
   };
 
+  patches = [
+    # Fixes Mir being able to drop first input device on launch
+    # Drop when https://github.com/MirServer/mir/issues/2837 fixed in a release
+    (fetchpatch {
+      name = "0001-mir-Simplify_probing_of_evdev_input_platform.patch";
+      url = "https://github.com/MirServer/mir/commit/7787cfa721934bb43d3255218e7c92e700923fcb.patch";
+      hash = "sha256-9C9qcmngd+K8EAcyOYUJFTdFDu1Nt1MM7Y9TRNOXFB4=";
+    })
+  ];
+
   postPatch = ''
     # Fix scripts that get run in tests
     patchShebangs tools/detect_fd_leaks.bash tests/acceptance-tests/wayland-generator/test_wayland_generator.sh.in