Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cinnamon 5.6 #201328

Merged
merged 28 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
383d720
cinnamon.cinnamon-menus: 5.4.0 -> 5.6.0
bobby285271 Nov 15, 2022
b40cf40
cinnamon.xapp: 2.2.15 -> 2.4.1
bobby285271 Nov 15, 2022
7e4fb8d
python3.pkgs.xapp: 2.2.2 -> 2.4.0
bobby285271 Nov 15, 2022
faed103
cinnamon.mint-artwork: 1.6.0 -> 1.6.8
bobby285271 Nov 15, 2022
840f7dd
cinnamon.cinnamon-control-center: 5.4.7 -> 5.6.0
bobby285271 Nov 16, 2022
559038e
cinnamon.cinnamon-translations: 5.4.2 -> 5.6.0
bobby285271 Nov 16, 2022
0c216fd
cinnamon.cinnamon-session: 5.4.0 -> 5.6.0
bobby285271 Nov 16, 2022
2274c28
cinnamon.cinnamon-settings-daemon: 5.4.5 -> 5.6.0
bobby285271 Nov 16, 2022
921e69e
cinnamon.cinnamon-screensaver: 5.4.4 -> 5.6.1
bobby285271 Nov 17, 2022
a44d01d
cinnamon.xreader: 3.4.5 -> 3.6.0
bobby285271 Nov 17, 2022
02a8d3d
cinnamon.cinnamon-control-center: Clean up
bobby285271 Nov 17, 2022
0c0912a
cinnamon.muffin: 5.4.7 -> 5.6.0
bobby285271 Nov 17, 2022
9d380ac
cinnamon.cinnamon-desktop: 5.4.2 -> 5.6.0
bobby285271 Nov 17, 2022
cb0e280
cinnamon.cjs: 5.4.1 -> 5.6.1
bobby285271 Nov 17, 2022
c6e57ec
cinnamon.cinnamon-common: 5.4.12 -> 5.6.2
bobby285271 Nov 16, 2022
d1f6094
xed-editor: 3.2.7 -> 3.2.8
bobby285271 Nov 21, 2022
6e8d5bb
cinnamon.nemo: 5.4.3 -> 5.6.0
bobby285271 Nov 21, 2022
f0c5278
hypnotix: Fix launching with mpv 0.35.0
bobby285271 Nov 21, 2022
d2f95e9
hypnotix: 2.9 -> 3.0
bobby285271 Nov 21, 2022
02c5143
cinnamon.pix: 2.8.7 -> 2.8.8
bobby285271 Nov 22, 2022
e0a6bde
cinnamon.xviewer: 3.2.10 -> 3.2.11
bobby285271 Nov 22, 2022
e6cc44d
cinnamon.mint-x-icons: Switch to tags, use stdenvNoCC
bobby285271 Nov 22, 2022
7492567
cinnamon.mint-y-icons: Switch to tags, use stdenvNoCC
bobby285271 Nov 22, 2022
4035cd5
cinnamon.mint-themes: Switch to tags, use stdenvNoCC
bobby285271 Nov 22, 2022
131c145
timeshift: 22.06.5 -> 22.11.1
bobby285271 Nov 22, 2022
9bb2e8d
cinnamon.mint-y-icons: 1.6.1 -> 1.6.5
bobby285271 Nov 22, 2022
7891c25
cinnamon.mint-themes: 2.0.5 -> 2.0.7
bobby285271 Nov 25, 2022
89f3049
rl-23.05: Mention cinnamon 5.6 update
bobby285271 Nov 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion nixos/doc/manual/from_md/release-notes/rl-2305.section.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<itemizedlist spacing="compact">
<listitem>
<para>
Create the first release note entry in this section!
Cinnamon has been updated to 5.6, see
<link xlink:href="https://github.com/NixOS/nixpkgs/pull/201328#issue-1449910204">the
pull request</link> for what is changed.
</para>
</listitem>
</itemizedlist>
Expand Down
2 changes: 1 addition & 1 deletion nixos/doc/manual/release-notes/rl-2305.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In addition to numerous new and upgraded packages, this release has the followin

<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->

