nixpkgs/pkgs/development/php-packages/couchbase/default.nix
Maximilian Bosch 97addf2aff
php83Extensions.couchbase: mark as broken
ZHF #352882

Doesn't compile with PHP 8.3: https://hydra.nixos.org/build/276605925

We actually want to use the `couchbase-php-client`[1] repo. I briefly
tried to package it, but given that I don't care a bit about this
specific extension and it was far too annoying (vendored C++ libraries,
.gitattributes removing CMake files from the GitHub tarball, a random
CMake "package manager" is used) I decided to not bother.

If nobody steps up, I'd suggest to throw it out when PHP 8.2 becomes
EOL.

[1] https://github.com/couchbase/couchbase-php-client/
2024-11-01 18:16:48 +01:00

47 lines
945 B
Nix

{
lib,
buildPecl,
fetchFromGitHub,
libcouchbase,
zlib,
substituteAll,
php,
}:
let
pname = "couchbase";
version = "3.2.2";
in
buildPecl {
inherit pname version;
src = fetchFromGitHub {
owner = "couchbase";
repo = "php-couchbase";
rev = "v${version}";
sha256 = "sha256-JpzLR4NcyShl2VTivj+15iAsTTsZmdMIdZYc3dLCbIA=";
};
configureFlags = [ "--with-couchbase" ];
buildInputs = [
libcouchbase
zlib
];
patches = [
(substituteAll {
src = ./libcouchbase.patch;
inherit libcouchbase;
})
];
meta = with lib; {
changelog = "https://github.com/couchbase/php-couchbase/releases/tag/v${version}";
description = "Couchbase Server PHP extension";
license = licenses.asl20;
homepage = "https://docs.couchbase.com/php-sdk/current/project-docs/sdk-release-notes.html";
maintainers = teams.php.members;
broken = lib.versionAtLeast php.version "8.3";
};
}