2014-11-03 21:04:48 +01:00
|
|
|
{stdenv, fetchgit, which, cryptopp, ocaml, findlib, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, ocaml_text, glib, camlp4}:
|
* 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
|
|
|
|
|
|
|
let
|
2014-05-17 20:01:45 +02:00
|
|
|
version = "2.4.5";
|
2014-11-03 21:04:48 +01:00
|
|
|
inherit (stdenv.lib) optional getVersion versionAtLeast;
|
|
|
|
ocaml_version = getVersion ocaml;
|
* 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
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-05-17 20:01:45 +02: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
|
|
|
name = "ocaml-lwt-${version}";
|
|
|
|
|
2014-05-17 20:01:45 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = git://github.com/ocsigen/lwt;
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "2bbf4f216dd62eeb765a89413f3b2b6d417a9c289ca49d595bb4d7a0545e343e";
|
* 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
|
|
|
};
|
|
|
|
|
2014-11-03 21:04:48 +01:00
|
|
|
buildInputs = [ocaml_oasis pkgconfig which cryptopp ocaml findlib glib libev ncurses camlp4];
|
2014-07-18 17:04:16 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ ocaml_react ocaml_ssl ocaml_text ];
|
2014-05-17 20:01:45 +02:00
|
|
|
|
2014-11-03 21:04:48 +01:00
|
|
|
configureFlags = [ "--enable-react" "--enable-glib" "--enable-ssl" "--enable-text" ]
|
|
|
|
++ optional (versionAtLeast ocaml_version "4.0" && ! versionAtLeast ocaml_version "4.02") "--enable-toplevel";
|
* 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
|
|
|
|
2014-05-17 20:01:45 +02: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 16:40:04 +01:00
|
|
|
|
2014-11-03 21:04:48 +01: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 16:40:04 +01:00
|
|
|
homepage = http://ocsigen.org/lwt;
|
|
|
|
description = "Lightweight thread library for Objective Caml";
|
2014-11-03 21:04:48 +01:00
|
|
|
license = licenses.lgpl21;
|
* 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 15:50:45 +01:00
|
|
|
platforms = ocaml.meta.platforms;
|
2014-11-03 21:04:48 +01: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 15:50:45 +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
|
|
|
};
|
|
|
|
}
|