diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-24 23:34:56 +0100 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2015-01-24 23:53:03 +0100 |
commit | 3532d658b5ef2174851a50da6e8ce2be0bd6e494 (patch) | |
tree | 9967392b629895bba60d52c75863c803a7c29dfb /pkgs | |
parent | c1814073ac7af4b7658a1ec4840378c36d34bd8e (diff) | |
download | nixlib-3532d658b5ef2174851a50da6e8ce2be0bd6e494.tar nixlib-3532d658b5ef2174851a50da6e8ce2be0bd6e494.tar.gz nixlib-3532d658b5ef2174851a50da6e8ce2be0bd6e494.tar.bz2 nixlib-3532d658b5ef2174851a50da6e8ce2be0bd6e494.tar.lz nixlib-3532d658b5ef2174851a50da6e8ce2be0bd6e494.tar.xz nixlib-3532d658b5ef2174851a50da6e8ce2be0bd6e494.tar.zst nixlib-3532d658b5ef2174851a50da6e8ce2be0bd6e494.zip |
Adds ocaml-ezjsonm
An easy interface on top of the Jsonm library. Homepage: https://github.com/mirage/ezjsonm
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/ezjsonm/default.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
2 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/ezjsonm/default.nix b/pkgs/development/ocaml-modules/ezjsonm/default.nix new file mode 100644 index 000000000000..f54d14e4fe9d --- /dev/null +++ b/pkgs/development/ocaml-modules/ezjsonm/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchzip, ocaml, findlib, jsonm, hex, sexplib, lwt }: + +let version = "0.3.1"; in + +stdenv.mkDerivation { + name = "ocaml-ezjsonm-${version}"; + + src = fetchzip { + url = "https://github.com/mirage/ezjsonm/archive/${version}.tar.gz"; + sha256 = "0cz1v75j8j5y4vfcgylp5zaxiy7541qg6pm4wrgmvy6fmh82654f"; + }; + + buildInputs = [ ocaml findlib ]; + propagatedBuildInputs = [ jsonm hex sexplib lwt ]; + createFindlibDestdir = true; + + configureFlags = "--enable-lwt"; + + meta = { + description = "An easy interface on top of the Jsonm library"; + homepage = https://github.com/mirage/ezjsonm; + license = stdenv.lib.licenses.isc; + 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 5c917d9cf7f2..c6b4875d3035 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3753,6 +3753,11 @@ let eliom = callPackage ../development/ocaml-modules/eliom { }; + ezjsonm = callPackage ../development/ocaml-modules/ezjsonm { + lwt = ocaml_lwt; + sexplib = ocaml_sexplib; + }; + fieldslib = callPackage ../development/ocaml-modules/fieldslib { }; findlib = callPackage ../development/tools/ocaml/findlib { }; |