From 8b31f1a9da067d357b7859c3a67c96acee6b4d8f Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Sun, 24 Mar 2024 13:55:01 +0800 Subject: [PATCH] xfce.mousepad: Build shortcuts plugin See "Edit" -> "Preferences" -> "Plugins" -> "Shortcuts Editor". https://gitlab.xfce.org/apps/mousepad/-/commit/8de8f04ca5e3e73d62f0acb5f79920dd8038b937 --- .../xfce/applications/mousepad/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/desktops/xfce/applications/mousepad/default.nix b/pkgs/desktops/xfce/applications/mousepad/default.nix index f72a08729bc9..a312c0040e99 100644 --- a/pkgs/desktops/xfce/applications/mousepad/default.nix +++ b/pkgs/desktops/xfce/applications/mousepad/default.nix @@ -1,10 +1,13 @@ { lib , mkXfceDerivation +, fetchpatch2 , gobject-introspection , glib , gtk3 , gtksourceview4 , gspell +, libxfce4ui +, xfconf , enablePolkit ? true , polkit }: @@ -17,6 +20,15 @@ mkXfceDerivation { sha256 = "sha256-A4siNxbTf9ObJJg8inPuH7Lo4dckLbFljV6aPFQxRto="; + patches = [ + # shortcuts-plugin: Fix shortcuts-editor include + # https://gitlab.xfce.org/apps/mousepad/-/merge_requests/131 + (fetchpatch2 { + url = "https://gitlab.xfce.org/apps/mousepad/-/commit/d2eb43ae4d692cc4753647111eb3deebfa26abbb.patch"; + hash = "sha256-Ldn0ZVmCzqG8lOkeaazkodEMip3lTm/lJEhfsL8TyT8="; + }) + ]; + nativeBuildInputs = [ gobject-introspection ]; buildInputs = [ @@ -24,6 +36,8 @@ mkXfceDerivation { gtk3 gtksourceview4 gspell + libxfce4ui # for shortcut plugin + xfconf # required by libxfce4kbd-private-3 ] ++ lib.optionals enablePolkit [ polkit ];