1{ stdenv, fetchFromGitHub, cmake, pkgconfig, libevent, openssl}:
2
3stdenv.mkDerivation rec {
4 name = "libcouchbase-${version}";
5 version = "2.10.3";
6
7 src = fetchFromGitHub {
8 owner = "couchbase";
9 repo = "libcouchbase";
10 rev = version;
11 sha256 = "0a3fin5rcwa3xwd980mrzrkr7dpjdwbri81mqwxw1fkppjqw23z4";
12 };
13
14 cmakeFlags = "-DLCB_NO_MOCK=ON";
15
16 nativeBuildInputs = [ cmake pkgconfig ];
17 buildInputs = [ libevent openssl ];
18
19 # Running tests in parallel does not work
20 enableParallelChecking = false;
21
22 doCheck = !stdenv.isDarwin;
23
24 meta = with stdenv.lib; {
25 description = "C client library for Couchbase";
26 homepage = https://github.com/couchbase/libcouchbase;
27 license = licenses.asl20;
28 platforms = platforms.unix;
29 };
30}