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