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

33 lines
824 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libevent, openssl}:
2014-11-06 06:48:13 +00:00
stdenv.mkDerivation rec {
pname = "libcouchbase";
version = "2.10.4";
src = fetchFromGitHub {
owner = "couchbase";
2017-08-22 22:31:38 +01:00
repo = "libcouchbase";
rev = version;
sha256 = "1yfmcx65aqd5l87scha6kmm2s38n85ci3gg0h6qfs16s3jfi6bw7";
2014-11-06 06:48:13 +00:00
};
cmakeFlags = [ "-DLCB_NO_MOCK=ON" ];
2014-11-06 06:48:13 +00:00
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libevent openssl ];
# Running tests in parallel does not work
enableParallelChecking = false;
patches = [ ./0001-Fix-timeouts-in-libcouchbase-testsuite.patch ];
2018-07-16 17:26:13 +01:00
doCheck = !stdenv.isDarwin;
2014-11-06 06:48:13 +00:00
meta = with lib; {
2015-04-28 09:54:58 +01: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 09:54:58 +01:00
}