guix_mirror_bot pushed a commit to branch gnome-team
in repository guix.

commit 369e289ca08c1ca54f24336c19f02e409edc6d12
Author: Maxim Cournoyer <ma...@guixotic.coop>
AuthorDate: Mon Jul 28 16:25:46 2025 +0900

    gnu: upower: Fix test suite.
    
    * gnu/packages/gnome.scm (upower) [phases] {set-gi-typelib-path}: New phase.
    {check}: Reorder after phase new phase.
    
    Change-Id: Id7a4edc9ae7d30ad67130d908be410abe04186ff
---
 gnu/packages/gnome.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 71a1ef9cd5..9a6783d0fe 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6066,7 +6066,16 @@ faster results and to avoid unnecessary server load.")
                          (("assertEqual(.*)40\\.0" _ middle)
                           (string-append
                            "assertAlmostEqual" middle "40.0"))))
-                     '()))))))
+                     '())))
+          (delete 'check)               ;moved after install
+          (add-after 'install 'set-gi-typelib-path
+            (lambda* (#:key outputs #:allow-other-keys)
+              (setenv "GI_TYPELIB_PATH"
+                      (string-append
+                       (search-input-directory outputs "lib/girepository-1.0")
+                       ":" (getenv "GI_TYPELIB_PATH")))))
+          (add-after 'set-gi-typelib-path 'check
+            (assoc-ref %standard-phases 'check)))))
     (native-inputs
      (list `(,glib "bin")               ; for gdbus-codegen
            gobject-introspection

Reply via email to