2016-11-21 18:20:43 +00:00
|
|
|
{ stdenv, fetchzip, which, cryptopp, ocaml, findlib, ocamlbuild, camlp4
|
|
|
|
, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, glib
|
|
|
|
, ppx_tools, result
|
|
|
|
, ppxSupport ? stdenv.lib.versionAtLeast ocaml.version "4.02"
|
|
|
|
}:
|
* 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 15:40:04 +00:00
|
|
|
|
2016-10-05 07:32:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
* 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 15:40:04 +00:00
|
|
|
name = "ocaml-lwt-${version}";
|
2016-11-21 18:20:43 +00:00
|
|
|
version = "2.6.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 15:40:04 +00:00
|
|
|
|
2015-02-16 10:23:43 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz";
|
2016-11-21 18:20:43 +00:00
|
|
|
sha256 = "0f1h83zh60rspm4fxd96z9h5bkhq1n1q968hgq92sq4a6bfi1c2w";
|
* 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 15:40:04 +00:00
|
|
|
};
|
|
|
|
|
2016-11-21 18:20:43 +00:00
|
|
|
buildInputs = [ ocaml_oasis pkgconfig which cryptopp ocaml findlib ocamlbuild glib ncurses camlp4 ]
|
|
|
|
++ stdenv.lib.optional ppxSupport ppx_tools;
|
2014-07-18 15:04:16 +00:00
|
|
|
|
2016-11-21 18:20:43 +00:00
|
|
|
propagatedBuildInputs = [ result ocaml_react ocaml_ssl libev ];
|
2014-05-17 18:01:45 +00:00
|
|
|
|
2016-11-21 18:20:43 +00:00
|
|
|
configureScript = "ocaml setup.ml -configure";
|
|
|
|
prefixKey = "--prefix ";
|
|
|
|
configureFlags = [ "--enable-glib" "--enable-ssl" "--enable-react" "--enable-camlp4" ]
|
|
|
|
++ [ (if ppxSupport then "--enable-ppx" else "--disable-ppx") ];
|
* 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 15:40:04 +00:00
|
|
|
|
2014-05-17 18:01:45 +00:00
|
|
|
createFindlibDestdir = true;
|
* 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 15:40:04 +00:00
|
|
|
|
2014-11-03 20:04:48 +00:00
|
|
|
meta = with stdenv.lib; {
|
* 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 15:40:04 +00:00
|
|
|
homepage = http://ocsigen.org/lwt;
|
|
|
|
description = "Lightweight thread library for Objective Caml";
|
2014-11-03 20:04:48 +00:00
|
|
|
license = licenses.lgpl21;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2014-11-03 20:04:48 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
z77z vbgl gal_bolle
|
* Enable hydra build for ocaml-batteries, camlzip, camomile, ocaml-cryptgps, cryptokit, ocaml-lwt, menhir, ounit, ocaml-pcre, ocaml-react, ocaml-ssl
svn path=/nixpkgs/trunk/; revision=25064
2010-12-11 14:50:45 +00: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 15:40:04 +00:00
|
|
|
};
|
|
|
|
}
|