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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user