nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchFromGitHub, cmake, pkgconfig, libevent, openssl}:
2
3stdenv.mkDerivation rec {
4 name = "libcouchbase-${version}";
5 version = "2.7.6";
6
7 src = fetchFromGitHub {
8 owner = "couchbase";
9 repo = "libcouchbase";
10 rev = version;
11 sha256 = "13g7r0mcmrj37mihj6g1x1ckpaps659c4qwnw3ixrg7p5mb3p41f";
12 };
13
14 cmakeFlags = "-DLCB_NO_MOCK=ON";
15
16 nativeBuildInputs = [ cmake pkgconfig ];
17 buildInputs = [ libevent openssl ];
18
19 doCheck = true;
20 checkPhase = "ctest";
21
22 meta = with stdenv.lib; {
23 description = "C client library for Couchbase";
24 homepage = https://github.com/couchbase/libcouchbase;
25 license = licenses.asl20;
26 platforms = platforms.unix;
27 };
28}