php.extensions.couchbase: Fix build and runtime loading

The couchbase extension depends on the igbinary PECL which needs to be
loaded and loaded prior to it. It also seems like the pcs extension
isn't actually needed - it at least builds and loads without it. Since
the pcs extension dependency was the reason couchbase didn't build on
PHP 7.4 it now does, so let's unmark it broken.
This commit is contained in:
talyz 2020-05-02 23:25:41 +02:00
parent 2f1f359692
commit fa4c995d0e
No known key found for this signature in database
GPG Key ID: 2DED2151F4671A2B

@ -346,13 +346,6 @@ in
version = "2.6.1";
pname = "couchbase";
buildInputs = [
pkgs.libcouchbase
pkgs.zlib
php.extensions.igbinary
php.extensions.pcs
];
src = pkgs.fetchFromGitHub {
owner = "couchbase";
repo = "php-couchbase";
@ -361,7 +354,14 @@ in
};
configureFlags = [ "--with-couchbase" ];
buildInputs = [
pkgs.libcouchbase
pkgs.zlib
];
internalDeps = [ php.extensions.json ];
peclDeps = [ php.extensions.igbinary ];
patches = [
(pkgs.writeText "php-couchbase.patch" ''
--- a/config.m4
@ -388,7 +388,6 @@ in
];
meta.maintainers = lib.teams.php.members;
meta.broken = isPhp74; # Build error
};
event = buildPecl {