Skip to content

Commit

Permalink
Merge #218143: GNOME: 43 → 44
Browse files Browse the repository at this point in the history
...into staging-next
  • Loading branch information
vcunat committed Apr 7, 2023
2 parents 6abf5b5 + cd67ddc commit b856c0f
Show file tree
Hide file tree
Showing 125 changed files with 796 additions and 777 deletions.
4 changes: 3 additions & 1 deletion nixos/doc/manual/release-notes/rl-2305.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ In addition to numerous new and upgraded packages, this release has the followin

- Cinnamon has been updated to 5.6, see [the pull request](https://github.com/NixOS/nixpkgs/pull/201328#issue-1449910204) for what is changed.

- GNOME has been upgraded to version 44. Please see the [release notes](https://release.gnome.org/44/) for details.

- KDE Plasma has been updated to v5.27, see [the release notes](https://kde.org/announcements/plasma/5/5.27.0/) for what is changed.

- `nixos-rebuild` now supports an extra `--specialisation` option that can be used to change specialisation for `switch` and `test` commands.
Expand Down Expand Up @@ -223,7 +225,7 @@ In addition to numerous new and upgraded packages, this release has the followin

- `vim_configurable` has been renamed to `vim-full` to avoid confusion: `vim-full`'s build-time features are configurable, but both `vim` and `vim-full` are _customizable_ (in the sense of user configuration, like vimrc).

- Pantheon now defaults to Mutter 42 and GNOME settings daemon 42, all Pantheon packages are now tracking elementary OS 7 updates.
- Pantheon now defaults to Mutter 43 and GNOME settings daemon 43, all Pantheon packages are now tracking elementary OS 7 updates.

- The module for the application firewall `opensnitch` got the ability to configure rules. Available as [services.opensnitch.rules](#opt-services.opensnitch.rules)

Expand Down
19 changes: 11 additions & 8 deletions nixos/tests/gnome-xorg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
services.xserver.desktopManager.gnome.enable = true;
services.xserver.desktopManager.gnome.debug = true;
services.xserver.displayManager.defaultSession = "gnome-xorg";
programs.gnome-terminal.enable = true;

systemd.user.services = {
"org.gnome.Shell@x11" = {
Expand Down Expand Up @@ -61,10 +60,10 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
# False when startup is done
startingUp = su "${gdbus} ${eval} Main.layoutManager._startingUp";

# Start gnome-terminal
gnomeTerminalCommand = su "gnome-terminal";
# Start Console
launchConsole = su "${bus} gapplication launch org.gnome.Console";

# Hopefully gnome-terminal's wm class
# Hopefully Console's wm class
wmClass = su "${gdbus} ${eval} global.display.focus_window.wm_class";
in ''
with subtest("Login to GNOME Xorg with GDM"):
Expand All @@ -82,13 +81,17 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
"${startingUp} | grep -q 'true,..false'"
)
with subtest("Open Gnome Terminal"):
with subtest("Open Console"):
# Close the Activities view so that Shell can correctly track the focused window.
machine.send_key("esc")
machine.succeed(
"${gnomeTerminalCommand}"
"${launchConsole}"
)
# correct output should be (true, '"Gnome-terminal"')
# correct output should be (true, '"kgx"')
# For some reason, this deviates from Wayland.
machine.wait_until_succeeds(
"${wmClass} | grep -q 'true,...Gnome-terminal'"
"${wmClass} | grep -q 'true,...kgx'"
)
machine.sleep(20)
machine.screenshot("screen")
Expand Down
26 changes: 12 additions & 14 deletions nixos/tests/gnome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {

services.xserver.desktopManager.gnome.enable = true;
services.xserver.desktopManager.gnome.debug = true;
programs.gnome-terminal.enable = true;

environment.systemPackages = [
(pkgs.makeAutostartItem {
name = "org.gnome.Terminal";
package = pkgs.gnome.gnome-terminal;
})
];

systemd.user.services = {
"org.gnome.Shell@wayland" = {
Expand Down Expand Up @@ -64,10 +56,10 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
# False when startup is done
startingUp = su "${gdbus} ${eval} Main.layoutManager._startingUp";

# Start gnome-terminal
gnomeTerminalCommand = su "${bus} gnome-terminal";
# Start Console
launchConsole = su "${bus} gapplication launch org.gnome.Console";

# Hopefully gnome-terminal's wm class
# Hopefully Console's wm class
wmClass = su "${gdbus} ${eval} global.display.focus_window.wm_class";
in ''
with subtest("Login to GNOME with GDM"):
Expand All @@ -86,10 +78,16 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
"${startingUp} | grep -q 'true,..false'"
)
with subtest("Open Gnome Terminal"):
# correct output should be (true, '"gnome-terminal-server"')
with subtest("Open Console"):
# Close the Activities view so that Shell can correctly track the focused window.
machine.send_key("esc")
machine.succeed(
"${launchConsole}"
)
# correct output should be (true, '"org.gnome.Console"')
machine.wait_until_succeeds(
"${wmClass} | grep -q 'gnome-terminal-server'"
"${wmClass} | grep -q 'true,...org.gnome.Console'"
)
machine.sleep(20)
machine.screenshot("screen")
Expand Down
11 changes: 6 additions & 5 deletions pkgs/applications/editors/gnome-builder/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
, desktop-file-utils
, editorconfig-core-c
, fetchurl
, fetchpatch
, flatpak
, gnome
, libgit2-glib
Expand All @@ -18,6 +17,7 @@
, json-glib
, jsonrpc-glib
, libadwaita
, libdex
, libpanel
, libpeas
, libportal-gtk4
Expand All @@ -33,21 +33,21 @@
, template-glib
, vala
, vte-gtk4
, webkitgtk_5_0
, webkitgtk_6_0
, wrapGAppsHook4
, dbus
, xvfb-run
}:

stdenv.mkDerivation rec {
pname = "gnome-builder";
version = "43.6";
version = "44.1";

outputs = [ "out" "devdoc" ];

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "m08hPdloyVL75CJoUPXJVk3f1XimoPiT06K2rhmjd6k=";
sha256 = "+Tmn+VtLbh0EvY20vpygtnsqp2W4bGP03yP9s6ftzz4=";
};

patches = [
Expand Down Expand Up @@ -92,6 +92,7 @@ stdenv.mkDerivation rec {
json-glib
jsonrpc-glib
libadwaita
libdex
libpanel
libxml2
ostree
Expand All @@ -101,7 +102,7 @@ stdenv.mkDerivation rec {
sysprof
template-glib
vala
webkitgtk_5_0
webkitgtk_6_0
];

nativeCheckInputs = [
Expand Down
14 changes: 2 additions & 12 deletions pkgs/applications/graphics/gnome-photos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,17 @@

stdenv.mkDerivation rec {
pname = "gnome-photos";
version = "43.0";
version = "44.0";

outputs = [ "out" "installedTests" ];

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "x6x0WNUz8p2VUBHHS3YiTXnqMbzBLp1tDOe2w3BNCOE=";
sha256 = "544hA5fTxigJxs1VIdpuzLShHd6lvyr4YypH9Npcgp4=";
};

patches = [
./installed-tests-path.patch

# Support babel 0.1.100
(fetchpatch2 {
url = "https://gitlab.gnome.org/GNOME/gnome-photos/-/commit/64c6f733a44bac5b7f08445a686c000681f93f5f.patch";
hash = "sha256-iB5qCcDEH8pEX42ypEGJ9QMJWE8VXirv5JfdC1jP218=";
})
(fetchpatch2 {
url = "https://gitlab.gnome.org/GNOME/gnome-photos/-/commit/9db32c3508a8c5d357a053d5f8278c34b4df18f3.patch";
hash = "sha256-iz6gSu5rUBZ3Ki5GSRVuLcwX0LRQvJT17XmXQ7WJSmI=";
})
];

nativeBuildInputs = [
Expand Down
17 changes: 15 additions & 2 deletions pkgs/applications/graphics/komikku/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{ lib
, fetchFromGitLab
, fetchpatch
, desktop-file-utils
, gettext
, glib
, gobject-introspection
, gtk4
, libadwaita
, libnotify
, webkitgtk_5_0
, webkitgtk_6_0
, meson
, ninja
, pkg-config
Expand All @@ -29,6 +30,18 @@ python3.pkgs.buildPythonApplication rec {
hash = "sha256-DxW9uefY6Fks3qSUeLMp3BB85SfLgzwBr4KO9do2y2o=";
};

patches = [
# https://gitlab.com/valos/Komikku/-/merge_requests/208
(fetchpatch {
url = "https://gitlab.com/valos/Komikku/-/commit/c9a09817acd767a7cb4ceea9b212fffd798eae61.patch";
hash = "sha256-McjQApLY7OKbdelrTeh3aRw90B6T9V5FtLL5Y62BmGA=";
})
(fetchpatch {
url = "https://gitlab.com/valos/Komikku/-/commit/bda93631420f6a69a50be0068f259d60b9558930.patch";
hash = "sha256-Xu+IaQKf0I99a2uh97j8xSlGYSJHuNPMy/zZtWRxLaM=";
})
];

nativeBuildInputs = [
meson
ninja
Expand All @@ -45,7 +58,7 @@ python3.pkgs.buildPythonApplication rec {
gtk4
libadwaita
libnotify
webkitgtk_5_0
webkitgtk_6_0
gobject-introspection
];

Expand Down
8 changes: 8 additions & 0 deletions pkgs/applications/misc/feedbackd/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitLab
, fetchpatch2
, docbook-xsl-nons
, docutils
, gi-docgen
Expand Down Expand Up @@ -43,6 +44,13 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};

patches = [
(fetchpatch2 {
url = "https://source.puri.sm/Librem5/feedbackd/-/merge_requests/109.patch";
hash = "sha256-z3Ud6P2GHYOaGA2vJDD3Sz47+M8p0VcYZ5gbYcGydMk=";
})
];

depsBuildBuild = [
pkg-config
];
Expand Down
57 changes: 50 additions & 7 deletions pkgs/applications/misc/girara/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,64 @@
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, check, dbus, xvfb-run, glib, gtk, gettext, libiconv, json_c, libintl
{ lib
, stdenv
, fetchurl
, fetchpatch2
, meson
, ninja
, pkg-config
, check
, dbus
, xvfb-run
, glib
, gtk
, gettext
, libiconv
, json-glib
, libintl
}:

stdenv.mkDerivation rec {
pname = "girara";
version = "0.3.7";
version = "0.3.9";

outputs = [ "out" "dev" ];

src = fetchurl {
url = "https://git.pwmt.org/pwmt/${pname}/-/archive/${version}/${pname}-${version}.tar.gz";
sha256 = "sha256-QTQiE/jnRSWPHbKMu2zMJ6YwCaXgAb95G74BzkNtTbc=";
hash = "sha256-DoqYykR/N17BHQ90GoLvAYluQ3odWPwUGRTacN6BiWU=";
};

nativeBuildInputs = [ meson ninja pkg-config gettext check dbus ];
buildInputs = [ libintl libiconv json_c ];
propagatedBuildInputs = [ glib gtk ];
nativeCheckInputs = [ xvfb-run ];
patches = [
# Fix memory management bug revealed by GLib 2.76.
# https://git.pwmt.org/pwmt/girara/-/issues/17
(fetchpatch2 {
url = "https://git.pwmt.org/pwmt/girara/-/commit/6926cc1234853ccf3010a1e2625aafcf462ed60e.patch";
hash = "sha256-uayT6ikXtaBPxhZFyskShug3Tbvy2a9qimLRwdiAsic=";
})
];

nativeBuildInputs = [
meson
ninja
pkg-config
gettext
check
dbus
];

buildInputs = [
libintl
libiconv
json-glib
];

propagatedBuildInputs = [
glib
gtk
];

nativeCheckInputs = [
xvfb-run
];

doCheck = !stdenv.isDarwin;

Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/misc/orca/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@

buildPythonApplication rec {
pname = "orca";
version = "43.1";
version = "44.0";

format = "other";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "9ljgSc4WknO4Q0aBBCTW9QkpHwXX7MOnegPZEqo+aEA=";
sha256 = "e8WX7AvBtnQgC2L995XUuulkemNxfXVN9hWHzCUFAs4=";
};

patches = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
, ninja
, pkg-config
, python3
, webkitgtk_5_0
, webkitgtk_6_0
, blueprint-compiler
, wrapGAppsHook
}:
Expand Down Expand Up @@ -57,7 +57,7 @@ stdenv.mkDerivation rec {
gsettings-desktop-schemas
gtk4
libadwaita
webkitgtk_5_0
webkitgtk_6_0
] ++ (with gst_all_1; [
gstreamer
gst-libav
Expand Down
Loading

0 comments on commit b856c0f

Please sign in to comment.