2018-03-25 20:26:39 +02:00
|
|
|
{ stdenv, fetchzip, pkgconfig, ncurses, libev, jbuilder
|
|
|
|
, ocaml, findlib, camlp4, cppo
|
|
|
|
, ocaml-migrate-parsetree, ppx_tools_versioned, result
|
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
|
|
|
|
2018-03-25 20:26:39 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "3.3.0";
|
|
|
|
name = "ocaml${ocaml.version}-lwt-${version}";
|
* 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 {
|
|
|
|
url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz";
|
2018-03-25 20:26:39 +02:00
|
|
|
sha256 = "0n87hcyl4svy0risj439wyfq6bl77qxq3nraqgdr1qbz5lskbq2j";
|
* 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
|
|
|
};
|
|
|
|
|
2018-03-25 20:26:39 +02:00
|
|
|
preConfigure = ''
|
|
|
|
ocaml src/util/configure.ml -use-libev true -use-camlp4 true
|
|
|
|
'';
|
2014-05-17 20:01:45 +02:00
|
|
|
|
2018-03-25 20:26:39 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ ncurses ocaml findlib jbuilder camlp4 cppo
|
|
|
|
ocaml-migrate-parsetree ppx_tools_versioned ];
|
|
|
|
propagatedBuildInputs = [ libev result ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
ocaml src/util/install_filter.ml
|
|
|
|
${jbuilder.installPhase}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://ocsigen.org/lwt/";
|
|
|
|
description = "A cooperative threads library for OCaml";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
|
|
inherit (ocaml.meta) platforms;
|
* 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
|
|
|
};
|
|
|
|
}
|