phpExtensions.memcached: Move to separate directory

This commit is contained in:
Elis Hirwing 2020-10-11 19:10:24 +02:00
parent df08b0fc00
commit 77224fd8e7
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
2 changed files with 31 additions and 26 deletions

View File

@ -0,0 +1,30 @@
{ buildPecl, lib, fetchgit, php, pkgs }:
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 = [
"--with-zlib-dir=${pkgs.zlib.dev}"
"--with-libmemcached-dir=${pkgs.libmemcached}"
];
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = with pkgs; [ cyrus_sasl zlib ];
meta.maintainers = lib.teams.php.members;
}

View File

@ -82,32 +82,7 @@ in
maxminddb = callPackage ../development/php-packages/maxminddb { };
memcached = buildPecl rec {
version = "3.1.5";
pname = "memcached";
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 = [
"--with-zlib-dir=${pkgs.zlib.dev}"
"--with-libmemcached-dir=${pkgs.libmemcached}"
];
nativeBuildInputs = [ pkgs.pkgconfig ];
buildInputs = with pkgs; [ cyrus_sasl zlib ];
meta.maintainers = lib.teams.php.members;
};
memcached = callPackage ../development/php-packages/memcached { };
mongodb = buildPecl {
pname = "mongodb";