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
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, 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
|
|
|
|
, xapps
|
|
|
|
, xmlto
|
|
|
|
, xorg
|
|
|
|
, libexecinfo
|
|
|
|
, pango
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-session";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "5.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
hash = "sha256-E5ascwLnpa5NSBAPo9dXRhoraUntzDPHVV32uDU4U8k=";
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
# meson.build
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
libcanberra
|
|
|
|
pango
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXext
|
|
|
|
xapps
|
|
|
|
xorg.libXau
|
|
|
|
xorg.libXcomposite
|
|
|
|
|
|
|
|
systemd
|
|
|
|
|
|
|
|
xorg.libXtst
|
|
|
|
xorg.libXrender
|
|
|
|
xorg.xtrans
|
|
|
|
|
|
|
|
# other (not meson.build)
|
|
|
|
|
|
|
|
cinnamon-desktop
|
|
|
|
cinnamon-settings-daemon
|
|
|
|
dbus-glib
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
wrapGAppsHook
|
|
|
|
libexecinfo
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
python3
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
libxslt
|
|
|
|
xmlto
|
|
|
|
];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
mesonFlags = [
|
|
|
|
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
|
|
|
|
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
|
|
|
|
"-Dgconf=false"
|
|
|
|
# use locales from cinnamon-translations
|
|
|
|
"--localedir=${cinnamon-translations}/share/locale"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x data/meson_install_schemas.py # patchShebangs requires executable file
|
|
|
|
patchShebangs data/meson_install_schemas.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|