Merge branch 'master' into staging-next

authored by

Raphael Megzari and committed by
GitHub
acf0098b ce1d6621

+58 -37
+9
nixos/doc/manual/from_md/release-notes/rl-2111.section.xml
··· 1120 1120 release notes</link>. 1121 1121 </para> 1122 1122 </listitem> 1123 + <listitem> 1124 + <para> 1125 + GNOME desktop environment now enables 1126 + <literal>QGnomePlatform</literal> as the Qt platform theme, 1127 + which should avoid crashes when opening file chooser dialogs 1128 + in Qt apps by using XDG desktop portal. Additionally, it will 1129 + make the apps fit better visually. 1130 + </para> 1131 + </listitem> 1123 1132 </itemizedlist> 1124 1133 </section> 1125 1134 </section>
+2
nixos/doc/manual/release-notes/rl-2111.section.md
··· 319 319 - MariaDB was upgraded from 10.5.x to 10.6.x. Please read the [upstream release notes](https://mariadb.com/kb/en/changes-improvements-in-mariadb-106/) for changes and upgrade instructions. 320 320 321 321 - The MariaDB C client library, also known as libmysqlclient or mariadb-connector-c, was upgraded from 3.1.x to 3.2.x. While this should hopefully not have any impact, this upgrade comes with some changes to default behavior, so you might want to review the [upstream release notes](https://mariadb.com/kb/en/changes-and-improvements-in-mariadb-connector-c-32/). 322 + 323 + - GNOME desktop environment now enables `QGnomePlatform` as the Qt platform theme, which should avoid crashes when opening file chooser dialogs in Qt apps by using XDG desktop portal. Additionally, it will make the apps fit better visually.
+7
nixos/modules/services/x11/desktop-managers/gnome.nix
··· 372 372 xdg.portal.enable = true; 373 373 xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; 374 374 375 + # Harmonize Qt5 application style and also make them use the portal for file chooser dialog. 376 + qt5 = { 377 + enable = mkDefault true; 378 + platformTheme = mkDefault "gnome"; 379 + style = mkDefault "adwaita"; 380 + }; 381 + 375 382 networking.networkmanager.enable = mkDefault true; 376 383 377 384 services.xserver.updateDbusEnvironment = true;
+11 -14
pkgs/development/libraries/qgnomeplatform/default.nix
··· 2 2 , lib 3 3 , fetchFromGitHub 4 4 , nix-update-script 5 + , cmake 5 6 , pkg-config 6 - , gtk3 7 + , adwaita-qt 7 8 , glib 9 + , gtk3 8 10 , qtbase 9 - , qmake 10 - , qtx11extras 11 11 , pantheon 12 12 , substituteAll 13 13 , gsettings-desktop-schemas ··· 15 15 16 16 mkDerivation rec { 17 17 pname = "qgnomeplatform"; 18 - version = "0.6.1"; 18 + version = "0.8.0"; 19 19 20 20 src = fetchFromGitHub { 21 21 owner = "FedoraQt"; 22 22 repo = "QGnomePlatform"; 23 23 rev = version; 24 - sha256 = "1mwqg2zk0sfjq54vz2jjahbgi5sxw8rb71h6mgg459wp99mhlqi0"; 24 + sha256 = "C/n8i5j0UWfxhP10c4j89U+LrpPozXnam4fIPYMXZAA="; 25 25 }; 26 26 27 27 patches = [ ··· 33 33 ]; 34 34 35 35 nativeBuildInputs = [ 36 + cmake 36 37 pkg-config 37 - qmake 38 38 ]; 39 39 40 40 buildInputs = [ 41 + adwaita-qt 41 42 glib 42 43 gtk3 43 44 qtbase 44 - qtx11extras 45 45 ]; 46 46 47 - postPatch = '' 48 - # Fix plugin dir 49 - substituteInPlace decoration/decoration.pro \ 50 - --replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix" 51 - substituteInPlace theme/theme.pro \ 52 - --replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix" 53 - ''; 47 + cmakeFlags = [ 48 + "-DGLIB_SCHEMAS_DIR=${glib.getSchemaPath gsettings-desktop-schemas}" 49 + "-DQT_PLUGINS_DIR=${placeholder "out"}/${qtbase.qtPluginPrefix}" 50 + ]; 54 51 55 52 passthru = { 56 53 updateScript = nix-update-script {
+8 -7
pkgs/development/libraries/qgnomeplatform/hardcode-gsettings.patch
··· 1 - diff --git a/common/gnomehintssettings.cpp b/common/gnomehintssettings.cpp 2 - index 9860e57..40fa6ec 100644 3 - --- a/common/gnomehintssettings.cpp 4 - +++ b/common/gnomehintssettings.cpp 5 - @@ -80,9 +80,17 @@ void gtkMessageHandler(const gchar *log_domain, 6 - GnomeHintsSettings::GnomeHintsSettings() 7 - : QObject(0) 1 + diff --git a/src/common/gnomesettings.cpp b/src/common/gnomesettings.cpp 2 + index 717cc9b..ee255ea 100644 3 + --- a/src/common/gnomesettings.cpp 4 + +++ b/src/common/gnomesettings.cpp 5 + @@ -150,10 +150,18 @@ GnomeSettingsPrivate::GnomeSettingsPrivate(QObject *parent) 6 + : GnomeSettings(parent) 8 7 , m_usePortal(checkUsePortalSupport()) 8 + , m_canUseFileChooserPortal(!m_usePortal) 9 9 - , m_gnomeDesktopSettings(g_settings_new("org.gnome.desktop.wm.preferences")) 10 10 - , m_settings(g_settings_new("org.gnome.desktop.interface")) 11 + , m_fallbackFont(new QFont(QLatin1String("Sans"), 10)) 11 12 { 12 13 + g_autoptr(GSettingsSchemaSource) schemaSource = nullptr; 13 14 + g_autoptr(GSettingsSchema) gnomeDesktopSchema = nullptr;
+2 -2
pkgs/development/web/nodejs/v12.nix
··· 8 8 in 9 9 buildNodejs { 10 10 inherit enableNpm; 11 - version = "12.22.5"; 12 - sha256 = "057xhxk440pxlgqpblsh4vfwmfzy0fx1h6q3jr2j79y559ngy9zr"; 11 + version = "12.22.6"; 12 + sha256 = "0yhgkcp7lx5nglxsrybbjymx1fys3wkbbhkj6h6652gnp0b2y0n2"; 13 13 patches = lib.optional stdenv.isDarwin ./bypass-xcodebuild.diff; 14 14 }
+2 -2
pkgs/development/web/nodejs/v14.nix
··· 7 7 in 8 8 buildNodejs { 9 9 inherit enableNpm; 10 - version = "14.17.5"; 11 - sha256 = "1a0zj505nhpfcj19qvjy2hvc5a7gadykv51y0rc6032qhzzsgca2"; 10 + version = "14.17.6"; 11 + sha256 = "0pmd0haav2ychhcsw44klx6wfn8c7j1rsw08rc8hcm5i3h5wsn7l"; 12 12 patches = lib.optional stdenv.isDarwin ./bypass-xcodebuild.diff; 13 13 }
+16 -11
pkgs/tools/system/monit/default.nix
··· 1 - { lib, stdenv 2 - , fetchurl, bison, flex 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , bison 5 + , flex 3 6 , zlib 4 - , usePAM ? stdenv.hostPlatform.isLinux, pam 5 - , useSSL ? true, openssl 7 + , usePAM ? stdenv.hostPlatform.isLinux 8 + , pam 9 + , useSSL ? true 10 + , openssl 6 11 }: 7 12 8 13 stdenv.mkDerivation rec { 9 14 pname = "monit"; 10 - version = "5.27.2"; 15 + version = "5.29.0"; 11 16 12 17 src = fetchurl { 13 18 url = "${meta.homepage}dist/monit-${version}.tar.gz"; 14 - sha256 = "sha256-2ICceNXcHtenujKlpVxRFIVRMsxNpIBfjTqvjPRuqkw="; 19 + sha256 = "sha256-9mXm3R8mp0tWgomah3k0Fn3islguBIZS7PA2MYR3iF8="; 15 20 }; 16 21 17 22 nativeBuildInputs = [ bison flex ]; ··· 22 27 configureFlags = [ 23 28 (lib.withFeature usePAM "pam") 24 29 ] ++ (if useSSL then [ 25 - "--with-ssl-incl-dir=${openssl.dev}/include" 26 - "--with-ssl-lib-dir=${openssl.out}/lib" 27 - ] else [ 28 - "--without-ssl" 30 + "--with-ssl-incl-dir=${openssl.dev}/include" 31 + "--with-ssl-lib-dir=${openssl.out}/lib" 32 + ] else [ 33 + "--without-ssl" 29 34 ]) ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 30 35 # will need to check both these are true for musl 31 36 "libmonit_cv_setjmp_available=yes" ··· 33 38 ]; 34 39 35 40 meta = { 36 - homepage = "http://mmonit.com/monit/"; 41 + homepage = "https://mmonit.com/monit/"; 37 42 description = "Monitoring system"; 38 43 license = lib.licenses.agpl3; 39 44 maintainers = with lib.maintainers; [ raskin wmertens ryantm ];
+1 -1
pkgs/top-level/all-packages.nix
··· 18520 18520 18521 18521 qrupdate = callPackage ../development/libraries/qrupdate { }; 18522 18522 18523 - qgnomeplatform = libsForQt514.callPackage ../development/libraries/qgnomeplatform { }; 18523 + qgnomeplatform = libsForQt5.callPackage ../development/libraries/qgnomeplatform { }; 18524 18524 18525 18525 randomx = callPackage ../development/libraries/randomx { }; 18526 18526