1{
2 lib,
3 mkXfceDerivation,
4 wayland-scanner,
5 exo,
6 garcon,
7 gtk3,
8 gtk-layer-shell,
9 glib,
10 libnotify,
11 libX11,
12 libXext,
13 libxfce4ui,
14 libxfce4util,
15 libxklavier,
16 upower,
17 # Disabled by default on upstream and actually causes issues:
18 # https://gitlab.xfce.org/xfce/xfce4-settings/-/issues/222
19 withUpower ? false,
20 wlr-protocols,
21 xfconf,
22 xf86inputlibinput,
23 colord,
24 withColord ? true,
25}:
26
27mkXfceDerivation {
28 category = "xfce";
29 pname = "xfce4-settings";
30 version = "4.20.1";
31
32 sha256 = "sha256-9BFO1cN0etDHJzkGHl5GKL2qzJTlpaP/qfvfz6KWaMI=";
33
34 nativeBuildInputs = [
35 wayland-scanner
36 ];
37
38 buildInputs = [
39 exo
40 garcon
41 glib
42 gtk3
43 gtk-layer-shell
44 libnotify
45 libX11
46 libXext
47 libxfce4ui
48 libxfce4util
49 libxklavier
50 wlr-protocols
51 xf86inputlibinput
52 xfconf
53 ]
54 ++ lib.optionals withUpower [ upower ]
55 ++ lib.optionals withColord [ colord ];
56
57 configureFlags = [
58 "--enable-pluggable-dialogs"
59 "--enable-sound-settings"
60 ]
61 ++ lib.optionals withUpower [ "--enable-upower-glib" ]
62 ++ lib.optionals withColord [ "--enable-colord" ];
63
64 meta = with lib; {
65 description = "Settings manager for Xfce";
66 teams = [ teams.xfce ];
67 };
68}