2020-09-25 04:45:31 +00:00
|
|
|
{ atk
|
|
|
|
, cacert
|
|
|
|
, fetchpatch
|
|
|
|
, dbus
|
|
|
|
, cinnamon-control-center
|
|
|
|
, cinnamon-desktop
|
|
|
|
, cinnamon-menus
|
|
|
|
, cinnamon-session
|
2021-05-28 09:39:13 +00:00
|
|
|
, cinnamon-translations
|
2020-09-25 04:45:31 +00:00
|
|
|
, cjs
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gdk-pixbuf
|
|
|
|
, libgnomekbd
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, intltool
|
|
|
|
, json-glib
|
|
|
|
, callPackage
|
|
|
|
, libsoup
|
|
|
|
, libstartup_notification
|
|
|
|
, libXtst
|
2021-04-26 19:14:03 +00:00
|
|
|
, libXdamage
|
2020-09-25 04:45:31 +00:00
|
|
|
, muffin
|
|
|
|
, networkmanager
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-09-25 04:45:31 +00:00
|
|
|
, polkit
|
2021-01-15 22:18:51 +00:00
|
|
|
, lib, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, libxml2
|
|
|
|
, gtk-doc
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-09-25 04:45:31 +00:00
|
|
|
, python3
|
|
|
|
, keybinder3
|
|
|
|
, cairo
|
|
|
|
, xapps
|
|
|
|
, upower
|
|
|
|
, nemo
|
|
|
|
, libnotify
|
|
|
|
, accountsservice
|
|
|
|
, gnome-online-accounts
|
|
|
|
, glib-networking
|
|
|
|
, pciutils
|
|
|
|
, timezonemap
|
|
|
|
, libnma
|
2021-04-22 02:08:21 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gst_all_1
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cinnamon-common";
|
2021-04-22 02:08:21 +00:00
|
|
|
version = "4.8.6";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "cinnamon";
|
|
|
|
rev = version;
|
2021-04-22 02:08:21 +00:00
|
|
|
hash = "sha256-4DMXQYH1/RjLhgrn55I7Vkk6+gGsR+OVmiwxVHUIyro=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-04-22 02:08:21 +00:00
|
|
|
./use-sane-install-dir.patch
|
|
|
|
./libdir.patch
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
# TODO: review if we really need this all
|
2021-08-05 21:33:18 +00:00
|
|
|
(python3.withPackages (pp: with pp; [ dbus-python setproctitle pygobject3 pycairo xapp pillow pytz tinycss2 python-pam pexpect distro ]))
|
2020-09-25 04:45:31 +00:00
|
|
|
atk
|
|
|
|
cacert
|
|
|
|
cinnamon-control-center
|
|
|
|
cinnamon-desktop
|
|
|
|
cinnamon-menus
|
|
|
|
cjs
|
|
|
|
dbus
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libsoup
|
|
|
|
libstartup_notification
|
|
|
|
libXtst
|
2021-04-26 19:14:03 +00:00
|
|
|
libXdamage
|
2020-09-25 04:45:31 +00:00
|
|
|
muffin
|
|
|
|
networkmanager
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-09-25 04:45:31 +00:00
|
|
|
polkit
|
|
|
|
libxml2
|
|
|
|
libgnomekbd
|
2021-04-22 02:08:21 +00:00
|
|
|
gst_all_1.gstreamer
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# bindings
|
|
|
|
cairo
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.caribou
|
2020-09-25 04:45:31 +00:00
|
|
|
keybinder3
|
|
|
|
upower
|
|
|
|
xapps
|
|
|
|
timezonemap
|
|
|
|
nemo
|
|
|
|
libnotify
|
|
|
|
accountsservice
|
|
|
|
libnma
|
|
|
|
|
|
|
|
# gsi bindings
|
|
|
|
gnome-online-accounts
|
|
|
|
glib-networking # for goa
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
2021-04-22 02:08:21 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-09-25 04:45:31 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
intltool
|
|
|
|
gtk-doc
|
|
|
|
];
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
# use locales from cinnamon-translations (not using --localedir because datadir is used)
|
|
|
|
postInstall = ''
|
|
|
|
ln -s ${cinnamon-translations}/share/locale $out/share/locale
|
|
|
|
'';
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
find . -type f -exec sed -i \
|
|
|
|
-e s,/usr/share/cinnamon,$out/share/cinnamon,g \
|
|
|
|
-e s,/usr/share/locale,/run/current-system/sw/share/locale,g \
|
|
|
|
{} +
|
|
|
|
|
|
|
|
sed "s|/usr/share/sounds|/run/current-system/sw/share/sounds|g" -i ./files/usr/share/cinnamon/cinnamon-settings/bin/SettingsWidgets.py
|
|
|
|
|
|
|
|
sed "s|/usr/bin/upload-system-info|${xapps}/bin/upload-system-info|g" -i ./files/usr/share/cinnamon/cinnamon-settings/modules/cs_info.py
|
|
|
|
sed "s|upload-system-info|${xapps}/bin/upload-system-info|g" -i ./files/usr/share/cinnamon/cinnamon-settings/modules/cs_info.py
|
|
|
|
|
|
|
|
sed "s|/usr/bin/cinnamon-control-center|${cinnamon-control-center}/bin/cinnamon-control-center|g" -i ./files/usr/bin/cinnamon-settings
|
|
|
|
# this one really IS optional
|
|
|
|
sed "s|/usr/bin/gnome-control-center|/run/current-system/sw/bin/gnome-control-center|g" -i ./files/usr/bin/cinnamon-settings
|
|
|
|
|
|
|
|
sed "s|\"/usr/lib\"|\"${cinnamon-control-center}/lib\"|g" -i ./files/usr/share/cinnamon/cinnamon-settings/bin/capi.py
|
|
|
|
|
|
|
|
# another bunch of optional stuff
|
|
|
|
sed "s|/usr/bin|/run/current-system/sw/bin|g" -i ./files/usr/bin/cinnamon-launcher
|
|
|
|
|
|
|
|
sed 's|"lspci"|"${pciutils}/bin/lspci"|g' -i ./files/usr/share/cinnamon/cinnamon-settings/modules/cs_info.py
|
|
|
|
|
|
|
|
sed "s| cinnamon-session| ${cinnamon-session}/bin/cinnamon-session|g" -i ./files/usr/bin/cinnamon-session-cinnamon -i ./files/usr/bin/cinnamon-session-cinnamon2d
|
|
|
|
sed "s|/usr/bin|$out/bin|g" -i ./files/usr/share/xsessions/cinnamon.desktop ./files/usr/share/xsessions/cinnamon2d.desktop
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
providedSessions = ["cinnamon" "cinnamon2d"];
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://github.com/linuxmint/cinnamon";
|
|
|
|
description = "The Cinnamon desktop environment";
|
|
|
|
license = [ licenses.gpl2 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.cinnamon.members;
|
|
|
|
};
|
|
|
|
}
|