Merge branch 'master' into staging-next

This commit is contained in:
Vladimír Čunát
2019-09-15 13:18:54 +02:00
192 changed files with 4150 additions and 2678 deletions

View File

@@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, js_of_ocaml
, jsooSupport ? true
, jsooSupport ? lib.versionAtLeast ocaml.version "4.03"
}:
with lib;

View File

@@ -0,0 +1,23 @@
{ stdenv, fetchFromGitHub, buildDunePackage, cppo, ppx_tools, ppx_deriving
, ppxfind }:
buildDunePackage rec {
pname = "ppx_deriving_protobuf";
version = "2.7";
src = fetchFromGitHub {
owner = "ocaml-ppx";
repo = pname;
rev = "v${version}";
sha256 = "0aq4f3gbkhhai0c8i5mcw2kpqy8l610f4dknwkrxh0nsizwbwryn";
};
buildInputs = [ cppo ppx_tools ppxfind ppx_deriving ];
meta = with stdenv.lib; {
homepage = "https://github.com/ocaml-ppx/ppx_deriving_protobuf";
description = "A Protocol Buffers codec generator for OCaml";
license = licenses.mit;
maintainers = [ maintainers.vyorkin ];
};
}

View File

@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
sha256 = "1hq6y4rhz958q40145k4av8hx8jyvspg78xf741samd7vc3jd221";
};
patches = [ ./jsoo.patch ];
buildInputs = [ ocaml findlib ppx_tools js_of_ocaml js_of_ocaml-ppx ];
propagatedBuildInputs = [ iri re ];

View File

@@ -0,0 +1,26 @@
diff --git a/xtmpl_js.ml b/xtmpl_js.ml
index e0d3894..991d1b3 100644
--- a/xtmpl_js.ml
+++ b/xtmpl_js.ml
@@ -25,6 +25,8 @@
(** *)
+open Js_of_ocaml
+
let log s = Firebug.console##log (Js.string s);;
module X = Xtmpl_rewrite
diff --git a/xtmpl_js.mli b/xtmpl_js.mli
index d709896..5ed471c 100644
--- a/xtmpl_js.mli
+++ b/xtmpl_js.mli
@@ -25,6 +25,8 @@
(** Convenient functions to use in JS code *)
+open Js_of_ocaml
+
(** Create a new tree of DOM nodes from a given XML tree.
Errors are logged to the firebug console.
@param doc Default is [Dom_html.document].