1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 José Miguel Sánchez García <jmi2k@openmailbox.org>
3 ;;; Copyright © 2016 Carlo Zancanaro <carlo@zancanaro.id.au>
4 ;;; Copyright © 2017, 2018, 2020 Eric Bavier <bavier@posteo.net>
5 ;;; Copyright © 2017 Feng Shu <tumashu@163.com>
6 ;;; Copyright © 2017 Nikita <nikita@n0.is>
7 ;;; Copyright © 2014 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.org>
8 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
9 ;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
10 ;;; Copyright © 2019 Andreas Enge <andreas@enge.fr>
11 ;;; Copyright © 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
12 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
13 ;;; Copyright © 2020 Tom Zander <tomz@freedommail.ch>
15 ;;; This file is part of GNU Guix.
17 ;;; GNU Guix is free software; you can redistribute it and/or modify it
18 ;;; under the terms of the GNU General Public License as published by
19 ;;; the Free Software Foundation; either version 3 of the License, or (at
20 ;;; your option) any later version.
22 ;;; GNU Guix is distributed in the hope that it will be useful, but
23 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
24 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 ;;; GNU General Public License for more details.
27 ;;; You should have received a copy of the GNU General Public License
28 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
30 (define-module (gnu packages text-editors)
31 #:use-module (guix packages)
32 #:use-module (guix download)
33 #:use-module (guix git-download)
34 #:use-module (guix utils)
35 #:use-module (guix build-system cmake)
36 #:use-module (guix build-system gnu)
37 #:use-module (guix build-system cmake)
38 #:use-module (guix build-system glib-or-gtk)
39 #:use-module (guix build-system python)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages aspell)
43 #:use-module (gnu packages assembly)
44 #:use-module (gnu packages autotools)
45 #:use-module (gnu packages boost)
46 #:use-module (gnu packages code)
47 #:use-module (gnu packages documentation)
48 #:use-module (gnu packages fontutils)
49 #:use-module (gnu packages gcc)
50 #:use-module (gnu packages gettext)
51 #:use-module (gnu packages glib)
52 #:use-module (gnu packages gtk)
53 #:use-module (gnu packages guile)
54 #:use-module (gnu packages haskell-xyz)
55 #:use-module (gnu packages libbsd)
56 #:use-module (gnu packages libreoffice)
57 #:use-module (gnu packages llvm)
58 #:use-module (gnu packages lua)
59 #:use-module (gnu packages ncurses)
60 #:use-module (gnu packages pcre)
61 #:use-module (gnu packages perl)
62 #:use-module (gnu packages pkg-config)
63 #:use-module (gnu packages python)
64 #:use-module (gnu packages python-xyz)
65 #:use-module (gnu packages qt)
66 #:use-module (gnu packages regex)
67 #:use-module (gnu packages ruby)
68 #:use-module (gnu packages terminals)
69 #:use-module (gnu packages texinfo)
70 #:use-module (gnu packages version-control)
71 #:use-module (gnu packages xml)
72 #:use-module (gnu packages xorg))
80 (uri (string-append "https://github.com/martanne/vis/releases"
82 "/vis-v" version ".tar.gz"))
85 "0aw35n8xk7ir84ckvczc6yshj9ynishrlz0qlv4yc1afbra1gxmn"))))
86 (build-system gnu-build-system)
88 `(#:test-target "test"
89 #:tests? #f ; no releases; snapshots are missing tests
91 (modify-phases %standard-phases
92 (add-after 'install 'wrap-binary
93 (lambda* (#:key inputs outputs #:allow-other-keys)
94 (let* ((out (assoc-ref outputs "out"))
95 (lpeg (assoc-ref inputs "lua-lpeg"))
96 (lua-version ,(version-major+minor (package-version lua)))
97 (LUA_PATH (string-append lpeg "/share/lua/"
98 lua-version "/?.lua"))
99 (LUA_CPATH (string-append lpeg "/lib/lua/"
100 lua-version "/?.so")))
101 (wrap-program (string-append out "/bin/vis")
102 `("LUA_PATH" ":" prefix (,LUA_PATH))
103 `("LUA_CPATH" ":" prefix (,LUA_CPATH)))
105 (inputs `(("lua" ,lua)
107 ("libtermkey" ,libtermkey)
108 ("lua-lpeg" ,lua-lpeg)
110 (synopsis "Vim-like text editor")
112 "Vis aims to be a modern, legacy free, simple yet efficient vim-like text
113 editor. It extends vim's modal editing with built-in support for multiple
114 cursors/selections and combines it with sam's structural regular expression
115 based command language.")
116 (home-page "https://github.com/martanne/vis")
117 (license (list license:isc ; Main distribution.
118 license:public-domain ; map.[ch]
119 license:expat)))) ; lexers and libutf.[ch]
121 (define-public kakoune
124 (version "2020.01.16")
128 (uri (string-append "https://github.com/mawww/kakoune/"
129 "releases/download/v" version "/"
130 "kakoune-" version ".tar.bz2"))
132 (base32 "1bhd990gywdwdhxc5dn83wwj418c5cw1ndqycf7k0a02kxlg3550"))))
133 (build-system gnu-build-system)
136 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
138 (modify-phases %standard-phases
139 (add-after 'unpack 'patch-source
141 ;; kakoune uses confstr with _CS_PATH to find out where to find
142 ;; a posix shell, but this doesn't work in the build
143 ;; environment. This substitution just replaces that result
144 ;; with the "sh" path.
145 (substitute* "src/shell_manager.cc"
146 (("if \\(m_shell.empty\\(\\)\\)" line)
147 (string-append "m_shell = \"" (which "sh")
150 (delete 'configure) ; no configure script
151 ;; kakoune requires us to be in the src/ directory to build
152 (add-before 'build 'chdir
153 (lambda _ (chdir "src") #t)))))
155 `(("asciidoc" ,asciidoc)
156 ("pkg-config" ,pkg-config)
159 `(("ncurses" ,ncurses)))
160 (synopsis "Vim-inspired code editor")
162 "Kakoune is a code editor heavily inspired by Vim, as such most of its
163 commands are similar to Vi's ones, and it shares Vi's \"keystrokes as a text
164 editing language\" model. Kakoune has a strong focus on interactivity, most
165 commands provide immediate and incremental results, while still being
166 competitive (as in keystroke count) with Vim.")
167 (home-page "https://kakoune.org/")
168 (license license:unlicense)))
177 (uri (string-append "https://sourceforge.net/projects/joe-editor/"
178 "files/JOE sources/joe-" version "/"
179 "joe-" version ".tar.gz"))
182 "1pmr598xxxm9j9dl93kq4dv36zyw0q2dh6d7x07hf134y9hhlnj9"))))
183 (build-system gnu-build-system)
184 (inputs `(("ncurses" ,ncurses)))
185 (home-page "http://joe-editor.sourceforge.net/")
186 (synopsis "Console screen editor")
188 "JOE is a powerful console screen editor with a \"mode-less\" user
189 interface similar to many user-friendly editors. JOE has some of the key
190 bindings and many of the powerful features of GNU Emacs.")
191 (license license:gpl3+)))
193 (define-public jucipp
197 (home-page "https://gitlab.com/cppit/jucipp")
200 (uri (git-reference (url home-page)
201 (commit (string-append "v" version))
202 ;; Two submodules are required which are
203 ;; developed alongside JuCi++ and difficult
204 ;; to package separately.
206 (file-name (git-file-name name version))
208 (base32 "177myy6qvjlb6j3f3i3xmfml5r3p9in8xzpvm0n59dn56s81gpnr"))))
209 (build-system cmake-build-system)
211 `(#:configure-flags '("-DBUILD_TESTING=ON"
213 ;; These arguments are here to facilitate an "in-source"
214 ;; build using "./build" instead of the default "../build".
215 ;; The test suite expects that to be the case.
218 #:phases (modify-phases %standard-phases
219 (add-before 'configure 'enter-build-directory
225 (add-after 'unpack 'patch-tiny-process-library
227 (with-directory-excursion "lib/tiny-process-library"
228 (substitute* '("process_unix.cpp"
230 (("/bin/sh") (which "sh"))))
232 (add-after 'unpack 'disable-git-test
234 (substitute* "tests/CMakeLists.txt"
235 ;; Disable the git test, as it requires the full checkout.
236 (("add_test\\(git_test.*\\)") ""))
238 (add-before 'check 'pre-check
239 (lambda* (#:key inputs #:allow-other-keys)
240 ;; Tests do not expect HOME to be empty.
241 (setenv "HOME" "/etc")
243 ;; Most tests require an X server.
244 (let ((xorg-server (assoc-ref inputs "xorg-server"))
246 (setenv "DISPLAY" display)
247 (system (string-append xorg-server "/bin/Xvfb "
251 `(("pkg-config" ,pkg-config)
252 ("xorg-server" ,xorg-server-for-tests)))
256 ("ctags" ,universal-ctags)
258 ("gtksourceviewmm" ,gtksourceviewmm)
259 ("libclang" ,clang-10) ;XXX: must be the same version as Mesas LLVM
260 ("libgit2" ,libgit2)))
261 (synopsis "Lightweight C++ IDE")
263 "juCi++ is a small @dfn{IDE} (Integrated Development Environment)
264 designed especially towards libclang with speed, stability, and ease of use
267 It supports autocompletion, on-the-fly warnings and errors, syntax
268 highlighting, and integrates with Git as well as the CMake and Meson build
270 (license license:expat)))
272 (define-public leafpad
278 (uri (string-append "mirror://savannah/"
279 "leafpad/leafpad-" version ".tar.gz"))
282 "0b0az2wvqgvam7w0ns1j8xp2llslm1rx6h7zcsy06a7j0yp257cm"))))
283 (build-system glib-or-gtk-build-system)
285 `(("intltool" ,intltool)
286 ("pkg-config" ,pkg-config)))
289 (home-page "http://tarot.freeshell.org/leafpad/")
290 (synopsis "GTK+ based text editor")
291 (description "Leafpad is a GTK+ text editor that emphasizes simplicity. As
292 development focuses on keeping weight down to a minimum, only the most essential
293 features are implemented in the editor. Leafpad is simple to use, is easily
294 compiled, requires few libraries, and starts up quickly. ")
295 (license license:gpl2+)))
303 (uri (string-append "https://sites.google.com/site/e3editor/Home/"
304 "e3-" version ".tgz"))
307 "0919kadkas020maqq37852isnzp053q2fnws2zh3mz81d1jiviak"))
308 (modules '((guix build utils)))
310 ;; Remove pre-built binaries.
312 (delete-file-recursively "bin")
314 (build-system gnu-build-system)
317 #:make-flags (list (string-append "PREFIX="
318 (assoc-ref %outputs "out")))
319 #:phases (modify-phases %standard-phases
320 (delete 'configure))))
323 (home-page "https://sites.google.com/site/e3editor/")
324 (synopsis "Tiny text editor written in assembly")
326 "e3 is a micro text editor with an executable code size between 3800 and
327 35000 bytes. Except for ``syntax highlighting'', the e3 binary supports all
328 of the basic functions one expects plus built in arithmetic calculations.
329 UTF-8 coding of unicode characters is supported as well. e3 can use
330 Wordstar-, EMACS-, Pico, Nedit or vi-like key bindings. e3 can be used on
331 16, 32, and 64-bit CPUs.")
332 (supported-systems '("x86_64-linux" "i686-linux"))
333 (license license:gpl2+)))
342 (url "https://github.com/hboetes/mg")
344 (file-name (git-file-name name version))
347 "14vrm8lvwksf697sqks7xfd1xaqjlqjc9afjk33sksq5p27wr203"))
348 (modules '((guix build utils)))
350 (substitute* "GNUmakefile"
353 (build-system gnu-build-system)
355 `(("pkg-config" ,pkg-config)))
358 ("ncurses" ,ncurses)))
360 ;; No test suite available.
362 #:make-flags (list (string-append "prefix=" %output)
364 #:phases (modify-phases %standard-phases
365 (delete 'configure) ; no configure script
366 (add-before 'build 'correct-location-of-difftool
368 (substitute* "buffer.c"
372 (add-before 'install 'patch-tutorial-location
373 (lambda* (#:key outputs #:allow-other-keys)
375 (("/usr") (assoc-ref outputs "out")))
377 (add-after 'install 'install-tutorial
378 (lambda* (#:key outputs #:allow-other-keys)
379 (let* ((out (assoc-ref outputs "out"))
380 (doc (string-append out "/share/doc/mg")))
381 (install-file "tutorial" doc)
383 (home-page "https://homepage.boetes.org/software/mg/")
384 (synopsis "Microscopic GNU Emacs clone")
386 "Mg (@command{mg}) is a GNU Emacs style editor, with which it is
387 \"broadly\" compatible. This is a portable version of the mg maintained by the
389 (license license:public-domain)))
391 (define-public qemacs
398 (uri (string-append "https://bellard.org/qemacs/"
399 "qemacs-" version ".tar.gz"))
401 (base32 "156z4wpj49i6j388yjird5qvrph7hz0grb4r44l4jf3q8imadyrg"))))
402 (build-system gnu-build-system)
404 `(#:tests? #f ;no test
406 (modify-phases %standard-phases
407 (add-before 'build 'build-qhtml
408 ;; Build fails without first creating qHTML library.
409 (lambda _ (invoke "make" "-C" "libqhtml")))
410 (add-before 'install 'fix-man-pages-directory
411 ;; Install in $out/share/man instead of $out/man.
413 (substitute* "Makefile"
414 (("/man/man1" all) (string-append "/share" all)))
416 (add-before 'install 'create-directories
417 ;; Ensure directories exist before installing files.
418 (lambda* (#:key outputs #:allow-other-keys)
419 (let ((out (assoc-ref outputs "out")))
420 (for-each (lambda (d) (mkdir-p (string-append out d)))
421 '("/bin" "/share/man/man1" "/share/qe"))
423 (add-after 'install 'install-extra-documentation
424 ;; Install sample configuration file, Info, and HTML manual.
425 (lambda* (#:key outputs #:allow-other-keys)
426 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
427 (doc (string-append share "/doc/" ,name "-" ,version))
428 (html (string-append share "/html"))
429 (info (string-append share "/info"))
430 (makeinfo (string-append (assoc-ref %build-inputs "texinfo")
432 ;; First fix Texinfo documentation, create appropriate
433 ;; directories, then generate Info and HTML files there.
434 (substitute* "qe-doc.texi"
435 (("^M-([{}])" _ bracket) (string-append "M-@" bracket)))
436 (for-each (lambda (d) (mkdir-p d)) (list html info))
437 (invoke makeinfo "qe-doc.texi" "-o" info)
438 (invoke makeinfo "qe-doc.texi" "--html" "--no-split" "-o" html)
439 ;; Install sample configuration file.
440 (install-file "config.eg" doc)
443 `(("texinfo" ,texinfo)))
448 (home-page "https://bellard.org/qemacs/")
449 (synopsis "Small but powerful text editor")
450 (description "QEmacs (for Quick Emacs) is a very small but
451 powerful editor. It has features that even big editors lack:
455 @item Full screen editor with an Emacs look and feel with all Emacs
456 common features: multi-buffer, multi-window, command mode, universal
457 argument, keyboard macros, config file with C-like syntax, minibuffer
458 with completion and history.
460 @item Can edit files of hundreds of Megabytes without being slow by
461 using a highly optimized internal representation and by mmaping the
464 @item Full Unicode support, including multi charset handling (8859-x,
465 UTF8, SJIS, EUC-JP, ...) and bidirectional editing respecting the
466 Unicode bidi algorithm. Arabic and Indic scripts handling (in
469 @item WYSIWYG HTML/XML/CSS2 mode graphical editing. Also supports
470 Lynx like rendering on VT100 terminals.
472 @item WYSIWYG DocBook mode based on XML/CSS2 renderer.
474 @item C mode: coloring with immediate update. Emacs like auto-indent.
476 @item Shell mode: colorized VT100 emulation so that your shell work
477 exactly as you expect. Compile mode with next/prev error.
479 @item Input methods for most languages, including Chinese (input
480 methods come from the Yudit editor).
482 @item Hexadecimal editing mode with insertion and block commands.
483 Unicode hexa editing is also supported.
485 @item Works on any VT100 terminals without termcap. UTF8 VT100
486 support included with double width glyphs.
488 @item X11 support. Support multiple proportional fonts at the same
489 time (as XEmacs). X Input methods supported. Xft extension supported
490 for anti aliased font display.
492 @item Small! Full version (including HTML/XML/CSS2/DocBook rendering
493 and all charsets): 200KB big. Basic version (without bidir/unicode
494 scripts/input/X11/C/Shell/HTML/Dired): 49KB.
496 (license license:lgpl2.1+)))
498 (define-public ghostwriter
505 (url "https://github.com/wereturtle/ghostwriter.git")
506 (commit (string-append "v" version))))
507 (file-name (git-file-name name version))
510 "0jc6szfh5sdnafhwsr1xv7cn1fznniq58bix41hb9wlbkvq7wzi6"))))
511 (build-system gnu-build-system)
513 `(("pkg-config" ,pkg-config)
514 ("qttools" ,qttools))) ; for lrelease
516 `(("hunspell" ,hunspell)
518 ("qtdeclarative" ,qtdeclarative)
519 ("qtmultimedia" ,qtmultimedia)
520 ("qtquickcontrols" ,qtquickcontrols)
522 ("qtwebchannel" ,qtwebchannel)))
523 (propagated-inputs ; To get native-search-path
524 `(("qtwebengine" ,qtwebengine)))
527 (modify-phases %standard-phases
529 (lambda* (#:key outputs #:allow-other-keys)
530 (let ((out (assoc-ref outputs "out")))
531 (invoke "qmake" (string-append "PREFIX=" out)))))
532 (add-after 'configure 'create-translations
534 ;; `lrelease` will not overwrite, so delete existing .qm files
535 (for-each delete-file (find-files "translations" ".*\\.qm"))
536 (apply invoke "lrelease" (find-files "translations" ".*\\.ts"))))
537 ;; Ensure that icons are found at runtime.
538 (add-after 'install 'wrap-executable
539 (lambda* (#:key inputs outputs #:allow-other-keys)
540 (let ((out (assoc-ref outputs "out")))
541 (wrap-program (string-append out "/bin/ghostwriter")
542 `("QT_PLUGIN_PATH" ":" prefix
543 ,(map (lambda (label)
544 (string-append (assoc-ref inputs label)
545 "/lib/qt5/plugins/"))
546 '("qtsvg" "qtmultimedia"))))))))))
547 (home-page "https://wereturtle.github.io/ghostwriter/")
548 (synopsis "Write without distractions")
550 "@code{ghostwriter} provides a relaxing, distraction-free writing
551 environment with Markdown markup.")
552 (license license:gpl3+))) ; icons/* under CC-BY-SA3
554 (define-public manuskript
562 (url "https://github.com/olivierkes/manuskript.git")
564 (file-name (git-file-name name version))
566 (base32 "1l6l9k6k69yv8xqpll0zv9cwdqqg4zvxy90l6sx5nv2yywh5crla"))))
567 (build-system python-build-system)
569 `(#:tests? #f ;no test
571 (modify-phases %standard-phases
575 (lambda* (#:key outputs #:allow-other-keys)
576 (let* ((out (assoc-ref outputs "out"))
577 (share (string-append out "/share/manuskript")))
582 (let ((destination (string-append share "/" d)))
583 (mkdir-p destination)
584 (copy-recursively d destination)))
585 '("bin" "i18n" "icons" "libs" "manuskript" "resources"))
586 ;; Install documentation.
587 (let ((doc (string-append out
588 "/doc/manuskript-" ,version
589 "/sample-projects")))
591 (copy-recursively "sample-projects" doc))
592 ;; Wrap executable in "$out/share/manuskript/bin" and
593 ;; link to it from "$out/bin".
594 (let ((bin (string-append out "/bin"))
595 (executable (string-append share "/bin/manuskript")))
596 (wrap-program executable
597 (list "PYTHONPATH" 'prefix (list (getenv "PYTHONPATH"))))
599 (with-directory-excursion bin
600 (symlink (string-append share "/bin/manuskript")
602 ;; Install icons and create .desktop file.
603 (let ((apps (string-append out "/share/applications"))
604 (icons-dir (string-append out "/share/pixmaps")))
605 (install-file "icons/Manuskript/manuskript.svg" icons-dir)
607 (with-output-to-file (string-append apps "/manuskript.desktop")
612 MimeType=application/x-manuskript-book;~@
613 Exec=~a/bin/manuskript %f~@
614 Comment=Tool for writers~@
615 Comment[es]=Herramienta para escritores/as~@
616 Keywords=manuskript;office;write;edit;novel;text;msk~@
620 Categories=Office;WordProcessor;~%"
624 `(("ghc-pandoc" ,ghc-pandoc)
625 ("python-lxml" ,python-lxml)
626 ("python-markdown" ,python-markdown)
627 ("python-pyqt" ,python-pyqt)
629 (home-page "http://www.theologeek.ch/manuskript/")
630 (synopsis "Tool for writers")
631 (description "Manuskript provides a rich environment to help
632 writers create their first draft and then further refine and edit
633 their masterpiece. With Manuskript you can:
636 @item Grow your premise from one sentence, to a paragraph, to a full
638 @item Create characters,
639 @item Conceive plots,
640 @item Construct outlines (Outline mode and/or Index cards),
641 @item Write with focus (Distraction free mode),
644 @item Edit and re-organize chapters and scenes,
645 @item View Story line,
646 @item Compose with fiction or non-fiction templates and writing modes,
647 @item Import and export document formats such as HTML, ePub,
648 OpenDocument, DocX, and more.
651 Additionally Manuskript can help in many more ways with a spell
652 checker, markdown highlighter, frequency analyzer, and automatic save
653 in plain text file format.")
654 (license license:gpl3+)))
656 (define-public editorconfig-core-c
658 (name "editorconfig-core-c")
664 (url "https://github.com/editorconfig/editorconfig-core-c.git")
665 (commit (string-append "v" version))))
666 (file-name (git-file-name name version))
669 "0jkc69r4jwn4rih6h6cqvgljjc3ff49cxj8286mi515aczr48cm1"))))
670 (build-system cmake-build-system)
673 (modify-phases %standard-phases
674 (add-after 'unpack 'insert-tests
675 (lambda* (#:key inputs #:allow-other-keys)
676 (let ((tests (assoc-ref inputs "tests")))
677 (copy-recursively tests "tests"))
683 (url "https://github.com/editorconfig/editorconfig-core-test")
684 (commit "6ea1d8ece62cac9cf72c79dce4879b046abe1fe7"))) ; matches version
685 (file-name (git-file-name "editorconfig-core-test" version))
688 "1sf6910idnd4bgzbj8w8f9ldsbkaqa0lh6syymwy3hfqda63acj7"))))))
691 (home-page "https://editorconfig.org/")
692 (synopsis "EditorConfig core library written in C")
693 (description "EditorConfig makes it easy to maintain the correct coding
694 style when switching between different text editors and between different
695 projects. The EditorConfig project maintains a file format and plugins for
696 various text editors which allow this file format to be read and used by those
698 (license license:bsd-2)))
700 (define-public texmacs
707 (uri (string-append "https://www.texmacs.org/Download/ftp/tmftp/"
708 "source/TeXmacs-" version "-src.tar.gz"))
710 (base32 "12bp0f34izzqimz49lfpgf4lyz3h45s9xbmk8v6zsawdjki76alg"))
711 (modules '((guix build utils)))
714 (delete-file-recursively "3rdparty")
716 (build-system gnu-build-system)
718 `(("pkg-config" ,pkg-config)))
720 `(("freetype" ,freetype)
723 ("python" ,python-wrapper)
726 `(#:tests? #f ; no check target
728 (modify-phases %standard-phases
729 (add-before 'configure 'gzip-flags
731 (substitute* "Makefile.in"
732 (("^GZIP = gzip -f") "GZIP = gzip -f -n")))))))
733 (synopsis "Editing platform with special features for scientists")
735 "GNU TeXmacs is a text editing platform which is specialized for
736 scientists. It is ideal for editing structured documents with different
737 types of content. It has robust support for mathematical formulas and plots.
738 It can also act as an interface to external mathematical programs such as R
739 and Octave. TeXmacs is completely extensible via Guile.")
740 (license license:gpl3+)
741 (home-page "https://www.texmacs.org/tmweb/home/welcome.en.html")))
743 (define-public scintilla
750 (uri (let ((v (apply string-append (string-split version #\.))))
751 (string-append "https://www.scintilla.org/scintilla" v ".tgz")))
753 (base32 "080v9l7dn3qgkdg0nc0kwpj6warwpi904zjgz9kzg1l6pknxf21s"))))
754 (build-system gnu-build-system)
756 `(#:make-flags (list "GTK3=1" "CC=gcc" "-Cgtk")
757 #:tests? #f ;require un-packaged Pyside
759 (modify-phases %standard-phases
760 (delete 'configure) ;no configure script
762 ;; Upstream provides no install script.
763 (lambda* (#:key outputs #:allow-other-keys)
764 (let* ((out (assoc-ref outputs "out"))
765 (lib (string-append out "/lib"))
766 (include (string-append out "/include")))
767 (for-each (lambda (f) (install-file f lib))
768 (find-files "bin/" "\\.so$"))
769 (for-each (lambda (f) (install-file f include))
770 (find-files "include/" "."))
773 `(("pkg-config" ,pkg-config)
774 ("python" ,python-wrapper)))
777 (home-page "https://www.scintilla.org/")
778 (synopsis "Code editor for GTK+")
779 (description "Scintilla is a source code editing component for
780 GTK+. It has the usual features found in text editing components, as
781 well as some that are especially useful for editing and debugging
782 source code; these include support for syntax styling, error
783 indicators, code completion and call tips. Styling choices are more
784 open than with many editors: Scintilla lets you use proportional
785 fonts, bold and italics, multiple foreground and background colours,
786 and multiple fonts.")
787 (license license:hpnd)))
796 (uri (string-append "https://download.geany.org/"
797 "geany-" version ".tar.bz2"))
799 (base32 "0gnm17cr4rf3pmkf0axz4a0fxwnvp55ji0q0lzy88yqbshyxv14i"))))
800 (build-system gnu-build-system)
802 `(("autoconf" ,autoconf)
803 ("automake" ,automake)
806 ("intltool" ,intltool)
808 ("pkg-config" ,pkg-config)
809 ("python-docutils" ,python-docutils))) ;for rst2html
812 ;; FIXME: Geany bundles a 3.X release of Scintilla. It is not
813 ;; currently possible to replace it with our Scintilla package.
814 ;; ("scintilla" ,scintilla)
817 `(#:imported-modules ((guix build glib-or-gtk-build-system)
818 ,@%gnu-build-system-modules)
819 #:modules (((guix build glib-or-gtk-build-system) #:prefix glib-or-gtk:)
820 (guix build gnu-build-system)
823 (modify-phases %standard-phases
824 (add-after 'install 'glib-or-gtk-wrap
825 (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)))))
826 (home-page "https://www.geany.org")
827 (synopsis "Fast and lightweight IDE")
828 (description "Geany is a small and fast Integrated Development
829 Environment (IDE) that only has a few dependencies on other packages and is as
830 independent as possible from special desktop environments like KDE or GNOME.
832 The basic features of Geany are:
834 @item syntax highlighting
835 @item code completion
836 @item auto completion of often constructed constructs like if, for and while
837 @item auto completion of XML and HTML tags
840 @item many supported filetypes like C, Java, PHP, HTML, Python, Perl, Pascal
842 @item embedded terminal emulation
843 @item extensibility through plugins
845 (license license:gpl2+)))
850 ;; Stable release is 1.8. However, this development version
851 ;; introduces support for UTF-8.
855 (uri (string-append "http://www.moria.de/~michael/fe/"
856 "fe-" version ".tar.gz"))
859 "1hwws7si1752z6hp61zxznvgsb6846lp8zl1hn5ddhsbafwalwb9"))))
860 (build-system gnu-build-system)
862 `(#:tests? #f ;no test
863 ;; Sendmail is only used to send a crash log. Disable the
864 ;; feature since it is (1) undocumented (2) not very useful.
865 #:configure-flags (list "--disable-sendmail")
867 (modify-phases %standard-phases
868 (add-after 'install 'install-doc
869 (lambda* (#:key outputs #:allow-other-keys)
870 (let* ((out (assoc-ref outputs "out"))
871 (doc (string-append out "/share/doc/" ,name "-" ,version)))
872 (for-each (lambda (f) (install-file f doc))
873 '("fe.doc" "fe.html" "fe.ps" "feref.ps" "README"))
876 `(("gettext" ,gettext-minimal)))
878 `(("ncurses" ,ncurses)))
879 (home-page "http://www.moria.de/~michael/fe/")
880 (synopsis "Small folding editor")
881 (description "Fe is a small folding editor. It folds
882 arbitrary text regions; it is not bound to syntactic units.
884 Fe has no configuration or extension language and requires no setup.
885 Its user interface is emacs-like and it has menus for the very most
886 important functions to help beginners. Further there is a reference
890 @item Regions and Emacs-like kill ring
891 @item Incremental search
892 @item Keyboard macros
893 @item Editing binary files
894 @item Multiple windows and views
895 @item Compose function for Latin 1 characters
897 (license license:gpl2+)))
906 (url "https://github.com/vigna/ne.git")
908 (file-name (git-file-name name version))
911 "0h6d08cnwrk96ss83i9bragwwanph6x54sm3ak1z81146dsqsiif"))))
912 (build-system gnu-build-system)
915 ("texinfo" ,texinfo)))
917 `(("ncurses" ,ncurses)))
922 (string-append "PREFIX=" (assoc-ref %outputs "out"))
923 (string-append "LDFLAGS=-L" (assoc-ref %build-inputs "ncurses")
926 (modify-phases %standard-phases
929 (substitute* "src/makefile"
930 (("-lcurses") "-lncurses"))
932 (home-page "http://ne.di.unimi.it/")
933 (synopsis "Text editor with menu bar")
934 (description "This package provides a modeless text editor with menu bar.
935 It supports syntax highlighting, regular expressions, configurable menus,
936 keybindings, autocomplete and unlimited undo. It can pipe a marked block
937 of text through any command line filter. It can also open very large binary
938 files. It was originally developed on the Amiga 3000T.")
939 (license license:gpl3+)))
948 (uri (string-append "https://devel.ringlet.net/files/editors/hexer/"
949 "hexer-" version ".tar.xz"))
951 (base32 "157z17z8qivdin2km2wp86x1bv1nx15frrwcz11mk0l3ab74mf76"))))
952 (build-system gnu-build-system)
954 `(#:tests? #f ;no upstream tests
957 (string-append "PREFIX=" (assoc-ref %outputs "out"))
958 (string-append "LTERMCAP=-lncurses")
959 (string-append "LDFLAGS=-L" (assoc-ref %build-inputs "ncurses")
962 (modify-phases %standard-phases
963 (delete 'configure)))) ;no configure script
965 `(("ncurses" ,ncurses)))
966 (home-page "https://devel.ringlet.net/editors/hexer/")
967 (synopsis "Multi buffer editor for binary files with vi-like interface")
968 (description "Hexer is a multi-buffer editor for binary files for Unix-like
969 systems that displays its buffer(s) as a hex dump. The user interface is kept
971 (license license:bsd-3)))