From f6e1d929a0a917e02428a921784315563a94b2a3 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 30 Jun 2017 19:51:28 +0000 Subject: [PATCH] ocamlPackages.ocplib-json-typed: init at 0.5 --- .../ocplib-json-typed/default.nix | 25 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/ocaml-modules/ocplib-json-typed/default.nix diff --git a/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix b/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix new file mode 100644 index 000000000000..cadb65bcbed9 --- /dev/null +++ b/pkgs/development/ocaml-modules/ocplib-json-typed/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchFromGitHub, ocaml, findlib, ocplib-endian, js_of_ocaml, uri }: + +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-ocplib-json-typed-${version}"; + version = "0.5"; + src = fetchFromGitHub { + owner = "OCamlPro"; + repo = "ocplib-json-typed"; + rev = "v${version}"; + sha256 = "02c600wm2wdpzb66pivxzwjhqa2dm7dqyfvw3mbvkv1g2jj7kn2q"; + }; + + buildInputs = [ ocaml findlib ocplib-endian js_of_ocaml ]; + propagatedBuildInputs = [ uri ]; + + createFindlibDestdir = true; + + meta = { + description = "A collection of type-aware JSON utilities for OCaml"; + license = stdenv.lib.licenses.lgpl21; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + inherit (src.meta) homepage; + inherit (ocaml.meta) platforms; + }; +} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 96adaff03dcc..617a9a378dd8 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -395,6 +395,8 @@ let ocplib-endian = callPackage ../development/ocaml-modules/ocplib-endian { }; + ocplib-json-typed = callPackage ../development/ocaml-modules/ocplib-json-typed { }; + ocplib-simplex = callPackage ../development/ocaml-modules/ocplib-simplex { }; ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { };