From b3057fce636d941c6da247268cc96b94c7452e49 Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Mon, 11 Nov 2024 08:27:57 +0100 Subject: [PATCH] niri: add patch for scrolling without mouse config --- pkgs/by-name/ni/niri/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/ni/niri/package.nix b/pkgs/by-name/ni/niri/package.nix index 9e83b3358a30..f60719785801 100644 --- a/pkgs/by-name/ni/niri/package.nix +++ b/pkgs/by-name/ni/niri/package.nix @@ -4,6 +4,7 @@ dbus, eudev, fetchFromGitHub, + fetchpatch, libdisplay-info, libglvnd, libinput, @@ -34,6 +35,14 @@ rustPlatform.buildRustPackage rec { hash = "sha256-ea15x8+AAm90aeU1zNWXzX7ZfenzQRUgORyjOdn4Uoc="; }; + patches = [ + # Fix scrolling not working with missing mouse config + (fetchpatch { + url = "https://github.com/YaLTeR/niri/commit/1951d2a9f262196a706f2645efb18dac3c4d6839.patch"; + hash = "sha256-P/0LMYZ4HD0iG264BMnK4sLNNLmtbefF230GyC+t6qg="; + }) + ]; + postPatch = '' patchShebangs resources/niri-session substituteInPlace resources/niri.service \