@@ -0,0 +1,27 @@
1+{ mkXfceDerivation, polkit, exo, libxfce4util, libxfce4ui, xfconf, dbus-glib, dbus, iceauth, gtk3, libwnck3, xorg }:
2+
3+mkXfceDerivation rec {
4+ category = "xfce";
5+ pname = "xfce4-session";
6+ version = "4.13.0";
7+
8+ sha256 = "0d6h1kgqq6g084jrxx4jxw98h5g0vwsxqrvk0bmapyxh2sbrg07y";
9+
10+ buildInputs = [ exo dbus-glib dbus gtk3 libxfce4ui libxfce4util libwnck3 xfconf polkit iceauth ];
11+
12+ configureFlags = [ "--with-xsession-prefix=$(out)" ];
13+
14+ NIX_CFLAGS_COMPILE = [ "-I${dbus-glib.dev}/include/dbus-1.0"
15+ "-I${dbus.dev}/include/dbus-1.0"
16+ "-I${dbus.lib}/lib/dbus-1.0/include"
17+ ];
18+
19+ postPatch = ''
20+ substituteInPlace configure.ac.in --replace gio-2.0 gio-unix-2.0
21+ substituteInPlace scripts/xflock4 --replace PATH=/bin:/usr/bin "PATH=\$PATH:$out/bin:${xorg.xset}/bin"
22+ '';
23+
24+ meta = {
25+ description = "Session manager for Xfce";
26+ };
27+}