mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 07:12:30 -05:00
gnu: ibus: Wrap ibus-daemon with GUIX_PYTHONPATH and GI_TYPELIB_PATH.
* gnu/packages/ibus.scm (ibus)[arguments]: Wrap 'ibus-daemon' in the same way as 'ibus-setup'.
This commit is contained in:
parent
23e2ff223c
commit
55593beaba
1 changed files with 14 additions and 7 deletions
|
@ -243,13 +243,20 @@ (define-public ibus
|
||||||
#~(modify-phases #$phases
|
#~(modify-phases #$phases
|
||||||
(replace 'wrap-with-additional-paths
|
(replace 'wrap-with-additional-paths
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Make sure 'ibus-setup' runs with the correct
|
;; Make sure 'ibus-setup' and 'ibus-daemon' runs with the
|
||||||
;; GUIX_PYTHONPATH and GI_TYPELIB_PATH.
|
;; correct GUIX_PYTHONPATH and GI_TYPELIB_PATH. Wrap
|
||||||
(wrap-program (search-input-file outputs "bin/ibus-setup")
|
;; 'ibus-daemon' is needed because engines spawned by
|
||||||
`("GUIX_PYTHONPATH" ":" prefix (,(getenv "GUIX_PYTHONPATH")))
|
;; the daemon need access to those libraries.
|
||||||
`("GI_TYPELIB_PATH" ":" prefix
|
(for-each
|
||||||
(,(getenv "GI_TYPELIB_PATH")
|
(lambda (prog)
|
||||||
,(string-append #$output "/lib/girepository-1.0"))))))))))
|
(wrap-program prog
|
||||||
|
`("GUIX_PYTHONPATH" ":" prefix
|
||||||
|
(,(getenv "GUIX_PYTHONPATH")))
|
||||||
|
`("GI_TYPELIB_PATH" ":" prefix
|
||||||
|
(,(getenv "GI_TYPELIB_PATH")
|
||||||
|
,(string-append #$output "/lib/girepository-1.0")))))
|
||||||
|
(list (search-input-file outputs "bin/ibus-setup")
|
||||||
|
(search-input-file outputs "bin/ibus-daemon")))))))))
|
||||||
(inputs (modify-inputs (package-inputs ibus-minimal)
|
(inputs (modify-inputs (package-inputs ibus-minimal)
|
||||||
(prepend gtk
|
(prepend gtk
|
||||||
pango
|
pango
|
||||||
|
|
Loading…
Reference in a new issue