2022-03-30 09:31:56 +00:00
|
|
|
{ buildPecl, lib, fetchFromGitHub, php, cyrus_sasl, zlib, pkg-config, libmemcached }:
|
|
|
|
|
|
|
|
buildPecl rec {
|
2020-10-16 20:44:37 +00:00
|
|
|
pname = "memcached";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "3.2.0";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "php-memcached-dev";
|
|
|
|
repo = "php-memcached";
|
2020-10-16 20:44:37 +00:00
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-g9IzGSZUxLlOE32o9ZJOa3erb5Qs1ntR8nzS3kRd/EU=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
internalDeps = [
|
|
|
|
php.extensions.session
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
2021-03-09 03:18:52 +00:00
|
|
|
"--with-zlib-dir=${zlib.dev}"
|
|
|
|
"--with-libmemcached-dir=${libmemcached}"
|
2020-10-16 20:44:37 +00:00
|
|
|
];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ cyrus_sasl zlib ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2021-06-28 23:13:55 +00: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-16 20:44:37 +00:00
|
|
|
}
|