2020-04-24 23:36:52 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, cinnamon-desktop
|
|
|
|
, cinnamon-settings-daemon
|
2021-05-28 09:39:13 +00:00
|
|
|
, cinnamon-translations
|
2020-04-24 23:36:52 +00:00
|
|
|
, dbus-glib
|
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, libcanberra
|
|
|
|
, libxslt
|
|
|
|
, makeWrapper
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, python3
|
2021-12-06 16:07:01 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, systemd
|
|
|
|
, wrapGAppsHook
|
2022-08-12 12:06:08 +00:00
|
|
|
, xapp
|
2020-04-24 23:36:52 +00:00
|
|
|
, xorg
|
|
|
|
, libexecinfo
|
|
|
|
, pango
|
|
|
|
}:
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
let
|
|
|
|
pythonEnv = python3.withPackages (pp: with pp; [
|
|
|
|
pp.xapp # don't omit `pp.`, see #213561
|
|
|
|
pygobject3
|
|
|
|
setproctitle
|
|
|
|
]);
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-session";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "6.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-9wdakMCW0RnsYdf9OmK/Q9o8m0g+5EfHVbjqvFY3d/w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2020-09-25 04:45:31 +00:00
|
|
|
./0001-Use-dbus_glib-instead-of-elogind.patch
|
2024-01-02 11:29:13 +00:00
|
|
|
./0002-Use-login-shell-for-wayland-session.patch
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
# meson.build
|
2024-01-02 11:29:13 +00:00
|
|
|
cinnamon-desktop
|
2020-04-24 23:36:52 +00:00
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
libcanberra
|
|
|
|
pango
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXext
|
2022-08-12 12:06:08 +00:00
|
|
|
xapp
|
2020-04-24 23:36:52 +00:00
|
|
|
xorg.libXau
|
|
|
|
xorg.libXcomposite
|
|
|
|
|
|
|
|
systemd
|
|
|
|
|
|
|
|
xorg.libXtst
|
|
|
|
xorg.libXrender
|
|
|
|
xorg.xtrans
|
|
|
|
|
|
|
|
# other (not meson.build)
|
|
|
|
cinnamon-settings-daemon
|
|
|
|
dbus-glib
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
2024-01-02 11:29:13 +00:00
|
|
|
pythonEnv # for cinnamon-session-quit
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
wrapGAppsHook
|
|
|
|
libexecinfo
|
|
|
|
python3
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
libxslt
|
|
|
|
];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
mesonFlags = [
|
|
|
|
# use locales from cinnamon-translations
|
|
|
|
"--localedir=${cinnamon-translations}/share/locale"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2024-01-02 11:29:13 +00:00
|
|
|
# patchShebangs requires executable file
|
|
|
|
chmod +x data/meson_install_schemas.py cinnamon-session-quit/cinnamon-session-quit.py
|
|
|
|
patchShebangs --build data/meson_install_schemas.py
|
|
|
|
patchShebangs --host cinnamon-session-quit/cinnamon-session-quit.py
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix XDG_DATA_DIRS : "${cinnamon-desktop}/share"
|
|
|
|
--prefix XDG_CONFIG_DIRS : "${cinnamon-settings-daemon}/etc/xdg"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/linuxmint/cinnamon-session";
|
|
|
|
description = "The Cinnamon session manager";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|