curl: add support zstd compression

main
Izorkin 3 years ago
parent 29526bc2eb
commit 7497778795
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09
  1. 4
      pkgs/tools/networking/curl/default.nix
  2. 1
      pkgs/top-level/all-packages.nix

@ -3,6 +3,7 @@
, idnSupport ? false, libidn2 ? null
, ldapSupport ? false, openldap ? null
, zlibSupport ? true, zlib ? null
, zstdSupport ? false, zstd ? null
, opensslSupport ? zlibSupport, openssl ? null
, gnutlsSupport ? false, gnutls ? null
, wolfsslSupport ? false, wolfssl ? null
@ -30,6 +31,7 @@ assert http2Support -> nghttp2 != null;
assert idnSupport -> libidn2 != null;
assert ldapSupport -> openldap != null;
assert zlibSupport -> zlib != null;
assert zstdSupport -> zstd != null;
assert opensslSupport -> openssl != null;
assert !(gnutlsSupport && opensslSupport);
assert !(gnutlsSupport && wolfsslSupport);
@ -74,6 +76,7 @@ stdenv.mkDerivation rec {
optional idnSupport libidn2 ++
optional ldapSupport openldap ++
optional zlibSupport zlib ++
optional zstdSupport zstd ++
optional gssSupport libkrb5 ++
optional c-aresSupport c-ares ++
optional opensslSupport openssl ++
@ -102,6 +105,7 @@ stdenv.mkDerivation rec {
(lib.enableFeature ldapSupport "ldap")
(lib.enableFeature ldapSupport "ldaps")
(lib.withFeatureAs idnSupport "libidn2" (lib.getDev libidn2))
(lib.withFeature zstdSupport "zstd")
(lib.withFeature brotliSupport "brotli")
]
++ lib.optional wolfsslSupport "--with-wolfssl=${lib.getDev wolfssl}"

@ -4404,6 +4404,7 @@ with pkgs;
curl = curlMinimal.override ({
idnSupport = true;
zstdSupport = true;
} // lib.optionalAttrs (!stdenv.hostPlatform.isStatic) {
gssSupport = true;
brotliSupport = true;

Loading…
Cancel
Save