diff options
author | ndowens <ndowens04@gmail.com> | 2017-03-15 15:40:47 -0500 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-03-16 17:33:42 +0100 |
commit | 00b6d820018a296b59076baf3d78995da8faf6c1 (patch) | |
tree | 557127d6de2cab92216b1e3a9bee346d8c297790 /pkgs/development/libraries/libcouchbase | |
parent | 3cecb95a9debf0382db5103c9c22a9faa6ec4f85 (diff) |
libcouchbase: 2.5.2 -> 2.7.2
fixes #23932
Diffstat (limited to 'pkgs/development/libraries/libcouchbase')
-rw-r--r-- | pkgs/development/libraries/libcouchbase/default.nix | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/pkgs/development/libraries/libcouchbase/default.nix b/pkgs/development/libraries/libcouchbase/default.nix index 2784cd90a5c63..24ec3d74d36f6 100644 --- a/pkgs/development/libraries/libcouchbase/default.nix +++ b/pkgs/development/libraries/libcouchbase/default.nix @@ -1,21 +1,28 @@ -{ stdenv, fetchurl, cmake, pkgconfig, libevent, openssl}: +{ stdenv, fetchFromGitHub, cmake, pkgconfig, libevent, openssl}: -stdenv.mkDerivation { - name = "libcouchbase-2.5.2"; - src = fetchurl { - url = "https://github.com/couchbase/libcouchbase/archive/2.5.2.tar.gz"; - sha256 = "0ka1hix38a2kdhxz6n8frssyznf78ra0irga9d8lr5683y73xw24"; +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]; + buildInputs = [ libevent openssl ]; + + doCheck = true; + checkPhase = "ctest"; - meta = { + meta = with stdenv.lib; { description = "C client library for Couchbase"; homepage = "https://github.com/couchbase/libcouchbase"; - license = stdenv.lib.licenses.asl20; - platforms = stdenv.lib.platforms.unix; + license = licenses.asl20; + platforms = platforms.unix; }; } |