diff options
author | John Chee <cheecheeo@gmail.com> | 2015-04-25 14:01:36 -0700 |
---|---|---|
committer | John Chee <cheecheeo@gmail.com> | 2015-04-25 14:01:36 -0700 |
commit | 5717d5e09e2517f99c737d2e3af7257f082e1b91 (patch) | |
tree | d2ccac2bd86cbeda607bab4f48f495c1a91f7d04 /pkgs/tools/networking/curl | |
parent | 2a7a94d8351ee263421808e5908c15871803d0f1 (diff) | |
download | nixlib-5717d5e09e2517f99c737d2e3af7257f082e1b91.tar nixlib-5717d5e09e2517f99c737d2e3af7257f082e1b91.tar.gz nixlib-5717d5e09e2517f99c737d2e3af7257f082e1b91.tar.bz2 nixlib-5717d5e09e2517f99c737d2e3af7257f082e1b91.tar.lz nixlib-5717d5e09e2517f99c737d2e3af7257f082e1b91.tar.xz nixlib-5717d5e09e2517f99c737d2e3af7257f082e1b91.tar.zst nixlib-5717d5e09e2517f99c737d2e3af7257f082e1b91.zip |
curl: ldap and libidn support as `curlFull`
Diffstat (limited to 'pkgs/tools/networking/curl')
-rw-r--r-- | pkgs/tools/networking/curl/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix index 08c00fc4b342..4fd30cc1fa1e 100644 --- a/pkgs/tools/networking/curl/default.nix +++ b/pkgs/tools/networking/curl/default.nix @@ -1,4 +1,6 @@ { stdenv, fetchurl +, idnSupport ? false, libidn ? null +, ldapSupport ? false, openldap ? null , zlibSupport ? false, zlib ? null , sslSupport ? false, openssl ? null , scpSupport ? false, libssh2 ? null @@ -6,6 +8,8 @@ , c-aresSupport ? false, c-ares ? null }: +assert idnSupport -> libidn != null; +assert ldapSupport -> openldap != null; assert zlibSupport -> zlib != null; assert sslSupport -> openssl != null; assert scpSupport -> libssh2 != null; @@ -23,6 +27,8 @@ stdenv.mkDerivation rec { # "-lz -lssl", which aren't necessary direct build inputs of # applications that use Curl. propagatedBuildInputs = with stdenv.lib; + optional idnSupport libidn ++ + optional ldapSupport openldap ++ optional zlibSupport zlib ++ optional gssSupport gss ++ optional c-aresSupport c-ares ++ @@ -43,6 +49,9 @@ stdenv.mkDerivation rec { configureFlags = [ ( if sslSupport then "--with-ssl=${openssl}" else "--without-ssl" ) ( if scpSupport then "--with-libssh2=${libssh2}" else "--without-libssh2" ) + ( if ldapSupport then "--enable-ldap" else "--disable-ldap" ) + ( if ldapSupport then "--enable-ldaps" else "--disable-ldaps" ) + ( if idnSupport then "--with-libidn=${libidn}" else "--without-libidn" ) ] ++ stdenv.lib.optional c-aresSupport "--enable-ares=${c-ares}" ++ stdenv.lib.optional gssSupport "--with-gssapi=${gss}"; |