nixpkgs/pkgs/development/ocaml-modules/conduit/default.nix

32 lines
759 B
Nix
Raw Normal View History

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