ocamlPackages.ocplib-json-typed: 0.5 -> 0.7.1
This commit is contained in:
parent
875b1f09d4
commit
ff392e8190
14
pkgs/development/ocaml-modules/ocplib-json-typed/browser.nix
Normal file
14
pkgs/development/ocaml-modules/ocplib-json-typed/browser.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
13
pkgs/development/ocaml-modules/ocplib-json-typed/bson.nix
Normal file
13
pkgs/development/ocaml-modules/ocplib-json-typed/bson.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -1,25 +1,21 @@
|
|||||||
{ stdenv, fetchFromGitHub, ocaml, findlib, ocplib-endian, js_of_ocaml, uri }:
|
{ lib, buildDunePackage, fetchFromGitHub, uri }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildDunePackage rec {
|
||||||
name = "ocaml${ocaml.version}-ocplib-json-typed-${version}";
|
pname = "ocplib-json-typed";
|
||||||
version = "0.5";
|
version = "0.7.1";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "OCamlPro";
|
owner = "OCamlPro";
|
||||||
repo = "ocplib-json-typed";
|
repo = "ocplib-json-typed";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "02c600wm2wdpzb66pivxzwjhqa2dm7dqyfvw3mbvkv1g2jj7kn2q";
|
sha256 = "1gv0vqqy9lh7isaqg54b3lam2sh7nfjjazi6x7zn6bh5f77g1p5q";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ocaml findlib ocplib-endian js_of_ocaml ];
|
|
||||||
propagatedBuildInputs = [ uri ];
|
propagatedBuildInputs = [ uri ];
|
||||||
|
|
||||||
createFindlibDestdir = true;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A collection of type-aware JSON utilities for OCaml";
|
description = "A collection of type-aware JSON utilities for OCaml";
|
||||||
license = stdenv.lib.licenses.lgpl21;
|
license = lib.licenses.lgpl21;
|
||||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
maintainers = [ lib.maintainers.vbgl ];
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
inherit (ocaml.meta) platforms;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -553,6 +553,10 @@ let
|
|||||||
|
|
||||||
ocplib-json-typed = callPackage ../development/ocaml-modules/ocplib-json-typed { };
|
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 { };
|
ocplib-simplex = callPackage ../development/ocaml-modules/ocplib-simplex { };
|
||||||
|
|
||||||
ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { };
|
ocsigen_server = callPackage ../development/ocaml-modules/ocsigen-server { };
|
||||||
|
Loading…
Reference in New Issue
Block a user