2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libevent, openssl}:
|
2014-11-06 06:48:13 +00:00
|
|
|
|
2017-03-15 20:40:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libcouchbase";
|
2023-10-01 02:28:47 +00:00
|
|
|
version = "3.3.9";
|
2017-03-15 20:40:47 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "couchbase";
|
2017-08-22 21:31:38 +00:00
|
|
|
repo = "libcouchbase";
|
2017-03-15 20:40:47 +00:00
|
|
|
rev = version;
|
2023-10-01 02:28:47 +00:00
|
|
|
sha256 = "sha256-dvXRbAdgb1WmKLijYkx6+js60ZxK1Tl2aTFSF7EpN74=";
|
2014-11-06 06:48:13 +00:00
|
|
|
};
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
cmakeFlags = [ "-DLCB_NO_MOCK=ON" ];
|
2014-11-06 06:48:13 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2017-03-15 20:40:47 +00:00
|
|
|
buildInputs = [ libevent openssl ];
|
|
|
|
|
2018-12-11 08:49:30 +00:00
|
|
|
# Running tests in parallel does not work
|
|
|
|
enableParallelChecking = false;
|
|
|
|
|
2018-07-16 16:26:13 +00:00
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
2014-11-06 06:48:13 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-04-28 08:54:58 +00:00
|
|
|
description = "C client library for Couchbase";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/couchbase/libcouchbase";
|
2017-03-15 20:40:47 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
2014-11-06 06:48:13 +00:00
|
|
|
};
|
2015-04-28 08:54:58 +00:00
|
|
|
}
|