gnu: gedit: Enable Python Console plugin.

* gnu/packages/gnome.scm (gedit)[arguments]: Wrap with PYTHONPATH.
This commit is contained in:
宋文武 2016-04-29 10:37:53 +08:00
parent 2ed6522ac3
commit afc25242a1

View file

@ -3944,9 +3944,12 @@ (define-public gedit
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))
(gtksourceview (assoc-ref inputs "gtksourceview"))
(gi-typelib-path (getenv "GI_TYPELIB_PATH")))
(gi-typelib-path (getenv "GI_TYPELIB_PATH"))
(python-path (getenv "PYTHONPATH")))
(wrap-program (string-append out "/bin/gedit")
;; For plugins.
`("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))
`("PYTHONPATH" ":" prefix (,python-path))
;; For language-specs.
`("XDG_DATA_DIRS" ":" prefix (,(string-append gtksourceview
"/share")))))