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";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "7.5.0";
|
2021-07-24 12:14:16 +00:00
|
|
|
|
|
|
|
useDune2 = true;
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
minimalOCamlVersion = "4.12";
|
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";
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-ZxFC9AtthhccvAZyU/qt+QMBkWHVdIi9D7bFRWwsvRo=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|