Merge pull request #20615 from vbgl/lwt-2.6.0

ocamlPackages.lwt: 2.5.2 → 2.6.0
This commit is contained in:
Pascal Wittmann 2016-11-30 16:36:52 +01:00 committed by GitHub
commit 014a1b430a
2 changed files with 20 additions and 18 deletions

@ -1,24 +1,27 @@
{ stdenv, fetchzip, which, cryptopp, ocaml, findlib, ocamlbuild, ocaml_react, ocaml_ssl, libev, pkgconfig, ncurses, ocaml_oasis, ocaml_text, glib, camlp4, ppx_tools }:
let
inherit (stdenv.lib) optional getVersion versionAtLeast;
in
{ 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"
}:
stdenv.mkDerivation rec {
name = "ocaml-lwt-${version}";
version = "2.5.2";
version = "2.6.0";
src = fetchzip {
url = "https://github.com/ocsigen/lwt/archive/${version}.tar.gz";
sha256 = "0gmhm282r8yi0gwcv0g2s7qchkfjmhqbqf4j9frlyv665ink9kxl";
sha256 = "0f1h83zh60rspm4fxd96z9h5bkhq1n1q968hgq92sq4a6bfi1c2w";
};
buildInputs = [ ocaml_oasis pkgconfig which cryptopp ocaml findlib ocamlbuild glib ncurses camlp4 ppx_tools ];
buildInputs = [ ocaml_oasis pkgconfig which cryptopp ocaml findlib ocamlbuild glib ncurses camlp4 ]
++ stdenv.lib.optional ppxSupport ppx_tools;
propagatedBuildInputs = [ ocaml_react ocaml_ssl ocaml_text libev ];
propagatedBuildInputs = [ result ocaml_react ocaml_ssl libev ];
configureFlags = [ "--enable-glib" "--enable-ssl" "--enable-react" "--enable-camlp4"]
++ [ (if versionAtLeast ocaml.version "4.02" then "--enable-ppx" else "--disable-ppx") ];
configureScript = "ocaml setup.ml -configure";
prefixKey = "--prefix ";
configureFlags = [ "--enable-glib" "--enable-ssl" "--enable-react" "--enable-camlp4" ]
++ [ (if ppxSupport then "--enable-ppx" else "--disable-ppx") ];
createFindlibDestdir = true;

@ -1,13 +1,12 @@
{stdenv, fetchurl, which, openssl, ocaml, findlib}:
{ stdenv, fetchzip, which, openssl, ocaml, findlib }:
stdenv.mkDerivation rec {
name = "ocaml-ssl-${version}";
version = "0.5.2";
name = "ocaml${ocaml.version}-ssl-${version}";
version = "0.5.3";
src = fetchurl {
url = "mirror://sourceforge/project/savonet/ocaml-ssl/0.5.2/ocaml-ssl-0.5.2.tar.gz";
sha256 = "0341rm8aqrckmhag1lrqfnl17v6n4ci8ibda62ahkkn5cxd58cpp";
src = fetchzip {
url = "https://github.com/savonet/ocaml-ssl/releases/download/0.5.3/ocaml-ssl-${version}.tar.gz";
sha256 = "0h2k19zpdvq1gqwrmmgkibw4j48l71vv6ajzxs0wi71y80c1vhwm";
};
buildInputs = [which ocaml findlib];