1{
2 buildPecl,
3 lib,
4 fetchFromGitHub,
5 php,
6 zlib,
7 pkg-config,
8}:
9
10buildPecl rec {
11 pname = "memcache";
12 version = "8.2";
13
14 src = fetchFromGitHub {
15 owner = "websupport-sk";
16 repo = "pecl-memcache";
17 rev = version;
18 hash = "sha256-77GvQ59XUpIZmdYZP6IhtjdkYwXKuNBSG+LBScz2BtI=";
19 };
20
21 internalDeps = [ php.extensions.session ];
22
23 configureFlags = [ "--with-zlib-dir=${zlib.dev}" ];
24
25 nativeBuildInputs = [ pkg-config ];
26 buildInputs = [ zlib ];
27
28 meta = with lib; {
29 description = "PHP extension for interfacing with memcached";
30 license = licenses.php301;
31 homepage = "https://github.com/websupport-sk/pecl-memcache";
32 maintainers = [ maintainers.krzaczek ];
33 teams = [ teams.php ];
34 };
35}