aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/janestreet
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-03-26 09:34:45 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2019-04-02 09:37:30 +0200
commita01129912f62d2a8be2e1f20bacaf8bfbaaf9e05 (patch)
tree80292700df75283254277651db20edd9f1b17482 /pkgs/development/ocaml-modules/janestreet
parent5285e7074956ca1a634faf33cb0a9cee1a597d9d (diff)
ocamlPackages.re2: fix build on darwin
Diffstat (limited to 'pkgs/development/ocaml-modules/janestreet')
-rw-r--r--pkgs/development/ocaml-modules/janestreet/default.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/janestreet/default.nix b/pkgs/development/ocaml-modules/janestreet/default.nix
index 504e83734d88..988b7147fcb4 100644
--- a/pkgs/development/ocaml-modules/janestreet/default.nix
+++ b/pkgs/development/ocaml-modules/janestreet/default.nix
@@ -324,10 +324,11 @@ rec {
pname = "re2";
hash = "0bl65d0nmvr7k1mkkcc4aai86l5qzgn1xxwmszshpwhaz87cqghd";
propagatedBuildInputs = [ core_kernel ];
- meta = {
- description = "OCaml bindings for RE2";
- broken = stdenv.isDarwin;
- };
+ prePatch = ''
+ substituteInPlace src/re2_c/jbuild --replace 'CXX=g++' 'CXX=c++'
+ substituteInPlace src/jbuild --replace '(cxx_flags ((:standard \ -pedantic) (-I re2_c/libre2)))' '(cxx_flags ((:standard \ -pedantic) (-I re2_c/libre2) (-x c++)))'
+ '';
+ meta.description = "OCaml bindings for RE2";
};
core_extended = janePackage {