nixpkgs/pkgs/development/libraries/libcouchbase/default.nix
2017-08-22 23:31:38 +02:00

29 lines
690 B
Nix

{ stdenv, fetchFromGitHub, cmake, pkgconfig, libevent, openssl}:
stdenv.mkDerivation rec {
name = "libcouchbase-${version}";
version = "2.7.6";
src = fetchFromGitHub {
owner = "couchbase";
repo = "libcouchbase";
rev = version;
sha256 = "13g7r0mcmrj37mihj6g1x1ckpaps659c4qwnw3ixrg7p5mb3p41f";
};
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;
};
}