12 if lib.versionAtLeast ocaml.version "4.08" then
15 sha256 = "sha256-AfwkR4DA9r5yrnlrH7dQ82feGGJP110H7nl4LtbfjU8=";
20 sha256 = "1gas4ky49zgxph3870nffzkr6y41kkpqp4nj38pz1gh49zcf12aj";
24 buildDunePackage rec {
26 version = version_sha.version;
28 minimalOCamlVersion = "4.02";
31 url = "https://github.com/ocaml/ocaml-re/releases/download/${version}/re-${version}.tbz";
32 sha256 = version_sha.sha256;
35 buildInputs = lib.optional doCheck ounit;
36 propagatedBuildInputs = [ seq ];
37 doCheck = lib.versionAtLeast ocaml.version "4.08";
40 homepage = "https://github.com/ocaml/ocaml-re";
41 description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings";
42 license = lib.licenses.lgpl2;
43 maintainers = with lib.maintainers; [ vbgl ];