2020-01-24 22:04:47 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, cinnamon-desktop
|
|
|
|
, cinnamon-settings-daemon
|
2021-05-22 22:22:35 +01:00
|
|
|
, cinnamon-translations
|
2020-01-24 22:04:47 +00:00
|
|
|
, dbus-glib
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, libcanberra
|
|
|
|
, libxslt
|
|
|
|
, makeWrapper
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2020-01-24 22:04:47 +00:00
|
|
|
, python3
|
2021-11-29 16:34:50 +00:00
|
|
|
, lib
|
|
|
|
, stdenv
|
2020-01-24 22:04:47 +00:00
|
|
|
, systemd
|
|
|
|
, wrapGAppsHook
|
|
|
|
, xapps
|
|
|
|
, xmlto
|
|
|
|
, xorg
|
|
|
|
, libexecinfo
|
|
|
|
, pango
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-session";
|
2021-11-24 09:14:34 +00:00
|
|
|
version = "5.2.0";
|
2020-01-24 22:04:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-24 09:14:34 +00:00
|
|
|
hash = "sha256-E5ascwLnpa5NSBAPo9dXRhoraUntzDPHVV32uDU4U8k=";
|
2020-01-24 22:04:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2020-09-05 23:01:36 +01:00
|
|
|
./0001-Use-dbus_glib-instead-of-elogind.patch
|
2020-01-24 22:04:47 +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-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2020-01-24 22:04:47 +00:00
|
|
|
libxslt
|
|
|
|
xmlto
|
|
|
|
];
|
|
|
|
|
2021-05-22 22:22:35 +01: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-01-24 22:04:47 +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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-24 22:04:47 +00:00
|
|
|
homepage = "https://github.com/linuxmint/cinnamon-session";
|
|
|
|
description = "The Cinnamon session manager";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2020-09-05 23:40:47 +01:00
|
|
|
maintainers = teams.cinnamon.members;
|
2020-01-24 22:04:47 +00:00
|
|
|
};
|
|
|
|
}
|