Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / ocaml-modules / jsonm / default.nix
blob78a081619b27d5ec4033e3f50236ca4f4986ce50
1 { stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, uutf }:
3 let version = "1.0.1"; in
5 stdenv.mkDerivation {
6   name = "ocaml${ocaml.version}-jsonm-${version}";
8   src = fetchurl {
9     url = "https://erratique.ch/software/jsonm/releases/jsonm-${version}.tbz";
10     sha256 = "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w";
11   };
13   buildInputs = [ findlib topkg ];
14   nativeBuildInputs = [ ocaml findlib ocamlbuild ];
15   propagatedBuildInputs = [ uutf ];
17   inherit (topkg) buildPhase installPhase;
19   meta = {
20     description = "An OCaml non-blocking streaming codec to decode and encode the JSON data format";
21     homepage = "https://erratique.ch/software/jsonm";
22     license = lib.licenses.bsd3;
23     maintainers = with lib.maintainers; [ vbgl ];
24     platforms = ocaml.meta.platforms or [];
25   };