23 stdenv.mkDerivation rec {
24 pname = "mate-session-manager";
28 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
29 sha256 = "0yzkWVuh2mUpB3cgPyvIK9lzshSjoECAoe9caJkKLXs=";
33 # allow turning on debugging from environment variable
35 url = "https://github.com/mate-desktop/mate-session-manager/commit/3ab6fbfc811d00100d7a2959f8bbb157b536690d.patch";
36 sha256 = "0yjaklq0mp44clymyhy240kxlw95z3azmravh4f5pfm9dys33sg0";
54 mate-screensaver # for gsm_manager_init
60 enableParallelBuilding = true;
62 env.NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
65 substituteInPlace $out/share/xsessions/mate.desktop \
66 --replace-fail "Exec=mate-session" "Exec=$out/bin/mate-session"
69 passthru.providedSessions = [ "mate" ];
71 passthru.updateScript = mateUpdateScript { inherit pname; };
74 description = "MATE Desktop session manager";
75 homepage = "https://github.com/mate-desktop/mate-session-manager";
76 license = with licenses; [ gpl2Plus lgpl2Plus ];
77 platforms = platforms.unix;
78 maintainers = teams.mate.members;