- Create the first release note entry in this section!
- Cinnamon has been updated to 5.6, see [the pull request](https://github.com/NixOS/nixpkgs/pull/201328#issue-1449910204) for what is changed.

## New Services {#sec-release-23.05-new-services}

Expand Down
3 changes: 1 addition & 2 deletions nixos/modules/services/x11/desktop-managers/cinnamon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,10 @@ in
# theme
sound-theme-freedesktop
nixos-artwork.wallpapers.simple-dark-gray
mint-artwork
mint-artwork # cursors
mint-themes
mint-x-icons
mint-y-icons
vanilla-dmz
] config.environment.cinnamon.excludePackages);

xdg.mime.enable = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/backup/timeshift/unwrapped.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@

stdenv.mkDerivation rec {
pname = "timeshift";
version = "22.06.5";
version = "22.11.1";

src = fetchFromGitHub {
owner = "linuxmint";
repo = "timeshift";
rev = version;
sha256 = "IHX/F3tnl3ckX20mnPHmuK/W4pRTFHzBUfaJg2sMpqc=";
sha256 = "JYYiqJzLszaCJSl7fDb9Oz8tdIYAnqEbJoRg4zw3wbg=";
};

patches = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/editors/xed-editor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

stdenv.mkDerivation rec {
pname = "xed-editor";
version = "3.2.7";
version = "3.2.8";

src = fetchFromGitHub {
owner = "linuxmint";
repo = "xed";
rev = version;
sha256 = "sha256-aO5ilmlkSAxlkWYdSLmrcm7pC8GbITpCitd4TXp5tfY=";
sha256 = "sha256-ax769qjV0oZ6tnEE5FsXNbHETI6KNgvh0WviBsPs9j8=";
};

nativeBuildInputs = [
Expand Down
8 changes: 6 additions & 2 deletions pkgs/applications/video/hypnotix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,24 @@

stdenv.mkDerivation rec {
pname = "hypnotix";
version = "2.9";
version = "3.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = "hypnotix";
rev = version;
hash = "sha256-jjCyO6lyhqH4xeNp5uy/KqNr5Mvv+45pJGHFOXNi0rk=";
hash = "sha256-ZSHChUkd1yXVGNUotzyZ9eB7s3apwvRmEJcO5J0vsZQ=";
};

patches = [
(substituteAll {
src = ./libmpv-path.patch;
libmpv = "${lib.getLib mpv}/lib/libmpv${stdenv.hostPlatform.extensions.sharedLibrary}";
})

# Fix launching with mpv 0.35.0 (ubuntu 22.04 doesn't have libmpv.so.2)
# https://github.com/linuxmint/hypnotix/issues/254
./fix-deprecated-mpv-detach-destroy.patch
];

postPatch = ''
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/usr/lib/hypnotix/mpv.py b/usr/lib/hypnotix/mpv.py
index f42a3be..db94bf6 100644
--- a/usr/lib/hypnotix/mpv.py
+++ b/usr/lib/hypnotix/mpv.py
@@ -528,7 +528,7 @@ _mpv_create = backend.mpv_create
_handle_func('mpv_create_client', [c_char_p], MpvHandle, notnull_errcheck)
_handle_func('mpv_client_name', [], c_char_p, errcheck=None)
_handle_func('mpv_initialize', [], c_int, ec_errcheck)
-_handle_func('mpv_detach_destroy', [], None, errcheck=None)
+_handle_func('mpv_destroy', [], None, errcheck=None)
_handle_func('mpv_terminate_destroy', [], None, errcheck=None)
_handle_func('mpv_load_config_file', [c_char_p], c_int, ec_errcheck)
_handle_func('mpv_get_time_us', [], c_ulonglong, errcheck=None)
@@ -881,7 +881,7 @@ class MPV(object):
self._message_handlers[target](*args)

if eid == MpvEventID.SHUTDOWN:
- _mpv_detach_destroy(self._event_handle)
+ _mpv_destroy(self._event_handle)
return

except Exception as e:
18 changes: 5 additions & 13 deletions pkgs/desktops/cinnamon/cinnamon-common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@

stdenv.mkDerivation rec {
pname = "cinnamon-common";
version = "5.4.12";
version = "5.6.2";

src = fetchFromGitHub {
owner = "linuxmint";
repo = "cinnamon";
rev = version;
hash = "sha256-uyQZXri3V3dKnowB97QlPWboZz1neblyvCuSacsPROg=";
hash = "sha256-JvdbapOJq2w0tObnGd8t+SLruWN0sblKhSf2dlHR9Go=";
};

patches = [
Expand Down Expand Up @@ -136,7 +136,9 @@ stdenv.mkDerivation rec {
pkg-config
];

# use locales from cinnamon-translations (not using --localedir because datadir is used)
# Use locales from cinnamon-translations.
# FIXME: Upstream does not respect localedir option from Meson currently.
# https://github.com/linuxmint/cinnamon/pull/11244#issuecomment-1305855783
postInstall = ''
ln -s ${cinnamon-translations}/share/locale $out/share/locale
'';
Expand All @@ -149,26 +151,16 @@ stdenv.mkDerivation rec {

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|${xapp}/bin/upload-system-info|g" -i ./files/usr/share/cinnamon/cinnamon-settings/modules/cs_info.py
mkg20001 marked this conversation as resolved.
Show resolved Hide resolved
sed "s|\"upload-system-info\"|\"${xapp}/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

sed "s|/usr/bin/cinnamon-screensaver-command|/run/current-system/sw/bin/cinnamon-screensaver-command|g" \
-i ./files/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js -i ./files/usr/share/cinnamon/applets/user@cinnamon.org/applet.js

# 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 ./files/usr/share/applications/cinnamon2d.desktop

sed "s|msgfmt|${gettext}/bin/msgfmt|g" -i ./files/usr/share/cinnamon/cinnamon-settings/bin/Spices.py

Expand Down
26 changes: 2 additions & 24 deletions pkgs/desktops/cinnamon/cinnamon-control-center/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
, libnotify
, libxml2
, gnome-online-accounts
, cinnamon-settings-daemon
, colord
, polkit
, libxkbfile
Expand All @@ -36,13 +35,13 @@

stdenv.mkDerivation rec {
pname = "cinnamon-control-center";
version = "5.4.7";
version = "5.6.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-38n1QCygkBq+wOLwui1oF6MtDWxAFWxp5U1omSVtbro=";
hash = "sha256-WK35uDckIYU4HwuYtLj+CFVJD8O78LTQcnOvjp/et2s=";
};

buildInputs = [
Expand All @@ -56,7 +55,6 @@ stdenv.mkDerivation rec {
libgnomekbd
libxklavier
colord
cinnamon-settings-daemon
libgudev
libwacom
gnome-online-accounts
Expand All @@ -75,38 +73,18 @@ stdenv.mkDerivation rec {
./panels/datetime/tz.h:34:# define TZ_DATA_FILE "/usr/share/lib/zoneinfo/tab/zone_sun.tab" */

postPatch = ''
find . -type f -exec sed -i \
-e s,/usr/share/locale,/run/current-system/sw/share/locale,g \
{} +

sed 's|TZ_DIR "/usr/share/zoneinfo/"|TZ_DIR "${tzdata}/share/zoneinfo/"|g' -i ./panels/datetime/test-timezone.c
sed 's|TZ_DATA_FILE "/usr/share/zoneinfo/zone.tab"|TZ_DATA_FILE "${tzdata}/share/zoneinfo/zone.tab"|g' -i ./panels/datetime/tz.h
sed 's|"/usr/share/i18n/locales/"|"${glibc}/share/i18n/locales/"|g' -i panels/datetime/test-endianess.c

patchShebangs meson_install_schemas.py
'';

# it needs to have access to that file, otherwise we can't run tests after build

preBuild = ''
mkdir -p $out/share/cinnamon-control-center/
ln -s $PWD/panels/datetime $out/share/cinnamon-control-center/
'';

mesonFlags = [
# TODO: https://github.com/NixOS/nixpkgs/issues/36468
"-Dc_args=-I${glib.dev}/include/gio-unix-2.0"
# use locales from cinnamon-translations
"--localedir=${cinnamon-translations}/share/locale"
];

preInstall = ''
rm -r $out
'';

# the only test is wacom-calibrator and it seems to need an xserver and prob more services aswell
doCheck = false;

nativeBuildInputs = [
pkg-config
meson
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 @@ -18,13 +18,13 @@

stdenv.mkDerivation rec {
pname = "cinnamon-desktop";
version = "5.4.2";
version = "5.6.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-U05JiW6PaRAEEQ/uq3wmZSQGohMz4M86Ji9pBl2Azg8=";
hash = "sha256-ajtKvy9CMr+Vsmdn49ZWYtbniZV1dqWJGTou3QY4oPc=";
};

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 = "5.4.0";
version = "5.6.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-Q4bgaX8nGSWHKHR3+hFTlHtNhSmZW8ZEHi8DaXKQ+fM=";
hash = "sha256-6IOlXQhAy6YrSqybfGFUyn3Q2COvzwpj67y/k/YLNhU=";
};

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 @@ -29,13 +29,13 @@

stdenv.mkDerivation rec {
pname = "cinnamon-screensaver";
version = "5.4.4";
version = "5.6.1";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-D+SpAO4i4KGFWJI94LalTMB3j1YPvV63cKb34FDDprk=";
hash = "sha256-dnfUvRlmsdUXfjAxPv+i/uJ8kr0LQ/i7ClUMtjjIWMo=";
};

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

stdenv.mkDerivation rec {
pname = "cinnamon-session";
version = "5.4.0";
version = "5.6.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-m16nf3eC15ZT8eDvRTylBfxsnShkU1Sm8J9qcRGeGQo=";
hash = "sha256-lyASp0jFwaPLPQ3Jnow6eTpUBybwhSEmQUK/20fsh7I=";
};

patches = [
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 = "5.4.5";
version = "5.6.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-qjI1z1MuaI5JFqjHap/+aYDQ0YuP9VNnnY6vy/AaKqs=";
hash = "sha256-VUGOBvMInruX1JVk9ECP8++FUrBQwDJhkZT/1pPg2wU=";
};

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 = "5.4.2";
version = "5.6.0";

src = fetchFromGitHub {
owner = "linuxmint";
repo = pname;
rev = version;
hash = "sha256-vt60qarNfTX9R5kGOeUBCskKK2zLdEE+ACT0EGvUeao=";
hash = "sha256-ztHHqX0OuwSFGlxCoJhZXnUsMM0WrkwiQINgDVlb0XA=";
};

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

stdenv.mkDerivation rec {
pname = "cjs";
version = "5.4.1";
version = "5.6.1";

src = fetchFromGitHub {
owner = "linuxmint";
repo = "cjs";
rev = version;
hash = "sha256-8LIVM9+Wt9V7iKUwqTBUTf8LiQ16NE3CYtCJknjl56o=";
hash = "sha256-f9esbQi5WWSMAGlEs9HJFToOvmOrbP2lDW1gGh/48gw=";
};

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

stdenv.mkDerivation rec {
pname = "mint-artwork";
version = "1.6.0";
version = "1.6.8";

src = fetchurl {
url = "http://packages.linuxmint.com/pool/main/m/mint-artwork/mint-artwork_${version}.tar.xz";
hash = "sha256-un5T56zzN2vRVp42RHczDEKwrweSeygASkFJU5LXCDo=";
urls = [
"http://packages.linuxmint.com/pool/main/m/mint-artwork/mint-artwork_${version}.tar.xz"
"https://web.archive.org/web/20221129013553/http://packages.linuxmint.com/pool/main/m/mint-artwork/mint-artwork_${version}.tar.xz"
];
hash = "sha256-HPnb5Mb6tvzREZbW9SyDNQ6ST6RPmOUVdA9MW8oyRAM=";
};

nativeBuildInputs = [
Expand All @@ -25,9 +28,7 @@ stdenv.mkDerivation rec {
find . -type f -exec sed -i \
-e s,/usr/share/backgrounds/linuxmint/default_background.jpg,${nixos-artwork.wallpapers.simple-dark-gray}/share/artwork/gnome/nix-wallpaper-simple-dark-gray.png,g \
-e s,/usr/share,$out/share,g \
-e s,DMZ-White,Vanilla-DMZ,g \
-e s,DMZ-Black,Vanilla-DMZ-AA,g \
-e s,linuxmint-logo-5,cinnamon-symbolic,g \
-e s,linuxmint-logo-ring-symbolic,cinnamon-symbolic,g \
{} +

# fixup broken symlink
Expand Down
Loading