[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#52039] [PATCH 5/7] gnu: Add ocaml-zed.
From: |
zimoun |
Subject: |
[bug#52039] [PATCH 5/7] gnu: Add ocaml-zed. |
Date: |
Mon, 22 Nov 2021 16:35:24 +0100 |
* gnu/packages/ocaml.scm (ocaml-zed): New variable.
(ocaml4.07-zed): Inherit and adjust 'source'.
---
gnu/packages/ocaml.scm | 43 ++++++++++++++++++++++++++++++++++--------
1 file changed, 35 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 92ace48abb..032347a28e 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4020,15 +4020,48 @@ (define-public ocaml-charinfo-width
function that follows the prototype of POSIX's wcwidth.")
(license license:expat))))
+(define-public ocaml-zed
+ (package
+ (name "ocaml-zed")
+ (version "3.1.0")
+ (home-page "https://github.com/ocaml-community/zed")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url home-page)
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "04vr1a94imsghm98iigc35rhifsz0rh3qz2qm0wam2wvp6vmrx0p"))))
+ (build-system dune-build-system)
+ (arguments
+ `(#:test-target "."))
+ (propagated-inputs
+ `(("ocaml-charInfo-width" ,ocaml-charinfo-width)
+ ("ocaml-camomile" ,ocaml-camomile)
+ ("ocaml-react" ,ocaml-react)))
+ (synopsis "Abstract engine for text edition in OCaml")
+ (description
+ "This module provides an abstract engine for text edition. It can be
+used to write text editors, edition widgets, readlines, and more. The module
+Zed uses Camomile to fully support the Unicode specification, and implements
+an UTF-8 encoded string type with validation, and a rope datastructure to
+achieve efficient operations on large Unicode buffers. Zed also features a
+regular expression search on ropes. To support efficient text edition
+capabilities, Zed provides macro recording and cursor management facilities.")
+ (license license:bsd-3)))
+
(define-public ocaml4.07-zed
(package
+ (inherit ocaml-zed)
(name "ocaml4.07-zed")
(version "2.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/diml/zed")
+ (url "https://github.com/ocaml-community/zed")
(commit version)))
(file-name (git-file-name name version))
(sha256
@@ -4042,13 +4075,7 @@ (define-public ocaml4.07-zed
(propagated-inputs
`(("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))
("ocaml-charinfo-width" ,(package-with-ocaml4.07 ocaml-charinfo-width))
- ("ocaml-react" ,(package-with-ocaml4.07 ocaml-react))))
- (home-page "https://github.com/diml/zed")
- (synopsis "Abstract engine for text editing in OCaml")
- (description "Zed is an abstract engine for text edition. It can be used
-to write text editors, edition widgets, readlines, etc. You just have to
-connect an engine to your inputs and rendering functions to get an editor.")
- (license license:bsd-3)))
+ ("ocaml-react" ,(package-with-ocaml4.07 ocaml-react))))))
(define-public ocaml4.07-lambda-term
(package
--
2.32.0
- [bug#52039] [PATCH 0/7] Add utop., zimoun, 2021/11/22
- [bug#52039] [PATCH 1/7] gnu: Add ocaml-trie., zimoun, 2021/11/22
- [bug#52039] [PATCH 2/7] gnu: Add ocaml-mew., zimoun, 2021/11/22
- [bug#52039] [PATCH 3/7] gnu: Add ocaml-mew-vi., zimoun, 2021/11/22
- [bug#52039] [PATCH 4/7] gnu: ocaml-charinfo-width: Fix source to get 'LICENSE' file., zimoun, 2021/11/22
- [bug#52039] [PATCH 5/7] gnu: Add ocaml-zed.,
zimoun <=
- [bug#52039] [PATCH 6/7] gnu: Add ocaml-lambda-term., zimoun, 2021/11/22
- [bug#52039] [PATCH 7/7] gnu: Add ocaml-utop., zimoun, 2021/11/22
- [bug#52039] [PATCH v2 1/7] gnu: Add ocaml-trie., zimoun, 2021/11/22
- [bug#52039] [PATCH v2 3/7] gnu: Add ocaml-mew-vi., zimoun, 2021/11/22
- [bug#52039] [PATCH v2 4/7] gnu: ocaml-charinfo-width: Fix source to get 'LICENSE' file., zimoun, 2021/11/22
- [bug#52039] [PATCH v2 5/7] gnu: Add ocaml-zed., zimoun, 2021/11/22
- [bug#52039] [PATCH v2 6/7] gnu: Add ocaml-lambda-term., zimoun, 2021/11/22
- [bug#52039] [PATCH v2 7/7] gnu: Add ocaml-utop., zimoun, 2021/11/22
- [bug#52039] [PATCH v2 2/7] gnu: Add ocaml-mew., zimoun, 2021/11/22
- bug#52039: [PATCH 0/7] Add utop., Julien Lepiller, 2021/11/23