ocamlPackages.cohttp: 0.22.0 -> 0.99.0

ocamlPackages.conduit: 0.15.4 -> 1.0.0

ocamlPackages.cohttp-lwt: init at 0.99.0

ocamlPackages.cohttp-lwt-unix: init at 0.99.0

ocamlPackages.conduit-lwt: init at 1.0.0

ocamlPackages.conduit-lwt-unix: init at 1.0.0

ocamlPackages.git: 1.11.1 -> 1.11.2
This commit is contained in:
Vincent Laporte 2017-08-27 19:00:55 +00:00
parent f5068aadd9
commit 724504e0da
10 changed files with 102 additions and 29 deletions

View file

@ -1,29 +1,26 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild { stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
, ppx_fields_conv, ppx_sexp_conv , ppx_fields_conv, ppx_sexp_conv
, base64, fieldslib, uri, conduit , base64, fieldslib, jsonm, logs, re, stringext, uri
# Optional for async and lwt support:
, async , async_ssl, cmdliner, fmt, magic-mime, ocaml_lwt, tls
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.22.0"; version = "0.99.0";
name = "ocaml${ocaml.version}-cohttp-${version}"; name = "ocaml${ocaml.version}-cohttp-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mirage"; owner = "mirage";
repo = "ocaml-cohttp"; repo = "ocaml-cohttp";
rev = "v${version}"; rev = "v${version}";
sha256 = "1iy4ynh0yrw8337nsa9zvgcf476im0bhccsbs0vki3c5yxw2x60d"; sha256 = "0y8qhzfwrc6486apmp2rsj822cnfhnz4w8rsb52w5wqmsgjxx1bj";
}; };
buildInputs = [ ocaml findlib ocamlbuild ppx_fields_conv ppx_sexp_conv conduit buildInputs = [ ocaml findlib jbuilder jsonm ppx_fields_conv ppx_sexp_conv ];
async async_ssl cmdliner fmt magic-mime ocaml_lwt tls ];
propagatedBuildInputs = [ base64 fieldslib uri ]; propagatedBuildInputs = [ base64 fieldslib re stringext uri ];
makeFlags = [ "PREFIX=$(out)" ]; buildPhase = "jbuilder build -p cohttp";
createFindlibDestdir = true; inherit (jbuilder) installPhase;
meta = { meta = {
description = "HTTP(S) library for Lwt, Async and Mirage"; description = "HTTP(S) library for Lwt, Async and Mirage";

View file

@ -0,0 +1,19 @@
{ stdenv, ocaml, findlib, jbuilder, cohttp-lwt
, conduit-lwt-unix, ppx_sexp_conv
, cmdliner, fmt, magic-mime
}:
if !stdenv.lib.versionAtLeast cohttp-lwt.version "0.99"
then cohttp-lwt
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-cohttp-lwt-unix-${version}";
inherit (cohttp-lwt) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder cmdliner ppx_sexp_conv ];
propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ];
buildPhase = "jbuilder build -p cohttp-lwt-unix";
}

View file

@ -0,0 +1,16 @@
{ stdenv, ocaml, findlib, jbuilder, cohttp, lwt3, uri, ppx_sexp_conv }:
if !stdenv.lib.versionAtLeast cohttp.version "0.99"
then cohttp
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-cohttp-lwt-${version}";
inherit (cohttp) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder uri ppx_sexp_conv ];
propagatedBuildInputs = [ cohttp lwt3 ];
buildPhase = "jbuilder build -p cohttp-lwt";
}

View file

@ -1,27 +1,25 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild { stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
, ppx_driver, ppx_sexp_conv , ppx_sexp_conv
, ipaddr, uri, logs , astring, ipaddr, uri
, ocaml_lwt ? null
, async ? null, async_ssl ? null
, tls ? null
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.15.4"; version = "1.0.0";
name = "ocaml${ocaml.version}-conduit-${version}"; name = "ocaml${ocaml.version}-conduit-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mirage"; owner = "mirage";
repo = "ocaml-conduit"; repo = "ocaml-conduit";
rev = "v${version}"; rev = "v${version}";
sha256 = "1ya7jqvhl8hc22cid5myf31w5c473imdxjnl9785lavsqj3djjxq"; sha256 = "1ryigzh7sfif1mly624fpm87aw5h60n5wzdlrvqsf71qcpxc6iiz";
}; };
buildInputs = [ ocaml findlib ocamlbuild ppx_driver ppx_sexp_conv buildInputs = [ ocaml findlib jbuilder ppx_sexp_conv ];
ocaml_lwt async async_ssl tls ]; propagatedBuildInputs = [ astring ipaddr uri ];
propagatedBuildInputs = [ ipaddr uri logs ];
createFindlibDestdir = true; buildPhase = "jbuilder build -p conduit";
inherit (jbuilder) installPhase;
meta = { meta = {
description = "Network connection library for TCP and SSL"; description = "Network connection library for TCP and SSL";

View file

@ -0,0 +1,18 @@
{ stdenv, ocaml, findlib, jbuilder, conduit-lwt
, logs, ppx_sexp_conv
}:
if !stdenv.lib.versionAtLeast conduit-lwt.version "1.0"
then conduit-lwt
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-conduit-lwt-unix-${version}";
inherit (conduit-lwt) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder ppx_sexp_conv ];
propagatedBuildInputs = [ conduit-lwt logs ];
buildPhase = "jbuilder build -p conduit-lwt-unix";
}

