Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nixpkgs/pkgs/development/libraries/default.nix
- {stdenv, fetchgit, perl, git, libtool, automake, autoconf, pkgconfig}:
- stdenv.mkDerivation {
- name = "libcouchbase-2.4.1";
- builder = ./builder.sh;
- src = fetchgit {
- url = https://github.com/couchbase/libcouchbase.git;
- sha256 = "07gsyr6x1sb63v7a2ji5g8ncnm8rkjq8i6nzy3af28p9nqwziyzl";
- };
- inherit perl;
- inherit git;
- inherit autoconf;
- meta = {
- description = "C binding to Couchbase";
- homepage = https://github.com/couchbase/libcouchbase;
- };
- extraCmds = ''
- LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/lib
- for i in $nativeBuildInputs; do
- LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$i/lib
- done
- export LD_LIBRARY_PATH
- '';
- }
- ------
- builder.sh
- source $stdenv/setup
- PATH=$perl/bin:$PATH
- ls
- sed -i 's/\.\//perl\ /' config/autorun.sh
- ./config/autorun.sh
- ./configure --prefix=$out --disable-couchbasemock
- make
- make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement