xfce.mousepad: Build shortcuts plugin

See "Edit" -> "Preferences" -> "Plugins" -> "Shortcuts Editor".

8de8f04ca5
This commit is contained in:
Bobby Rong 2024-03-24 13:55:01 +08:00
parent 20f77aa099
commit 8b31f1a9da
No known key found for this signature in database

View File

@ -1,10 +1,13 @@
{ lib { lib
, mkXfceDerivation , mkXfceDerivation
, fetchpatch2
, gobject-introspection , gobject-introspection
, glib , glib
, gtk3 , gtk3
, gtksourceview4 , gtksourceview4
, gspell , gspell
, libxfce4ui
, xfconf
, enablePolkit ? true , enablePolkit ? true
, polkit , polkit
}: }:
@ -17,6 +20,15 @@ mkXfceDerivation {
sha256 = "sha256-A4siNxbTf9ObJJg8inPuH7Lo4dckLbFljV6aPFQxRto="; 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 ]; nativeBuildInputs = [ gobject-introspection ];
buildInputs = [ buildInputs = [
@ -24,6 +36,8 @@ mkXfceDerivation {
gtk3 gtk3
gtksourceview4 gtksourceview4
gspell gspell
libxfce4ui # for shortcut plugin
xfconf # required by libxfce4kbd-private-3
] ++ lib.optionals enablePolkit [ ] ++ lib.optionals enablePolkit [
polkit polkit
]; ];