diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-20 16:16:56 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-20 18:02:51 +0100 |
commit | 1df8208839e55959c6c5bb0984221a2d498af68a (patch) | |
tree | cd5b4cd69a0c33cdda5daa6f372b0d74f0eabe5c /pkgs/development/ocaml-modules/jsonm/default.nix | |
parent | 0484f9f4b6b71218fc2ef6544b0a7eb894eb048b (diff) |
Adds ocaml-jsonm
Jsonm is an OCaml non-blocking streaming codec to decode and encode the JSON data format. Homepage: http://erratique.ch/software/jsonm
Diffstat (limited to 'pkgs/development/ocaml-modules/jsonm/default.nix')
-rw-r--r-- | pkgs/development/ocaml-modules/jsonm/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/jsonm/default.nix b/pkgs/development/ocaml-modules/jsonm/default.nix new file mode 100644 index 0000000000000..5445fd1e110d0 --- /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; + }; +} |