2017-08-27 21:00:55 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder
|
|
|
|
, ppx_sexp_conv
|
|
|
|
, astring, ipaddr, uri
|
2016-11-12 09:39:16 +01:00
|
|
|
}:
|
2015-05-15 16:36:02 +02:00
|
|
|
|
2017-07-01 12:18:34 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2017-08-27 21:00:55 +02:00
|
|
|
version = "1.0.0";
|
2017-07-01 12:18:34 +02:00
|
|
|
name = "ocaml${ocaml.version}-conduit-${version}";
|
2015-05-15 16:36:02 +02:00
|
|
|
|
2017-07-01 12:18:34 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mirage";
|
|
|
|
repo = "ocaml-conduit";
|
|
|
|
rev = "v${version}";
|
2017-08-27 21:00:55 +02:00
|
|
|
sha256 = "1ryigzh7sfif1mly624fpm87aw5h60n5wzdlrvqsf71qcpxc6iiz";
|
2017-07-01 12:18:34 +02:00
|
|
|
};
|
2015-05-15 16:36:02 +02:00
|
|
|
|
2017-08-27 21:00:55 +02:00
|
|
|
buildInputs = [ ocaml findlib jbuilder ppx_sexp_conv ];
|
|
|
|
propagatedBuildInputs = [ astring ipaddr uri ];
|
2015-05-15 16:36:02 +02:00
|
|
|
|
2017-08-27 21:00:55 +02:00
|
|
|
buildPhase = "jbuilder build -p conduit";
|
|
|
|
|
|
|
|
inherit (jbuilder) installPhase;
|
2017-07-01 12:18:34 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Network connection library for TCP and SSL";
|
|
|
|
license = stdenv.lib.licenses.isc;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (ocaml.meta) platforms;
|
|
|
|
};
|
2015-05-15 16:36:02 +02:00
|
|
|
}
|