3
0
Fork 0
forked from mirrors/nixpkgs

Pass the path to OpenSSL to the `--with-ssl' configure flag when building

with SSL support.


svn path=/nixpkgs/trunk/; revision=5144
This commit is contained in:
Roy van den Broek 2006-04-05 09:08:43 +00:00
parent 47612615ab
commit 9d27c94bda
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,9 @@
source $stdenv/setup
if test "$sslSupport"; then
configureFlags="--with-ssl=$openssl"
else
configureFlags="--without-ssl"
fi
genericBuild

View file

@ -4,11 +4,12 @@ assert sslSupport -> openssl != null;
stdenv.mkDerivation {
name = "curl-7.15.1";
builder = ./builder.sh;
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/curl-7.15.1.tar.bz2;
md5 = "d330d48580bfade58c82d4f295f171f0";
};
buildInputs = [zlib (if sslSupport then openssl else null)];
patches = [./configure-cxxcpp.patch];
configureFlags = (if sslSupport then "--with-ssl" else "--without-ssl");
inherit sslSupport openssl;
}