1{
2 stdenv,
3 lib,
4 fetchurl,
5 ocaml,
6 findlib,
7 ocamlbuild,
8 topkg,
9 uutf,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "ocaml${ocaml.version}-jsonm";
14 version = "1.0.2";
15
16 src = fetchurl {
17 url = "https://erratique.ch/software/jsonm/releases/jsonm-${version}.tbz";
18 hash = "sha256-6ikjn+tAUyAd8+Hm0nws4SOIKsRljhyL6plYvhGKe9Y=";
19 };
20
21 nativeBuildInputs = [
22 ocaml
23 findlib
24 ocamlbuild
25 topkg
26 ];
27 buildInputs = [ topkg ];
28 propagatedBuildInputs = [ uutf ];
29
30 strictDeps = true;
31
32 inherit (topkg) buildPhase installPhase;
33
34 meta = {
35 description = "OCaml non-blocking streaming codec to decode and encode the JSON data format";
36 homepage = "https://erratique.ch/software/jsonm";
37 license = lib.licenses.bsd3;
38 maintainers = with lib.maintainers; [ vbgl ];
39 mainProgram = "jsontrip";
40 inherit (ocaml.meta) platforms;
41 };
42}