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

commit b03243d733ba0d89dbf1be8b18edff4515c03d51
Author: Jason Conroy <[email protected]>
AuthorDate: Wed Feb 4 10:52:20 2026 -0500

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

diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index ed7b23e527..3649515747 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -2617,6 +2617,30 @@ OPAM.")))
        #:tests? #f
        #:phases %standard-phases))))
 
+(define ocaml-opam-client
+  (package
+    (inherit ocaml-opam-core)
+    (name "ocaml5-opam-client")
+    (arguments
+     `(#:package "opam-client"
+       ;; tests are run with the opam package
+       #:tests? #f
+       #:phases (modify-phases %standard-phases
+                  (add-before 'build 'pre-build
+                    (lambda* (#:key inputs make-flags #:allow-other-keys)
+                      (let ((bwrap (search-input-file inputs "/bin/bwrap")))
+                        (substitute* "src/client/opamInitDefaults.ml"
+                          (("\"bwrap\"")
+                           (string-append "\"" bwrap "\"")))))))))
+    (inputs (list bubblewrap))
+    (propagated-inputs (list ocaml-base64
+                             ocaml-cmdliner
+                             ocaml-opam-repository
+                             ocaml-opam-solver
+                             ocaml-opam-state
+                             ocaml-re
+                             ocaml-spdx-licenses))))
+
 ;;;
 ;;; 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