mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-05 19:11:43 -05:00
gnu: jucipp: Fix syntax highlighting.
* gnu/packages/text-editors.scm (jucipp)[arguments]: Add 'wrap' phase.
This commit is contained in:
parent
d4d79bc94f
commit
7e9544c352
1 changed files with 20 additions and 1 deletions
|
@ -247,7 +247,26 @@ (define-public jucipp
|
||||||
(setenv "DISPLAY" display)
|
(setenv "DISPLAY" display)
|
||||||
(system (string-append xorg-server "/bin/Xvfb "
|
(system (string-append xorg-server "/bin/Xvfb "
|
||||||
display " &")))
|
display " &")))
|
||||||
#t)))))
|
#t))
|
||||||
|
(add-after 'install 'wrap
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
;; The package needs GTK+ and GtkSourceView on XDG_DATA_DIRS
|
||||||
|
;; for syntax highlighting to work. shared-mime-info is
|
||||||
|
;; necessary for MIME handling.
|
||||||
|
;; XXX: Ideally we'd reuse glib-or-gtk-wrap here, but it
|
||||||
|
;; does not pick up $gtksourceview/share/gtksourceview-3.0.
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(gtk+ (assoc-ref inputs "gtk+"))
|
||||||
|
(gtksourceview (assoc-ref inputs "gtksourceview"))
|
||||||
|
(shared-mime-info (assoc-ref inputs "shared-mime-info")))
|
||||||
|
(wrap-program (string-append out "/bin/juci")
|
||||||
|
`("XDG_DATA_DIRS" ":" prefix
|
||||||
|
(,(string-join
|
||||||
|
(map (lambda (pkg)
|
||||||
|
(string-append pkg "/share"))
|
||||||
|
(list out gtk+ gtksourceview shared-mime-info))
|
||||||
|
":"))))
|
||||||
|
#t))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)
|
`(("pkg-config" ,pkg-config)
|
||||||
("xorg-server" ,xorg-server-for-tests)))
|
("xorg-server" ,xorg-server-for-tests)))
|
||||||
|
|
Loading…
Reference in a new issue