Skip to content

Commit

Permalink
Merge pull request #319091 from bobby285271/upd/cinnamon
Browse files Browse the repository at this point in the history
Cinnamon 6.2
  • Loading branch information
bobby285271 authored Jun 30, 2024
2 parents 7e00526 + 49d0f43 commit 4b2a0b2
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 128 deletions.
5 changes: 5 additions & 0 deletions nixos/doc/manual/release-notes/rl-2411.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@
The derivation now installs "impl" headers selectively instead of by a wildcard.
Use `imgui.src` if you just want to access the unpacked sources.

- Cinnamon has been updated to 6.2.
- Following Mint 22 defaults, the Cinnamon module no longer ships geary and hexchat by default.
- Nemo is now built with gtk-layer-shell support, note that for now it will be expected to see nemo-desktop
listed as a regular entry in Cinnamon Wayland session's window list applet.

- Support for *runner registration tokens* has been [deprecated](https://gitlab.com/gitlab-org/gitlab/-/issues/380872)
in `gitlab-runner` 15.6 and is expected to be removed in `gitlab-runner` 18.0. Configuration of existing runners
should be changed to using *runner authentication tokens* by configuring
Expand Down
24 changes: 3 additions & 21 deletions pkgs/desktops/cinnamon/cinnamon-common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
, cjs
, evolution-data-server
, fetchFromGitHub
, fetchpatch
, gdk-pixbuf
, gettext
, libgnomekbd
Expand Down Expand Up @@ -72,25 +71,18 @@ let
in
stdenv.mkDerivation rec {
pname = "cinnamon-common";
version = "6.0.4";
version = "6.2.2";

src = fetchFromGitHub {
owner = "linuxmint";
repo = "cinnamon";
rev = version;
hash = "sha256-I0GJv2lcl5JlKPIiWoKMXTf4OLkznS5MpiOIvZ76bJQ=";
hash = "sha256-iivrPSzmvhImfrOD2Ec6BjbtRpHAQs71N/UDSPoZwTE=";
};

patches = [
./use-sane-install-dir.patch
./libdir.patch

# Switch to GNOME Online Accounts GTK
(fetchpatch {
url = "https://github.com/linuxmint/cinnamon/commit/d22f889c376734f0ca5d904885c2772e790fbadc.patch";
includes = [ "files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py" ];
hash = "sha256-xutJqxtzk3/BUQGZY/tnBkRyAfZZY7AckaGC6b7Sfn8=";
})
];

buildInputs = [
Expand Down Expand Up @@ -166,6 +158,7 @@ stdenv.mkDerivation rec {
--replace-fail 'subprocess.run(["/usr/bin/' 'subprocess.run(["' \
--replace-fail "msgfmt" "${gettext}/bin/msgfmt"
substituteInPlace ./modules/cs_info.py --replace-fail "lspci" "${pciutils}/bin/lspci"
substituteInPlace ./modules/cs_keyboard.py --replace-fail "/usr/bin/cinnamon-dbus-command" "$out/bin/cinnamon-dbus-command"
substituteInPlace ./modules/cs_themes.py --replace-fail "$out/share/cinnamon/styles.d" "/run/current-system/sw/share/cinnamon/styles.d"
popd
Expand All @@ -178,17 +171,6 @@ stdenv.mkDerivation rec {
postInstall = ''
# Use locales from cinnamon-translations.
ln -s ${cinnamon-translations}/share/locale $out/share/locale
# Do not install online accounts module, with a -Donlineaccounts=false c-c-c
# this just shows an empty page.
rm -f $out/share/cinnamon/cinnamon-settings/modules/cs_online_accounts.py
# g-o-a-gtk already provides its own desktop item.
rm -f $out/share/applications/cinnamon-settings-online-accounts.desktop
# Actually removes Adwaita and HighContrast from Cinnamon styles with mint-artwork 1.8.2.
# https://github.com/linuxmint/cinnamon/commit/13b1ad104e88197f6c4e2d02ab2674c07254b8e8
rm -r $out/share/cinnamon/styles.d
'';

preFixup = ''
Expand Down
6 changes: 2 additions & 4 deletions pkgs/desktops/cinnamon/cinnamon-control-center/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@

stdenv.mkDerivation rec {
pname = "cinnamon-control-center";
version = "6.0.1";
version = "6.2.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-AYnI+k6CzpWUutusCSDR5KhOmv5FWoChotAbCJXTh4I=";
hash = "sha256-Blod69RzPTE3DztRo0PK0MKCE+vq0HWrcJcC/1e8eRI=";
};

buildInputs = [
Expand Down Expand Up @@ -83,8 +83,6 @@ stdenv.mkDerivation rec {
mesonFlags = [
# use locales from cinnamon-translations
"--localedir=${cinnamon-translations}/share/locale"
# https://github.com/linuxmint/cinnamon-control-center/issues/326
"-Donlineaccounts=false"
];

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/cinnamon/cinnamon-desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

stdenv.mkDerivation rec {
pname = "cinnamon-desktop";
version = "6.0.0";
version = "6.2.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-Ay9JyPBsE345dBwQHChkaGuoXiB2nPyvCNhWWphL8kY=";
hash = "sha256-9uewZh0GHQAenTcZpLchgFXSt3vOhxLbaepsJIkjTdI=";
};

outputs = [ "out" "dev" ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/cinnamon/cinnamon-menus/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@

stdenv.mkDerivation rec {
pname = "cinnamon-menus";
version = "6.0.0";
version = "6.2.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-zP1jA5Fwxh6QrM5YwJo7SFPWaxkJsv1D84dhIDP5xuI=";
hash = "sha256-HOipeUV9daPSsJ+SHPlsyEAg2SwKQkZBm1JUoNtDZAY=";
};

buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/cinnamon/cinnamon-screensaver/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@

stdenv.mkDerivation rec {
pname = "cinnamon-screensaver";
version = "6.0.3";
version = "6.2.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-ncYE2dCIAQxCMCe/5zrDU9iHTIkw+iO/IQl8+pfTvLI=";
hash = "sha256-hXgDTQnOlskzyOogvk7BQ9iJ3oXRtgUUX5bXtgD+gFo=";
};

nativeBuildInputs = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ index d8428dc..1f15115 100644
]

+dbus_glib = dependency('dbus-glib-1')
executable('cinnamon-session',
executable('cinnamon-session-binary',
cinnamon_session_sources,
dependencies: [
@@ -74,7 +75,7 @@ executable('cinnamon-session',
@@ -74,7 +75,7 @@ executable('cinnamon-session-binary',
xext,
xrender,
xtest,
Expand Down

This file was deleted.

5 changes: 2 additions & 3 deletions pkgs/desktops/cinnamon/cinnamon-session/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ let
in
stdenv.mkDerivation rec {
pname = "cinnamon-session";
version = "6.0.4";
version = "6.2.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-GtaoqzcnpKbiP4OqhnLkNWzZTUqX/KgVE6JImNMkdGo=";
hash = "sha256-2KQJNUc/uvbXnqqV0Yt3cltTHNbCo+wK67NXlid02Sk=";
};

patches = [
./0001-Use-dbus_glib-instead-of-elogind.patch
./0002-Use-login-shell-for-wayland-session.patch
];

buildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/cinnamon/cinnamon-settings-daemon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@

stdenv.mkDerivation rec {
pname = "cinnamon-settings-daemon";
version = "6.0.0";
version = "6.2.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-bT6NetCBo3J9IiiJ9Hs4iC1N3n/AP9Q+6wZciuKA4i4=";
hash = "sha256-OAG5Tes+0bi+vKqm77Y7OykTpUkMdRaXIJYLuomIDMo=";
};

patches = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/cinnamon/cinnamon-translations/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

stdenv.mkDerivation rec {
pname = "cinnamon-translations";
version = "6.0.2";
version = "6.2.1";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-kLZ0niamPV5Kaq6ZBTp1SMAl6dKMkcC+rodtAoH5+Go=";
hash = "sha256-U/3+njVctLbu+n/HQ+YuGdGhNN7eWU5u9OEFOz4T69o=";
};

nativeBuildInputs = [
Expand Down
17 changes: 11 additions & 6 deletions pkgs/desktops/cinnamon/cjs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
, cairo
, glib
, readline
, spidermonkey_102
, libsysprof-capture
, spidermonkey_115
, meson
, mesonEmulatorHook
, dbus
, ninja
, which
Expand All @@ -16,13 +18,13 @@

stdenv.mkDerivation rec {
pname = "cjs";
version = "6.0.0";
version = "6.2.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = "cjs";
rev = version;
hash = "sha256-oSqEAZWEVb8NxFTScl8s5Mb04tCGDyVVslYW00s4YYk=";
hash = "sha256-/74E10txRjwN9RkjVB8M0MPYakJ659yJWanc4DC09wg=";
};

outputs = [ "out" "dev" ];
Expand All @@ -33,21 +35,24 @@ stdenv.mkDerivation rec {
pkg-config
which # for locale detection
libxml2 # for xml-stripblanks
dbus # for dbus-run-session
gobject-introspection
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];

buildInputs = [
cairo
readline
spidermonkey_102
dbus # for dbus-run-session
libsysprof-capture
spidermonkey_115
];

propagatedBuildInputs = [
glib
];

mesonFlags = [
mesonFlags = lib.optionals stdenv.hostPlatform.isMusl [
"-Dprofiler=disabled"
];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/cinnamon/muffin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@

stdenv.mkDerivation rec {
pname = "muffin";
version = "6.0.1";
version = "6.2.0";

outputs = [ "out" "dev" "man" ];

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-yd23naaPIa6xrdf7ipOvVZKqkr7/CMxNqDZ3CQ2QH+Y=";
hash = "sha256-k8hUYA4/OzL2TB8s5DJpa2nFXV2U9eY09TLkqBDq9WE=";
};

patches = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/cinnamon/nemo-extensions/srcs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ rec {
# When you bump this, you should make sure all nemo-extensions
# are actually using this file since we try to deal with tags
# like nemo-fileroller-5.6.1 according to upstream's wishes.
version = "6.0.1";
version = "6.2.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = "nemo-extensions";
rev = version;
sha256 = "sha256-zuE0SO5VJ2kKjK7JgsSf+wJgfyffTHhfICslEoPKK8Q=";
sha256 = "sha256-qghGgd+OWYiXvcGUfgiQT6rR4mJPAOfOtYB3lWLg4iA=";
};
}
Loading

0 comments on commit 4b2a0b2

Please sign in to comment.