[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#41056] [PATCH 1/2] gnu: Add editline.
From: |
Giacomo Leidi |
Subject: |
[bug#41056] [PATCH 1/2] gnu: Add editline. |
Date: |
Sun, 3 May 2020 19:46:19 +0200 |
* gnu/packages/libedit.scm (editline): New variable.
---
gnu/packages/libedit.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/libedit.scm b/gnu/packages/libedit.scm
index 37638a2b6a..9ebe987b6c 100644
--- a/gnu/packages/libedit.scm
+++ b/gnu/packages/libedit.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2015 Ricardo Wurmus <address@hidden>
;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <address@hidden>
;;; Copyright © 2019 Gábor Boskovits <address@hidden>
+;;; Copyright © 2020 Giacomo Leidi <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -23,7 +24,9 @@
#:use-module (guix licenses)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix build-system gnu)
+ #:use-module (gnu packages autotools)
#:use-module (gnu packages ncurses))
(define-public libedit
@@ -48,3 +51,30 @@ library (libedit). This Berkeley-style licensed command
line editor library
provides generic line editing, history, and tokenization functions, similar to
those found in GNU Readline.")
(license bsd-3)))
+
+(define-public editline
+ (package
+ (name "editline")
+ (version "1.17.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/troglobit/editline.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0y7vis52kfq2km9isrlzakpf7bn1k7v9vf3xg3q1cslla18q6myh"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("automake" ,automake)
+ ("autoconf" ,autoconf)
+ ("libtool" ,libtool)))
+ (home-page "https://troglobit.com/projects/editline/")
+ (synopsis "Small replacement for GNU readline() for UNIX")
+ (description
+ "@{editline} is a small line editing library. It can be linked into
almost
+any program to provide command line editing and history functions. It is call
+compatible with the FSF @code{readline} library, but at a fraction of the size,
+and as a result fewer features.")
+ (license bsd-4)))
--
2.26.2
[bug#41056] [PATCH 1/2] gnu: Add editline., Giacomo Leidi, 2020/05/05