Merge pull request #298544 from bobby285271/upd/mousepad

xfce.mousepad: Build shortcuts plugin
This commit is contained in:
Bobby Rong 2024-03-26 21:26:31 +08:00 committed by GitHub
commit 7ba8a9afcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
];