gnome.gnome-session: Make support for GNOME Shell optional

Signed-off-by: Federico Damián Schonborn <fdschonborn@gmail.com>
This commit is contained in:
Federico Damián Schonborn 2023-03-29 21:31:39 -03:00
parent 297cfa71e6
commit 424a6ccd2b
No known key found for this signature in database
GPG key ID: 193F70F15C9AB0A0

View file

@ -25,6 +25,7 @@
, libepoxy
, bash
, gnome-session-ctl
, gnomeShellSupport ? true
}:
stdenv.mkDerivation rec {
@ -113,7 +114,7 @@ stdenv.mkDerivation rec {
wrapProgram "$out/libexec/gnome-session-binary" \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
--suffix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
--suffix XDG_DATA_DIRS : "${gnome.gnome-shell}/share"\
${lib.optionalString gnomeShellSupport "--suffix XDG_DATA_DIRS : \"${gnome.gnome-shell}/share\""} \
--suffix XDG_CONFIG_DIRS : "${gnome.gnome-settings-daemon}/etc/xdg"
'';