[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#43745] [PATCH 23/27] gnu: Add ocaml-csexp.
From: |
Julien Lepiller |
Subject: |
[bug#43745] [PATCH 23/27] gnu: Add ocaml-csexp. |
Date: |
Thu, 1 Oct 2020 15:41:29 +0200 |
* gnu/packages/ocaml.scm (ocaml-csexp): New variable.
---
gnu/packages/ocaml.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index ee82f9ca32..55496f8ca4 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1312,6 +1312,47 @@ following a very simple s-expression syntax.")
(define-public ocaml4.07-dune
(package-with-ocaml4.07 dune))
+(define-public ocaml-csexp
+ (package
+ (name "ocaml-csexp")
+ (version "1.3.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ocaml-dune/csexp")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "190zppgvdjgghmrnx67ayzzk86qdjy3yn5fcrcw08wsh93384pl0"))))
+ (build-system dune-build-system)
+ (arguments
+ `(#:tests? #f; FIXME: needs ppx_expect, but which version?
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'chmod
+ (lambda _
+ (for-each (lambda (file) (chmod file #o644)) (find-files "."
".*"))
+ #t)))))
+ (propagated-inputs
+ `(("dune" ,dune)
+ ("ocaml-result" ,ocaml-result)))
+ (home-page "https://github.com/ocaml-dune/csexp")
+ (synopsis "Parsing and printing of S-expressions in Canonical form")
+ (description "This library provides minimal support for Canonical
+S-expressions. Canonical S-expressions are a binary encoding of
+S-expressions that is super simple and well suited for communication
+between programs.
+
+This library only provides a few helpers for simple applications. If
+you need more advanced support, such as parsing from more fancy input
+sources, you should consider copying the code of this library given
+how simple parsing S-expressions in canonical form is.
+
+To avoid a dependency on a particular S-expression library, the only
+module of this library is parameterised by the type of S-expressions.")
+ (license #f)))
+
(define-public ocaml-migrate-parsetree
(package
(name "ocaml-migrate-parsetree")
--
2.28.0
- [bug#43745] [PATCH 19/27] gnu: ocaml-logs: Update to 0.7.0., (continued)
- [bug#43745] [PATCH 16/27] gnu: Add ocaml-stdlib-shims., Julien Lepiller, 2020/10/01
- [bug#43745] [PATCH 20/27] gnu: ocaml-fmt: Update to 0.8.9., Julien Lepiller, 2020/10/01
- [bug#43745] [PATCH 23/27] gnu: Add ocaml-csexp.,
Julien Lepiller <=
- [bug#43745] [PATCH 15/27] gnu: ocaml-tyxml: Do not use deprecated jbuilder., Julien Lepiller, 2020/10/01
- [bug#43745] [PATCH 17/27] gnu: opam: Update to 2.0.7., Julien Lepiller, 2020/10/01
- [bug#43745] [PATCH 22/27] gnu: ocaml-result: Update to 1.5., Julien Lepiller, 2020/10/01
- [bug#43745] [PATCH 24/27] gnu: ocaml-compiler-libs: Build only with OCaml 4.07., Julien Lepiller, 2020/10/01
- [bug#43745] [PATCH 27/27] gnu: dune: Update to 2.7.1., Julien Lepiller, 2020/10/01