2021-06-28 23:13:55 +00:00
|
|
|
{ lib, buildPecl, fetchFromGitHub, writeText, libcouchbase, zlib, php, substituteAll }:
|
2020-10-16 20:44:37 +00:00
|
|
|
let
|
|
|
|
pname = "couchbase";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "3.2.2";
|
2020-10-16 20:44:37 +00:00
|
|
|
in
|
|
|
|
buildPecl {
|
|
|
|
inherit pname version;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-10-16 20:44:37 +00:00
|
|
|
owner = "couchbase";
|
|
|
|
repo = "php-couchbase";
|
|
|
|
rev = "v${version}";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-JpzLR4NcyShl2VTivj+15iAsTTsZmdMIdZYc3dLCbIA=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [ "--with-couchbase" ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
buildInputs = [ libcouchbase zlib ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
patches = [
|
2021-06-28 23:13:55 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./libcouchbase.patch;
|
|
|
|
inherit libcouchbase;
|
|
|
|
})
|
2020-10-16 20:44:37 +00:00
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
meta = with lib; {
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/couchbase/php-couchbase/releases/tag/v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
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;
|
|
|
|
};
|
2020-10-16 20:44:37 +00:00
|
|
|
}
|