unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies
@ 2021-06-21  9:56 Xinglu Chen
  2021-06-21 10:01 ` [bug#49150] [PATCH 1/9] gnu: ocaml-bisect-ppx: Update to 2.6.1 Xinglu Chen
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-06-21  9:56 UTC (permalink / raw)
  To: 49150

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

This series add ‘ocamlformat’, a code formatter for OCaml, and some
missing dependencies.  It also updates the ‘ocaml-bisect-ppx’ package,
otherwise ‘ocamlformat’ would not build.

Some tests for ‘ocamlformat’ are failing, not sure why, so I have
disabled them for now.

Xinglu Chen (9):
  gnu: ocaml-bisect-ppx: Update to 2.6.1.
  gnu: Add ocaml-menhir-lib.
  gnu: Add ocaml-menhir-sdk.
  gnu: Add ocaml-uucd.
  gnu: Add ocaml-uucp.
  gnu: Add ocaml-uuseg.
  gnu: Add ocaml-fix.
  gnu: Add ocaml-dune-build-info.
  gnu: Add ocamlformat.

 gnu/packages/ocaml.scm | 240 ++++++++++++++++++++++++++++++++++++++---
 1 file changed, 224 insertions(+), 16 deletions(-)


base-commit: 71c3f954194770956b39d311fab44ee6ddb4f666
-- 
2.32.0



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 1/9] gnu: ocaml-bisect-ppx: Update to 2.6.1.
  2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
@ 2021-06-21 10:01 ` Xinglu Chen
  2021-06-21 10:01 ` [bug#49150] [PATCH 2/9] gnu: Add ocaml-menhir-lib Xinglu Chen
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-06-21 10:01 UTC (permalink / raw)
  To: 49150

* gnu/packages/ocaml.scm (ocaml-bisect-ppx): Update to 2.6.1.
[propagated-inputs]: Adjust accordingly.
[arguments]: Remove unnecessary phase; disable tests.
---
 gnu/packages/ocaml.scm | 22 ++++++----------------
 1 file changed, 6 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 21d16a46a1..cccbd45dc4 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -6513,7 +6513,7 @@ combinators.")
 (define-public ocaml-bisect-ppx
   (package
     (name "ocaml-bisect-ppx")
-    (version "1.4.2")
+    (version "2.6.1")
     (source
      (origin
        (method git-fetch)
@@ -6523,24 +6523,14 @@ combinators.")
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "0900vli5kw7s5kdam0n4cqsfsfqb7mdb3azn3i55595gilg1vyn8"))))
+         "1knglw1b2kjr9jnd8cpfzmm581abxxdcx9l3cd2balg6gnac7qk1"))))
     (build-system dune-build-system)
     (propagated-inputs
-     `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree-1)
-       ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
-       ("ocaml-ounit" ,ocaml-ounit)))
+     `(("ocaml-ppxlib" ,ocaml-ppxlib)
+       ("ocaml-cmdliner" ,ocaml-cmdliner)))
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-before 'build 'fix-deprecated
-           (lambda _
-             ;; Fixed upstream in 22dd1ad9a0c9629f60599c22d82c6488394d6d32, but
-             ;; not in a release yet.
-             (substitute* "src/ppx/instrument.ml"
-               (("module Ast = Ast_405")
-                "module Ast = Migrate_parsetree.Ast_405
-module Ast_405 = Ast"))
-             #t)))))
+     ;; Tests require ocamlformat which would lead to circular dependencies
+     '(#:tests? #f))
     (home-page "https://github.com/aantron/bisect_ppx")
     (synopsis "Code coverage for OCaml")
     (description "Bisect_ppx helps you test thoroughly.  It is a small
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 2/9] gnu: Add ocaml-menhir-lib.
  2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
  2021-06-21 10:01 ` [bug#49150] [PATCH 1/9] gnu: ocaml-bisect-ppx: Update to 2.6.1 Xinglu Chen
@ 2021-06-21 10:01 ` Xinglu Chen
  2021-06-21 10:01 ` [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk Xinglu Chen
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-06-21 10:01 UTC (permalink / raw)
  To: 49150

* gnu/packages/ocaml.scm (ocaml-menhir-lib): New variable.
---
 gnu/packages/ocaml.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index cccbd45dc4..08406a206d 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1056,6 +1056,19 @@ Knuth’s LR(1) parser construction technique.")
     ;; are QPL licensed.
     (license (list license:gpl2+ license:qpl))))
 
