2015-10-13 23:21:36 -07:00
|
|
|
{ stdenv, fetchzip, which, cryptopp, ocaml, findlib, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, ocaml_text, glib, camlp4, ppx_tools }:
|
* 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 07:40:04 -08:00
|
|
|
|
|
|
|
let
|
2016-01-01 08:37:36 -08:00
|
|
|
version = "2.5.0";
|
2014-11-03 12:04:48 -08: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 07:40:04 -08:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-05-17 11:01:45 -07: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 07:40:04 -08:00
|
|
|
name = "ocaml-lwt-${version}";
|
|
|
|
|
2015-02-16 02:23:43 -08:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz";
|
2016-01-01 08:37:36 -08:00
|
|
|
sha256 = "0jgg51aqbnia33l7bhgirnfpqybjwzpd85qzzd9znnc1a27gv8vr";
|
* 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 07:40:04 -08:00
|
|
|
};
|
|
|
|
|
2015-10-13 23:21:36 -07:00
|
|
|
buildInputs = [ ocaml_oasis pkgconfig which cryptopp ocaml findlib glib ncurses camlp4 ppx_tools ];
|
2014-07-18 08:04:16 -07:00
|
|
|
|
2015-05-22 09:27:46 -07:00
|
|
|
propagatedBuildInputs = [ ocaml_react ocaml_ssl ocaml_text libev ];
|
2014-05-17 11:01:45 -07:00
|
|
|
|
2016-01-01 08:37:36 -08:00
|
|
|
configureFlags = [ "--enable-glib" "--enable-ssl" "--enable-react" "--enable-camlp4"]
|
|
|
|
++ [ (if versionAtLeast ocaml_version "4.02" 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 07:40:04 -08:00
|
|
|
|
2014-05-17 11:01:45 -07: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 07:40:04 -08:00
|
|
|
|
2014-11-03 12:04:48 -08: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 07:40:04 -08:00
|
|
|
homepage = http://ocsigen.org/lwt;
|
|
|
|
description = "Lightweight thread library for Objective Caml";
|
2014-11-03 12:04:48 -08: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 06:50:45 -08:00
|
|
|
platforms = ocaml.meta.platforms;
|
2014-11-03 12:04:48 -08: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 06:50:45 -08: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 07:40:04 -08:00
|
|
|
};
|
|
|
|
}
|