2020-09-25 04:45:31 +00:00
|
|
|
{ lib, fetchzip, buildDunePackage, ocaml, ounit, seq }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "re";
|
|
|
|
version = "1.9.0";
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/ocaml/ocaml-re/archive/${version}.tar.gz";
|
|
|
|
sha256 = "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss";
|
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildInputs = lib.optional doCheck ounit;
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ seq ];
|
2020-09-25 04:45:31 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/ocaml/ocaml-re";
|
|
|
|
description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = lib.licenses.lgpl2;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|