From 460168f833ef12e81a6b8941ac8cc917a478e322 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Fri, 15 Nov 2024 09:47:20 +0100 Subject: [PATCH] rofi-wayland: add patch for niri Co-authored-by: Aleksana --- pkgs/applications/misc/rofi/wayland.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/applications/misc/rofi/wayland.nix b/pkgs/applications/misc/rofi/wayland.nix index ee0a183f6b5d..f866f8fb7f72 100644 --- a/pkgs/applications/misc/rofi/wayland.nix +++ b/pkgs/applications/misc/rofi/wayland.nix @@ -1,5 +1,6 @@ { lib , fetchFromGitHub +, fetchpatch , rofi-unwrapped , wayland-scanner , pkg-config @@ -19,6 +20,16 @@ rofi-unwrapped.overrideAttrs (oldAttrs: rec { hash = "sha256-pKxraG3fhBh53m+bLPzCigRr6dBcH/A9vbdf67CO2d8="; }; + patches = [ + # Fix use on niri window manager + # ref. https://github.com/davatorium/rofi/discussions/2008 + # this was merged upstream, and can be removed on next release + (fetchpatch { + url = "https://github.com/lbonn/rofi/commit/55425f72ff913eb72f5ba5f5d422b905d87577d0.patch"; + hash = "sha256-vTUxtJs4SuyPk0PgnGlDIe/GVm/w1qZirEhKdBp4bHI="; + }) + ]; + depsBuildBuild = oldAttrs.depsBuildBuild ++ [ pkg-config ]; nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ wayland-protocols wayland-scanner ]; buildInputs = oldAttrs.buildInputs ++ [ wayland wayland-protocols ];