2021-01-19 07:50:56 +01:00
|
|
|
{ lib, fetchzip, pkg-config, ncurses, libev, buildDunePackage, ocaml
|
2019-11-13 18:13:05 +01:00
|
|
|
, cppo, ocaml-migrate-parsetree, ocplib-endian, result
|
2019-08-31 09:04:43 +02:00
|
|
|
, mmap, seq
|
2016-11-21 19:20:43 +01:00
|
|
|
}:
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 16:40:04 +01:00
|
|
|
|
2019-08-31 09:04:43 +02:00
|
|
|
let inherit (lib) optional versionAtLeast; in
|
2018-09-28 17:28:36 +02:00
|
|
|
|
2018-11-05 11:21:46 +01:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "lwt";
|
2020-06-28 11:59:56 +02:00
|
|
|
version = "5.3.0";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 16:40:04 +01:00
|
|
|
|
2015-02-16 11:23:43 +01:00
|
|
|
src = fetchzip {
|
2018-11-05 11:21:46 +01:00
|
|
|
url = "https://github.com/ocsigen/${pname}/archive/${version}.tar.gz";
|
2020-06-28 11:59:56 +02:00
|
|
|
sha256 = "15hgy3220m2b8imipa514n7l65m1h5lc6l1hanqwwvs7ghh2aqp2";
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 16:40:04 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-11-13 18:13:05 +01:00
|
|
|
buildInputs = [ cppo ocaml-migrate-parsetree ]
|
2018-11-05 11:21:46 +01:00
|
|
|
++ optional (!versionAtLeast ocaml.version "4.07") ncurses;
|
2019-11-13 18:13:05 +01:00
|
|
|
propagatedBuildInputs = [ libev mmap ocplib-endian seq result ];
|
2018-03-25 20:26:39 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://ocsigen.org/lwt/";
|
|
|
|
description = "A cooperative threads library for OCaml";
|
2019-08-31 09:04:43 +02:00
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
license = lib.licenses.mit;
|
* Add ocaml packages findlib, camlzip, ocaml-ssl, ocaml-batteries, menhir, camomile, ocaml-lwt, cryptokit, ocaml-cryptgps, ounit, ocaml-react
svn path=/nixpkgs/trunk/; revision=25041
2010-12-09 16:40:04 +01:00
|
|
|
};
|
|
|
|
}
|