2020-08-27 22:37:15 -07:00
|
|
|
{ lib, fetchzip, buildDunePackage, ocaml, ounit, seq }:
|
2018-06-24 02:20:13 -07:00
|
|
|
|
2018-11-05 02:21:46 -08:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "re";
|
2019-05-05 11:18:57 -07:00
|
|
|
version = "1.9.0";
|
2015-01-07 04:56:38 -08:00
|
|
|
|
2018-11-05 02:21:46 -08:00
|
|
|
minimumOCamlVersion = "4.02";
|
|
|
|
|
2015-03-19 11:13:39 -07:00
|
|
|
src = fetchzip {
|
2017-10-17 05:52:22 -07:00
|
|
|
url = "https://github.com/ocaml/ocaml-re/archive/${version}.tar.gz";
|
2019-05-05 11:18:57 -07:00
|
|
|
sha256 = "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss";
|
2015-01-07 04:56:38 -08:00
|
|
|
};
|
|
|
|
|
2020-08-27 22:37:15 -07:00
|
|
|
buildInputs = lib.optional doCheck ounit;
|
2018-09-05 10:14:47 -07:00
|
|
|
propagatedBuildInputs = [ seq ];
|
2020-08-27 22:37:15 -07:00
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.04";
|
2015-01-07 04:56:38 -08:00
|
|
|
|
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/ocaml/ocaml-re";
|
2015-01-07 04:56:38 -08:00
|
|
|
description = "Pure OCaml regular expressions, with support for Perl and POSIX-style strings";
|
2020-08-27 22:37:15 -07:00
|
|
|
license = lib.licenses.lgpl2;
|
|
|
|
maintainers = with lib.maintainers; [ vbgl ];
|
2015-01-07 04:56:38 -08:00
|
|
|
};
|
|
|
|
}
|