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

commit 70f572bf5e036bd0b600974d108bde76351b9931
Author: Jason Conroy <[email protected]>
AuthorDate: Thu Jan 15 14:01:05 2026 -0500

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

diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index 1f766267d5..a79f132d65 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -58,6 +58,7 @@
   #:use-module (gnu packages parallel)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages web)
   #:use-module (gnu packages xorg)
   #:use-module ((guix build-system dune)
                 #:select ((ocaml5-dune-build-system . dune-build-system)))
@@ -2078,6 +2079,43 @@ complexity of the OCaml module system.")
 documentation comments, formatted using Odoc syntax, an extension of the
 language understood by ocamldoc.")))
 
+(define-public ocaml-odoc
+  (package
+    (inherit %ocaml-odoc-base)
+    (name "ocaml5-odoc")
+    (arguments
+     `(#:package "odoc"
+       #:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'fix-test
+                    (lambda _
+                      ;; test results expects #!/bin/sh but gets a store path 
instead
+                      (substitute* "test/xref2/with.t/run.t"
+                        (("#!/bin/sh")
+                         (string-append "#!"
+                                        (which "sh")))))))))
+    (inputs (list ocaml-astring
+                  ocaml-bisect-ppx
+                  ocaml-cmdliner
+                  ocaml-crunch
+                  ocaml-fmt
+                  ocaml-fpath
+                  ocaml-logs
+                  ocaml-odoc-parser
+                  ocaml-re
+                  ocaml-result
+                  ocaml-sexplib
+                  ocaml-tyxml))
+    (native-inputs (list ocaml-alcotest
+                         ocaml-bos
+                         ocaml-cppo
+                         ocaml-lwt
+                         ocaml-markup
+                         ocaml-menhir
+                         ocaml-ppx-expect
+                         ocaml-version
+                         ocaml-yojson
+                         jq))))
+
 ;;;
 ;;; Avoid adding new packages to the end of this file. To reduce the chances
 ;;; of a merge conflict, place them above by existing packages with similar

Reply via email to