diff --git a/pkgs/development/ocaml-modules/jsonm/default.nix b/pkgs/development/ocaml-modules/jsonm/default.nix new file mode 100644 index 00000000000..5445fd1e110 --- /dev/null +++ b/pkgs/development/ocaml-modules/jsonm/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, ocaml, findlib, uutf }: + +let version = "0.9.1"; in + +stdenv.mkDerivation { + name = "ocaml-jsonm-${version}"; + + src = fetchurl { + url = "http://erratique.ch/software/jsonm/releases/jsonm-${version}.tbz"; + sha256 = "0wszqrmx8iqlwzvs76fjf4sqh15mv20yjrbyhkd348yq8nhdrm1z"; + }; + + buildInputs = [ ocaml findlib ]; + propagatedBuildInputs = [ uutf ]; + + unpackCmd = "tar xjf $src"; + + configurePhase = "ocaml setup.ml -configure --prefix $prefix"; + buildPhase = "ocaml setup.ml -build"; + createFindlibDestdir = true; + installPhase = "ocaml setup.ml -install"; + + meta = { + description = "An OCaml non-blocking streaming codec to decode and encode the JSON data format"; + homepage = http://erratique.ch/software/jsonm; + licenses = stdenv.lib.licenses.bsd3; + maintainers = with stdenv.lib.maintainers; [ vbgl ]; + platforms = ocaml.meta.platforms; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2136141ca50..ea0e07ccf56 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3774,6 +3774,8 @@ let js_of_ocaml = callPackage ../development/tools/ocaml/js_of_ocaml { }; + jsonm = callPackage ../development/ocaml-modules/jsonm { }; + lablgl = callPackage ../development/ocaml-modules/lablgl { }; lablgtk_2_14 = callPackage ../development/ocaml-modules/lablgtk/2.14.0.nix {