ocamlPackages.re2: fix build on darwin

This commit is contained in:
Vincent Laporte 2019-03-26 09:34:45 +00:00 committed by Vincent Laporte
parent 5285e70749
commit a01129912f

View File

@ -324,10 +324,11 @@ rec {
pname = "re2"; pname = "re2";
hash = "0bl65d0nmvr7k1mkkcc4aai86l5qzgn1xxwmszshpwhaz87cqghd"; hash = "0bl65d0nmvr7k1mkkcc4aai86l5qzgn1xxwmszshpwhaz87cqghd";
propagatedBuildInputs = [ core_kernel ]; propagatedBuildInputs = [ core_kernel ];
meta = { prePatch = ''
description = "OCaml bindings for RE2"; substituteInPlace src/re2_c/jbuild --replace 'CXX=g++' 'CXX=c++'
broken = stdenv.isDarwin; 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 { core_extended = janePackage {