2016-12-07 16:53:22 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2016 José Miguel Sánchez García <jmi2k@openmailbox.org>
|
2016-12-29 15:15:59 +00:00
|
|
|
|
;;; Copyright © 2016 Carlo Zancanaro <carlo@zancanaro.id.au>
|
2018-04-13 15:18:45 +00:00
|
|
|
|
;;; Copyright © 2017, 2018 Eric Bavier <bavier@member.fsf.org>
|
2017-04-09 01:28:47 +00:00
|
|
|
|
;;; Copyright © 2017 Feng Shu <tumashu@163.com>
|
Correct name and email address for ng0.
* .mailmap, Makefile.am, doc/guix.de.texi, doc/guix.fr.texi,
doc/guix.texi, etc/completion/fish/guix.fish,
gnu/packages/accessibility.scm, gnu/packages/admin.scm,
gnu/packages/audio.scm, gnu/packages/autotools.scm,
gnu/packages/cdrom.scm, gnu/packages/check.scm,
gnu/packages/cinnamon.scm, gnu/packages/compression.scm,
gnu/packages/crypto.scm, gnu/packages/databases.scm,
gnu/packages/django.scm, gnu/packages/dns.scm, gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm,
gnu/packages/enlightenment.scm, gnu/packages/erlang.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm,
gnu/packages/forth.scm, gnu/packages/fvwm.scm, gnu/packages/games.scm,
gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm,
gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/gtk.scm,
gnu/packages/guile-wm.scm,gnu/packages/guile-xyz.scm,
gnu/packages/haskell-check.scm, gnu/packages/haskell-crypto.scm,
gnu/packages/haskell.scm, gnu/packages/image-viewers.scm,
gnu/packages/image.scm, gnu/packages/irc.scm,
gnu/packages/language.scm, gnu/packages/libcanberra.scm,
gnu/packages/linux.scm, gnu/packages/lisp.scm, gnu/packages/lolcode.scm,
gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/mail.scm,
gnu/packages/markup.scm, gnu/packages/mate.scm, gnu/packages/maths.scm,
gnu/packages/mc.scm, gnu/packages/messaging.scm, gnu/packages/music.scm,
gnu/packages/ncurses.scm, gnu/packages/networking.scm,
gnu/packages/nickle.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl-check.scm, gnu/packages/perl.scm,
gnu/packages/python-compression.scm, gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm, gnu/packages/python-xyz.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm,
gnu/packages/rust.scm, gnu/packages/scheme.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/ssh.scm, gnu/packages/suckless.scm, gnu/packages/tbb.scm,
gnu/packages/telephony.scm, gnu/packages/text-editors.scm,
gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm,
gnu/packages/tor.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/web.scm,
gnu/packages/wm.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/services/certbot.scm,
gnu/services/desktop.scm, gnu/services/version-control.scm,
gnu/services/web.scm, guix/import/hackage.scm, guix/licenses.scm:
Correct name and email address for ng0.
Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
2019-03-14 09:33:38 +00:00
|
|
|
|
;;; Copyright © 2017 ng0 <ng0@n0.is>
|
2017-07-26 09:11:11 +00:00
|
|
|
|
;;; Copyright © 2014 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.org>
|
2019-03-20 23:26:14 +00:00
|
|
|
|
;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2019-03-04 19:08:52 +00:00
|
|
|
|
;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il>
|
2019-06-26 16:18:53 +00:00
|
|
|
|
;;; Copyright © 2019 Andreas Enge <andreas@enge.fr>
|
2016-12-07 16:53:22 +00:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages text-editors)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2016-12-29 15:15:59 +00:00
|
|
|
|
#:use-module (guix git-download)
|
2016-12-07 16:53:22 +00:00
|
|
|
|
#:use-module (guix utils)
|
|
|
|
|
#:use-module (guix build-system gnu)
|
2019-03-04 19:08:52 +00:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2017-07-17 18:37:31 +00:00
|
|
|
|
#:use-module (guix build-system glib-or-gtk)
|
2016-12-07 16:53:22 +00:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (gnu packages)
|
2017-05-11 21:51:54 +00:00
|
|
|
|
#:use-module (gnu packages assembly)
|
2016-12-29 15:15:59 +00:00
|
|
|
|
#:use-module (gnu packages boost)
|
|
|
|
|
#:use-module (gnu packages documentation)
|
2019-06-26 16:18:53 +00:00
|
|
|
|
#:use-module (gnu packages fontutils)
|
2016-12-29 15:15:59 +00:00
|
|
|
|
#:use-module (gnu packages gcc)
|
2017-04-09 01:28:47 +00:00
|
|
|
|
#:use-module (gnu packages glib)
|
|
|
|
|
#:use-module (gnu packages gtk)
|
2019-06-26 16:18:53 +00:00
|
|
|
|
#:use-module (gnu packages guile)
|
2017-07-26 09:11:11 +00:00
|
|
|
|
#:use-module (gnu packages libbsd)
|
2018-04-14 03:00:31 +00:00
|
|
|
|
#:use-module (gnu packages libreoffice)
|
2016-12-07 16:53:22 +00:00
|
|
|
|
#:use-module (gnu packages lua)
|
|
|
|
|
#:use-module (gnu packages ncurses)
|
2019-03-04 19:08:52 +00:00
|
|
|
|
#:use-module (gnu packages pcre)
|
2019-06-26 16:18:53 +00:00
|
|
|
|
#:use-module (gnu packages perl)
|
2017-04-09 01:28:47 +00:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2019-06-26 16:18:53 +00:00
|
|
|
|
#:use-module (gnu packages python)
|
2018-04-14 03:00:31 +00:00
|
|
|
|
#:use-module (gnu packages qt)
|
2017-12-13 14:00:20 +00:00
|
|
|
|
#:use-module (gnu packages regex)
|
2016-12-29 15:15:59 +00:00
|
|
|
|
#:use-module (gnu packages ruby)
|
2017-01-26 21:11:08 +00:00
|
|
|
|
#:use-module (gnu packages terminals)
|
2016-12-29 15:15:59 +00:00
|
|
|
|
#:use-module (gnu packages xml))
|
2016-12-07 16:53:22 +00:00
|
|
|
|
|
|
|
|
|
(define-public vis
|
|
|
|
|
(package
|
|
|
|
|
(name "vis")
|
2018-03-27 00:02:58 +00:00
|
|
|
|
(version "0.5")
|
2016-12-07 16:53:22 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/martanne/"
|
|
|
|
|
name "/archive/v" version ".tar.gz"))
|
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2017-12-13 14:00:20 +00:00
|
|
|
|
(base32
|
2018-03-27 00:02:58 +00:00
|
|
|
|
"1xbxb3q963s6sav63yw0x30lm0wvxsrzb7hr6a7dh4f8r7mp1skp"))))
|
2016-12-07 16:53:22 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
2017-12-13 14:00:20 +00:00
|
|
|
|
`(#:test-target "test"
|
|
|
|
|
#:tests? #f ; no releases; snapshots are missing tests
|
2016-12-07 16:53:22 +00:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'install 'wrap-binary
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(lpeg (assoc-ref inputs "lua-lpeg"))
|
|
|
|
|
(lua-version ,(version-major+minor (package-version lua)))
|
|
|
|
|
(LUA_PATH (string-append lpeg "/share/lua/"
|
|
|
|
|
lua-version "/?.lua"))
|
|
|
|
|
(LUA_CPATH (string-append lpeg "/lib/lua/"
|
|
|
|
|
lua-version "/?.so")))
|
|
|
|
|
(wrap-program (string-append out "/bin/vis")
|
|
|
|
|
`("LUA_PATH" ":" prefix (,LUA_PATH))
|
|
|
|
|
`("LUA_CPATH" ":" prefix (,LUA_CPATH)))
|
|
|
|
|
#t))))))
|
|
|
|
|
(native-search-paths
|
|
|
|
|
(list (search-path-specification
|
|
|
|
|
(variable "VIS_PATH")
|
|
|
|
|
(files '("share/vis")))))
|
2018-03-16 15:50:14 +00:00
|
|
|
|
(inputs `(("lua" ,lua)
|
|
|
|
|
("ncurses" ,ncurses)
|
|
|
|
|
("libtermkey" ,libtermkey)
|
|
|
|
|
("lua-lpeg" ,lua-lpeg)
|
2017-12-13 14:00:20 +00:00
|
|
|
|
("tre" ,tre)))
|
2016-12-07 16:53:22 +00:00
|
|
|
|
(synopsis "Vim-like text editor")
|
|
|
|
|
(description
|
|
|
|
|
"Vis aims to be a modern, legacy free, simple yet efficient vim-like text
|
|
|
|
|
editor. It extends vim's modal editing with built-in support for multiple
|
|
|
|
|
cursors/selections and combines it with sam's structural regular expression
|
|
|
|
|
based command language.")
|
|
|
|
|
(home-page "https://github.com/martanne/vis")
|
|
|
|
|
(license (list license:isc ; Main distribution.
|
|
|
|
|
license:public-domain ; map.[ch]
|
|
|
|
|
license:expat)))) ; lexers and libutf.[ch]
|
2016-12-29 15:15:59 +00:00
|
|
|
|
|
|
|
|
|
(define-public kakoune
|
2018-04-16 18:37:07 +00:00
|
|
|
|
(package
|
|
|
|
|
(name "kakoune")
|
2019-03-20 23:26:14 +00:00
|
|
|
|
(version "2019.01.20")
|
2018-04-16 18:37:07 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/mawww/kakoune/"
|
|
|
|
|
"releases/download/v" version "/"
|
2019-03-20 23:26:05 +00:00
|
|
|
|
"kakoune-" version ".tar.bz2"))
|
2018-04-16 18:37:07 +00:00
|
|
|
|
(sha256
|
2019-03-20 23:26:14 +00:00
|
|
|
|
(base32 "15drk7i17qdiqxqkjxhrxfclryj9qzb5ymxd20dwl05y4yi064cr"))))
|
2018-04-16 18:37:07 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:make-flags
|
|
|
|
|
(list (string-append "PREFIX=" (assoc-ref %outputs "out")))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-source
|
|
|
|
|
(lambda _
|
|
|
|
|
;; kakoune uses confstr with _CS_PATH to find out where to find
|
|
|
|
|
;; a posix shell, but this doesn't work in the build
|
|
|
|
|
;; environment. This substitution just replaces that result
|
|
|
|
|
;; with the "sh" path.
|
|
|
|
|
(substitute* "src/shell_manager.cc"
|
|
|
|
|
(("if \\(m_shell.empty\\(\\)\\)" line)
|
|
|
|
|
(string-append "m_shell = \"" (which "sh")
|
|
|
|
|
"\";\n " line)))
|
|
|
|
|
#t))
|
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
|
;; kakoune requires us to be in the src/ directory to build
|
|
|
|
|
(add-before 'build 'chdir
|
|
|
|
|
(lambda _ (chdir "src") #t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("asciidoc" ,asciidoc)
|
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("ruby" ,ruby)))
|
|
|
|
|
(inputs
|
2019-06-11 07:21:57 +00:00
|
|
|
|
`(("ncurses" ,ncurses)))
|
2018-04-16 18:37:07 +00:00
|
|
|
|
(synopsis "Vim-inspired code editor")
|
|
|
|
|
(description
|
|
|
|
|
"Kakoune is a code editor heavily inspired by Vim, as such most of its
|
2016-12-29 15:15:59 +00:00
|
|
|
|
commands are similar to Vi's ones, and it shares Vi's \"keystrokes as a text
|
|
|
|
|
editing language\" model. Kakoune has a strong focus on interactivity, most
|
|
|
|
|
commands provide immediate and incremental results, while still being
|
|
|
|
|
competitive (as in keystroke count) with Vim.")
|
2018-09-10 18:47:05 +00:00
|
|
|
|
(home-page "https://kakoune.org/")
|
2018-04-16 18:37:07 +00:00
|
|
|
|
(license license:unlicense)))
|
2017-02-01 02:26:20 +00:00
|
|
|
|
|
|
|
|
|
(define-public joe
|
|
|
|
|
(package
|
|
|
|
|
(name "joe")
|
2018-04-13 15:18:45 +00:00
|
|
|
|
(version "4.6")
|
2017-02-01 02:26:20 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://sourceforge.net/projects/joe-editor/"
|
|
|
|
|
"files/JOE sources/joe-" version "/"
|
|
|
|
|
"joe-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-04-13 15:18:45 +00:00
|
|
|
|
"1pmr598xxxm9j9dl93kq4dv36zyw0q2dh6d7x07hf134y9hhlnj9"))))
|
2017-02-01 02:26:20 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs `(("ncurses" ,ncurses)))
|
|
|
|
|
(home-page "http://joe-editor.sourceforge.net/")
|
|
|
|
|
(synopsis "Console screen editor")
|
|
|
|
|
(description
|
2017-02-02 01:08:39 +00:00
|
|
|
|
"JOE is a powerful console screen editor with a \"mode-less\" user
|
|
|
|
|
interface similar to many user-friendly editors. JOE has some of the key
|
|
|
|
|
bindings and many of the powerful features of GNU Emacs.")
|
2017-02-01 02:26:20 +00:00
|
|
|
|
(license license:gpl3+)))
|
2017-04-09 01:28:47 +00:00
|
|
|
|
|
|
|
|
|
(define-public leafpad
|
|
|
|
|
(package
|
|
|
|
|
(name "leafpad")
|
|
|
|
|
(version "0.8.18.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2018-01-15 15:20:51 +00:00
|
|
|
|
(uri (string-append "mirror://savannah/"
|
2017-04-09 01:28:47 +00:00
|
|
|
|
"leafpad/leafpad-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0b0az2wvqgvam7w0ns1j8xp2llslm1rx6h7zcsy06a7j0yp257cm"))))
|
2017-07-17 18:37:31 +00:00
|
|
|
|
(build-system glib-or-gtk-build-system)
|
2017-04-09 01:28:47 +00:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("intltool" ,intltool)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("gtk+" ,gtk+-2)))
|
2017-04-09 01:33:37 +00:00
|
|
|
|
(home-page "http://tarot.freeshell.org/leafpad/")
|
2017-04-09 01:28:47 +00:00
|
|
|
|
(synopsis "GTK+ based text editor")
|
|
|
|
|
(description "Leafpad is a GTK+ text editor that emphasizes simplicity. As
|
|
|
|
|
development focuses on keeping weight down to a minimum, only the most essential
|
|
|
|
|
features are implemented in the editor. Leafpad is simple to use, is easily
|
|
|
|
|
compiled, requires few libraries, and starts up quickly. ")
|
|
|
|
|
(license license:gpl2+)))
|
2017-05-11 21:51:54 +00:00
|
|
|
|
|
|
|
|
|
(define-public e3
|
|
|
|
|
(package
|
|
|
|
|
(name "e3")
|
|
|
|
|
(version "2.82")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://sites.google.com/site/e3editor/Home/"
|
|
|
|
|
"e3-" version ".tgz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0919kadkas020maqq37852isnzp053q2fnws2zh3mz81d1jiviak"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
|
|
|
|
|
;; Remove pre-built binaries.
|
gnu: All snippets report errors using exceptions, else return #t.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm,
gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm,
gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm,
gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm,
gnu/packages/emulators.scm, gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm, gnu/packages/fpga.scm,
gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm,
gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm,
gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm,
gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/lxde.scm, gnu/packages/machine-learning.scm,
gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm,
gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm,
gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm,
gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm,
gnu/packages/pretty-print.scm, gnu/packages/profiling.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm,
gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm,
gnu/packages/scribus.scm, gnu/packages/sdl.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm,
gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm,
gnu/packages/terminals.scm, gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm, gnu/packages/textutils.scm,
gnu/packages/tls.scm, gnu/packages/unrtf.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm:
In all snippets, report errors using exceptions, or else return #t.
2018-03-16 11:47:34 +00:00
|
|
|
|
(snippet '(begin
|
|
|
|
|
(delete-file-recursively "bin")
|
|
|
|
|
#t))))
|
2017-05-11 21:51:54 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f
|
|
|
|
|
#:make-flags (list (string-append "PREFIX="
|
|
|
|
|
(assoc-ref %outputs "out")))
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(delete 'configure))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("nasm" ,nasm)))
|
|
|
|
|
(home-page "https://sites.google.com/site/e3editor/")
|
|
|
|
|
(synopsis "Tiny text editor written in assembly")
|
|
|
|
|
(description
|
|
|
|
|
"e3 is a micro text editor with an executable code size between 3800 and
|
|
|
|
|
35000 bytes. Except for ``syntax highlighting'', the e3 binary supports all
|
|
|
|
|
of the basic functions one expects plus built in arithmetic calculations.
|
|
|
|
|
UTF-8 coding of unicode characters is supported as well. e3 can use
|
|
|
|
|
Wordstar-, EMACS-, Pico, Nedit or vi-like key bindings. e3 can be used on
|
|
|
|
|
16, 32, and 64-bit CPUs.")
|
|
|
|
|
(supported-systems '("x86_64-linux" "i686-linux"))
|
|
|
|
|
(license license:gpl2+)))
|
2017-07-26 09:11:11 +00:00
|
|
|
|
|
|
|
|
|
(define-public mg
|
|
|
|
|
(package
|
|
|
|
|
(name "mg")
|
2018-04-26 17:25:50 +00:00
|
|
|
|
(version "20180408")
|
2017-07-26 09:11:11 +00:00
|
|
|
|
(source (origin
|
2018-04-26 17:25:50 +00:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/hboetes/mg")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2017-07-26 09:11:11 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-04-26 17:25:50 +00:00
|
|
|
|
"06w86xk7sjl2x2h3z6msn8kpmwj05qdimcym77wzhz5s94dzh1bl"))
|
2017-07-26 09:11:11 +00:00
|
|
|
|
(modules '((guix build utils)))
|
gnu: All snippets report errors using exceptions, else return #t.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm,
gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm,
gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm,
gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm,
gnu/packages/emulators.scm, gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm, gnu/packages/fpga.scm,
gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm,
gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm,
gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm,
gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/lxde.scm, gnu/packages/machine-learning.scm,
gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm,
gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm,
gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm,
gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm,
gnu/packages/pretty-print.scm, gnu/packages/profiling.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm,
gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm,
gnu/packages/scribus.scm, gnu/packages/sdl.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm,
gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm,
gnu/packages/terminals.scm, gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm, gnu/packages/textutils.scm,
gnu/packages/tls.scm, gnu/packages/unrtf.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm:
In all snippets, report errors using exceptions, or else return #t.
2018-03-16 11:47:34 +00:00
|
|
|
|
(snippet '(begin
|
|
|
|
|
(substitute* "GNUmakefile"
|
|
|
|
|
(("/usr/bin/") ""))
|
|
|
|
|
#t))))
|
2017-07-26 09:11:11 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libbsd" ,libbsd)
|
|
|
|
|
("ncurses" ,ncurses)))
|
|
|
|
|
(arguments
|
|
|
|
|
;; No test suite available.
|
|
|
|
|
'(#:tests? #f
|
|
|
|
|
#:make-flags (list (string-append "prefix=" %output)
|
|
|
|
|
"CC=gcc")
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
2018-04-26 17:25:50 +00:00
|
|
|
|
(delete 'configure) ; no configure script
|
2017-07-26 14:24:56 +00:00
|
|
|
|
(add-before 'build 'correct-location-of-difftool
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "buffer.c"
|
|
|
|
|
(("/usr/bin/diff")
|
|
|
|
|
(which "diff")))
|
|
|
|
|
#t))
|
2017-07-26 09:11:11 +00:00
|
|
|
|
(add-before 'install 'patch-tutorial-location
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(substitute* "mg.1"
|
|
|
|
|
(("/usr") (assoc-ref outputs "out")))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'install 'install-tutorial
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
|
(doc (string-append out "/share/doc/mg")))
|
|
|
|
|
(install-file "tutorial" doc)
|
|
|
|
|
#t))))))
|
2018-03-06 20:02:44 +00:00
|
|
|
|
(home-page "https://homepage.boetes.org/software/mg/")
|
2017-07-26 09:11:11 +00:00
|
|
|
|
(synopsis "Microscopic GNU Emacs clone")
|
|
|
|
|
(description
|
|
|
|
|
"Mg (mg) is a GNU Emacs style editor, with which it is \"broadly\"
|
|
|
|
|
compatible. This is a portable version of the mg maintained by the OpenBSD
|
|
|
|
|
team.")
|
|
|
|
|
(license license:public-domain)))
|
2018-04-14 03:00:31 +00:00
|
|
|
|
|
|
|
|
|
(define-public ghostwriter
|
|
|
|
|
(package
|
|
|
|
|
(name "ghostwriter")
|
2019-03-21 00:11:30 +00:00
|
|
|
|
(version "1.7.4")
|
2018-04-14 03:00:31 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/wereturtle/ghostwriter.git")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-03-21 00:11:30 +00:00
|
|
|
|
"1pqlr08z5syqcq5p282asxwzrrm7c1w94baxyb467swh8yp3fj5m"))))
|
2018-04-14 03:00:31 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
2019-03-21 00:11:30 +00:00
|
|
|
|
("qttools" ,qttools))) ; for lrelease
|
2018-04-14 03:00:31 +00:00
|
|
|
|
(inputs
|
|
|
|
|
`(("hunspell" ,hunspell)
|
|
|
|
|
("qtbase" ,qtbase)
|
|
|
|
|
("qtmultimedia" ,qtmultimedia)
|
|
|
|
|
("qtsvg" ,qtsvg)
|
|
|
|
|
("qtwebkit" ,qtwebkit)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'configure
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(invoke "qmake" (string-append "PREFIX=" out)))))
|
|
|
|
|
(add-after 'configure 'create-translations
|
|
|
|
|
(lambda _
|
|
|
|
|
;; `lrelease` will not overwrite, so delete existing .qm files
|
|
|
|
|
(for-each delete-file (find-files "translations" ".*\\.qm"))
|
|
|
|
|
(apply invoke "lrelease" (find-files "translations" ".*\\.ts"))))
|
|
|
|
|
;; Ensure that icons are found at runtime.
|
|
|
|
|
(add-after 'install 'wrap-executable
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(wrap-program (string-append out "/bin/ghostwriter")
|
|
|
|
|
`("QT_PLUGIN_PATH" ":" prefix
|
|
|
|
|
,(map (lambda (label)
|
|
|
|
|
(string-append (assoc-ref inputs label)
|
|
|
|
|
"/lib/qt5/plugins/"))
|
|
|
|
|
'("qtsvg" "qtmultimedia"))))))))))
|
|
|
|
|
(home-page "https://wereturtle.github.io/ghostwriter/")
|
|
|
|
|
(synopsis "Write without distractions")
|
|
|
|
|
(description
|
|
|
|
|
"@code{ghostwriter} provides a relaxing, distraction-free writing
|
|
|
|
|
environment with Markdown markup.")
|
2019-03-21 00:11:30 +00:00
|
|
|
|
(license license:gpl3+))) ; icons/* under CC-BY-SA3
|
2019-03-04 19:08:52 +00:00
|
|
|
|
|
|
|
|
|
(define-public editorconfig-core-c
|
|
|
|
|
(package
|
|
|
|
|
(name "editorconfig-core-c")
|
|
|
|
|
(version "0.12.3")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/editorconfig/editorconfig-core-c.git")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0jkc69r4jwn4rih6h6cqvgljjc3ff49cxj8286mi515aczr48cm1"))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'insert-tests
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((tests (assoc-ref inputs "tests")))
|
|
|
|
|
(copy-recursively tests "tests"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("tests" ,(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/editorconfig/editorconfig-core-test")
|
|
|
|
|
(commit "6ea1d8ece62cac9cf72c79dce4879b046abe1fe7"))) ; matches version
|
|
|
|
|
(file-name (git-file-name "editorconfig-core-test" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1sf6910idnd4bgzbj8w8f9ldsbkaqa0lh6syymwy3hfqda63acj7"))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("pcre2" ,pcre2)))
|
|
|
|
|
(home-page "https://editorconfig.org/")
|
|
|
|
|
(synopsis "EditorConfig core library written in C")
|
|
|
|
|
(description "EditorConfig makes it easy to maintain the correct coding
|
|
|
|
|
style when switching between different text editors and between different
|
|
|
|
|
projects. The EditorConfig project maintains a file format and plugins for
|
|
|
|
|
various text editors which allow this file format to be read and used by those
|
|
|
|
|
editors.")
|
|
|
|
|
(license license:bsd-2)))
|
2019-06-26 16:18:53 +00:00
|
|
|
|
|
|
|
|
|
(define-public texmacs
|
|
|
|
|
(package
|
|
|
|
|
(name "texmacs")
|
|
|
|
|
(version "1.99.9")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.texmacs.org/Download/ftp/tmftp/"
|
|
|
|
|
"source/TeXmacs-" version "-src.tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0i95sf9y8qpgxd8f39cprbp3s200nm9lml0xdpyn46n838acvw19"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(delete-file-recursively "3rdparty")
|
|
|
|
|
#t))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("freetype" ,freetype)
|
|
|
|
|
("guile" ,guile-1.8)
|
|
|
|
|
("perl" ,perl)
|
|
|
|
|
("python" ,python-wrapper)
|
|
|
|
|
("qt" ,qt-4)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ;no check target
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'gzip-flags
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "Makefile.in"
|
|
|
|
|
(("^GZIP = gzip -f") "GZIP = gzip -f -n")))))))
|
|
|
|
|
(synopsis "Editing platform with special features for scientists")
|
|
|
|
|
(description
|
|
|
|
|
"GNU TeXmacs is a text editing platform which is specialized for
|
|
|
|
|
scientists. It is ideal for editing structured documents with different
|
|
|
|
|
types of content. It has robust support for mathematical formulas and plots.
|
|
|
|
|
It can also act as an interface to external mathematical programs such as R
|
|
|
|
|
and Octave. TeXmacs is completely extensible via Guile.")
|
|
|
|
|
(license license:gpl3+)
|
|
|
|
|
(home-page "https://www.texmacs.org/tmweb/home/welcome.en.html")))
|