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

commit d0e716e44e9ebf2d12e57651dc4ba50218e9e090
Author: Jason Conroy <[email protected]>
AuthorDate: Thu Jan 15 11:26:00 2026 -0500

    gnu: ocaml5: Add helper to build origins for Jane Street packages.
    
    * gnu/packages/ocaml5.scm (janestreet-github-origin): New variable.
    
    Change-Id: I34f0f99adde1bf6d7ecc3102d82dd60bc3c17276
    Signed-off-by: Julien Lepiller <[email protected]>
---
 gnu/packages/ocaml5.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/ocaml5.scm b/gnu/packages/ocaml5.scm
index 7b037c4901..982d9a6253 100644
--- a/gnu/packages/ocaml5.scm
+++ b/gnu/packages/ocaml5.scm
@@ -70,6 +70,18 @@
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages))
 
+;; An origin for a Jane Street project hosted on Github.
+(define (janestreet-git-origin name version hash-string)
+  (origin
+    (method git-fetch)
+    (uri (git-reference
+           (url (string-append
+                 "https://github.com/janestreet/"; name))
+           (commit (string-append "v" version))))
+    (file-name (git-file-name name version))
+    (sha256
+     (base32 hash-string))))
+
 (define-public ocaml-5.0
   (package
     (name "ocaml")

Reply via email to