mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
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:
parent
47612615ab
commit
9d27c94bda
9
pkgs/tools/networking/curl/builder.sh
Normal file
9
pkgs/tools/networking/curl/builder.sh
Normal file
@ -0,0 +1,9 @@
|
||||
source $stdenv/setup
|
||||
|
||||
if test "$sslSupport"; then
|
||||
configureFlags="--with-ssl=$openssl"
|
||||
else
|
||||
configureFlags="--without-ssl"
|
||||
fi
|
||||
|
||||
genericBuild
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user