summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/conduit/default.nix
blob: fdfd2bed1f15ff97341164c736514eae19c5a1f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ stdenv, fetchFromGitHub, ocaml, findlib, dune
, ppx_sexp_conv
, astring, ipaddr, uri
}:

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";
	};

	buildInputs = [ ocaml findlib dune ppx_sexp_conv ];
	propagatedBuildInputs = [ astring ipaddr uri ];

	buildPhase = "dune build -p conduit";

	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;
	};
}