Files
nixpkgs/pkgs/development/php-packages/couchbase/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
916 B
Nix

{
lib,
buildPecl,
fetchFromGitHub,
libcouchbase,
zlib,
replaceVars,
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 = [
(replaceVars ./libcouchbase.patch {
inherit libcouchbase;
})
];
meta = {
changelog = "https://github.com/couchbase/php-couchbase/releases/tag/v${version}";
description = "Couchbase Server PHP extension";
license = lib.licenses.asl20;
homepage = "https://docs.couchbase.com/php-sdk/current/project-docs/sdk-release-notes.html";
teams = [ lib.teams.php ];
broken = lib.versionAtLeast php.version "8.3";
};
}