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>
This commit is contained in:
Christopher Baines 2016-12-30 19:36:33 +00:00 committed by Ludovic Courtès
parent 7ef335b0e8
commit 9af6bce1e1
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -5295,6 +5295,13 @@ (define-public gnome-tweak-tool
#: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