2022-03-15 10:16:42 +00:00
|
|
|
{ buildPecl, lib, fetchFromGitHub, php, cyrus_sasl, zlib, pkg-config, libmemcached }:
|
|
|
|
|
|
|
|
buildPecl rec {
|
2020-10-11 18:10:24 +01:00
|
|
|
pname = "memcached";
|
2022-03-27 18:59:20 +01:00
|
|
|
version = "3.2.0";
|
2020-10-11 18:10:24 +01:00
|
|
|
|
2022-03-15 10:16:42 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "php-memcached-dev";
|
|
|
|
repo = "php-memcached";
|
2020-10-11 18:10:24 +01:00
|
|
|
rev = "v${version}";
|
2022-03-27 18:59:20 +01:00
|
|
|
sha256 = "sha256-g9IzGSZUxLlOE32o9ZJOa3erb5Qs1ntR8nzS3kRd/EU=";
|
2020-10-11 18:10:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
internalDeps = [
|
|
|
|
php.extensions.session
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
2021-02-27 10:29:20 +00:00
|
|
|
"--with-zlib-dir=${zlib.dev}"
|
|
|
|
"--with-libmemcached-dir=${libmemcached}"
|
2020-10-11 18:10:24 +01:00
|
|
|
];
|
|
|
|
|
2021-02-27 10:29:20 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ cyrus_sasl zlib ];
|
2020-10-11 18:10:24 +01:00
|
|
|
|
2021-06-08 10:50:05 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "PHP extension for interfacing with memcached via libmemcached library";
|
|
|
|
license = licenses.php301;
|
|
|
|
homepage = "https://github.com/php-memcached-dev/php-memcached";
|
|
|
|
maintainers = teams.php.members;
|
|
|
|
};
|
2020-10-11 18:10:24 +01:00
|
|
|
}
|