2017-03-15 20:40:47 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libevent, openssl}:
|
2014-11-06 06:48:13 +00:00
|
|
|
|
2017-03-15 20:40:47 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libcouchbase-${version}";
|
2018-03-14 22:06:46 +00:00
|
|
|
version = "2.8.5";
|
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;
|
2018-03-14 22:06:46 +00:00
|
|
|
sha256 = "1iwzf0y5f25g5hgdkmv6qf3k5mzlazrpx5sj3m2pvrl9jg9wn4s1";
|
2014-11-06 06:48:13 +00:00
|
|
|
};
|
|
|
|
|
2015-07-25 13:36:28 +00:00
|
|
|
cmakeFlags = "-DLCB_NO_MOCK=ON";
|
2014-11-06 06:48:13 +00:00
|
|
|
|
2015-07-25 13:36:28 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2017-03-15 20:40:47 +00:00
|
|
|
buildInputs = [ libevent openssl ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "ctest";
|
2014-11-06 06:48:13 +00:00
|
|
|
|
2017-03-15 20:40:47 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-28 08:54:58 +00:00
|
|
|
description = "C client library for Couchbase";
|
2017-08-01 20:03:30 +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
|
|
|
}
|