nixpkgs/pkgs/development/libraries/libcouchbase/default.nix

29 lines
702 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, pkgconfig, libevent, openssl}:
2014-11-06 06:48:13 +00:00
stdenv.mkDerivation rec {
name = "libcouchbase-${version}";
version = "2.9.4";
src = fetchFromGitHub {
owner = "couchbase";
2017-08-22 21:31:38 +00:00
repo = "libcouchbase";
rev = version;
sha256 = "0d6lmnr5yfpkzr1yr6f2ilxprl6v9r4r7917k4iz0wc3jlcndwl3";
2014-11-06 06:48:13 +00:00
};
cmakeFlags = "-DLCB_NO_MOCK=ON";
2014-11-06 06:48:13 +00:00
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ libevent openssl ];
2018-07-16 16:26:13 +00:00
doCheck = !stdenv.isDarwin;
checkPhase = "ctest";
2014-11-06 06:48:13 +00:00
meta = with stdenv.lib; {
2015-04-28 08:54:58 +00:00
description = "C client library for Couchbase";
homepage = https://github.com/couchbase/libcouchbase;
license = licenses.asl20;
platforms = platforms.unix;
2014-11-06 06:48:13 +00:00
};
2015-04-28 08:54:58 +00:00
}