1{ buildPecl, lib, pcre2, fetchFromGitHub }:
2
3let
4 version = "5.1.22";
5in buildPecl {
6 inherit version;
7 pname = "apcu";
8
9 src = fetchFromGitHub {
10 owner = "krakjoe";
11 repo = "apcu";
12 rev = "v${version}";
13 sha256 = "sha256-L4a+/kWT95a1Km+FzFNiAaBw8enU6k4ZiCFRErjj9o8=";
14 };
15
16 buildInputs = [ pcre2 ];
17 doCheck = true;
18 checkTarget = "test";
19 checkFlagsArray = [ "REPORT_EXIT_STATUS=1" "NO_INTERACTION=1" ];
20 makeFlags = [ "phpincludedir=$(dev)/include" ];
21 outputs = [ "out" "dev" ];
22
23 meta = with lib; {
24 changelog = "https://github.com/krakjoe/apcu/releases/tag/v${version}";
25 description = "Userland cache for PHP";
26 license = licenses.php301;
27 homepage = "https://pecl.php.net/package/APCu";
28 maintainers = teams.php.members;
29 };
30}