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