+(define-public ocaml-menhir-lib
+  (package
+    (inherit ocaml-menhir)
+    (name "ocaml-menhir-lib")
+    (arguments
+     '(#:package "menhirLib"
+       #:tests? #f))
+    (properties
+     `((upstream-name . "menhirLib")))
+    (synopsis "Runtime support library for parsers generated by Menhir")
+    (description "This package provides a runtime support library for parsers
+generated by Menhir.")))
+
 (define-public ocaml-bigarray-compat
   (package
     (name "ocaml-bigarray-compat")
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk.
  2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
  2021-06-21 10:01 ` [bug#49150] [PATCH 1/9] gnu: ocaml-bisect-ppx: Update to 2.6.1 Xinglu Chen
  2021-06-21 10:01 ` [bug#49150] [PATCH 2/9] gnu: Add ocaml-menhir-lib Xinglu Chen
@ 2021-06-21 10:01 ` Xinglu Chen
  2021-06-27 13:20   ` Julien Lepiller
  2021-06-21 10:01 ` [bug#49150] [PATCH 4/9] gnu: Add ocaml-uucd Xinglu Chen
                   ` (6 subsequent siblings)
  9 siblings, 1 reply; 15+ messages in thread
From: Xinglu Chen @ 2021-06-21 10:01 UTC (permalink / raw)
  To: 49150

* gnu/packages/ocaml.scm (ocaml-menhir-sdk): New variable.
---
 gnu/packages/ocaml.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 08406a206d..d7d3afd36c 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1069,6 +1069,19 @@ Knuth’s LR(1) parser construction technique.")
     (description "This package provides a runtime support library for parsers
 generated by Menhir.")))
 
+(define-public ocaml-menhir-sdk
+  (package
+    (inherit ocaml-menhir)
+    (name "ocaml-menhir-sdk")
+    (arguments
+     '(#:package "menhirSdk"
+       #:test-target "sdk"))
+    (properties
+     `((upstream-name . "menhirSdk")))
+    (synopsis "Compile-time library for auxiliary tools related to Menhir")
+    (description "This package provides a compile-time library for auxiliary
+tools related to Menhir.")))
+
 (define-public ocaml-bigarray-compat
   (package
     (name "ocaml-bigarray-compat")
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 4/9] gnu: Add ocaml-uucd.
  2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
                   ` (2 preceding siblings ...)
  2021-06-21 10:01 ` [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk Xinglu Chen
@ 2021-06-21 10:01 ` Xinglu Chen
  2021-06-21 10:01 ` [bug#49150] [PATCH 5/9] gnu: Add ocaml-uucp Xinglu Chen
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-06-21 10:01 UTC (permalink / raw)
  To: 49150

* gnu/packages/ocaml.scm (ocaml-uucd): New variable.
---
 gnu/packages/ocaml.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index d7d3afd36c..34b909bcb1 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -6957,6 +6957,39 @@ provides support to program with time varying values: declarative events and
 client chooses the concrete timeline.")
     (license license:lgpl2.1+)))
 
+(define-public ocaml-uucd
+  (package
+    (name "ocaml-uucd")
+    (version "13.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://erratique.ch/software/uucd/releases/"
+                           "uucd-" version ".tbz"))
+       (sha256
+        (base32
+         "1fg77hg4ibidkv1x8hhzl8z3rzmyymn8m4i35jrdibb8adigi8v2"))))
+    (build-system ocaml-build-system)
+    (arguments
+     '(#:build-flags '("build" "--tests" "true")
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (propagated-inputs
+     `(("ocaml-xmlm" ,ocaml-xmlm)))
+    (native-inputs
+     `(("opam" ,opam)
+       ("ocaml-findlib" ,ocaml-findlib)
+       ("ocamlbuild" ,ocamlbuild)
+       ("ocaml-topkg" ,ocaml-topkg)))
+    (home-page "https://erratique.ch/software/uucd")
+    (synopsis "Unicode character database decoder for OCaml")
+    (description "Uucd is an OCaml module to decode the data of the Unicode
+character database from its XML representation.  It provides high-level (but
+not necessarily efficient) access to the data so that efficient
+representations can be extracted.")
+    (license license:isc)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 5/9] gnu: Add ocaml-uucp.
  2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
                   ` (3 preceding siblings ...)
  2021-06-21 10:01 ` [bug#49150] [PATCH 4/9] gnu: Add ocaml-uucd Xinglu Chen
@ 2021-06-21 10:01 ` Xinglu Chen
  2021-06-21 10:01 ` [bug#49150] [PATCH 6/9] gnu: Add ocaml-uuseg Xinglu Chen
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-06-21 10:01 UTC (permalink / raw)
  To: 49150

* gnu/packages/ocaml.scm (ocaml-uucp): New variable.
---
 gnu/packages/ocaml.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 34b909bcb1..8df397fd2e 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -6990,6 +6990,38 @@ not necessarily efficient) access to the data so that efficient
 representations can be extracted.")
     (license license:isc)))
 
+(define-public ocaml-uucp
+  (package
+    (name "ocaml-uucp")
+    (version "13.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://erratique.ch/software/uucp/releases/"
+                           "uucp-" version ".tbz"))
+       (sha256
+        (base32
+         "19kf8ypxaakacgg1dwwfzkc2zicaj88cmw11fw2z7zl24dn4gyiq"))))
+    (build-system ocaml-build-system)
+    (arguments
+     '(#:build-flags '("build" "--tests" "true")
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (native-inputs
+     `(("opam" ,opam)
+       ("ocaml-findlib" ,ocaml-findlib)
+       ("ocamlbuild" ,ocamlbuild)
+       ("ocaml-topkg" ,ocaml-topkg)
+       ("ocaml-uucd" ,ocaml-uucd)
+       ("ocaml-uunf" ,ocaml-uunf)
+       ("ocaml-uutf" ,ocaml-uutf)))
+    (home-page "https://erratique.ch/software/uucp")
+    (synopsis "Unicode character properties for OCaml")
+    (description "Uucp is an OCaml library providing efficient access to a
+selection of character properties of the Unicode character database.")
+    (license license:isc)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 6/9] gnu: Add ocaml-uuseg.
  2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
                   ` (4 preceding siblings ...)
  2021-06-21 10:01 ` [bug#49150] [PATCH 5/9] gnu: Add ocaml-uucp Xinglu Chen
@ 2021-06-21 10:01 ` Xinglu Chen
  2021-06-21 10:02 ` [bug#49150] [PATCH 7/9] gnu: Add ocaml-fix Xinglu Chen
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-06-21 10:01 UTC (permalink / raw)
  To: 49150

* gnu/packages/ocaml.scm (ocaml-uuseg): New variable.
---
 gnu/packages/ocaml.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 8df397fd2e..c2e1039146 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7022,6 +7022,45 @@ representations can be extracted.")
 selection of character properties of the Unicode character database.")
     (license license:isc)))
 
+(define-public ocaml-uuseg
+  (package
+    (name "ocaml-uuseg")
+    (version "13.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://erratique.ch/software/uuseg/releases/"
+                           "uuseg-" version ".tbz"))
+       (sha256
+        (base32
+         "1a635j8ra6p27g1ivfln3387lhwqmf6vq4r6bn7b6n1qsqyi1rls"))))
+    (build-system ocaml-build-system)
+    (arguments
+     '(#:build-flags '("build" "--tests" "true")
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (propagated-inputs
+     `(("ocaml-uucp" ,ocaml-uucp)
+       ("ocaml-uutf" ,ocaml-uutf)
+       ("ocaml-cmdliner" ,ocaml-cmdliner)))
+    (native-inputs
+     `(("opam" ,opam)
+       ("ocaml-findlib" ,ocaml-findlib)
+       ("ocamlbuild" ,ocamlbuild)
+       ("ocaml-topkg" ,ocaml-topkg)))
+    (home-page "https://erratique.ch/software/uuseg")
+    (synopsis "Unicode text segmentation for OCaml")
+    (description "Uuseg is an OCaml library for segmenting Unicode text. It
+implements the locale independent Unicode text segmentation algorithms to
+detect grapheme cluster, word and sentence boundaries and the Unicode line
+breaking algorithm to detect line break opportunities.
+
+The library is independent from any IO mechanism or Unicode text data
+structure and it can process text without a complete in-memory
+representation.")
+    (license license:isc)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 7/9] gnu: Add ocaml-fix.
  2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
                   ` (5 preceding siblings ...)
  2021-06-21 10:01 ` [bug#49150] [PATCH 6/9] gnu: Add ocaml-uuseg Xinglu Chen
@ 2021-06-21 10:02 ` Xinglu Chen
  2021-06-21 10:02 ` [bug#49150] [PATCH 8/9] gnu: Add ocaml-dune-build-info Xinglu Chen
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-06-21 10:02 UTC (permalink / raw)
  To: 49150

* gnu/packages/ocaml.scm (ocaml-fix): New variable.
---
 gnu/packages/ocaml.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index c2e1039146..94e5f23ec0 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7061,6 +7061,30 @@ structure and it can process text without a complete in-memory
 representation.")
     (license license:isc)))
 
+(define-public ocaml-fix
+  (package
+    (name "ocaml-fix")
+    (version "20201120")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://gitlab.inria.fr/fpottier/fix")
+              (commit version)))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+            "1j40mg1gy03c0djzx3nzmpvnl984s14n04zwcmp2xnlidq48kvs4"))))
+    (build-system dune-build-system)
+    (arguments
+     ;; No tests.
+     '(#:tests? #f))
+    (home-page "https://gitlab.inria.fr/fpottier/fix")
+    (synopsis "Facilities for memoization and fixed points")
+    (description "This package provides helpers with various constructions
+that involve memoization and recursion.")
+    (license license:lgpl2.0)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 8/9] gnu: Add ocaml-dune-build-info.
  2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
                   ` (6 preceding siblings ...)
  2021-06-21 10:02 ` [bug#49150] [PATCH 7/9] gnu: Add ocaml-fix Xinglu Chen
@ 2021-06-21 10:02 ` Xinglu Chen
  2021-06-21 10:02 ` [bug#49150] [PATCH 9/9] gnu: Add ocamlformat Xinglu Chen
  2021-08-08 20:45 ` bug#49150: [PATCH 0/9] Add ocamlformat and dependencies Julien Lepiller
  9 siblings, 0 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-06-21 10:02 UTC (permalink / raw)
  To: 49150

* gnu/packages/ocaml.scm (ocaml-dune-build-info): New variable.
---
 gnu/packages/ocaml.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 94e5f23ec0..b78e3ab2fa 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7085,6 +7085,24 @@ representation.")
 that involve memoization and recursion.")
     (license license:lgpl2.0)))
 
+(define-public ocaml-dune-build-info
+  (package
+    (inherit dune)
+    (name "ocaml-dune-build-info")
+    (build-system dune-build-system)
+    (arguments
+     '(#:package "dune-build-info"
+       ;; No separate test suite from dune.
+       #:tests? #f))
+    (propagated-inputs
+     `(("ocaml-odoc" ,ocaml-odoc)))
+    (synopsis "Embed build informations inside executable")
+    (description "This package allows one to access information about how the
+executable was built, such as the version of the project at which it was built
+or the list of statically linked libraries with their versions.  It supports
+reporting the version from the version control system during development to
+get an precise reference of when the executable was built.")))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 9/9] gnu: Add ocamlformat.
  2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
                   ` (7 preceding siblings ...)
  2021-06-21 10:02 ` [bug#49150] [PATCH 8/9] gnu: Add ocaml-dune-build-info Xinglu Chen
@ 2021-06-21 10:02 ` Xinglu Chen
  2021-08-08 20:45 ` bug#49150: [PATCH 0/9] Add ocamlformat and dependencies Julien Lepiller
  9 siblings, 0 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-06-21 10:02 UTC (permalink / raw)
  To: 49150

* gnu/packages/ocaml.scm (ocamlformat): 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 b78e3ab2fa..ca15b86c8a 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7103,6 +7103,52 @@ or the list of statically linked libraries with their versions.  It supports
 reporting the version from the version control system during development to
 get an precise reference of when the executable was built.")))
 
+(define-public ocamlformat
+  (package
+    (name "ocamlformat")
+    (version "0.18.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/ocaml-ppx/ocamlformat")
+              (commit version)))
+        (file-name (git-file-name name version))
+        (sha256
+          (base32
+            "0n6363km8xr81pvyk453n6h2mb0256c5yxw3p1li4dn83f3lwxr1"))))
+    (build-system dune-build-system)
+    (arguments
+     '(#:package "ocamlformat"
+       ;; FIXME: The expected format is slightly different than what the
+       ;; produced format is for test/cli/stdin.t
+       #:tests? #f))
+    (propagated-inputs
+      `(("ocaml-version" ,ocaml-version)
+        ("ocaml-base" ,ocaml-base)
+        ("ocaml-cmdliner" ,ocaml-cmdliner)
+        ("ocaml-dune-build-info" ,ocaml-dune-build-info)
+        ("ocaml-fix" ,ocaml-fix)
+        ("ocaml-fpath" ,ocaml-fpath)
+        ("ocaml-menhir" ,ocaml-menhir)
+        ("ocaml-menhir-lib" ,ocaml-menhir-lib)
+        ("ocaml-menhir-sdk" ,ocaml-menhir-sdk)
+        ("ocaml-odoc" ,ocaml-odoc)
+        ("ocaml-ppxlib" ,ocaml-ppxlib)
+        ("ocaml-re" ,ocaml-re)
+        ("ocaml-stdio" ,ocaml-stdio)
+        ("ocaml-uuseg" ,ocaml-uuseg)
+        ("ocaml-uutf" ,ocaml-uutf)))
+    (native-inputs
+      `(("ocaml-alcotest" ,ocaml-alcotest)
+        ("ocaml-ocp-indent" ,ocaml-ocp-indent)
+        ("ocaml-bisect-ppx" ,ocaml-bisect-ppx)))
+    (home-page "https://github.com/ocaml-ppx/ocamlformat")
+    (synopsis "Auto-formatter for OCaml code")
+    (description "OCamlFormat is a tool to automatically format OCaml code in
+a uniform style.")
+    (license license:expat)))
+
 (define-public ocaml-bigstringaf
   (package
     (name "ocaml-bigstringaf")
-- 
2.32.0






^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk.
  2021-06-21 10:01 ` [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk Xinglu Chen
@ 2021-06-27 13:20   ` Julien Lepiller
  2021-06-27 13:37     ` Xinglu Chen
  0 siblings, 1 reply; 15+ messages in thread
From: Julien Lepiller @ 2021-06-27 13:20 UTC (permalink / raw)
  To: Xinglu Chen; +Cc: 49150

Le Mon, 21 Jun 2021 12:01:53 +0200,
Xinglu Chen <public@yoctocell.xyz> a écrit :

> * gnu/packages/ocaml.scm (ocaml-menhir-sdk): New variable.
> ---
>  gnu/packages/ocaml.scm | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
> index 08406a206d..d7d3afd36c 100644
> --- a/gnu/packages/ocaml.scm
> +++ b/gnu/packages/ocaml.scm
> @@ -1069,6 +1069,19 @@ Knuth’s LR(1) parser construction technique.")
>      (description "This package provides a runtime support library
> for parsers generated by Menhir.")))
>  
> +(define-public ocaml-menhir-sdk
> +  (package
> +    (inherit ocaml-menhir)
> +    (name "ocaml-menhir-sdk")
> +    (arguments
> +     '(#:package "menhirSdk"
> +       #:test-target "sdk"))
> +    (properties
> +     `((upstream-name . "menhirSdk")))
> +    (synopsis "Compile-time library for auxiliary tools related to
> Menhir")
> +    (description "This package provides a compile-time library for
> auxiliary +tools related to Menhir.")))
> +
>  (define-public ocaml-bigarray-compat
>    (package
>      (name "ocaml-bigarray-compat")

MenhirLib and MenhirSdk are both already part of the ocaml-menhir
package, so I don't think it is useful to add separate packages for
them. WDYT?




^ permalink raw reply	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk.
  2021-06-27 13:20   ` Julien Lepiller
@ 2021-06-27 13:37     ` Xinglu Chen
  2021-08-04  8:23       ` Xinglu Chen
  0 siblings, 1 reply; 15+ messages in thread
From: Xinglu Chen @ 2021-06-27 13:37 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 49150

[-- Attachment #1: Type: text/plain, Size: 1617 bytes --]

On Sun, Jun 27 2021, Julien Lepiller wrote:

> Le Mon, 21 Jun 2021 12:01:53 +0200,
> Xinglu Chen <public@yoctocell.xyz> a écrit :
>
>> * gnu/packages/ocaml.scm (ocaml-menhir-sdk): New variable.
>> ---
>>  gnu/packages/ocaml.scm | 13 +++++++++++++
>>  1 file changed, 13 insertions(+)
>> 
>> diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
>> index 08406a206d..d7d3afd36c 100644
>> --- a/gnu/packages/ocaml.scm
>> +++ b/gnu/packages/ocaml.scm
>> @@ -1069,6 +1069,19 @@ Knuth’s LR(1) parser construction technique.")
>>      (description "This package provides a runtime support library
>> for parsers generated by Menhir.")))
>>  
>> +(define-public ocaml-menhir-sdk
>> +  (package
>> +    (inherit ocaml-menhir)
>> +    (name "ocaml-menhir-sdk")
>> +    (arguments
>> +     '(#:package "menhirSdk"
>> +       #:test-target "sdk"))
>> +    (properties
>> +     `((upstream-name . "menhirSdk")))
>> +    (synopsis "Compile-time library for auxiliary tools related to
>> Menhir")
>> +    (description "This package provides a compile-time library for
>> auxiliary +tools related to Menhir.")))
>> +
>>  (define-public ocaml-bigarray-compat
>>    (package
>>      (name "ocaml-bigarray-compat")
>
> MenhirLib and MenhirSdk are both already part of the ocaml-menhir
> package, so I don't think it is useful to add separate packages for
> them. WDYT?

Ah, then we can probably drop them, but they (Menhir, MenhirLib, and
MenhirSdk) are three separate packages on Opam, so i could also make
sense to restrict ‘ocaml-menhir’ to only the Menhir package.

WDYT?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk.
  2021-06-27 13:37     ` Xinglu Chen
@ 2021-08-04  8:23       ` Xinglu Chen
  0 siblings, 0 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-08-04  8:23 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 49150

[-- Attachment #1: Type: text/plain, Size: 1723 bytes --]

On Sun, Jun 27 2021, Xinglu Chen wrote:

> On Sun, Jun 27 2021, Julien Lepiller wrote:
>
>> Le Mon, 21 Jun 2021 12:01:53 +0200,
>> Xinglu Chen <public@yoctocell.xyz> a écrit :
>>
>>> * gnu/packages/ocaml.scm (ocaml-menhir-sdk): New variable.
>>> ---
>>>  gnu/packages/ocaml.scm | 13 +++++++++++++
>>>  1 file changed, 13 insertions(+)
>>> 
>>> diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
>>> index 08406a206d..d7d3afd36c 100644
>>> --- a/gnu/packages/ocaml.scm
>>> +++ b/gnu/packages/ocaml.scm
>>> @@ -1069,6 +1069,19 @@ Knuth’s LR(1) parser construction technique.")
>>>      (description "This package provides a runtime support library
>>> for parsers generated by Menhir.")))
>>>  
>>> +(define-public ocaml-menhir-sdk
>>> +  (package
>>> +    (inherit ocaml-menhir)
>>> +    (name "ocaml-menhir-sdk")
>>> +    (arguments
>>> +     '(#:package "menhirSdk"
>>> +       #:test-target "sdk"))
>>> +    (properties
>>> +     `((upstream-name . "menhirSdk")))
>>> +    (synopsis "Compile-time library for auxiliary tools related to
>>> Menhir")
>>> +    (description "This package provides a compile-time library for
>>> auxiliary +tools related to Menhir.")))
>>> +
>>>  (define-public ocaml-bigarray-compat
>>>    (package
>>>      (name "ocaml-bigarray-compat")
>>
>> MenhirLib and MenhirSdk are both already part of the ocaml-menhir
>> package, so I don't think it is useful to add separate packages for
>> them. WDYT?
>
> Ah, then we can probably drop them, but they (Menhir, MenhirLib, and
> MenhirSdk) are three separate packages on Opam, so i could also make
> sense to restrict ‘ocaml-menhir’ to only the Menhir package.
>
> WDYT?

Ping!  :)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#49150: [PATCH 0/9] Add ocamlformat and dependencies
  2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
                   ` (8 preceding siblings ...)
  2021-06-21 10:02 ` [bug#49150] [PATCH 9/9] gnu: Add ocamlformat Xinglu Chen
@ 2021-08-08 20:45 ` Julien Lepiller
  2021-08-09  9:36   ` [bug#49150] " Xinglu Chen
  9 siblings, 1 reply; 15+ messages in thread
From: Julien Lepiller @ 2021-08-08 20:45 UTC (permalink / raw)
  To: Xinglu Chen; +Cc: 49150-done

Le Mon, 21 Jun 2021 11:56:59 +0200,
Xinglu Chen <public@yoctocell.xyz> a écrit :

> This series add ‘ocamlformat’, a code formatter for OCaml, and some
> missing dependencies.  It also updates the ‘ocaml-bisect-ppx’ package,
> otherwise ‘ocamlformat’ would not build.
> 
> Some tests for ‘ocamlformat’ are failing, not sure why, so I have
> disabled them for now.
> 
> Xinglu Chen (9):
>   gnu: ocaml-bisect-ppx: Update to 2.6.1.
>   gnu: Add ocaml-menhir-lib.
>   gnu: Add ocaml-menhir-sdk.
>   gnu: Add ocaml-uucd.
>   gnu: Add ocaml-uucp.
>   gnu: Add ocaml-uuseg.
>   gnu: Add ocaml-fix.
>   gnu: Add ocaml-dune-build-info.
>   gnu: Add ocamlformat.
> 
>  gnu/packages/ocaml.scm | 240
> ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 224
> insertions(+), 16 deletions(-)
> 
> 
> base-commit: 71c3f954194770956b39d311fab44ee6ddb4f666

Sorry for the delay! Pushed as
e473fe1056a8b8089715dff46050355f777ef5ed to
e83fe81be4677aca1f42f0df9c8d2606400a4619, after fixing the
description ocaml-uuseg. I omited patches 2 and 3 and fixed ocamlformat
accordingly.

Thanks!




^ permalink raw reply	[flat|nested] 15+ messages in thread

* [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies
  2021-08-08 20:45 ` bug#49150: [PATCH 0/9] Add ocamlformat and dependencies Julien Lepiller
@ 2021-08-09  9:36   ` Xinglu Chen
  0 siblings, 0 replies; 15+ messages in thread
From: Xinglu Chen @ 2021-08-09  9:36 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 49150-done

[-- Attachment #1: Type: text/plain, Size: 1226 bytes --]

On Sun, Aug 08 2021, Julien Lepiller wrote:

> Le Mon, 21 Jun 2021 11:56:59 +0200,
> Xinglu Chen <public@yoctocell.xyz> a écrit :
>
>> This series add ‘ocamlformat’, a code formatter for OCaml, and some
>> missing dependencies.  It also updates the ‘ocaml-bisect-ppx’ package,
>> otherwise ‘ocamlformat’ would not build.
>> 
>> Some tests for ‘ocamlformat’ are failing, not sure why, so I have
>> disabled them for now.
>> 
>> Xinglu Chen (9):
>>   gnu: ocaml-bisect-ppx: Update to 2.6.1.
>>   gnu: Add ocaml-menhir-lib.
>>   gnu: Add ocaml-menhir-sdk.
>>   gnu: Add ocaml-uucd.
>>   gnu: Add ocaml-uucp.
>>   gnu: Add ocaml-uuseg.
>>   gnu: Add ocaml-fix.
>>   gnu: Add ocaml-dune-build-info.
>>   gnu: Add ocamlformat.
>> 
>>  gnu/packages/ocaml.scm | 240
>> ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 224
>> insertions(+), 16 deletions(-)
>> 
>> 
>> base-commit: 71c3f954194770956b39d311fab44ee6ddb4f666
>
> Sorry for the delay! Pushed as
> e473fe1056a8b8089715dff46050355f777ef5ed to
> e83fe81be4677aca1f42f0df9c8d2606400a4619, after fixing the
> description ocaml-uuseg. I omited patches 2 and 3 and fixed ocamlformat
> accordingly.

Great, thank you!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-08-09  9:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-21  9:56 [bug#49150] [PATCH 0/9] Add ocamlformat and dependencies Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 1/9] gnu: ocaml-bisect-ppx: Update to 2.6.1 Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 2/9] gnu: Add ocaml-menhir-lib Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 3/9] gnu: Add ocaml-menhir-sdk Xinglu Chen
2021-06-27 13:20   ` Julien Lepiller
2021-06-27 13:37     ` Xinglu Chen
2021-08-04  8:23       ` Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 4/9] gnu: Add ocaml-uucd Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 5/9] gnu: Add ocaml-uucp Xinglu Chen
2021-06-21 10:01 ` [bug#49150] [PATCH 6/9] gnu: Add ocaml-uuseg Xinglu Chen
2021-06-21 10:02 ` [bug#49150] [PATCH 7/9] gnu: Add ocaml-fix Xinglu Chen
2021-06-21 10:02 ` [bug#49150] [PATCH 8/9] gnu: Add ocaml-dune-build-info Xinglu Chen
2021-06-21 10:02 ` [bug#49150] [PATCH 9/9] gnu: Add ocamlformat Xinglu Chen
2021-08-08 20:45 ` bug#49150: [PATCH 0/9] Add ocamlformat and dependencies Julien Lepiller
2021-08-09  9:36   ` [bug#49150] " Xinglu Chen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).