ocamlPackages.ocplib-json-typed: 0.5 -> 0.7.1

This commit is contained in:
Vincent Laporte 2019-08-26 19:30:03 +00:00 committed by Vincent Laporte
parent 875b1f09d4
commit ff392e8190
4 changed files with 38 additions and 11 deletions

View file

@ -0,0 +1,14 @@
{ buildDunePackage, ocplib-json-typed, js_of_ocaml }:
buildDunePackage {
pname = "ocplib-json-typed-browser";
inherit (ocplib-json-typed) version src;
propagatedBuildInputs = [ ocplib-json-typed js_of_ocaml ];
meta = {
description = "A Json_repr interface over JavaScript's objects";
inherit (ocplib-json-typed.meta) homepage license maintainers;
};
}

View file

@ -0,0 +1,13 @@
{ buildDunePackage, ocplib-json-typed, ocplib-endian }:
buildDunePackage {
pname = "ocplib-json-typed-bson";
inherit (ocplib-json-typed) version src;
propagatedBuildInputs = [ ocplib-json-typed ocplib-endian ];
meta = {
description = "A Json_repr compatible implementation of the JSON compatible subset of BSON";
inherit (ocplib-json-typed.meta) homepage license maintainers;
};
}

View file

@ -1,25 +1,21 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocplib-endian, js_of_ocaml, uri }:
{ lib, buildDunePackage, fetchFromGitHub, uri }:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ocplib-json-typed-${version}";
version = "0.5";
buildDunePackage rec {
pname = "ocplib-json-typed";
version = "0.7.1";
src = fetchFromGitHub {
owner = "OCamlPro";
repo = "ocplib-json-typed";
rev = "v${version}";
sha256 = "02c600wm2wdpzb66pivxzwjhqa2dm7dqyfvw3mbvkv1g2jj7kn2q";
sha256 = "1gv0vqqy9lh7isaqg54b3lam2sh7nfjjazi6x7zn6bh5f77g1p5q";
};
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 ];
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
};
}

View file

@ -553,6 +553,10 @@ let
ocplib-json-typed = callPackage ../development/ocaml-modules/ocplib-json-typed { };
ocplib-json-typed-browser = callPackage ../development/ocaml-modules/ocplib-json-typed/browser.nix { };
ocplib-json-typed-bson = callPackage ../development/ocaml-modules/ocplib-json-typed/bson.nix { };
ocplib-simplex = callPackage ../development/ocaml-modules/ocplib-simplex { };
ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { };