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}";
|
2018-09-17 10:25:05 +02:00
|
|
|
version = "2.9.4";
|
2017-03-15 21:40:47 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "couchbase";
|
2017-08-22 23:31:38 +02:00
|
|
|
repo = "libcouchbase";
|
2017-03-15 21:40:47 +01:00
|
|
|
rev = version;
|
2018-09-17 10:25:05 +02:00
|
|
|
sha256 = "0d6lmnr5yfpkzr1yr6f2ilxprl6v9r4r7917k4iz0wc3jlcndwl3";
|
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 ];
|
|
|
|
|
2018-07-16 18:26:13 +02:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2017-03-15 21:40:47 +01:00
|
|
|
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";
|
2017-08-01 22:03:30 +02: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
|
|
|
}
|