mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
97addf2aff
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/
47 lines
945 B
Nix
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";
|
|
};
|
|
}
|