at 22.05-pre 26 lines 780 B view raw
1{ lib, fetchurl, buildDunePackage, ocaml, ounit, seq }: 2 3buildDunePackage rec { 4 pname = "re"; 5 version = "1.9.0"; 6 7 minimumOCamlVersion = "4.02"; 8 9 useDune2 = lib.versionAtLeast ocaml.version "4.08"; 10 11 src = fetchurl { 12 url = "https://github.com/ocaml/ocaml-re/releases/download/${version}/re-${version}.tbz"; 13 sha256 = "1gas4ky49zgxph3870nffzkr6y41kkpqp4nj38pz1gh49zcf12aj"; 14 }; 15 16 buildInputs = lib.optional doCheck ounit; 17 propagatedBuildInputs = [ seq ]; 18 doCheck = lib.versionAtLeast ocaml.version "4.04"; 19 20 meta = { 21 homepage = "https://github.com/ocaml/ocaml-re"; 22 description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings"; 23 license = lib.licenses.lgpl2; 24 maintainers = with lib.maintainers; [ vbgl ]; 25 }; 26}