From 9af6bce1e1557da6ea6ae938a2c26deb152464a9 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 30 Dec 2016 19:36:33 +0000 Subject: gnu: gnome-tweak-tool: Wrap program to set 'GI_TYPELIB_PATH'. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/gnome.scm (gnome-tweak-tool)[arguments]: Add 'wrap-program' phase. Signed-off-by: Ludovic Courtès --- gnu/packages/gnome.scm | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit 1.4.1