about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libcouchbase
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libcouchbase')
-rw-r--r--nixpkgs/pkgs/development/libraries/libcouchbase/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libcouchbase/default.nix b/nixpkgs/pkgs/development/libraries/libcouchbase/default.nix
new file mode 100644
index 000000000000..0c9cd1a75304
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libcouchbase/default.nix
@@ -0,0 +1,30 @@
+{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libevent, openssl}:
+
+stdenv.mkDerivation rec {
+  pname = "libcouchbase";
+  version = "3.2.4";
+
+  src = fetchFromGitHub {
+    owner = "couchbase";
+    repo = "libcouchbase";
+    rev = version;
+    sha256 = "sha256-7gHqnhNog0CN92YyvypbHWWUnCDuvGP4oiJjtP9GkIY=";
+  };
+
+  cmakeFlags = [ "-DLCB_NO_MOCK=ON" ];
+
+  nativeBuildInputs = [ cmake pkg-config ];
+  buildInputs = [ libevent openssl ];
+
+  # Running tests in parallel does not work
+  enableParallelChecking = false;
+
+  doCheck = !stdenv.isDarwin;
+
+  meta = with lib; {
+    description = "C client library for Couchbase";
+    homepage = "https://github.com/couchbase/libcouchbase";
+    license = licenses.asl20;
+    platforms = platforms.unix;
+  };
+}