summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/eliom
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2015-06-12 00:04:24 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2015-06-25 08:55:28 +0200
commitbce75f1d1a4fe9887cdfb3921fdef5ab1539abb1 (patch)
tree3f918407fa89c9acbc314ea7c919f56f1c7301ba /pkgs/development/ocaml-modules/eliom
parente63c1ea33e5871082d6400718e7dad2ba4e3a08a (diff)
downloadnixpkgs-bce75f1d1a4fe9887cdfb3921fdef5ab1539abb1.tar
nixpkgs-bce75f1d1a4fe9887cdfb3921fdef5ab1539abb1.tar.gz
nixpkgs-bce75f1d1a4fe9887cdfb3921fdef5ab1539abb1.tar.bz2
nixpkgs-bce75f1d1a4fe9887cdfb3921fdef5ab1539abb1.tar.lz
nixpkgs-bce75f1d1a4fe9887cdfb3921fdef5ab1539abb1.tar.xz
nixpkgs-bce75f1d1a4fe9887cdfb3921fdef5ab1539abb1.tar.zst
nixpkgs-bce75f1d1a4fe9887cdfb3921fdef5ab1539abb1.zip
eliom: fix build with OCaml-4.02
Diffstat (limited to 'pkgs/development/ocaml-modules/eliom')
-rw-r--r--pkgs/development/ocaml-modules/eliom/camlp4.patch24
-rw-r--r--pkgs/development/ocaml-modules/eliom/default.nix2
2 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/eliom/camlp4.patch b/pkgs/development/ocaml-modules/eliom/camlp4.patch
new file mode 100644
index 00000000000..561d5305bef
--- /dev/null
+++ b/pkgs/development/ocaml-modules/eliom/camlp4.patch
@@ -0,0 +1,24 @@
+--- a/src/_tags	2014-10-01 16:19:35.000000000 +0100
++++ b/src/_tags	2014-11-09 16:55:34.470663377 +0000
+@@ -39,7 +39,7 @@
+ <lib/server/monitor/*.ml{,i}>:I(src/lib/server)
+ 
+ <syntax/pa_*.ml{,i}>: syntax(camlp4o),package(camlp4.quotations.o,camlp4.extend)
+-<syntax/pa_*.ml{,i}>: I(+camlp4/Camlp4Parsers)
++<syntax/pa_*.ml{,i}>: use_camlp4_full
+ 
+ 
+ <ocamlbuild/ocamlbuild_eliom.ml{,i}>: package(ocamlbuild,js_of_ocaml.ocamlbuild)
+
+--- a/src/lib/eliom_registration.server.ml	2014-10-01 16:19:35.000000000 +0100
++++ b/src/lib/eliom_registration.server.ml	2014-11-09 17:26:16.093198699 +0000
+@@ -2440,7 +2440,7 @@
+       (Ocaml.register_post_coservice'
+          ?scope ?options ?charset ?code ?content_type ?headers ?secure_session ?name
+          ?csrf_safe ?csrf_scope ?csrf_secure ?max_use ?timeout ?https ?error_handler
+-         ~post_params:Eliom_parameter.(ocaml "argument" argument_type)
++         ~post_params:(Eliom_parameter.ocaml "argument" argument_type)
+          (fun () argument -> f argument))
+       (Eliom_wrap.create_unwrapper
+          (Eliom_wrap.id_of_int Eliom_common_base.server_function_unwrap_id_int))
+
diff --git a/pkgs/development/ocaml-modules/eliom/default.nix b/pkgs/development/ocaml-modules/eliom/default.nix
index 54644d83699..7fe26863b3d 100644
--- a/pkgs/development/ocaml-modules/eliom/default.nix
+++ b/pkgs/development/ocaml-modules/eliom/default.nix
@@ -14,6 +14,8 @@ stdenv.mkDerivation rec
     sha256 = "10v7mrq3zsbxdlg8k8xif777mbvcdpabvnd1g7p2yqivr7f1qm24";
   };
 
+  patches = [ ./camlp4.patch ];
+
   buildInputs = [ocaml which ocsigen_server findlib ocsigen_deriving
                  js_of_ocaml ocaml_optcomp opam];