{ stdenv, fetchFromGitHub, cmake, pkgconfig, libevent, openssl}: stdenv.mkDerivation rec { name = "libcouchbase-${version}"; version = "2.7.2"; src = fetchFromGitHub { owner = "couchbase"; repo ="libcouchbase"; rev = version; sha256 = "1182r9z3cykkgx1vn36l0a50wvh5mr3yj89x0ynyjhfi3iwalrar"; }; cmakeFlags = "-DLCB_NO_MOCK=ON"; nativeBuildInputs = [ cmake pkgconfig ]; buildInputs = [ libevent openssl ]; doCheck = true; checkPhase = "ctest"; meta = with stdenv.lib; { description = "C client library for Couchbase"; homepage = "https://github.com/couchbase/libcouchbase"; license = licenses.asl20; platforms = platforms.unix; }; }