at 24.05-pre 34 lines 880 B view raw
1{ lib, buildPecl, fetchFromGitHub, writeText, libcouchbase, zlib, php, substituteAll }: 2let 3 pname = "couchbase"; 4 version = "3.2.2"; 5in 6buildPecl { 7 inherit pname version; 8 9 src = fetchFromGitHub { 10 owner = "couchbase"; 11 repo = "php-couchbase"; 12 rev = "v${version}"; 13 sha256 = "sha256-JpzLR4NcyShl2VTivj+15iAsTTsZmdMIdZYc3dLCbIA="; 14 }; 15 16 configureFlags = [ "--with-couchbase" ]; 17 18 buildInputs = [ libcouchbase zlib ]; 19 20 patches = [ 21 (substituteAll { 22 src = ./libcouchbase.patch; 23 inherit libcouchbase; 24 }) 25 ]; 26 27 meta = with lib; { 28 changelog = "https://github.com/couchbase/php-couchbase/releases/tag/v${version}"; 29 description = "Couchbase Server PHP extension"; 30 license = licenses.asl20; 31 homepage = "https://docs.couchbase.com/php-sdk/current/project-docs/sdk-release-notes.html"; 32 maintainers = teams.php.members; 33 }; 34}