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-12-06 16:07:01 +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-12-06 16:07:01 +00:00
|
|
|
version = "5.2.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxmint";
|
|
|
|
repo = "cinnamon";
|
|
|
|
rev = version;
|
2021-12-06 16:07:01 +00:00
|
|
|
hash = "sha256-B2Du2zis0xWeeyh3kSyz1doWImk9Fuk4qQ8HNZZdqdw=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
2021-04-22 02:08:21 +00:00
|
|
|
./use-sane-install-dir.patch
|
|
|
|
./libdir.patch
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/linuxmint/cinnamon/commit/77ed66050f7df889fcb7a10b702c7b8bcdeaa130.patch";
|
|
|
|
sha256 = "sha256-OegLxz6Xr/nxVwVOAd2oOY62ohZ3r6uYn1+YED5EBHQ=";
|
|
|
|
})
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
# TODO: review if we really need this all
|
2021-12-06 16:07:01 +00:00
|
|
|
(python3.withPackages (pp: with pp; [ dbus-python setproctitle pygobject3 pycairo xapp pillow pytz tinycss2 python-pam pexpect distro requests ]))
|
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 = {
|
2021-12-06 16:07:01 +00:00
|
|
|
providedSessions = [ "cinnamon" "cinnamon2d" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|