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