GNU bug report logs - #66119
[PATCH 0/3] Some OCaml packages (needed for ocaml-toml)

Previous Next

Package: guix-patches;

Reported by: Matthieu Lemerre <racin <at> free.fr>

Date: Wed, 20 Sep 2023 10:46:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 66119 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to julien <at> lepiller.eu, pukkamustard <at> posteo.net, guix-patches <at> gnu.org:
bug#66119; Package guix-patches. (Wed, 20 Sep 2023 10:46:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matthieu Lemerre <racin <at> free.fr>:
New bug report received and forwarded. Copy sent to julien <at> lepiller.eu, pukkamustard <at> posteo.net, guix-patches <at> gnu.org. (Wed, 20 Sep 2023 10:46:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matthieu Lemerre <racin <at> free.fr>
To: guix-patches <at> gnu.org
Cc: Matthieu Lemerre <racin <at> free.fr>
Subject: [PATCH 0/3] Some OCaml packages (needed for ocaml-toml)
Date: Wed, 20 Sep 2023 12:45:08 +0200
Hello,

Here are three missing OCaml packages. (I have more to come, but I want to make sure that I got the process right)

Best regards,
Matthieu

Matthieu Lemerre (3):
  gnu: Add ocaml-iso8601.
  gnu: Add ocaml-ocb.
  gnu: Add ocaml-toml.

 gnu/packages/ocaml.scm | 70 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)


base-commit: 15c5f1a2c20b21de0f19f42db1ccab4c42117ebb
-- 
2.41.0





Information forwarded to julien <at> lepiller.eu, pukkamustard <at> posteo.net, guix-patches <at> gnu.org:
bug#66119; Package guix-patches. (Wed, 20 Sep 2023 10:52:01 GMT) Full text and rfc822 format available.

Message #8 received at 66119 <at> debbugs.gnu.org (full text, mbox):

From: Matthieu Lemerre <racin <at> free.fr>
To: 66119 <at> debbugs.gnu.org
Cc: Matthieu Lemerre <racin <at> free.fr>
Subject: [PATCH 1/3] gnu: Add ocaml-iso8601.
Date: Wed, 20 Sep 2023 12:50:38 +0200
* gnu/packages/ocaml.scm (ocaml-iso8601): New variable.
---
 gnu/packages/ocaml.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index ea9d3e3594..5caa2d6185 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -2445,6 +2445,28 @@ (define-public ocaml-calendar
       ;; With linking exception.
       (license license:lgpl2.1+))))
 
