gnu: gnome-tweaks: Update to 40.10.
* gnu/packages/gnome.scm (gnome-tweaks): Update to 40.10. [arguments]: Use gexps. [modules]: New argument. [phases]{wrap}: Do not use @@ import style. {wrap-gi-typelib-and-python}: Compute the site-packages directory via the procedure of the same name. [native-inputs]: Remove labels.
This commit is contained in:
parent
5808a8ba3e
commit
89a340ebad
|
@ -10146,7 +10146,7 @@ (define-public gnome-dictionary
|
||||||
(define-public gnome-tweaks
|
(define-public gnome-tweaks
|
||||||
(package
|
(package
|
||||||
(name "gnome-tweaks")
|
(name "gnome-tweaks")
|
||||||
(version "40.0")
|
(version "40.10")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://gnome/sources/gnome-tweaks/"
|
(uri (string-append "mirror://gnome/sources/gnome-tweaks/"
|
||||||
|
@ -10156,41 +10156,40 @@ (define-public gnome-tweaks
|
||||||
(list (search-patch "gnome-tweaks-search-paths.patch")))
|
(list (search-patch "gnome-tweaks-search-paths.patch")))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0sn3xsjhnini0f2dyi1ymrr3fb8mi7w5j5lsyw11rc5h67h3ypzr"))))
|
"1z13xy804hld9q8k0vq5y4j5jk7m0ayqzkli8jxpymwrlcrkpzfg"))))
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:glib-or-gtk? #t
|
(list
|
||||||
#:configure-flags '("-Dlocalstatedir=/tmp"
|
#:glib-or-gtk? #t
|
||||||
"-Dsysconfdir=/tmp")
|
#:configure-flags #~(list "-Dlocalstatedir=/tmp"
|
||||||
#:imported-modules ((guix build python-build-system)
|
"-Dsysconfdir=/tmp")
|
||||||
|
#:imported-modules `((guix build python-build-system)
|
||||||
,@%meson-build-system-modules)
|
,@%meson-build-system-modules)
|
||||||
#:phases
|
#:modules '((guix build meson-build-system)
|
||||||
(modify-phases %standard-phases
|
((guix build python-build-system) #:prefix python:)
|
||||||
(add-after 'unpack 'skip-gtk-update-icon-cache
|
(guix build utils))
|
||||||
;; Don't create 'icon-theme.cache'.
|
#:phases
|
||||||
(lambda _
|
#~(modify-phases %standard-phases
|
||||||
(substitute* "meson-postinstall.py"
|
(add-after 'unpack 'skip-gtk-update-icon-cache
|
||||||
(("gtk-update-icon-cache") "true"))))
|
;; Don't create 'icon-theme.cache'.
|
||||||
(add-after 'install 'wrap
|
(lambda _
|
||||||
(@@ (guix build python-build-system) wrap))
|
(substitute* "meson-postinstall.py"
|
||||||
(add-after 'wrap 'wrap-gi-typelib-and-python
|
(("gtk-update-icon-cache") "true"))))
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(add-after 'install 'wrap
|
||||||
(let ((out (assoc-ref outputs "out"))
|
(assoc-ref python:%standard-phases 'wrap))
|
||||||
(gi-typelib-path (getenv "GI_TYPELIB_PATH")))
|
(add-after 'wrap 'wrap-gi-typelib-and-python
|
||||||
(let ((python-path
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(string-append out "/lib/python"
|
(wrap-program (search-input-file outputs "bin/gnome-tweaks")
|
||||||
,(version-major+minor
|
`("GI_TYPELIB_PATH" ":" prefix
|
||||||
(package-version python))
|
(,(getenv "GI_TYPELIB_PATH")))
|
||||||
"/site-packages")))
|
`("GUIX_PYTHONPATH" ":" prefix
|
||||||
(wrap-program (string-append out "/bin/gnome-tweaks")
|
(,(python:site-packages inputs outputs)))))))))
|
||||||
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
|
|
||||||
`("GUIX_PYTHONPATH" ":" prefix (,python-path))))))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("glib:bin" ,glib "bin") ; for glib-compile-resources, etc.
|
(list `(,glib "bin") ; for glib-compile-resources, etc.
|
||||||
("intltool" ,intltool)
|
gettext-minimal
|
||||||
("pkg-config" ,pkg-config)))
|
pkg-config))
|
||||||
(inputs
|
(inputs
|
||||||
(list bash-minimal ; to execute the wrapper program
|
(list bash-minimal ; to execute the wrapper program
|
||||||
gnome-desktop
|
gnome-desktop
|
||||||
gtk+
|
gtk+
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
|
|
Loading…
Reference in a new issue