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