2017-03-15 21:40:47 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libevent, openssl}:
|
2014-11-06 07:48:13 +01:00
|
|
|
|
2017-03-15 21:40:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libcouchbase-${version}";
|
|
|
|
version = "2.7.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "couchbase";
|
|
|
|
repo ="libcouchbase";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1182r9z3cykkgx1vn36l0a50wvh5mr3yj89x0ynyjhfi3iwalrar";
|
2014-11-06 07:48:13 +01:00
|
|
|
};
|
|
|
|
|
2015-07-25 15:36:28 +02:00
|
|
|
cmakeFlags = "-DLCB_NO_MOCK=ON";
|
2014-11-06 07:48:13 +01:00
|
|
|
|
2015-07-25 15:36:28 +02:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2017-03-15 21:40:47 +01:00
|
|
|
buildInputs = [ libevent openssl ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "ctest";
|
2014-11-06 07:48:13 +01:00
|
|
|
|
2017-03-15 21:40:47 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-28 10:54:58 +02:00
|
|
|
description = "C client library for Couchbase";
|
2014-11-06 07:48:13 +01:00
|
|
|
homepage = "https://github.com/couchbase/libcouchbase";
|
2017-03-15 21:40:47 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
2014-11-06 07:48:13 +01:00
|
|
|
};
|
2015-04-28 10:54:58 +02:00
|
|
|
}
|