2018-09-05 17:11:47 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
|
2017-08-27 20:00:55 +01:00
|
|
|
, ppx_sexp_conv
|
|
|
|
, astring, ipaddr, uri
|
2016-11-12 08:39:16 +00:00
|
|
|
}:
|
2015-05-15 15:36:02 +01:00
|
|
|
|
2017-07-01 11:18:34 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-08-27 20:00:55 +01:00
|
|
|
version = "1.0.0";
|
2017-07-01 11:18:34 +01:00
|
|
|
name = "ocaml${ocaml.version}-conduit-${version}";
|
2015-05-15 15:36:02 +01:00
|
|
|
|
2017-07-01 11:18:34 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mirage";
|
|
|
|
repo = "ocaml-conduit";
|
|
|
|
rev = "v${version}";
|
2017-08-27 20:00:55 +01:00
|
|
|
sha256 = "1ryigzh7sfif1mly624fpm87aw5h60n5wzdlrvqsf71qcpxc6iiz";
|
2017-07-01 11:18:34 +01:00
|
|
|
};
|
2015-05-15 15:36:02 +01:00
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
buildInputs = [ ocaml findlib dune ppx_sexp_conv ];
|
2017-08-27 20:00:55 +01:00
|
|
|
propagatedBuildInputs = [ astring ipaddr uri ];
|
2015-05-15 15:36:02 +01:00
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
buildPhase = "dune build -p conduit";
|
2017-08-27 20:00:55 +01:00
|
|
|
|
2018-09-05 17:11:47 +01:00
|
|
|
inherit (dune) installPhase;
|
2017-07-01 11:18:34 +01: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 15:36:02 +01:00
|
|
|
}
|