diff options
author | Michael Adler <michael.adler@tngtech.com> | 2015-07-25 15:36:28 +0200 |
---|---|---|
committer | Michael Adler <michael.adler@tngtech.com> | 2015-08-05 15:03:22 +0200 |
commit | 3768bdf227e4c4962253880ae2be3cfc0752af58 (patch) | |
tree | 965def231ce30ecdd0f51efee0dcc0db88f80450 /pkgs/development/libraries/libcouchbase | |
parent | bb04c579c3746dea83b15429ca4acec077577975 (diff) |
libcouchbase: 2.4.4 -> 2.5.2, refactor to use cmake
Building libcouchbase with automake is deprecated, thus use cmake instead. This has the advantage that the package-config file is installed as well.
Diffstat (limited to 'pkgs/development/libraries/libcouchbase')
-rw-r--r-- | pkgs/development/libraries/libcouchbase/default.nix | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/pkgs/development/libraries/libcouchbase/default.nix b/pkgs/development/libraries/libcouchbase/default.nix index bcc9e9f673f12..2784cd90a5c63 100644 --- a/pkgs/development/libraries/libcouchbase/default.nix +++ b/pkgs/development/libraries/libcouchbase/default.nix @@ -1,23 +1,16 @@ -{ stdenv, fetchgit, autoconf, automake, libtool, -pkgconfig, perl, git, libevent, openssl}: +{ stdenv, fetchurl, cmake, pkgconfig, libevent, openssl}: stdenv.mkDerivation { - name = "libcouchbase-2.4.4"; - src = fetchgit { - url = "https://github.com/couchbase/libcouchbase.git"; - rev = "4410eebcd813844b6cd6f9c7eeb4ab3dfa2ab8ac"; - sha256 = "02lzv5l6fvnqr2l9bqfha0pzkzlzjfddn3w5zcbjz36kw4p2p4h9"; - leaveDotGit = true; + name = "libcouchbase-2.5.2"; + src = fetchurl { + url = "https://github.com/couchbase/libcouchbase/archive/2.5.2.tar.gz"; + sha256 = "0ka1hix38a2kdhxz6n8frssyznf78ra0irga9d8lr5683y73xw24"; }; - preConfigure = '' - patchShebangs ./config/ - ./config/autorun.sh - ''; + cmakeFlags = "-DLCB_NO_MOCK=ON"; - configureFlags = "--disable-couchbasemock"; - - buildInputs = [ autoconf automake libtool pkgconfig perl git libevent openssl]; + nativeBuildInputs = [ cmake pkgconfig ]; + buildInputs = [ libevent openssl]; meta = { description = "C client library for Couchbase"; |