2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gettext, xtrans, dbus-glib, systemd,
|
2020-04-24 23:36:52 +00:00
|
|
|
libSM, libXtst, gtk3, epoxy, polkit, hicolor-icon-theme, mate,
|
2021-04-25 03:57:28 +00:00
|
|
|
wrapGAppsHook, fetchpatch, mateUpdateScript
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mate-session-manager";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "1.26.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-17 00:15:33 +00:00
|
|
|
url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "05hqi8wlwjr07mp5njhp7h06mgnv98zsxaxkmxc5w3iwb3va45ar";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# allow turning on debugging from environment variable
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/mate-desktop/mate-session-manager/commit/3ab6fbfc811d00100d7a2959f8bbb157b536690d.patch";
|
|
|
|
sha256 = "0yjaklq0mp44clymyhy240kxlw95z3azmravh4f5pfm9dys33sg0";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
gettext
|
|
|
|
xtrans
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus-glib
|
|
|
|
systemd
|
|
|
|
libSM
|
|
|
|
libXtst
|
|
|
|
gtk3
|
|
|
|
mate.mate-desktop
|
|
|
|
hicolor-icon-theme
|
|
|
|
epoxy
|
|
|
|
polkit
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $out/share/xsessions/mate.desktop \
|
2021-04-25 03:57:28 +00:00
|
|
|
--replace "Exec=mate-session" "Exec=$out/bin/mate-session"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.providedSessions = [ "mate" ];
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
passthru.updateScript = mateUpdateScript { inherit pname version; };
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "MATE Desktop session manager";
|
|
|
|
homepage = "https://github.com/mate-desktop/mate-session-manager";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|