summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2016-12-30 19:36:33 +0000
committerLudovic Courtès <ludo@gnu.org>2017-01-06 10:23:27 +0100
commit9af6bce1e1557da6ea6ae938a2c26deb152464a9 (patch)
treeb851b96f454460c7b62f40c0f7a499a0d92adad6
parent7ef335b0e86458178ea1e8c5f843841e1d37f469 (diff)
downloadguix-9af6bce1e1557da6ea6ae938a2c26deb152464a9.tar.gz
gnu: gnome-tweak-tool: Wrap program to set 'GI_TYPELIB_PATH'.
* gnu/packages/gnome.scm (gnome-tweak-tool)[arguments]: Add
'wrap-program' phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/gnome.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index a0238f91aa..04e2b2f172 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5295,6 +5295,13 @@ existing databases over the internet.")
        #:imported-modules ((guix build python-build-system)
                            ,@%glib-or-gtk-build-system-modules)
        #:phases (modify-phases %standard-phases
+                  (add-after 'install 'wrap-program
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (let ((out               (assoc-ref outputs "out"))
+                            (gi-typelib-path   (getenv "GI_TYPELIB_PATH")))
+                        (wrap-program (string-append out "/bin/gnome-tweak-tool")
+                          `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
+                      #t))
                   (add-after 'install 'wrap
                     (@@ (guix build python-build-system) wrap)))))
     (native-inputs