guix_mirror_bot pushed a commit to branch ocaml-team
in repository guix.

commit 81bb0cf28d5d24325ea5034308d1b0dc1bb69154
Author: Jason Conroy <[email protected]>
AuthorDate: Sat Jan 10 16:25:01 2026 -0500

    gnu: ocaml5: Add ocaml-opam-file-format.
    
    * gnu/packages/ocaml5.scm (ocaml-opam-file-format): New variable.
    
    Change-Id: Ibb19698643b3ad570e00ed9e00b6fb85b61c8104
    Signed-off-by: Julien Lepiller <[email protected]>
---
 gnu/packages/ocaml5.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index 67004a4ad1..7233ab2854 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -180,6 +180,33 @@ functional, imperative and object-oriented styles of 
programming.")
 for building OCaml library and programs.")
     (license license:lgpl2.1+)))
 
+(define-public ocaml-opam-file-format
+  (package
+    (name "ocaml5-opam-file-format")
+    (version "2.1.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ocaml/opam-file-format";)
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0dmnb1mqdy4913f9ma446hi5m99q7hfibj6j0m8x2wsfnfy2fw62"))))
+    (build-system ocaml-build-system)
+    (arguments
+     `(#:tests? #f ;No tests
+       #:make-flags ,#~(list (string-append "LIBDIR="
+                                            #$output "/lib/ocaml/site-lib"))
+       #:phases (modify-phases %standard-phases
+                  (delete 'configure))))
+    (home-page "https://opam.ocaml.org";)
+    (synopsis "Parser and printer for the opam file syntax")
+    (description "This package contains a parser and a pretty-printer for
+the opam file format.")
+    ;; With static-linking exception
+    (license license:lgpl2.1+)))
+
 (define-public ocaml5.3-result
   (package
     (name "ocaml5.3-result")

Reply via email to