| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 |
|
| 25 | (define-module (gnu packages libedit)
|
| 26 | #:use-module (guix gexp)
|
| 27 | #:use-module (guix licenses)
|
| 28 | #:use-module (guix packages)
|
| 29 | #:use-module (guix utils)
|
| 30 | #:use-module (guix download)
|
| 31 | #:use-module (guix git-download)
|
| 32 | #:use-module (guix build-system cmake)
|
| 33 | #:use-module (guix build-system gnu)
|
| 34 | #:use-module (gnu packages ncurses))
|
| 35 |
|
| 36 | (define-public isocline
|
| 37 | (package
|
| 38 | (name "isocline")
|
| 39 | (version "1.0.9")
|
| 40 | (source
|
| 41 | (origin
|
| 42 | (method git-fetch)
|
| 43 | (uri (git-reference
|
| 44 | (url "https://github.com/daanx/isocline")
|
| 45 | (commit (string-append "v" version))))
|
| 46 | (file-name (git-file-name name version))
|
| 47 | (sha256
|
| 48 | (base32 "080ffn40ww4h68l4lwdc1k9lrivi31jdw44kv90ppvbymxfjy4zn"))))
|
| 49 | (build-system cmake-build-system)
|
| 50 | (arguments
|
| 51 | (list
|
| 52 | #:phases
|
| 53 | #~(modify-phases %standard-phases
|
| 54 | (replace 'check
|
| 55 | (lambda* (#:key tests? #:allow-other-keys)
|
| 56 | (when tests?
|
| 57 | (invoke "./test_colors"))))
|
| 58 | (replace 'install
|
| 59 | (lambda _
|
| 60 | (install-file "libisocline.a"
|
| 61 | (string-append #$output "/lib"))
|
| 62 | (install-file "../source/include/isocline.h"
|
| 63 | (string-append #$output "/include")))))))
|
| 64 | (home-page "https://github.com/daanx/isocline")
|
| 65 | (synopsis "Portable alternative to GNU Readline")
|
| 66 | (description
|
| 67 | "Isocline is a small, portable line-editing library that provides
|
| 68 | multiline editing, history, completion, Unicode support, syntax highlighting,
|
| 69 | and other interactive input features. It has no external dependencies and
|
| 70 | can be used as an alternative to GNU Readline.")
|
| 71 | (license expat)))
|
| 72 |
|
| 73 | (define-public libedit
|
| 74 | (package
|
| 75 | (name "libedit")
|
| 76 | (version "20260512-3.1")
|
| 77 | (source
|
| 78 | (origin
|
| 79 | (method url-fetch)
|
| 80 | (uri (string-append "https://thrysoee.dk/editline"
|
| 81 | "/libedit-" version ".tar.gz"))
|
| 82 | (sha256
|
| 83 | (base32 "18547v10g6g8mhkaazmplvx7gv8f3p0ppjifkz9ns4dhm1z5wba3"))))
|
| 84 | (build-system gnu-build-system)
|
| 85 | (inputs
|
| 86 | (list ncurses))
|
| 87 | (home-page "https://thrysoee.dk/editline/")
|
| 88 | (synopsis "NetBSD Editline library")
|
| 89 | (description
|
| 90 | "This is an autotool- and libtoolized port of the NetBSD Editline
|
| 91 | library (libedit). This Berkeley-style licensed command line editor library
|
| 92 | provides generic line editing, history, and tokenization functions, similar to
|
| 93 | those found in GNU Readline.")
|
| 94 | (license bsd-3)))
|
| 95 |
|
| 96 | (define-public editline
|
| 97 | (package
|
| 98 | (name "editline")
|
| 99 | (version "1.17.1")
|
| 100 | (source
|
| 101 | (origin
|
| 102 | (method url-fetch)
|
| 103 | (uri (string-append
|
| 104 | "https://ftp.troglobit.com/editline/editline-" version ".tar.xz"))
|
| 105 | (sha256
|
| 106 | (base32 "03pw3z6pz590v8xfnjx0yynnzij2sb9xwjbvqvdzsid56crkn8nz"))))
|
| 107 | (build-system gnu-build-system)
|
| 108 | (home-page "https://troglobit.com/projects/editline/")
|
| 109 | (synopsis "Line editing library")
|
| 110 | (description
|
| 111 | "@code{editline} is a small line editing library. It can be linked into almost
|
| 112 | any program to provide command line editing and history functions. It is call
|
| 113 | compatible with the GNU Readline library, but at a fraction of the size,
|
| 114 | and as a result fewer features.")
|
| 115 | (license bsd-4)))
|