Subject: [bug#64249] [PATCH 4/9] gnu: Add ocaml-junit-alcotest

From: [email-masked]
Date: Sun, 24 Dec 2023 17:43:39 +0100

From: Arnaud DABY-SEESARAM <[email-masked]>

* gnu/packages/ocaml.scm (ocaml-junit-alcotest): New variable.

Change-Id: I377bbba90e8625a47680643db2ef84fabbe60908
---
 gnu/packages/ocaml.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index f664f6db81b..b14f69cae1d 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1666,6 +1666,24 @@ (define-public ocaml-junit
     (description "JUnit XML reports generation library")
     (license #f)))
 
+(define-public ocaml-junit-alcotest
+  (package
+    (inherit ocaml-junit)
+    (name "ocaml-junit-alcotest")
+    (propagated-inputs (list ocaml-odoc ocaml-alcotest ocaml-junit))
+    (build-system dune-build-system)
+    (arguments
+     `(#:package "junit_alcotest"
+       #:tests? #f ;Check fails
+       #:phases (modify-phases %standard-phases
+                  (add-before 'build 'dune-subst
+                    (lambda _
+                      (invoke "dune" "subst") #t)))))
+    (properties `((upstream-name . "junit_alcotest")))
+    (synopsis "JUnit XML reports generation for alcotest tests")
+    (description "JUnit XML reports generation for alcotest tests")
+    (license #f)))
+
 (define-public camlzip
   (package
     (name "camlzip")
-- 
2.41.0