mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-02 10:37:49 +03:00
curl: add support zstd compression
This commit is contained in:
parent
29526bc2eb
commit
7497778795
@ -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…
Reference in New Issue
Block a user