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