···3344 meta = {
55 maintainers = with lib.maintainers; [ OPNA2608 ];
66- # Natively running Mir has problems with capturing the first registered libinput device.
77- # In our VM runners on ARM and on some hardware configs (my RPi4, distro-independent), this misses the keyboard.
88- # It can be worked around by dis- and reconnecting the affected hardware, but we can't do this in these tests.
99- # https://github.com/MirServer/mir/issues/2837
1010- broken = pkgs.stdenv.hostPlatform.isAarch;
116 };
127138 nodes.machine = { config, ... }: {
+11
pkgs/servers/mir/default.nix
···11{ stdenv
22, lib
33, fetchFromGitHub
44+, fetchpatch
45, gitUpdater
56, cmake
67, pkg-config
···5657 rev = "v${version}";
5758 hash = "sha256-Ip8p4mjcgmZQJTU4MNvWkTTtSJc+cCL3x1mMDFlZrVY=";
5859 };
6060+6161+ patches = [
6262+ # Fixes Mir being able to drop first input device on launch
6363+ # Drop when https://github.com/MirServer/mir/issues/2837 fixed in a release
6464+ (fetchpatch {
6565+ name = "0001-mir-Simplify_probing_of_evdev_input_platform.patch";
6666+ url = "https://github.com/MirServer/mir/commit/7787cfa721934bb43d3255218e7c92e700923fcb.patch";
6767+ hash = "sha256-9C9qcmngd+K8EAcyOYUJFTdFDu1Nt1MM7Y9TRNOXFB4=";
6868+ })
6969+ ];
59706071 postPatch = ''
6172 # Fix scripts that get run in tests