2021-07-24 12:14:16 +00:00
|
|
|
{ lib, buildDunePackage, fetchurl, pcre, dune-configurator }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "pcre";
|
|
|
|
version = "7.4.6";
|
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
|
|
|
minimalOCamlVersion = "4.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-24 12:14:16 +00:00
|
|
|
url = "https://github.com/mmottl/pcre-ocaml/releases/download/${version}/pcre-${version}.tbz";
|
|
|
|
sha256 = "17ajl0ra5xkxn5pf0m0zalylp44wsfy6mvcq213djh2pwznh4gya";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
buildInputs = [ dune-configurator ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
propagatedBuildInputs = [ pcre ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-07-24 12:14:16 +00:00
|
|
|
homepage = "https://mmottl.github.io/pcre-ocaml";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An efficient C-library for pattern matching with Perl-style regular expressions in OCaml";
|
2021-07-24 12:14:16 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ maggesi vbmithr ];
|
|
|
|
};
|
|
|
|
}
|