mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
31 lines
752 B
Nix
31 lines
752 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libevent, openssl}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcouchbase";
|
|
version = "3.3.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "couchbase";
|
|
repo = "libcouchbase";
|
|
rev = version;
|
|
sha256 = "sha256-kaKraMdbA87+7TgauYMkIDSjy8kFpkFX0og9nkuoa84=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|