Advertisement
Guest User

Untitled

a guest
Sep 18th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. nixpkgs/pkgs/development/libraries/default.nix
  2.  
  3. {stdenv, fetchgit, perl, git, libtool, automake, autoconf, pkgconfig}:
  4.  
  5. stdenv.mkDerivation {
  6. name = "libcouchbase-2.4.1";
  7. builder = ./builder.sh;
  8.  
  9. src = fetchgit {
  10. url = https://github.com/couchbase/libcouchbase.git;
  11. sha256 = "07gsyr6x1sb63v7a2ji5g8ncnm8rkjq8i6nzy3af28p9nqwziyzl";
  12.  
  13. };
  14. inherit perl;
  15. inherit git;
  16. inherit autoconf;
  17.  
  18. meta = {
  19. description = "C binding to Couchbase";
  20. homepage = https://github.com/couchbase/libcouchbase;
  21. };
  22. extraCmds = ''
  23. LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/usr/local/lib
  24. for i in $nativeBuildInputs; do
  25. LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:\$i/lib
  26. done
  27. export LD_LIBRARY_PATH
  28. '';
  29.  
  30. }
  31.  
  32.  
  33. ------
  34. builder.sh
  35.  
  36. source $stdenv/setup
  37.  
  38. PATH=$perl/bin:$PATH
  39. ls
  40. sed -i 's/\.\//perl\ /' config/autorun.sh
  41. ./config/autorun.sh
  42. ./configure --prefix=$out --disable-couchbasemock
  43. make
  44. make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement