mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
curl: Add support for c-ares, asynchronous dns resolver
This commit is contained in:
parent
01b483f692
commit
941055dae9
@ -3,12 +3,14 @@
|
||||
, sslSupport ? false, openssl ? null
|
||||
, scpSupport ? false, libssh2 ? null
|
||||
, gssSupport ? false, gss ? null
|
||||
, c-aresSupport ? false, c-ares ? null
|
||||
, linkStatic ? false
|
||||
}:
|
||||
|
||||
assert zlibSupport -> zlib != null;
|
||||
assert sslSupport -> openssl != null;
|
||||
assert scpSupport -> libssh2 != null;
|
||||
assert c-aresSupport -> c-ares != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "curl-7.30.0";
|
||||
@ -24,6 +26,7 @@ stdenv.mkDerivation rec {
|
||||
propagatedBuildInputs = with stdenv.lib;
|
||||
optional zlibSupport zlib ++
|
||||
optional gssSupport gss ++
|
||||
optional c-aresSupport c-ares ++
|
||||
optional sslSupport openssl;
|
||||
|
||||
preConfigure = ''
|
||||
@ -33,6 +36,7 @@ stdenv.mkDerivation rec {
|
||||
( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" )
|
||||
( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" )
|
||||
]
|
||||
++ stdenv.lib.optional c-aresSupport "--enable-ares=${c-ares}"
|
||||
++ stdenv.lib.optional gssSupport "--with-gssapi=${gss}"
|
||||
++ stdenv.lib.optionals linkStatic [ "--enable-static" "--disable-shared" ]
|
||||
;
|
||||
|
@ -3777,7 +3777,9 @@ let
|
||||
|
||||
bwidget = callPackage ../development/libraries/bwidget { };
|
||||
|
||||
c-ares = callPackage ../development/libraries/c-ares { };
|
||||
c-ares = callPackage ../development/libraries/c-ares {
|
||||
fetchurl = fetchurlBoot;
|
||||
};
|
||||
|
||||
caelum = callPackage ../development/libraries/caelum { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user