Subject: [PATCH gnome-team] gnu: gnome-tweaks: Update to 46.1.

From: Liliana Marie Prikler <[email-masked]>
Date: Sat, 4 Jan 2025 21:53:26 +0100

* gnu/packages/gnome.scm (gnome-tweaks): Update to 46.1.
[#:phases]: Adjust ‘skip-gtk-update-icon-cache’ accordingly.
[inputs]: Replace gtk+ with gtk and libhandy with libadwaita.
Add libgudev.
[synopsis, description]: Use “GNOME” instead of “GNOME 3”.
---
 gnu/packages/gnome.scm | 20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 738a4afddf..dd61b544d5 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -10962,7 +10962,7 @@ (define-public gnome-dictionary
 (define-public gnome-tweaks
   (package
     (name "gnome-tweaks")
-    (version "40.10")
+    (version "46.1")
     (source (origin
               (method url-fetch)
               (uri (string-append "mirror://gnome/sources/gnome-tweaks/"
@@ -10972,7 +10972,7 @@ (define-public gnome-tweaks
                (list (search-patch "gnome-tweaks-search-paths.patch")))
               (sha256
                (base32
-                "1z13xy804hld9q8k0vq5y4j5jk7m0ayqzkli8jxpymwrlcrkpzfg"))))
+                "104v62nf0ng1ycsyljci09r95v11vbcicmw2rwz89mpvhmq2l69g"))))
     (build-system meson-build-system)
     (arguments
      (list
@@ -10989,8 +10989,11 @@ (define-public gnome-tweaks
           (add-after 'unpack 'skip-gtk-update-icon-cache
             ;; Don't create 'icon-theme.cache'.
             (lambda _
-              (substitute* "meson-postinstall.py"
-                (("gtk-update-icon-cache") "true"))))
+             (substitute* "meson.build"
+               (("gtk_update_icon_cache: true")
+                "gtk_update_icon_cache: false")
+               (("update_desktop_database: true")
+                "update_desktop_database: false"))))
           (add-after 'install 'wrap
             (assoc-ref python:%standard-phases 'wrap))
           (add-after 'wrap 'wrap-gi-typelib-and-python
@@ -11007,20 +11010,21 @@ (define-public gnome-tweaks
     (inputs
      (list bash-minimal                 ; to execute the wrapper program
            gnome-desktop
-           gtk+
+           gtk
            gobject-introspection
            gsettings-desktop-schemas
-           libhandy
+           libadwaita
+           libgudev
            libnotify
            libsoup
            nautilus
            python
            python-pygobject))
-    (synopsis "Customize advanced GNOME 3 options")
+    (synopsis "Customize advanced GNOME options")
     (home-page "https://wiki.gnome.org/Apps/Tweaks")
     (description
      "GNOME Tweaks allows adjusting advanced configuration settings in
-GNOME 3.  This includes things like the fonts used in user interface elements,
+GNOME.  This includes things like the fonts used in user interface elements,
 alternative user interface themes, changes in window management behavior,
 GNOME Shell appearance and extension, etc.")
     (license license:gpl3+)))

base-commit: 198b6c745a7ac9813a8c9b9995f287b3a4c6cb48
-- 
2.47.1