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