2023-07-15 17:15:38 +00:00
|
|
|
{ buildPecl, lib, pcre2, fetchFromGitHub, php, fetchpatch }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
let
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "5.1.23";
|
2023-01-11 07:51:40 +00:00
|
|
|
in buildPecl {
|
|
|
|
inherit version;
|
2020-10-16 20:44:37 +00:00
|
|
|
pname = "apcu";
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "krakjoe";
|
|
|
|
repo = "apcu";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
sha256 = "sha256-UDKLLCCnYJj/lCD8ZkkDf2WYZMoIbcP75+0/IXo4vdQ=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-06-06 07:54:09 +00:00
|
|
|
buildInputs = [ pcre2 ];
|
2020-10-16 20:44:37 +00:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
checkFlagsArray = [ "REPORT_EXIT_STATUS=1" "NO_INTERACTION=1" ];
|
|
|
|
makeFlags = [ "phpincludedir=$(dev)/include" ];
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/krakjoe/apcu/releases/tag/v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Userland cache for PHP";
|
|
|
|
homepage = "https://pecl.php.net/package/APCu";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = licenses.php301;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
2020-10-16 20:44:37 +00:00
|
|
|
}
|