2020-01-23 05:44:50 +01:00
|
|
|
{ mkXfceDerivation, polkit, exo, libxfce4util, libxfce4ui, xfconf, iceauth, gtk3, glib, libwnck3, xorg, xfce4-session, runtimeShell }:
|
2018-08-02 10:35:21 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
mkXfceDerivation {
|
2018-08-02 10:35:21 +02:00
|
|
|
category = "xfce";
|
|
|
|
pname = "xfce4-session";
|
2019-08-12 12:38:41 +02:00
|
|
|
version = "4.14.0";
|
2018-08-02 10:35:21 +02:00
|
|
|
|
2019-08-12 12:38:41 +02:00
|
|
|
sha256 = "0v0xzkdr5rgv6219c1dy96cghgw8bqnb313jccxihfgddf363104";
|
2018-08-02 10:35:21 +02:00
|
|
|
|
2019-08-17 05:34:01 +02:00
|
|
|
buildInputs = [ exo gtk3 glib libxfce4ui libxfce4util libwnck3 xfconf polkit iceauth ];
|
2018-08-02 10:35:21 +02:00
|
|
|
|
2019-09-03 18:38:57 +02:00
|
|
|
configureFlags = [ "--with-xsession-prefix=${placeholder "out"}" ];
|
2018-08-02 10:35:21 +02:00
|
|
|
|
2019-08-17 05:34:01 +02:00
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/36468
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
2018-08-02 10:35:21 +02:00
|
|
|
|
2020-01-23 05:44:50 +01:00
|
|
|
# Don't use startxfce4 in xfce.desktop
|
|
|
|
# It's has FHS isms
|
|
|
|
postFixup = ''
|
|
|
|
chmod +x $out/etc/xdg/xfce4/xinitrc
|
|
|
|
patchShebangs $out/etc/xdg/xfce4/xinitrc
|
2019-11-04 22:27:22 +01:00
|
|
|
|
2020-01-23 05:44:50 +01:00
|
|
|
substituteInPlace "$out/share/xsessions/xfce.desktop" \
|
|
|
|
--replace "Exec=startxfce4" "Exec=$out/etc/xdg/xfce4/xinitrc"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
xinitrc = "${xfce4-session}/etc/xdg/xfce4/xinitrc";
|
|
|
|
|
|
|
|
providedSessions = [
|
|
|
|
"xfce"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2018-08-02 10:35:21 +02:00
|
|
|
description = "Session manager for Xfce";
|
|
|
|
};
|
|
|
|
}
|