View file

@ -0,0 +1,16 @@
{ stdenv, ocaml, findlib, jbuilder, ppx_sexp_conv, conduit, lwt3 }:
if !stdenv.lib.versionAtLeast conduit.version "1.0"
then conduit
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-conduit-lwt-${version}";
inherit (conduit) version src installPhase meta;
buildInputs = [ ocaml findlib jbuilder ppx_sexp_conv ];
propagatedBuildInputs = [ conduit lwt3 ];
buildPhase = "jbuilder build -p conduit-lwt";
}

View file

@ -1,4 +1,4 @@
{ stdenv, ocaml, findlib, jbuilder, git, cohttp }: { stdenv, ocaml, findlib, jbuilder, git, cohttp-lwt }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-git-http-${version}"; name = "ocaml${ocaml.version}-git-http-${version}";
@ -6,7 +6,7 @@ stdenv.mkDerivation rec {
buildInputs = [ ocaml findlib jbuilder ]; buildInputs = [ ocaml findlib jbuilder ];
propagatedBuildInputs = [ git cohttp ]; propagatedBuildInputs = [ git cohttp-lwt ];
buildPhase = "jbuilder build -p git-http"; buildPhase = "jbuilder build -p git-http";

View file

@ -1,5 +1,6 @@
{ stdenv, ocaml, findlib, jbuilder, git-http { stdenv, ocaml, findlib, jbuilder, git-http
, ocaml_lwt, tls, conduit, magic-mime, cmdliner, mtime , cohttp-lwt-unix
, tls, magic-mime, cmdliner, mtime
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -8,7 +9,7 @@ stdenv.mkDerivation rec {
buildInputs = [ ocaml findlib jbuilder cmdliner mtime ]; buildInputs = [ ocaml findlib jbuilder cmdliner mtime ];
propagatedBuildInputs = [ conduit git-http magic-mime ocaml_lwt tls ]; propagatedBuildInputs = [ cohttp-lwt-unix git-http tls ];
buildPhase = "jbuilder build -p git-unix"; buildPhase = "jbuilder build -p git-unix";

View file

@ -3,14 +3,14 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.11.1"; version = "1.11.2";
name = "ocaml${ocaml.version}-git-${version}"; name = "ocaml${ocaml.version}-git-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mirage"; owner = "mirage";
repo = "ocaml-git"; repo = "ocaml-git";
rev = version; rev = version;
sha256 = "04az2bpbhgdhh7y6pagqx4wf3jbmqrm8w20dgimpbj5h3hnak744"; sha256 = "1z5b0g4vck1sh1w076i2p3ppxrmb9h30q3nip5snw2r9prkm6y1j";
}; };
buildInputs = [ ocaml findlib jbuilder ]; buildInputs = [ ocaml findlib jbuilder ];

View file

@ -137,6 +137,10 @@ let
then callPackage ../development/ocaml-modules/cohttp { } then callPackage ../development/ocaml-modules/cohttp { }
else cohttp_p4; else cohttp_p4;
cohttp-lwt = callPackage ../development/ocaml-modules/cohttp/lwt.nix { };
cohttp-lwt-unix = callPackage ../development/ocaml-modules/cohttp/lwt-unix.nix { };
conduit_p4 = callPackage ../development/ocaml-modules/conduit/0.10.0.nix { conduit_p4 = callPackage ../development/ocaml-modules/conduit/0.10.0.nix {
lwt = lwt2; lwt = lwt2;
}; };
@ -146,6 +150,10 @@ let
then callPackage ../development/ocaml-modules/conduit { } then callPackage ../development/ocaml-modules/conduit { }
else conduit_p4; else conduit_p4;
conduit-lwt = callPackage ../development/ocaml-modules/conduit/lwt.nix { };
conduit-lwt-unix = callPackage ../development/ocaml-modules/conduit/lwt-unix.nix { };
config-file = callPackage ../development/ocaml-modules/config-file { }; config-file = callPackage ../development/ocaml-modules/config-file { };
containers = callPackage ../development/ocaml-modules/containers { }; containers = callPackage ../development/ocaml-modules/containers { };