2020-10-23 19:22:34 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, ocaml, ounit, seq }:
|
2018-06-24 09:20:13 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "re";
|
2019-05-05 18:18:57 +00:00
|
|
|
version = "1.9.0";
|
2015-01-07 12:56:38 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
2021-02-14 13:15:55 +00:00
|
|
|
useDune2 = lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
|
2020-10-23 19:22:34 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ocaml/ocaml-re/releases/download/${version}/re-${version}.tbz";
|
|
|
|
sha256 = "1gas4ky49zgxph3870nffzkr6y41kkpqp4nj38pz1gh49zcf12aj";
|
2015-01-07 12:56:38 +00:00
|
|
|
};
|
|
|
|
|
2020-08-28 05:37:15 +00:00
|
|
|
buildInputs = lib.optional doCheck ounit;
|
2018-09-05 17:14:47 +00:00
|
|
|
propagatedBuildInputs = [ seq ];
|
2020-08-28 05:37:15 +00:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.04";
|
2015-01-07 12:56:38 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ocaml/ocaml-re";
|
2015-01-07 12:56:38 +00:00
|
|
|
description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings";
|
2020-08-28 05:37:15 +00:00
|
|
|
license = lib.licenses.lgpl2;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-01-07 12:56:38 +00:00
|
|
|
};
|
|
|
|
}
|