1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 pcre,
6 dune-configurator,
7}:
8
9buildDunePackage rec {
10 pname = "pcre";
11 version = "8.0.4";
12
13 useDune2 = true;
14
15 minimalOCamlVersion = "4.12";
16
17 src = fetchurl {
18 url = "https://github.com/mmottl/pcre-ocaml/releases/download/${version}/pcre-${version}.tbz";
19 sha256 = "sha256-CIoy3Co4YnVZ5AkEjkUarqV0u08ZAqU0IQsaL1SnuCA=";
20 };
21
22 buildInputs = [ dune-configurator ];
23
24 propagatedBuildInputs = [ pcre ];
25
26 meta = with lib; {
27 homepage = "https://mmottl.github.io/pcre-ocaml";
28 description = "Efficient C-library for pattern matching with Perl-style regular expressions in OCaml";
29 license = licenses.lgpl21Plus;
30 maintainers = with maintainers; [
31 maggesi
32 vbmithr
33 ];
34 };
35}