Skip to content

Commit 2940e77

Browse files
committed
ocamlPackages.pcre2: init at 8.0.3
1 parent 65d0fd9 commit 2940e77

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
buildDunePackage,
5+
dune-configurator,
6+
pcre2,
7+
version ? "8.0.3",
8+
}:
9+
10+
buildDunePackage {
11+
pname = "pcre2";
12+
inherit version;
13+
14+
minimalOCamlVersion = "4.08";
15+
16+
src = fetchFromGitHub {
17+
owner = "camlp5";
18+
repo = "pcre2-ocaml";
19+
tag = version;
20+
hash = "sha256-YqzpK4Syh9pP64+bwdSiphdfJdwsWQSaOrpKsoKSWyU=";
21+
};
22+
23+
buildInputs = [ dune-configurator ];
24+
propagatedBuildInputs = [ pcre2 ];
25+
26+
meta = {
27+
description = "OCaml bindings to PCRE";
28+
homepage = "https://github.com/camlp5/pcre2-ocaml/";
29+
changelog = "https://raw.githubusercontent.com/camlp5/pcre2-ocaml/refs/tags/${version}/CHANGES.md";
30+
license = lib.licenses.lgpl21Only;
31+
maintainers = [ lib.maintainers.vbgl ];
32+
};
33+
}

pkgs/top-level/ocaml-packages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,6 +1546,10 @@ let
15461546

15471547
pbrt = callPackage ../development/ocaml-modules/pbrt { };
15481548

1549+
pcre2 = callPackage ../development/ocaml-modules/pcre2 {
1550+
inherit (pkgs) pcre2;
1551+
};
1552+
15491553
pcap-format = callPackage ../development/ocaml-modules/pcap-format { };
15501554

15511555
pecu = callPackage ../development/ocaml-modules/pecu { };

0 commit comments

Comments
 (0)