[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 28/96] gnu: Add ocaml-lwt
From: |
Julien Lepiller |
Subject: |
[PATCH 28/96] gnu: Add ocaml-lwt |
Date: |
Tue, 3 Jan 2017 20:11:09 +0100 |
* gnu/packages/ocaml.scm (ocaml-lwt): New variable.
---
gnu/packages/ocaml.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 7328004a0..5418ee235 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -47,6 +47,8 @@
#:use-module (gnu packages lynx)
#:use-module (gnu packages perl)
#:use-module (gnu packages python)
+ #:use-module (gnu packages glib)
+ #:use-module (gnu packages libevent)
#:use-module (gnu packages m4)
#:use-module (gnu packages multiprecision)
#:use-module (gnu packages ncurses)
@@ -1313,3 +1315,38 @@ lets the client choose the concrete timeline.")
(synopsis "OCaml bindings for OpenSSL")
(description "OCaml bindings for OpenSSL.")
(license license:lgpl2.1)))
+
+(define-public ocaml-lwt
+ (package
+ (name "ocaml-lwt")
+ (version "2.6.0")
+ (home-page "https://github.com/ocsigen/lwt")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append home-page "/archive/" version ".tar.gz"))
+ (sha256 (base32
+ "1gbw0g8a5a4b16diqrmlhc8ilnikrm4w3jjm1zq310maqg8z0zxz"))))
+ (build-system ocaml-build-system)
+ (arguments `(#:configure-flags
+ (list "--enable-ssl" "--enable-glib" "--enable-react"
+ "--enable-ppx")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'disable-some-checks
+ (lambda* (#:key #:allow-other-keys)
+ (substitute* "tests/unix/main.ml"
+ (("Test_mcast.suite;") "")))))))
+ (native-inputs `(("pkg-config" ,pkg-config)
+ ("ppx-tools" ,ocaml-ppx-tools)))
+ (inputs `(("libev" ,libev)
+ ("glib" ,glib)))
+ (propagated-inputs `(("result" ,ocaml-result)
+ ("ocaml-ssl" ,ocaml-ssl)
+ ("ocaml-react" ,ocaml-react)))
+ (synopsis "Cooperative threads and I/O in monadic style")
+ (description "Lwt provides typed, composable cooperative threads. These
+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.")
+ (license license:lgpl2.1)))
--
2.11.0
- [PATCH 18/96] gnu: Add ocaml-topkg, (continued)
- [PATCH 18/96] gnu: Add ocaml-topkg, Julien Lepiller, 2017/01/03
- [PATCH 19/96] gnu: Add ocaml-rresult, Julien Lepiller, 2017/01/03
- [PATCH 20/96] gnu: Add ocaml-mtime, Julien Lepiller, 2017/01/03
- [PATCH 21/96] gnu: Add ocaml-cmdliner, Julien Lepiller, 2017/01/03
- [PATCH 22/96] gnu: Add ocaml-fmt, Julien Lepiller, 2017/01/03
- [PATCH 23/96] gnu: Add ocaml-astring, Julien Lepiller, 2017/01/03
- [PATCH 24/96] gnu: Add ocaml-alcotest, Julien Lepiller, 2017/01/03
- [PATCH 25/96] gnu: Add ocaml-ppx-tools, Julien Lepiller, 2017/01/03
- [PATCH 26/96] gnu: Add ocaml-react, Julien Lepiller, 2017/01/03
- [PATCH 27/96] gnu: Add ocaml-ssl, Julien Lepiller, 2017/01/03
- [PATCH 28/96] gnu: Add ocaml-lwt,
Julien Lepiller <=
- [PATCH 29/96] gnu: Add ocaml-logs, Julien Lepiller, 2017/01/03
- [PATCH 30/96] gnu: Add ocaml-fpath, Julien Lepiller, 2017/01/03
- [PATCH 31/96] gnu: Add ocaml-bos, Julien Lepiller, 2017/01/03
- [PATCH 32/96] gnu: Add ocaml-xmlm, Julien Lepiller, 2017/01/03
- [PATCH 33/96] gnu: Add ocaml-ulex, Julien Lepiller, 2017/01/03
- [PATCH 34/96] gnu: Add ocaml-uchar, Julien Lepiller, 2017/01/03
- [PATCH 35/96] gnu: Add ocaml-uutf, Julien Lepiller, 2017/01/03
- [PATCH 36/96] gnu: Add ocaml-jsonm, Julien Lepiller, 2017/01/03
- [PATCH 37/96] gnu: Add ocaml-ocurl, Julien Lepiller, 2017/01/03
- [PATCH 38/96] gnu: Add ocaml-base64, Julien Lepiller, 2017/01/03