depot/third_party/nixpkgs/pkgs/development/php-packages/memcached/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

42 lines
846 B
Nix

{
buildPecl,
lib,
fetchFromGitHub,
php,
cyrus_sasl,
zlib,
pkg-config,
libmemcached,
}:
buildPecl rec {
pname = "memcached";
version = "3.2.0";
src = fetchFromGitHub {
owner = "php-memcached-dev";
repo = "php-memcached";
rev = "v${version}";
sha256 = "sha256-g9IzGSZUxLlOE32o9ZJOa3erb5Qs1ntR8nzS3kRd/EU=";
};
internalDeps = [ php.extensions.session ];
configureFlags = [
"--with-zlib-dir=${zlib.dev}"
"--with-libmemcached-dir=${libmemcached}"
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
cyrus_sasl
zlib
];
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;
};
}