diff options
author | Izorkin <izorkin@elven.pw> | 2021-11-14 18:19:55 +0300 |
---|---|---|
committer | Izorkin <izorkin@elven.pw> | 2021-12-03 23:26:44 +0300 |
commit | 507301b3573d8607ef69c80251019938b955e251 (patch) | |
tree | 4e9a9791646d59e76be2d24d576dc065cabe9791 /pkgs/tools/networking/curl | |
parent | 851b12b691c536ab203417fd7c876a694c290c70 (diff) | |
download | nixpkgs-507301b3573d8607ef69c80251019938b955e251.tar nixpkgs-507301b3573d8607ef69c80251019938b955e251.tar.gz nixpkgs-507301b3573d8607ef69c80251019938b955e251.tar.bz2 nixpkgs-507301b3573d8607ef69c80251019938b955e251.tar.lz nixpkgs-507301b3573d8607ef69c80251019938b955e251.tar.xz nixpkgs-507301b3573d8607ef69c80251019938b955e251.tar.zst nixpkgs-507301b3573d8607ef69c80251019938b955e251.zip |
curl: add support http3 protocol
Diffstat (limited to 'pkgs/tools/networking/curl')
-rw-r--r-- | pkgs/tools/networking/curl/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix index 0961eaf3a53..9a5d2457573 100644 --- a/pkgs/tools/networking/curl/default.nix +++ b/pkgs/tools/networking/curl/default.nix @@ -14,6 +14,7 @@ !(isDarwin && (stdenv.buildPlatform != stdenv.hostPlatform)) ), libkrb5 ? null , http2Support ? true, nghttp2 ? null +, http3Support ? false, nghttp3, ngtcp2 ? null , idnSupport ? false, libidn2 ? null , ldapSupport ? false, openldap ? null , opensslSupport ? zlibSupport, openssl ? null @@ -39,6 +40,8 @@ assert gnutlsSupport -> gnutls != null; assert gsaslSupport -> gsasl != null; assert gssSupport -> libkrb5 != null; assert http2Support -> nghttp2 != null; +assert http3Support -> nghttp3 != null; +assert http3Support -> ngtcp2 != null; assert idnSupport -> libidn2 != null; assert ldapSupport -> openldap != null; assert opensslSupport -> openssl != null; @@ -84,6 +87,7 @@ stdenv.mkDerivation rec { optional gsaslSupport gsasl ++ optional gssSupport libkrb5 ++ optional http2Support nghttp2 ++ + optionals http3Support [ nghttp3 ngtcp2 ] ++ optional idnSupport libidn2 ++ optional ldapSupport openldap ++ optional opensslSupport openssl ++ @@ -112,6 +116,8 @@ stdenv.mkDerivation rec { (lib.enableFeature ldapSupport "ldaps") # The build fails when using wolfssl with --with-ca-fallback (lib.withFeature (!wolfsslSupport) "ca-fallback") + (lib.withFeature http3Support "nghttp3") + (lib.withFeature http3Support "ngtcp2") (lib.withFeature rtmpSupport "librtmp") (lib.withFeature zstdSupport "zstd") (lib.withFeatureAs brotliSupport "brotli" (lib.getDev brotli)) |