1{ stdenv, fetchFromGitHub, cmake, pkgconfig, libevent, openssl}:
2
3stdenv.mkDerivation rec {
4 name = "libcouchbase-${version}";
5 version = "2.8.4";
6
7 src = fetchFromGitHub {
8 owner = "couchbase";
9 repo = "libcouchbase";
10 rev = version;
11 sha256 = "0i5kmv8grsnh2igvlkgjr8lz3h3yrxh82yxbbdsjfpslv61l0gpi";
12 };
13
14 cmakeFlags = "-DLCB_NO_MOCK=ON";
15
16 nativeBuildInputs = [ cmake pkgconfig ];
17 buildInputs = [ libevent openssl ];
18
19 doCheck = true;
20 checkPhase = "ctest";
21
22 meta = with stdenv.lib; {
23 description = "C client library for Couchbase";
24 homepage = https://github.com/couchbase/libcouchbase;
25 license = licenses.asl20;
26 platforms = platforms.unix;
27 };
28}