1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 pkg-config,
7 libevent,
8 openssl,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "libcouchbase";
13 version = "3.3.17";
14
15 src = fetchFromGitHub {
16 owner = "couchbase";
17 repo = "libcouchbase";
18 rev = version;
19 sha256 = "sha256-YHPfdjt8ME9nkgv6wF9IyEQoT4PpanbAbvcqqWOU+GY=";
20 };
21
22 cmakeFlags = [ "-DLCB_NO_MOCK=ON" ];
23
24 nativeBuildInputs = [
25 cmake
26 pkg-config
27 ];
28 buildInputs = [
29 libevent
30 openssl
31 ];
32
33 # Running tests in parallel does not work
34 enableParallelChecking = false;
35
36 doCheck = !stdenv.hostPlatform.isDarwin;
37
38 meta = with lib; {
39 description = "C client library for Couchbase";
40 homepage = "https://github.com/couchbase/libcouchbase";
41 license = licenses.asl20;
42 platforms = platforms.unix;
43 };
44}