2017-03-15 13:40:47 -07:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libevent, openssl}:
|
2014-11-05 22:48:13 -08:00
|
|
|
|
2017-03-15 13:40:47 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libcouchbase-${version}";
|
2019-07-01 14:34:53 -07:00
|
|
|
version = "2.10.4";
|
2017-03-15 13:40:47 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "couchbase";
|
2017-08-22 14:31:38 -07:00
|
|
|
repo = "libcouchbase";
|
2017-03-15 13:40:47 -07:00
|
|
|
rev = version;
|
2019-07-01 14:34:53 -07:00
|
|
|
sha256 = "1yfmcx65aqd5l87scha6kmm2s38n85ci3gg0h6qfs16s3jfi6bw7";
|
2014-11-05 22:48:13 -08:00
|
|
|
};
|
|
|
|
|
2015-07-25 06:36:28 -07:00
|
|
|
cmakeFlags = "-DLCB_NO_MOCK=ON";
|
2014-11-05 22:48:13 -08:00
|
|
|
|
2015-07-25 06:36:28 -07:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2017-03-15 13:40:47 -07:00
|
|
|
buildInputs = [ libevent openssl ];
|
|
|
|
|
2018-12-11 00:49:30 -08:00
|
|
|
# Running tests in parallel does not work
|
|
|
|
enableParallelChecking = false;
|
|
|
|
|
2018-07-16 09:26:13 -07:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2014-11-05 22:48:13 -08:00
|
|
|
|
2017-03-15 13:40:47 -07:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-28 01:54:58 -07:00
|
|
|
description = "C client library for Couchbase";
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = https://github.com/couchbase/libcouchbase;
|
2017-03-15 13:40:47 -07:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
2014-11-05 22:48:13 -08:00
|
|
|
};
|
2015-04-28 01:54:58 -07:00
|
|
|
}
|