Files
nixpkgs/pkgs/by-name/li/libcouchbase/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
802 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
pkg-config,
libevent,
openssl,
}:
stdenv.mkDerivation rec {
pname = "libcouchbase";
version = "3.3.18";
src = fetchFromGitHub {
owner = "couchbase";
repo = "libcouchbase";
rev = version;
sha256 = "sha256-+6RrApyml/FPv8pRjmwY1yuZIX1YXNKqdeNjP1y4cbU=";
};
cmakeFlags = [ "-DLCB_NO_MOCK=ON" ];
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
libevent
openssl
];
# Running tests in parallel does not work
enableParallelChecking = false;
doCheck = !stdenv.hostPlatform.isDarwin;
meta = with lib; {
description = "C client library for Couchbase";
homepage = "https://github.com/couchbase/libcouchbase";
license = licenses.asl20;
platforms = platforms.unix;
};
}