+(define-public ocaml-iso8601
+  (package
+    (name "ocaml-iso8601")
+    (version "0.2.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ocaml-community/ISO8601.ml")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0nzadswspizi7s6sf67icn2xgc3w150x8vdg5nk1mjrm2s98n6d3"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-odoc))
+    (native-inputs (list ocaml-ounit))
+    (home-page "https://github.com/ocaml-community/ISO8601.ml/")
+    (synopsis "ISO 8601 and RFC 3999 date parsing for OCaml")
+    (description
+     "An OCaml library for parsing dates in ISO 8601 and RFC 3999 format.")
+    (license license:expat)))
+
 (define-public ocaml-cmdliner
   (package
     (name "ocaml-cmdliner")
-- 
2.41.0





Information forwarded to julien <at> lepiller.eu, pukkamustard <at> posteo.net, guix-patches <at> gnu.org:
bug#66119; Package guix-patches. (Wed, 20 Sep 2023 10:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 66119 <at> debbugs.gnu.org (full text, mbox):

From: Matthieu Lemerre <racin <at> free.fr>
To: 66119 <at> debbugs.gnu.org
Cc: Matthieu Lemerre <racin <at> free.fr>
Subject: [PATCH 2/3] gnu: Add ocaml-ocb.
Date: Wed, 20 Sep 2023 12:50:39 +0200
* gnu/packages/ocaml.scm (ocaml-ocb): 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 5caa2d6185..96ef416b30 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5834,6 +5834,29 @@ (define-public ocaml-ocb-stubblr
 OCaml projects that contain C stubs.")
    (license license:isc)))
 
+
+(define-public ocaml-ocb
+  (package
+    (name "ocaml-ocb")
+    (version "0.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/OCamlPro/ocb")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1nk90jax91ld8qd36qi408mll8a7w1d60fa2qdsnff7cldwixc1d"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-odoc))
+    (home-page "https://ocamlpro.github.io/ocb/")
+    (synopsis "ocb (OCaml Badgen): SVG badge generation")
+    (description
+     "ocb (OCaml Badgen) is an OCaml library for SVG badge generation.
+There's also a command-line tool provided.")
+    (license license:isc)))
+
 (define-public ocaml-tsdl
   (package
     (name "ocaml-tsdl")
-- 
2.41.0





Information forwarded to julien <at> lepiller.eu, pukkamustard <at> posteo.net, guix-patches <at> gnu.org:
bug#66119; Package guix-patches. (Wed, 20 Sep 2023 10:52:02 GMT) Full text and rfc822 format available.

Message #14 received at 66119 <at> debbugs.gnu.org (full text, mbox):

From: Matthieu Lemerre <racin <at> free.fr>
To: 66119 <at> debbugs.gnu.org
Cc: Matthieu Lemerre <racin <at> free.fr>
Subject: [PATCH 3/3] gnu: Add ocaml-toml.
Date: Wed, 20 Sep 2023 12:50:40 +0200
* gnu/packages/ocaml.scm (ocaml-toml): 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 96ef416b30..4941dd91ac 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5040,6 +5040,31 @@ (define-public ocaml-ezjsonm
 JSON.")
     (license license:isc)))
 
+(define-public ocaml-toml
+  (package
+    (name "ocaml-toml")
+    (version "7.1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ocaml-toml/to.ml")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0z2873mj3i6h9cg8zlkipcjab8jympa4c4avhk4l04755qzphkds"))))
+    (build-system dune-build-system)
+    (propagated-inputs (list ocaml-odoc ocaml-iso8601))
+    (native-inputs (list ocaml-menhir ocaml-ounit2 ocaml-mdx ocaml-bisect-ppx
+                         ocaml-ocb))
+    (home-page "https://ocaml-toml.github.io/To.ml/")
+    (synopsis "OCaml library for TOML with a parser, a serializer and a printer")
+    (description
+     "Toml is an OCaml library providing a parser, a serializer and a printer for
+TOML, a minimal configuration file format.  Helpful getters to retrieve data as
+OCaml primitive types are also supplied.")
+    (license license:lgpl3)))
+
 (define-public ocaml-uri
   (package
     (name "ocaml-uri")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#66119; Package guix-patches. (Sat, 14 Oct 2023 06:39:02 GMT) Full text and rfc822 format available.

Message #17 received at 66119 <at> debbugs.gnu.org (full text, mbox):

From: pukkamustard <pukkamustard <at> posteo.net>
To: Matthieu Lemerre <racin <at> free.fr>
Cc: Julien Lepiller <julien <at> lepiller.eu>, 66119 <at> debbugs.gnu.org
Subject: Re: [bug#66119] [PATCH 0/3] Some OCaml packages (needed for
 ocaml-toml)
Date: Sat, 14 Oct 2023 06:25:10 +0000
Hello,

Matthieu Lemerre <racin <at> free.fr> writes:

> Here are three missing OCaml packages. (I have more to come, but I want to make sure that I got the process right)

Thanks!

Descriptions are good, packages build and lint does not complain. Looks
good to me!

One small thing: It seems like ocaml-ocb is not a real dependency of
ocaml-toml (not even a test dependency). It seems to be used only when
deploying new versions of ocaml-toml and ocaml-toml builds fine without
ocaml-ocb. I would drop ocaml-ocb from inputs of ocaml-toml and if you
have no use of ocaml-ocb directly, drop the entire ocaml-ocb patch.

Cheers,
pukkamustard




Information forwarded to guix-patches <at> gnu.org:
bug#66119; Package guix-patches. (Tue, 24 Oct 2023 15:33:01 GMT) Full text and rfc822 format available.

Message #20 received at 66119 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Matthieu Lemerre <racin <at> free.fr>
Cc: pukkamustard <pukkamustard <at> posteo.net>,
 Julien Lepiller <julien <at> lepiller.eu>, 66119 <at> debbugs.gnu.org
Subject: Re: [bug#66119] [PATCH 0/3] Some OCaml packages (needed for
 ocaml-toml)
Date: Tue, 24 Oct 2023 17:31:52 +0200
Hi Matthieu,

Did you get a change to look into what pukkamustard wrote (below)?

If you think everything is fine as-is, please let us know and we’ll
apply the patches.

Thanks,
Ludo’.

pukkamustard <pukkamustard <at> posteo.net> skribis:

> Hello,
>
> Matthieu Lemerre <racin <at> free.fr> writes:
>
>> Here are three missing OCaml packages. (I have more to come, but I want to make sure that I got the process right)
>
> Thanks!
>
> Descriptions are good, packages build and lint does not complain. Looks
> good to me!
>
> One small thing: It seems like ocaml-ocb is not a real dependency of
> ocaml-toml (not even a test dependency). It seems to be used only when
> deploying new versions of ocaml-toml and ocaml-toml builds fine without
> ocaml-ocb. I would drop ocaml-ocb from inputs of ocaml-toml and if you
> have no use of ocaml-ocb directly, drop the entire ocaml-ocb patch.
>
> Cheers,
> pukkamustard




This bug report was last modified 193 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.