btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / libcouchbase / package.nix
blobf3decde56c7702be9f4deaeeeb52baee39b23f1f
1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libevent, openssl}:
3 stdenv.mkDerivation rec {
4   pname = "libcouchbase";
5   version = "3.3.9";
7   src = fetchFromGitHub {
8     owner = "couchbase";
9     repo = "libcouchbase";
10     rev = version;
11     sha256 = "sha256-dvXRbAdgb1WmKLijYkx6+js60ZxK1Tl2aTFSF7EpN74=";
12   };
14   cmakeFlags = [ "-DLCB_NO_MOCK=ON" ];
16   nativeBuildInputs = [ cmake pkg-config ];
17   buildInputs = [ libevent openssl ];
19   # Running tests in parallel does not work
20   enableParallelChecking = false;
22   doCheck = !stdenv.hostPlatform.isDarwin;
24   meta = with lib; {
25     description = "C client library for Couchbase";
26     homepage = "https://github.com/couchbase/libcouchbase";
27     license = licenses.asl20;
28     platforms = platforms.unix;
29   };