2018-02-25 03:23:58 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, gnome3, glib, dbus-glib, json-glib, upower
|
2017-06-25 18:59:23 +02:00
|
|
|
, libxslt, intltool, makeWrapper, systemd, xorg, epoxy }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "gnome-session-${version}";
|
2018-03-13 02:03:18 +01:00
|
|
|
version = "3.28.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-session/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-13 02:03:18 +01:00
|
|
|
sha256 = "1ldcalj9i7qharvw8k8gf7pkcvwb1qwiag2ckffx9x8ic2d3v00b";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "gnome-session"; attrPath = "gnome3.gnome-session"; };
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
configureFlags = "--enable-systemd";
|
|
|
|
|
|
|
|
buildInputs = with gnome3;
|
2018-02-25 03:23:58 +01:00
|
|
|
[ pkgconfig glib gnome-desktop gtk dbus-glib json-glib libxslt
|
|
|
|
gnome3.gnome-settings-daemon xorg.xtrans gnome3.defaultIconTheme
|
|
|
|
gsettings-desktop-schemas upower intltool gconf makeWrapper systemd
|
2017-06-25 18:59:23 +02:00
|
|
|
epoxy
|
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
# FIXME: glib binaries shouldn't be in .dev!
|
|
|
|
preFixup = ''
|
2016-10-03 00:09:28 +02:00
|
|
|
for desktopFile in $(grep -rl "Exec=gnome-session" $out/share)
|
|
|
|
do
|
|
|
|
echo "Patching gnome-session path in: $desktopFile"
|
2016-10-21 05:35:31 +02:00
|
|
|
sed -i "s,^Exec=gnome-session,Exec=$out/bin/gnome-session," $desktopFile
|
2016-10-03 00:09:28 +02:00
|
|
|
done
|
2016-09-18 21:35:23 +02:00
|
|
|
wrapProgram "$out/bin/gnome-session" \
|
|
|
|
--prefix PATH : "${glib.dev}/bin" \
|
|
|
|
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
|
2016-10-02 18:38:12 +02:00
|
|
|
--suffix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
|
2018-02-25 03:23:58 +01:00
|
|
|
--suffix XDG_DATA_DIRS : "${gnome3.gnome-shell}/share" \
|
|
|
|
--suffix XDG_CONFIG_DIRS : "${gnome3.gnome-settings-daemon}/etc/xdg"
|
2016-09-18 21:35:23 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|