[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/26: gnu: Add ocaml-csexp.
From: |
guix-commits |
Subject: |
22/26: gnu: Add ocaml-csexp. |
Date: |
Thu, 15 Oct 2020 12:02:10 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 171abdd8f5194af0a141c2f5e2d542c3c89a00b0
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Wed Sep 30 22:42:47 2020 +0200
gnu: Add ocaml-csexp.
* 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 e188a33..e01b034 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1288,6 +1288,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 license:expat)))
+
(define-public ocaml-migrate-parsetree
(package
(name "ocaml-migrate-parsetree")
- 12/26: gnu: ocaml4.07-merlin: Do not use deprecated jbuilder., (continued)
- 12/26: gnu: ocaml4.07-merlin: Do not use deprecated jbuilder., guix-commits, 2020/10/15
- 16/26: gnu: opam: Update to 2.0.7., guix-commits, 2020/10/15
- 10/26: gnu: ocaml4.07-zed: Do not use deprecated jbuilder., guix-commits, 2020/10/15
- 04/26: gnu: ocaml-migrate-parsetree: Update to 1.7.3., guix-commits, 2020/10/15
- 01/26: gnu: unison: Build with ocaml-4.09., guix-commits, 2020/10/15
- 03/26: gnu: ocaml-mccs: Update to 1.1+11., guix-commits, 2020/10/15
- 08/26: gnu: ocaml-lwt-log: Do not use deprecated jbuilder., guix-commits, 2020/10/15
- 20/26: gnu: ocaml-alcotest: Update to 1.0.0., guix-commits, 2020/10/15
- 21/26: gnu: ocaml-result: Update to 1.5., guix-commits, 2020/10/15
- 18/26: gnu: ocaml-logs: Update to 0.7.0., guix-commits, 2020/10/15
- 22/26: gnu: Add ocaml-csexp.,
guix-commits <=
- 23/26: gnu: ocaml-compiler-libs: Build only with OCaml 4.07., guix-commits, 2020/10/15
- 09/26: gnu: ocaml-easy-format: Do not use deprecated jbuilder., guix-commits, 2020/10/15
- 05/26: gnu: ocaml-ppx-tools-versioned: Update to 5.4.0., guix-commits, 2020/10/15
- 17/26: gnu: ocaml-base64: Update to 3.4.0., guix-commits, 2020/10/15
- 06/26: gnu: ocaml-qtest: Do not use deprecated jbuilder., guix-commits, 2020/10/15