2021-02-27 11:29:20 +01:00
|
|
|
{ buildPecl, lib, fetchgit, php, cyrus_sasl, zlib, pkg-config, libmemcached }:
|
2020-10-11 19:10:24 +02:00
|
|
|
let
|
|
|
|
pname = "memcached";
|
|
|
|
version = "3.1.5";
|
|
|
|
in
|
|
|
|
buildPecl {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/php-memcached-dev/php-memcached";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "01mbh2m3kfbdvih3c8g3g9h4vdd80r0i9g2z8b3lx3mi8mmcj380";
|
|
|
|
};
|
|
|
|
|
|
|
|
internalDeps = [
|
|
|
|
php.extensions.session
|
|
|
|
] ++ lib.optionals (lib.versionOlder php.version "7.4") [
|
|
|
|
php.extensions.hash
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
2021-02-27 11:29:20 +01:00
|
|
|
"--with-zlib-dir=${zlib.dev}"
|
|
|
|
"--with-libmemcached-dir=${libmemcached}"
|
2020-10-11 19:10:24 +02:00
|
|
|
];
|
|
|
|
|
2021-02-27 11:29:20 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ cyrus_sasl zlib ];
|
2020-10-11 19:10:24 +02:00
|
|
|
|
|
|
|
meta.maintainers = lib.teams.php.members;
|
|
|
|
}
|