2020-11-03 02:18:15 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml, ounit, seq }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "re";
|
|
|
|
version = "1.9.0";
|
|
|
|
|
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml/ocaml-re/releases/download/${version}/re-${version}.tbz";
|
|
|
|
sha256 = "1gas4ky49zgxph3870nffzkr6y41kkpqp4nj38pz1gh49zcf12aj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|