summary refs log tree commit diff
path: root/pkgs/development/libraries/neon
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2006-09-11 09:47:58 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2006-09-11 09:47:58 +0000
commit66947ee7afd71fea22dbb2311bdf1aca82010e68 (patch)
treef57be02d302f6e074c74c42a914fc2d6e4c5b8f9 /pkgs/development/libraries/neon
parent6d2f25e5f0265f9195cde19fde21a5718d1efbe3 (diff)
downloadnixpkgs-66947ee7afd71fea22dbb2311bdf1aca82010e68.tar
nixpkgs-66947ee7afd71fea22dbb2311bdf1aca82010e68.tar.gz
nixpkgs-66947ee7afd71fea22dbb2311bdf1aca82010e68.tar.bz2
nixpkgs-66947ee7afd71fea22dbb2311bdf1aca82010e68.tar.lz
nixpkgs-66947ee7afd71fea22dbb2311bdf1aca82010e68.tar.xz
nixpkgs-66947ee7afd71fea22dbb2311bdf1aca82010e68.tar.zst
nixpkgs-66947ee7afd71fea22dbb2311bdf1aca82010e68.zip
* Subversion 1.4.0. Note: Subversion 1.4 upgrades your working
  copies, so it's hard to go back to 1.3.

svn path=/nixpkgs/trunk/; revision=6486
Diffstat (limited to 'pkgs/development/libraries/neon')
-rw-r--r--pkgs/development/libraries/neon/default.nix22
1 files changed, 17 insertions, 5 deletions
diff --git a/pkgs/development/libraries/neon/default.nix b/pkgs/development/libraries/neon/default.nix
index 3cc061cd42b..0a75efa56ae 100644
--- a/pkgs/development/libraries/neon/default.nix
+++ b/pkgs/development/libraries/neon/default.nix
@@ -1,12 +1,24 @@
-{stdenv, fetchurl, libxml2}:
+{ stdenv, fetchurl, libxml2
+, compressionSupport ? true, zlib ? null
+, sslSupport ? true, openssl ? null
+}:
 
-stdenv.mkDerivation {
+assert compressionSupport -> zlib != null;
+assert sslSupport -> openssl != null;
+
+(stdenv.mkDerivation {
   name = "neon-0.25.5";
+  
   src = fetchurl {
     url = http://www.webdav.org/neon/neon-0.25.5.tar.gz;
     md5 = "b5fdb71dd407f0a3de0f267d27c9ab17";
   };
-  buildInputs = [libxml2];
+  
+  buildInputs = [libxml2] ++ (if compressionSupport then [zlib] else []);
 
-  configureFlags="--enable-shared";
-}
+  configureFlags="
+    --enable-shared --disable-static
+    ${if compressionSupport then "--with-zlib" else "--without-zlib"}
+    ${if sslSupport then "--with-ssl --with-libs=${openssl}" else "--without-ssl"}
+  ";
+}) // {inherit compressionSupport sslSupport;}