Skip to content

Commit

Permalink
Merge pull request #139144 from NixOS/gnome-41
Browse files Browse the repository at this point in the history
GNOME: 40 → 41
  • Loading branch information
jtojnar authored Oct 11, 2021
2 parents 2cdd608 + b556a29 commit e859225
Show file tree
Hide file tree
Showing 107 changed files with 1,016 additions and 506 deletions.
7 changes: 7 additions & 0 deletions nixos/doc/manual/from_md/release-notes/rl-2111.section.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@
6</link> for more details.
</para>
</listitem>
<listitem>
<para>
GNOME has been upgraded to 41. Please take a look at their
<link xlink:href="https://help.gnome.org/misc/release-notes/41.0/">Release
Notes</link> for details.
</para>
</listitem>
</itemizedlist>
</section>
<section xml:id="sec-release-21.11-new-services">
Expand Down
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2111.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ In addition to numerous new and upgraded packages, this release has the followin

- `kubernetes-helm` now defaults to 3.7.0, which introduced some breaking changes to the experimental OCI manifest format. See [HIP 6](https://github.com/helm/community/blob/main/hips/hip-0006.md) for more details.

- GNOME has been upgraded to 41. Please take a look at their [Release Notes](https://help.gnome.org/misc/release-notes/41.0/) for details.

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

- [btrbk](https://digint.ch/btrbk/index.html), a backup tool for btrfs subvolumes, taking advantage of btrfs specific capabilities to create atomic snapshots and transfer them incrementally to your backup locations. Available as [services.btrbk](options.html#opt-services.brtbk.instances).
Expand Down
8 changes: 7 additions & 1 deletion nixos/modules/services/x11/desktop-managers/gnome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,13 @@ in
services.xserver.libinput.enable = mkDefault true; # for controlling touchpad settings via gnome control center

xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
xdg.portal.extraPortals = [
pkgs.xdg-desktop-portal-gnome
(pkgs.xdg-desktop-portal-gtk.override {
# Do not build portals that we already have.
buildPortalsInGnome = false;
})
];

# Harmonize Qt5 application style and also make them use the portal for file chooser dialog.
qt5 = {
Expand Down
15 changes: 15 additions & 0 deletions nixos/tests/gnome-xorg.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
services.xserver.desktopManager.gnome.debug = true;
services.xserver.displayManager.defaultSession = "gnome-xorg";

systemd.user.services = {
"org.gnome.Shell@x11" = {
serviceConfig = {
ExecStart = [
# Clear the list before overriding it.
""
# Eval API is now internal so Shell needs to run in unsafe mode.
# TODO: improve test driver so that it supports openqa-like manipulation
# that would allow us to drop this mess.
"${pkgs.gnome.gnome-shell}/bin/gnome-shell --unsafe-mode"
];
};
};
};

virtualisation.memorySize = 1024;
};

Expand Down
15 changes: 15 additions & 0 deletions nixos/tests/gnome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
})
];

systemd.user.services = {
"org.gnome.Shell@wayland" = {
serviceConfig = {
ExecStart = [
# Clear the list before overriding it.
""
# Eval API is now internal so Shell needs to run in unsafe mode.
# TODO: improve test driver so that it supports openqa-like manipulation
# that would allow us to drop this mess.
"${pkgs.gnome.gnome-shell}/bin/gnome-shell --unsafe-mode"
];
};
};
};

virtualisation.memorySize = 1024;
};

Expand Down
24 changes: 6 additions & 18 deletions pkgs/applications/misc/font-manager/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,21 @@

stdenv.mkDerivation rec {
pname = "font-manager";
version = "0.8.6";
version = "0.8.7";

src = fetchFromGitHub {
owner = "FontManager";
repo = "master";
rev = version;
sha256 = "0a18rbdy9d0fj0vnsc2rm7xlh17vjqn4kdyrq0ldzlzkb6zbdk2k";
sha256 = "lqXjGSsiWaMJGyr1c2Wt/bs4F8q51mQ1+f6vbZRQzVs=";
};

patches = [
# Fix some Desktop Settings with GNOME 40.
# https://github.com/FontManager/font-manager/issues/215
# Fix compilation with latest Vala.
# https://github.com/FontManager/font-manager/issues/240
(fetchpatch {
url = "https://github.com/FontManager/font-manager/commit/b28f325d7951a66ebf1a2a432ee09fd22048a033.patch";
sha256 = "dKbrXGb9a4JuG/4x9vprMlh5J17HKJFifRWq9BWp1ow=";
})
(fetchpatch {
url = "https://github.com/FontManager/font-manager/commit/2147204d4c4c6b58161230500186c3a5d4eeb1c1.patch";
sha256 = "2/PFLwf7h76fIIN4+lyjg/L0KVU1hhRQCfwCAGDpb00=";
})
(fetchpatch {
url = "https://github.com/FontManager/font-manager/commit/3abc541ef8606727c72af7631c021809600336ac.patch";
sha256 = "rJPnW+7uuFLxTf5tk+Rzo+xkw2+uzU6BkzPXLeR/RGc=";
})
(fetchpatch {
url = "https://github.com/FontManager/font-manager/commit/03a822f0d7b72442cd2ffcc8668da265d3535e0d.patch";
sha256 = "3Z2UqK5VV2bIwpGd1tA7fivd7ooIuV6CxTJhzgOAkIM=";
url = "https://github.com/FontManager/font-manager/commit/f9c4621389dae5999ca9d2f3c8402c2512a9ea60.patch";
sha256 = "ZEJZSUYFLKmiHpVusO3ZUXMLUzJbbbCSqMjCtwlzPRY=";
})
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

stdenv.mkDerivation rec {
pname = "evolution-ews";
version = "3.40.4";
version = "3.42.0";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0eAjb8gWhiyjqaOT5ur9gPoQv6W2u37u28qAJVMuUBU=";
sha256 = "1byi1ksimbycd0daxp5j240r3n5qlaa4b3c5l9jzkjr9g3gkclsq";
};

nativeBuildInputs = [ cmake gettext intltool pkg-config ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@

stdenv.mkDerivation rec {
pname = "evolution";
version = "3.40.4";
version = "3.42.0";

src = fetchurl {
url = "mirror://gnome/sources/evolution/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "BYXp36VQQOySNTWgRIdiRl2J4zE1Cawya76Eal1mA3Q=";
sha256 = "0yj2hifis5m2cy59skn07d8n69444vlsw62ildr1fv67zxbblib8";
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/data/documentation/gnome-user-docs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

stdenv.mkDerivation rec {
pname = "gnome-user-docs";
version = "40.3";
version = "41.0";

src = fetchurl {
url = "mirror://gnome/sources/gnome-user-docs/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "PeBXr6KsDebKcH9KdsKTLcvFVsHQ0cwCBWXcGHYpLM0=";
sha256 = "0lfxj8irwm88n3ba351ak85r97pqlds6y2hqbsic714yj4k8df1a";
};

nativeBuildInputs = [
Expand Down
15 changes: 3 additions & 12 deletions pkgs/desktops/gnome/apps/cheese/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
, stdenv
, gettext
, fetchurl
, fetchpatch
, wrapGAppsHook
, gnome-video-effects
, libcanberra-gtk3
Expand Down Expand Up @@ -35,23 +34,15 @@

stdenv.mkDerivation rec {
pname = "cheese";
version = "3.38.0";
version = "41.0";

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

src = fetchurl {
url = "mirror://gnome/sources/cheese/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0vyim2avlgq3a48rgdfz5g21kqk11mfb53b2l883340v88mp7ll8";
url = "mirror://gnome/sources/cheese/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "EG8d9n4c9Bwqp5yZveZ2rskA2wNstSX6EIObBhh9Ivk=";
};

patches = [
# Fix build with latest Vala or GLib
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/cheese/commit/7cf6268e54620bbbe5e6e61800c50fb0cb4bea57.patch";
sha256 = "WJgGNrpZLTahe7Sxr8HdTl+4Mf4VcmJb6DdiInlDcT4=";
})
];

nativeBuildInputs = [
appstream-glib
docbook_xml_dtd_43
Expand Down
20 changes: 4 additions & 16 deletions pkgs/desktops/gnome/apps/ghex/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv
{ stdenv
, lib
, fetchurl
, fetchpatch
, pkg-config
, meson
, ninja
Expand All @@ -19,13 +19,13 @@

stdenv.mkDerivation rec {
pname = "ghex";
version = "3.18.4";
version = "3.41.0";

outputs = [ "out" "dev" ];

src = fetchurl {
url = "mirror://gnome/sources/ghex/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1h1pjrr9wynclfykizqd78dbi785wjz6b63p31k87kjvzy8w3nf2";
sha256 = "KcdG8ihzteQVvDly29PdYNalH3CA5qPpVsNNZHrjRKI=";
};

nativeBuildInputs = [
Expand All @@ -50,18 +50,6 @@ stdenv.mkDerivation rec {
desktop-file-utils
];

patches = [
# Fixes for darwin. Drop in next release.
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/ghex/commit/b0af26666cd990d99076c242b2abb3efc6e98671.patch";
sha256 = "1zwdkgr2nqrn9q3ydyvrrpn5x55cdi747fhbq6mh6blp9cbrk9b5";
})
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/ghex/commit/cc8ef9e67b23604c402460010dc0b5dccb85391b.patch";
sha256 = "0j2165rfhlbrlzhmcnirqd5m89ljpz0n3nz20sxbwlc8h42zv36s";
})
];

postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome/apps/gnome-boxes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@

stdenv.mkDerivation rec {
pname = "gnome-boxes";
version = "40.3";
version = "41.1";

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

doCheck = true;
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome/apps/gnome-calendar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@

stdenv.mkDerivation rec {
pname = "gnome-calendar";
version = "40.2";
version = "41.0";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "njcB/UoOWJgA0iUgN3BkTzHVI0ZV9UqDqF/wVW3X6jM=";
sha256 = "0gqrxcn7fcvlh5c9691lx5zgdgs71ah15h5psrbhkg8qcqy95b3k";
};

patches = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/desktops/gnome/apps/gnome-characters/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@

stdenv.mkDerivation rec {
pname = "gnome-characters";
version = "40.0";
version = "41.0";

src = fetchurl {
url = "mirror://gnome/sources/gnome-characters/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "0z2xa4w921bzpzj6gv88pvbrijcnnwni6jxynwz0ybaravyzaqha";
sha256 = "0yw6mimfwn0fij8zncjb4rg8bnazd1z47rmzq85lk6807nlyqag1";
};

nativeBuildInputs = [
Expand Down
8 changes: 4 additions & 4 deletions pkgs/desktops/gnome/apps/gnome-maps/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
, gtk3
, gobject-introspection
, gdk-pixbuf
, librest
, librsvg
, libgweather
, geoclue2
, wrapGAppsHook
, folks
, libchamplain
, gfbgraph
, libsoup
, gsettings-desktop-schemas
, webkitgtk
Expand All @@ -29,11 +29,11 @@

stdenv.mkDerivation rec {
pname = "gnome-maps";
version = "40.4";
version = "41.0";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "sha256-LFt+HmX39OVP6G7d2hE46qbAaRoUlAPZXL4i7cgiUJw=";
sha256 = "sha256-G0CC22wHDp3LCFJZ6+PIpCG44eiyezKEq2BXULudjJI=";
};

doCheck = true;
Expand All @@ -53,7 +53,6 @@ stdenv.mkDerivation rec {
gdk-pixbuf
geoclue2
geocode-glib
gfbgraph
gjs
gnome-online-accounts
gnome.adwaita-icon-theme
Expand All @@ -64,6 +63,7 @@ stdenv.mkDerivation rec {
libgee
libgweather
libhandy
librest
librsvg
libsoup
webkitgtk
Expand Down
6 changes: 4 additions & 2 deletions pkgs/desktops/gnome/apps/gnome-music/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@
, gst_all_1
, libdazzle
, libsoup
, libhandy
, gsettings-desktop-schemas
}:

python3.pkgs.buildPythonApplication rec {
pname = "gnome-music";
version = "40.1.1";
version = "41.0";

format = "other";

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

nativeBuildInputs = [
Expand Down Expand Up @@ -67,6 +68,7 @@ python3.pkgs.buildPythonApplication rec {
libnotify
libdazzle
libsoup
libhandy
gsettings-desktop-schemas
tracker
] ++ (with gst_all_1; [
Expand Down
10 changes: 4 additions & 6 deletions pkgs/desktops/gnome/apps/gnome-todo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@
, libical
, librest
, json-glib
, itstool
}:

stdenv.mkDerivation rec {
pname = "gnome-todo";
version = "40.0";
version = "41.0";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "aAl8lvBnXHFCZn0QQ0ToNHLdf8xTj+wKzb9gJrucobE=";
sha256 = "1r94880d4khbjhhfnhaba3y3d4hv2bri82rzfzxn27s5iybpqras";
};

nativeBuildInputs = [
Expand All @@ -39,6 +40,7 @@ stdenv.mkDerivation rec {
gettext
python3
wrapGAppsHook
itstool
];

buildInputs = [
Expand All @@ -62,10 +64,6 @@ stdenv.mkDerivation rec {
postPatch = ''
chmod +x build-aux/meson/meson_post_install.py
patchShebangs build-aux/meson/meson_post_install.py
# https://gitlab.gnome.org/GNOME/gnome-todo/merge_requests/103
substituteInPlace src/meson.build \
--replace 'Gtk-3.0' 'Gtk-4.0'
'';

passthru = {
Expand Down
Loading

0 comments on commit e859225

Please sign in to comment.