From 7e9544c352ac53ec8db9f3f14e10ece713e10a0c Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Tue, 18 Aug 2020 19:00:50 +0200 Subject: gnu: jucipp: Fix syntax highlighting. * gnu/packages/text-editors.scm (jucipp)[arguments]: Add 'wrap' phase. --- gnu/packages/text-editors.scm | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 88ec19d898..cdd6f0ad41 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -247,7 +247,26 @@ bindings and many of the powerful features of GNU Emacs.") (setenv "DISPLAY" display) (system (string-append xorg-server "/bin/Xvfb " 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 `(("pkg-config" ,pkg-config) ("xorg-server" ,xorg-server-for-tests))) -- cgit v1.2.3 p;ofs=50'>gnu/system
AgeCommit message (Expand)Author
2021-05-22Merge branch 'master' into core-updatesMarius Bakke
2021-05-18Revert "vm: Autoload (gnu build vm)."...Tobias Geerinckx-Rice
2021-05-17vm: Remove unused imports....Ludovic Courtès
2021-05-17vm: Autoload (gnu build vm)....Ludovic Courtès
2021-05-15Merge branch 'master' into core-updatesLudovic Courtès
2021-05-10system: vm-image.tmpl: Add a crutch to allow refreshing the resolution....Maxim Cournoyer
2021-05-06gnu: system: Add SPICE capability to the VM image....Maxim Cournoyer
2021-05-04locale: Remove glibc 2.29 from '%default-locale-libcs'....Ludovic Courtès
2021-04-16Merge remote-tracking branch 'origin/master' into core-updates...Efraim Flashner
2021-04-12system: vm: Add a memory-size argument to system-docker-image....Mathieu Othacehe
2021-04-08system: vm: Set a larger value for the msize option of the 9p file system....Maxim Cournoyer
2021-03-06Merge branch 'master' into core-updatesChristopher Baines
2021-02-25system: vm: Use Guile 3.0 in Docker images....Ludovic Courtès
2021-02-22system: hurd: Have the static networking provision 'networking....Christopher Baines
2021-02-21image: Add rock64 support....Marius Bakke
2021-02-17scripts: system: Accept <image> records as input....Mathieu Othacehe
2021-02-17scripts: system: Remove 'vm-image' command....Mathieu Othacehe
2021-02-03Merge branch 'master' into core-updatesChristopher Baines
2021-01-20images: pinebook-pro: Fix default serial port....Caliph Nomble
2021-01-20services: Do not warn, when duplicate users are eq?....Leo Prikler
2021-01-20shadow: End duplicate warnings with new lines....Leo Prikler
2021-01-19system: Rename 'disk-image' command 'image'....Mathieu Othacehe
2021-01-17image: Rename "raw" image-type to "efi-raw"....Mathieu Othacehe
2021-01-13Merge branch 'staging' into 'core-updates'....Maxim Cournoyer
2021-01-13services: shepherd: 'shepherd-service-type' requires documentation....Ludovic Courtès
2021-01-13Reapply "system: Assert, that user and group names are unique."...Leo Prikler
2021-01-12Revert "system: Assert, that user and group names are unique."...Jonathan Brielmaier
2021-01-11system: Assert, that user and group names are unique....Leo Prikler
2021-01-10system: image: Fix root offset on rockchip platforms....Mathieu Othacehe
2020-12-15store-copy: 'populate-store' can optionally deduplicate files....Ludovic Courtès
2020-12-11install: Discover local substitute servers....Mathieu Othacehe
2020-12-06linux-initrd: Add bcachefs support....Tobias Geerinckx-Rice
2020-12-05images: novena: Make boot settings and RTC accessible....Danny Milosavljevic
2020-12-04image: Fix ISO image production....Mathieu Othacehe
2020-12-03images: novena: Replace agetty-service by term-auto....Danny Milosavljevic
2020-12-03images: Add novena-image-type, novena-barebones-raw-image, novena-barebones-os....Danny Milosavljevic
2020-11-29Merge remote-tracking branch 'origin/master' into core-updatesChristopher Baines
2020-11-26mapped-devices: Add 'lvm-device-mapping'....Mikhail Tsykalov
2020-11-26mapped-devices: Allow target to be list of strings....Mikhail Tsykalov
2020-11-20image: Add pinebook-pro support....Mathieu Othacehe