1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, opam, uutf }:
2
3let version = "1.0.1"; in
4
5stdenv.mkDerivation {
6 name = "ocaml${ocaml.version}-jsonm-${version}";
7
8 src = fetchurl {
9 url = "http://erratique.ch/software/jsonm/releases/jsonm-${version}.tbz";
10 sha256 = "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w";
11 };
12
13 buildInputs = [ ocaml findlib ocamlbuild topkg opam ];
14 propagatedBuildInputs = [ uutf ];
15
16 unpackCmd = "tar xjf $src";
17
18 createFindlibDestdir = true;
19
20 inherit (topkg) buildPhase installPhase;
21
22 meta = {
23 description = "An OCaml non-blocking streaming codec to decode and encode the JSON data format";
24 homepage = http://erratique.ch/software/jsonm;
25 license = stdenv.lib.licenses.bsd3;
26 maintainers = with stdenv.lib.maintainers; [ vbgl ];
27 platforms = ocaml.meta.platforms or [];
28 };
29}