curl: add websocket support

disabled by default, enabled in curlFull
https://curl.se/docs/websocket.html
This commit is contained in:
ajs124 2023-12-28 23:17:22 +01:00
parent ae9397e83b
commit 6d432900e2
2 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@
), libkrb5
, http2Support ? true, nghttp2
, http3Support ? false, nghttp3, ngtcp2
, websocketSupport ? false
, idnSupport ? false, libidn2
, ldapSupport ? false, openldap
, opensslSupport ? zlibSupport, openssl
@ -105,6 +106,7 @@ stdenv.mkDerivation (finalAttrs: {
(lib.enableFeature c-aresSupport "ares")
(lib.enableFeature ldapSupport "ldap")
(lib.enableFeature ldapSupport "ldaps")
(lib.enableFeature websocketSupport "websockets")
# --with-ca-fallback is only supported for openssl and gnutls https://github.com/curl/curl/blame/curl-8_0_1/acinclude.m4#L1640
(lib.withFeature (opensslSupport || gnutlsSupport) "ca-fallback")
(lib.withFeature http3Support "nghttp3")

View File

@ -7373,6 +7373,7 @@ with pkgs;
gsaslSupport = true;
rtmpSupport = true;
pslSupport = true;
websocketSupport = true;
};
curlHTTP3 = curl.override {