* [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0.
@ 2019-01-03 7:18 Gabriel Hondet
2019-01-03 7:26 ` [bug#33986] [PATCH 2/9] gnu: Add ocaml-parsexp Gabriel Hondet
` (9 more replies)
0 siblings, 10 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-03 7:18 UTC (permalink / raw)
To: 33986
[-- Attachment #1: Type: text/plain, Size: 1537 bytes --]
* gnu/packages/ocaml.scm (ocaml-sexplib0): New variable.
---
gnu/packages/ocaml.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index e4f17133d..bece14477 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5105,3 +5105,28 @@ speedup, polymorphic variants and optional syntax for tuples and variants.
yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
serializers and deserializers from type definitions.")
(license license:bsd-3)))
+
+(define-public ocaml-sexplib0
+ (package
+ (name "ocaml-sexplib0")
+ (version "0.11.0")
+ (home-page "https://github.com/janestreet/sexplib0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
+ (build-system dune-build-system)
+ (arguments
+ '(#:tests? #f))
+ (synopsis "Library containing the definition of S-expressions and some
+base converters")
+ (description "Part of Jane Street's Core library The Core suite of
+libraries is an industrial strength alternative to OCaml's standard library
+that was developed by Jane Street, the largest industrial user of OCaml.")
+(license license:expat)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 2/9] gnu: Add ocaml-parsexp.
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
@ 2019-01-03 7:26 ` Gabriel Hondet
2019-01-03 7:45 ` [bug#33986] [PATCH 3/9] gnu: Add ocaml-sexplib Gabriel Hondet
` (8 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-03 7:26 UTC (permalink / raw)
To: 33986
[-- Attachment #1: Type: text/plain, Size: 2230 bytes --]
* gnu/packages/ocaml.scm (ocaml-parsexp): New variable.
---
gnu/packages/ocaml.scm | 46 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index bece14477..7876c69a7 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5130,3 +5130,49 @@ base converters")
libraries is an industrial strength alternative to OCaml's standard library
that was developed by Jane Street, the largest industrial user of OCaml.")
(license license:expat)))
+
+(define-public ocaml-parsexp
+ (package
+ (name "ocaml-parsexp")
+ (version "0.11.0")
+ (home-page "https://github.com/janestreet/parsexp")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1nyq23s5igd8cf3n4qxprjvhbmb6ighb3fy5mw7hxl0mdgsw5fvz"))))
+ (build-system dune-build-system)
+ (inputs
+ `(("ocaml-sexplib0" ,ocaml-sexplib0)))
+ (synopsis "S-expression parsing library")
+ (description
+ "This library provides generic parsers for parsing S-expressions from
+strings or other medium.
+
+The library is focused on performances but still provide full generic
+parsers that can be used with strings, bigstrings, lexing buffers,
+character streams or any other sources effortlessly.
+
+It provides three different class of parsers:
+@itemize
+@item
+the normal parsers, producing [Sexp.t] or [Sexp.t list] values
+@item
+the parsers with positions, building compact position sequences so
+that one can recover original positions in order to report properly
+located errors at little cost
+@item
+the Concrete Syntax Tree parsers, produce values of type
+[Parsexp.Cst.t] which record the concrete layout of the s-expression
+syntax, including comments
+@end itemize
+
+This library is portable and doesn't provide IO functions. To read
+s-expressions from files or other external sources, you should use
+parsexp_io.")
+ (license license:expat)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 3/9] gnu: Add ocaml-sexplib.
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
2019-01-03 7:26 ` [bug#33986] [PATCH 2/9] gnu: Add ocaml-parsexp Gabriel Hondet
@ 2019-01-03 7:45 ` Gabriel Hondet
2019-01-03 8:43 ` [bug#33986] [PATCH 4/9] gnu: Add ocaml-base Gabriel Hondet
` (7 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-03 7:45 UTC (permalink / raw)
To: 33986
[-- Attachment #1: Type: text/plain, Size: 1579 bytes --]
* gnu/packages/ocaml.scm (ocaml-sexplib): New variable.
---
gnu/packages/ocaml.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 7876c69a7..0faab47ee 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5176,3 +5176,32 @@ This library is portable and doesn't provide IO functions. To read
s-expressions from files or other external sources, you should use
parsexp_io.")
(license license:expat)))
+
+(define-public ocaml-sexplib
+ (package
+ (name "ocaml-sexplib")
+ (version "0.11.0")
+ (home-page "https://github.com/janestreet/sexplib")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1qfl0m04rpcjvc4yw1hzh6r16jpwmap0sa9ax6zjji67dz4szpyb"))))
+ (build-system dune-build-system)
+ (inputs
+ `(("ocaml-num" ,ocaml-num)
+ ("ocaml-parsexp" ,ocaml-parsexp)
+ ("ocaml-sexplib0" ,ocaml-sexplib0)))
+ (synopsis
+ "Library for serializing OCaml values to and from S-expressions")
+ (description
+ "Part of Jane Street's Core library
+The Core suite of libraries is an industrial strength alternative to
+OCaml's standard library that was developed by Jane Street, the
+largest industrial user of OCaml.")
+ (license license:expat)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 4/9] gnu: Add ocaml-base.
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
2019-01-03 7:26 ` [bug#33986] [PATCH 2/9] gnu: Add ocaml-parsexp Gabriel Hondet
2019-01-03 7:45 ` [bug#33986] [PATCH 3/9] gnu: Add ocaml-sexplib Gabriel Hondet
@ 2019-01-03 8:43 ` Gabriel Hondet
2019-01-03 9:13 ` [bug#33986] [PATCH 5/9] gnu: Add ocaml-compiler-libs Gabriel Hondet
` (6 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-03 8:43 UTC (permalink / raw)
To: 33986
[-- Attachment #1: Type: text/plain, Size: 2069 bytes --]
* gnu/packages/ocaml.scm (ocaml-base): New variable.
---
gnu/packages/ocaml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 0faab47ee..9e2e7e09b 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5205,3 +5205,45 @@ The Core suite of libraries is an industrial strength alternative to
OCaml's standard library that was developed by Jane Street, the
largest industrial user of OCaml.")
(license license:expat)))
+
+(define-public ocaml-base
+ (package
+ (name "ocaml-base")
+ (version "0.11.1")
+ (home-page "https://github.com/janestreet/base")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
+ (build-system dune-build-system)
+ (inputs
+ `(("ocaml-sexplib0" ,ocaml-sexplib0)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'build
+ ;; make warnings non fatal (jbuilder behaviour)
+ (lambda _
+ (invoke "dune" "build" "@install" "--profile=release"))))))
+ (synopsis
+ "Full standard library replacement for OCaml")
+ (description
+ "Full standard library replacement for OCaml
+
+Base is a complete and portable alternative to the OCaml standard
+library. It provides all standard functionalities one would expect
+from a language standard library. It uses consistent conventions
+across all of its module.
+
+Base aims to be usable in any context. As a result system dependent
+features such as I/O are not offered by Base. They are instead
+provided by companion libraries such as
+@url{https://github.com/janestreet/stdio, stdio}.")
+ (license license:expat)))
+
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 5/9] gnu: Add ocaml-compiler-libs.
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
` (2 preceding siblings ...)
2019-01-03 8:43 ` [bug#33986] [PATCH 4/9] gnu: Add ocaml-base Gabriel Hondet
@ 2019-01-03 9:13 ` Gabriel Hondet
2019-01-03 9:40 ` [bug#33986] [PATCH 6/9] gnu: Add ocaml-migrate-parsetree Gabriel Hondet
` (5 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-03 9:13 UTC (permalink / raw)
To: 33986
[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]
* gnu/packages/ocaml.scm (ocaml-compiler-libs): New variable.
---
gnu/packages/ocaml.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 9e2e7e09b..6f91f5d99 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5247,3 +5247,26 @@ provided by companion libraries such as
@url{https://github.com/janestreet/stdio, stdio}.")
(license license:expat)))
+(define-public ocaml-compiler-libs
+ (package
+ (name "ocaml-compiler-libs")
+ (version "0.11.0")
+ (home-page "https://github.com/janestreet/ocaml-compiler-libs")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
+ (build-system dune-build-system)
+ (arguments
+ '(#:tests? #f))
+ (synopsis "Compiler libraries repackaged")
+ (description "This packaeg simply repackages the OCaml compiler libraries
+so they don't expose everything at toplevel. For instance, @code{Ast_helper}
+is now @code{Ocaml_common.Ast_helper}.")
+ (license license:expat)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 6/9] gnu: Add ocaml-migrate-parsetree.
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
` (3 preceding siblings ...)
2019-01-03 9:13 ` [bug#33986] [PATCH 5/9] gnu: Add ocaml-compiler-libs Gabriel Hondet
@ 2019-01-03 9:40 ` Gabriel Hondet
2019-01-03 9:48 ` [bug#33986] [PATCH 7/9] gnu: Add ocaml-stdio Gabriel Hondet
` (4 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-03 9:40 UTC (permalink / raw)
To: 33986
[-- Attachment #1: Type: text/plain, Size: 1697 bytes --]
* gnu/packages/ocaml.scm (ocaml-migrate-parsetree): New variable.
---
gnu/packages/ocaml.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 6f91f5d99..28ae9fd04 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5270,3 +5270,33 @@ provided by companion libraries such as
so they don't expose everything at toplevel. For instance, @code{Ast_helper}
is now @code{Ocaml_common.Ast_helper}.")
(license license:expat)))
+
+(define-public ocaml-migrate-parsetree
+ (package
+ (name "ocaml-migrate-parsetree")
+ (version "1.1.0")
+ (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1d2n349d1cqm3dr09mwy5m9rfd4bkkqvri5i94wknpsrr35vnrr1"))))
+ (build-system dune-build-system)
+ (inputs
+ `(("ocaml-compiler-libs" ,ocaml-compiler-libs)
+ ("ocaml-result" ,ocaml-result)))
+ (native-inputs
+ `(("ocamlbuild" ,ocamlbuild)))
+ (synopsis "Convert OCaml parsetrees between different major versions")
+ (description "This library converts between parsetrees of different OCaml
+version.
+
+Supported versions are 4.02, 4.03, 4.04, 4.05 and 4.06. For each version,
+there is a snapshot of the parsetree and conversion functions to the next
+and/or previous version.")
+ (license license:lgpl2.1+)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 7/9] gnu: Add ocaml-stdio.
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
` (4 preceding siblings ...)
2019-01-03 9:40 ` [bug#33986] [PATCH 6/9] gnu: Add ocaml-migrate-parsetree Gabriel Hondet
@ 2019-01-03 9:48 ` Gabriel Hondet
2019-01-03 9:59 ` [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers Gabriel Hondet
` (3 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-03 9:48 UTC (permalink / raw)
To: 33986
[-- Attachment #1: Type: text/plain, Size: 1525 bytes --]
* gnu/packages/ocaml.scm (ocaml-stdio): New variable.
---
gnu/packages/ocaml.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 28ae9fd04..209aa66c3 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5300,3 +5300,31 @@ Supported versions are 4.02, 4.03, 4.04, 4.05 and 4.06. For each version,
there is a snapshot of the parsetree and conversion functions to the next
and/or previous version.")
(license license:lgpl2.1+)))
+
+(define-public ocaml-stdio
+ (package
+ (name "ocaml-stdio")
+ (version "0.11.0")
+ (home-page "https://github.com/janestreet/stdio")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
+ (build-system dune-build-system)
+ (inputs `(("ocaml-base" ,ocaml-base)
+ ("ocaml-sexplib0" ,ocaml-sexplib0)))
+ (arguments
+ '(#:tests? #f))
+ (synopsis "Standard IO library for OCaml")
+ (description
+ "Stdio implements simple input/output functionalities for OCaml.
+
+It re-exports the input/output functions of the OCaml standard
+libraries using a more consistent API.")
+ (license license:expat)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers.
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
` (5 preceding siblings ...)
2019-01-03 9:48 ` [bug#33986] [PATCH 7/9] gnu: Add ocaml-stdio Gabriel Hondet
@ 2019-01-03 9:59 ` Gabriel Hondet
2019-01-04 9:09 ` [bug#33986] [PATCH 9/9] gnu: Add ocaml-ppxlib Gabriel Hondet
` (2 subsequent siblings)
9 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-03 9:59 UTC (permalink / raw)
To: 33986
[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]
* gnu/packages/ocaml.scm (ocaml-ppx-derivers): New variable.
---
gnu/packages/ocaml.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 209aa66c3..3607dc319 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5328,3 +5328,29 @@ and/or previous version.")
It re-exports the input/output functions of the OCaml standard
libraries using a more consistent API.")
(license license:expat)))
+
+(define-public ocaml-ppx-derivers
+ (package
+ (name "ocaml-ppx-derivers")
+ (version "1.2")
+ (home-page
+ "https://github.com/ocaml-ppx/ppx_derivers")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0bnhihl1w31as5w2czly1v3d6pbir9inmgsjg2cj6aaj9v1dzd85"))))
+ (build-system dune-build-system)
+ (arguments
+ '(#:tests? #f))
+ (synopsis "Shared [@@deriving] plugin registry")
+ (description
+ "Ppx_derivers is a tiny package whose sole purpose is to allow
+ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
+as part of the same ocaml-migrate-parsetree driver.")
+ (license license:bsd-3)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 9/9] gnu: Add ocaml-ppxlib.
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
` (6 preceding siblings ...)
2019-01-03 9:59 ` [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers Gabriel Hondet
@ 2019-01-04 9:09 ` Gabriel Hondet
2019-01-05 13:22 ` [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
2019-01-16 19:11 ` bug#33986: [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
9 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-04 9:09 UTC (permalink / raw)
To: 33986
[-- Attachment #1: Type: text/plain, Size: 3189 bytes --]
* gnu/packages/ocaml.scm (ocaml-ppxlib): New variable.
---
gnu/packages/ocaml.scm | 66 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 3607dc319..70dcf1bd7 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5354,3 +5354,69 @@ libraries using a more consistent API.")
ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
as part of the same ocaml-migrate-parsetree driver.")
(license license:bsd-3)))
+
+(define-public ocaml-ppxlib
+ (package
+ (name "ocaml-ppxlib")
+ (version "0.4.0")
+ (home-page "https://github.com/ocaml-ppx/ppxlib")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1nr4igf5m4prvigvv470dnhfdhdw0p6hz6zw8gnm5bzcv7s2lg5l"))))
+ (build-system dune-build-system)
+ (inputs
+ `(("ocaml-base" ,ocaml-base)
+ ("ocaml-compiler-libs" ,ocaml-compiler-libs)
+ ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
+ ("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
+ ("ocaml-stdio" ,ocaml-stdio)
+ ("ocaml-result" ,ocaml-result)
+ ("ocaml-sexplib0" ,ocaml-sexplib0)))
+ (native-inputs
+ `(("ocaml-findlib" ,ocaml-findlib)))
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'set-topfind
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; add the line #directory ".." at the top of each file
+ ;; using #use "topfind";; to be able to find topfind
+ (let* ((findlib-path (assoc-ref inputs "ocaml-findlib"))
+ (findlib-libdir
+ (string-append findlib-path "/lib/ocaml/site-lib")))
+ (substitute* '("test/base/test.ml"
+ "test/deriving/test.ml"
+ "test/driver/attributes/test.ml"
+ "test/driver/non-compressible-suffix/test.ml"
+ "test/driver/transformations/test.ml")
+ (("#use \"topfind\";;" all)
+ (string-append "#directory \"" findlib-libdir "\"\n"
+ all))))
+ #t)))))
+ (synopsis
+ "Base library and tools for ppx rewriters")
+ (description
+ "A comprehensive toolbox for ppx development. It features:
+@itemize
+@item
+a OCaml AST / parser / pretty-printer snapshot, to create a full frontend
+independent of the version of OCaml;
+@item
+a library for library for ppx rewriters in general, and type-driven code
+generators in particular;
+@item
+a feature-full driver for OCaml AST transformers;
+@item
+a quotation mechanism allowing to write values representing the
+OCaml AST in the OCaml syntax;
+@item
+a generator of open recursion classes from type definitions.
+@end itemize")
+ (license license:expat)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0.
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
` (7 preceding siblings ...)
2019-01-04 9:09 ` [bug#33986] [PATCH 9/9] gnu: Add ocaml-ppxlib Gabriel Hondet
@ 2019-01-05 13:22 ` Julien Lepiller
2019-01-05 16:36 ` Gabriel Hondet
` (3 more replies)
2019-01-16 19:11 ` bug#33986: [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
9 siblings, 4 replies; 15+ messages in thread
From: Julien Lepiller @ 2019-01-05 13:22 UTC (permalink / raw)
To: Gabriel Hondet, 33986
Le 3 janvier 2019 10:18:32 GMT+03:00, Gabriel Hondet <gabrielhondet@gmail.com> a écrit :
>
>* gnu/packages/ocaml.scm (ocaml-sexplib0): New variable.
>---
> gnu/packages/ocaml.scm | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
>diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
>index e4f17133d..bece14477 100644
>--- a/gnu/packages/ocaml.scm
>+++ b/gnu/packages/ocaml.scm
>@@ -5105,3 +5105,28 @@ speedup, polymorphic variants and optional
>syntax for tuples and variants.
>yojson package. The program @code{atdgen} can be used to derive
>OCaml-JSON
> serializers and deserializers from type definitions.")
> (license license:bsd-3)))
>+
>+(define-public ocaml-sexplib0
>+ (package
>+ (name "ocaml-sexplib0")
>+ (version "0.11.0")
>+ (home-page "https://github.com/janestreet/sexplib0")
>+ (source
>+ (origin
>+ (method git-fetch)
>+ (uri (git-reference
>+ (url (string-append home-page ".git"))
>+ (commit (string-append "v" version))))
>+ (file-name (git-file-name name version))
>+ (sha256
>+ (base32
>+ "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
>+ (build-system dune-build-system)
>+ (arguments
>+ '(#:tests? #f))
>+ (synopsis "Library containing the definition of S-expressions and
>some
>+base converters")
>+ (description "Part of Jane Street's Core library The Core suite of
>+libraries is an industrial strength alternative to OCaml's standard
>library
>+that was developed by Jane Street, the largest industrial user of
>OCaml.")
>+(license license:expat)))
Hi Gabriel, thank you for these patches! I'll need a bit more time to review them because I'm travelling. We already have them, but I think they are only for ocaml-4.02.
In the meantime, could you add a comment to explain why you disabled tests whenever you did? It could be as short as "; no tests". Also, do you know what happened with the versionning?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0.
2019-01-05 13:22 ` [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
@ 2019-01-05 16:36 ` Gabriel Hondet
2019-01-05 16:38 ` [bug#33986] [PATCH 5/9] " Gabriel Hondet
` (2 subsequent siblings)
3 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-05 16:36 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 33986
[-- Attachment #1: Type: text/plain, Size: 2248 bytes --]
On Sat 05 Jan 2019 at 14:22 Julien Lepiller wrote:
> We already have them, but I think they are only for ocaml-4.02.
Indeed they exist but only for ocaml-4.02, I hope doing new patches for
the current version was the right thing to do.
> In the meantime, could you add a comment to explain why you disabled tests whenever you did? It could be as short as "; no tests". Also, do you know what happened with the versionning?
Regarding the test, I only disabled them if they don't exist. I have
added comments to clarify that. Regarding the versioning number
(113.33.xx in 2016 to 0.9.0 in 2017...), I have no idea what happened.
Here is the first patch, the others are following.
* gnu/packages/ocaml.scm (ocaml-sexplib0): New variable.
---
gnu/packages/ocaml.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index e4f17133d..a23f6a724 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5105,3 +5105,28 @@ speedup, polymorphic variants and optional syntax for tuples and variants.
yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
serializers and deserializers from type definitions.")
(license license:bsd-3)))
+
+(define-public ocaml-sexplib0
+ (package
+ (name "ocaml-sexplib0")
+ (version "0.11.0")
+ (home-page "https://github.com/janestreet/sexplib0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
+ (build-system dune-build-system)
+ (arguments
+ '(#:tests? #f)) ;no tests
+ (synopsis "Library containing the definition of S-expressions and some
+base converters")
+ (description "Part of Jane Street's Core library The Core suite of
+libraries is an industrial strength alternative to OCaml's standard library
+that was developed by Jane Street, the largest industrial user of OCaml.")
+(license license:expat)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 5/9] gnu: Add ocaml-sexplib0.
2019-01-05 13:22 ` [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
2019-01-05 16:36 ` Gabriel Hondet
@ 2019-01-05 16:38 ` Gabriel Hondet
2019-01-05 16:39 ` [bug#33986] [PATCH 7/9] " Gabriel Hondet
2019-01-05 16:44 ` [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers Gabriel Hondet
3 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-05 16:38 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 33986
[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]
* gnu/packages/ocaml.scm (ocaml-compiler-libs): New variable.
---
gnu/packages/ocaml.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index c52cd76a3..820e87f22 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5247,3 +5247,26 @@ provided by companion libraries such as
@url{https://github.com/janestreet/stdio, stdio}.")
(license license:expat)))
+(define-public ocaml-compiler-libs
+ (package
+ (name "ocaml-compiler-libs")
+ (version "0.11.0")
+ (home-page "https://github.com/janestreet/ocaml-compiler-libs")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
+ (build-system dune-build-system)
+ (arguments
+ '(#:tests? #f)) ;no tests
+ (synopsis "Compiler libraries repackaged")
+ (description "This packaeg simply repackages the OCaml compiler libraries
+so they don't expose everything at toplevel. For instance, @code{Ast_helper}
+is now @code{Ocaml_common.Ast_helper}.")
+ (license license:expat)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 7/9] gnu: Add ocaml-sexplib0.
2019-01-05 13:22 ` [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
2019-01-05 16:36 ` Gabriel Hondet
2019-01-05 16:38 ` [bug#33986] [PATCH 5/9] " Gabriel Hondet
@ 2019-01-05 16:39 ` Gabriel Hondet
2019-01-05 16:44 ` [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers Gabriel Hondet
3 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-05 16:39 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 33986
[-- Attachment #1: Type: text/plain, Size: 1537 bytes --]
* gnu/packages/ocaml.scm (ocaml-stdio): New variable.
---
gnu/packages/ocaml.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index bce2f4f13..dddad4f33 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5300,3 +5300,31 @@ Supported versions are 4.02, 4.03, 4.04, 4.05 and 4.06. For each version,
there is a snapshot of the parsetree and conversion functions to the next
and/or previous version.")
(license license:lgpl2.1+)))
+
+(define-public ocaml-stdio
+ (package
+ (name "ocaml-stdio")
+ (version "0.11.0")
+ (home-page "https://github.com/janestreet/stdio")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
+ (build-system dune-build-system)
+ (inputs `(("ocaml-base" ,ocaml-base)
+ ("ocaml-sexplib0" ,ocaml-sexplib0)))
+ (arguments
+ '(#:tests? #f)) ;no tests
+ (synopsis "Standard IO library for OCaml")
+ (description
+ "Stdio implements simple input/output functionalities for OCaml.
+
+It re-exports the input/output functions of the OCaml standard
+libraries using a more consistent API.")
+ (license license:expat)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers.
2019-01-05 13:22 ` [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
` (2 preceding siblings ...)
2019-01-05 16:39 ` [bug#33986] [PATCH 7/9] " Gabriel Hondet
@ 2019-01-05 16:44 ` Gabriel Hondet
3 siblings, 0 replies; 15+ messages in thread
From: Gabriel Hondet @ 2019-01-05 16:44 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 33986
[-- Attachment #1: Type: text/plain, Size: 1674 bytes --]
* gnu/packages/ocaml.scm (ocaml-ppx-derivers): New variable.
---
gnu/packages/ocaml.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index dddad4f33..04b6dea8f 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5328,3 +5328,29 @@ and/or previous version.")
It re-exports the input/output functions of the OCaml standard
libraries using a more consistent API.")
(license license:expat)))
+
+(define-public ocaml-ppx-derivers
+ (package
+ (name "ocaml-ppx-derivers")
+ (version "1.2")
+ (home-page
+ "https://github.com/ocaml-ppx/ppx_derivers")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url (string-append home-page ".git"))
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0bnhihl1w31as5w2czly1v3d6pbir9inmgsjg2cj6aaj9v1dzd85"))))
+ (build-system dune-build-system)
+ (arguments
+ '(#:tests? #f)) ;no tests
+ (synopsis "Shared [@@deriving] plugin registry")
+ (description
+ "Ppx_derivers is a tiny package whose sole purpose is to allow
+ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
+as part of the same ocaml-migrate-parsetree driver.")
+ (license license:bsd-3)))
--
2.20.1
This is the last one. And forgive me for the misleading subjects of the
previous patches, it should have been
+ Re: [bug#33986] [PATCH 5/9] gnu: Add ocaml-compiler-libs
+ Re: [bug#33986] [PATCH 7/9] gnu: Add ocaml-stdio
Thank you!
Gabriel
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply related [flat|nested] 15+ messages in thread
* bug#33986: [PATCH 1/9] gnu: Add ocaml-sexplib0.
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
` (8 preceding siblings ...)
2019-01-05 13:22 ` [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
@ 2019-01-16 19:11 ` Julien Lepiller
9 siblings, 0 replies; 15+ messages in thread
From: Julien Lepiller @ 2019-01-16 19:11 UTC (permalink / raw)
To: 33986-done
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
Finally pushed as a41bca08e27da0d4db176c8fadf21e278af4a2b6 -
4d390cad2510797a68f473db347699e748c92e42.
Sorry for taking so long! I've removed ocaml-parsetree-migrate because
it was already present in guix. I've also slightly modified the
descriptions (adding a dot or making the first sentence a full sentence
in some packages). Otherwise, they were very good, thank you!
[-- Attachment #2: Signature digitale OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2019-01-16 19:12 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-03 7:18 [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Gabriel Hondet
2019-01-03 7:26 ` [bug#33986] [PATCH 2/9] gnu: Add ocaml-parsexp Gabriel Hondet
2019-01-03 7:45 ` [bug#33986] [PATCH 3/9] gnu: Add ocaml-sexplib Gabriel Hondet
2019-01-03 8:43 ` [bug#33986] [PATCH 4/9] gnu: Add ocaml-base Gabriel Hondet
2019-01-03 9:13 ` [bug#33986] [PATCH 5/9] gnu: Add ocaml-compiler-libs Gabriel Hondet
2019-01-03 9:40 ` [bug#33986] [PATCH 6/9] gnu: Add ocaml-migrate-parsetree Gabriel Hondet
2019-01-03 9:48 ` [bug#33986] [PATCH 7/9] gnu: Add ocaml-stdio Gabriel Hondet
2019-01-03 9:59 ` [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers Gabriel Hondet
2019-01-04 9:09 ` [bug#33986] [PATCH 9/9] gnu: Add ocaml-ppxlib Gabriel Hondet
2019-01-05 13:22 ` [bug#33986] [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
2019-01-05 16:36 ` Gabriel Hondet
2019-01-05 16:38 ` [bug#33986] [PATCH 5/9] " Gabriel Hondet
2019-01-05 16:39 ` [bug#33986] [PATCH 7/9] " Gabriel Hondet
2019-01-05 16:44 ` [bug#33986] [PATCH 8/9] gnu: Add ocaml-ppx-derivers Gabriel Hondet
2019-01-16 19:11 ` bug#33986: [PATCH 1/9] gnu: Add ocaml-sexplib0 Julien Lepiller
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.