efraim pushed a commit to branch master
in repository guix.
commit d67b8788b378239f447731484190970b60894885
Author: Efraim Flashner <[email protected]>
AuthorDate: Tue Apr 25 16:47:13 2023 +0300
gnu: ocaml-lwt: Add ocaml4.07 variant.
* gnu/packages/ocaml.scm (ocaml-lwt)[properties]: New field.
(ocaml4.07-lwt): New variable.
---
gnu/packages/ocaml.scm | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 95ddea92c5..f0b8f9e912 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -5,7 +5,7 @@
;;; Copyright © 2015 David Hashe <[email protected]>
;;; Copyright © 2016 Eric Bavier <[email protected]>
;;; Copyright © 2016 Jan Nieuwenhuizen <[email protected]>
-;;; Copyright © 2016, 2018, 2019, 2020 Efraim Flashner <[email protected]>
+;;; Copyright © 2016, 2018-2020, 2023 Efraim Flashner <[email protected]>
;;; Copyright © 2016-2022 Julien Lepiller <[email protected]>
;;; Copyright © 2017 Ben Woodcroft <[email protected]>
;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <[email protected]>
@@ -2998,8 +2998,26 @@ OCaml with fibers.")
make it easy to run normally-blocking I/O operations concurrently in a single
process. Also, in many cases, Lwt threads can interact without the need for
locks or other synchronization primitives.")
+ (properties `((ocaml4.07-variant . ,(delay ocaml4.07-lwt))))
(license license:lgpl2.1)))
+(define-public ocaml4.07-lwt
+ (package-with-ocaml4.07
+ (package
+ (inherit ocaml-lwt)
+ (name "ocaml-lwt")
+ (version "5.5.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ocsigen/lwt")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256 (base32
+ "1jbjz2rsz3j56k8vh5qlmm87hhkr250bs2m3dvpy9vsri8rkzj9z"))))
+ (properties '()))))
+
;; TODO this alias is not ideal but ocaml-lwt already explicitly specifies a
;; package argument and at least this way the importer doesn't try to
;; re-import it.