at 18.03-beta 29 lines 868 B view raw
1{stdenv, buildOcaml, fetchurl, ocaml, core_p4, pa_ounit, pa_test, 2 bin_prot_p4, comparelib, sexplib_p4, rsync}: 3 4buildOcaml rec { 5 name = "re2"; 6 version = "112.06.00"; 7 8 minimumSupportedOcamlVersion = "4.00"; 9 10 src = fetchurl { 11 url = "https://github.com/janestreet/re2/archive/${version}.tar.gz"; 12 sha256 = "a538765872363fcb67f12b95c07455a0afd68f5ae9008b59bb85a996d97cc752"; 13 }; 14 patches = if stdenv.isDarwin 15 then [./Makefile.patch ./myocamlbuild.patch] 16 else null; 17 18 buildInputs = [ pa_ounit pa_test rsync ]; 19 propagatedBuildInputs = [ core_p4 bin_prot_p4 comparelib sexplib_p4 ]; 20 21 hasSharedObjects = true; 22 23 meta = with stdenv.lib; { 24 homepage = https://github.com/janestreet/re2; 25 description = "OCaml bindings for RE2"; 26 license = stdenv.lib.licenses.asl20; 27 maintainers = [ maintainers.ericbmerritt ]; 28 }; 29}