summary refs log tree commit diff
path: root/pkgs/tools/networking/curl
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2021-11-12 13:27:52 +0300
committerIzorkin <izorkin@elven.pw>2021-12-03 23:26:42 +0300
commit7497778795711d4a752cca9143038cd59aa8ea54 (patch)
tree9fc62265280814ac6ef0f9a6955e58966557ac83 /pkgs/tools/networking/curl
parent29526bc2eb9463515d0568c05e28b8a3bec09c91 (diff)
downloadnixpkgs-7497778795711d4a752cca9143038cd59aa8ea54.tar
nixpkgs-7497778795711d4a752cca9143038cd59aa8ea54.tar.gz
nixpkgs-7497778795711d4a752cca9143038cd59aa8ea54.tar.bz2
nixpkgs-7497778795711d4a752cca9143038cd59aa8ea54.tar.lz
nixpkgs-7497778795711d4a752cca9143038cd59aa8ea54.tar.xz
nixpkgs-7497778795711d4a752cca9143038cd59aa8ea54.tar.zst
nixpkgs-7497778795711d4a752cca9143038cd59aa8ea54.zip
curl: add support zstd compression
Diffstat (limited to 'pkgs/tools/networking/curl')
-rw-r--r--pkgs/tools/networking/curl/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix
index 0d229979f4c..7349197ba1d 100644
--- a/pkgs/tools/networking/curl/default.nix
+++ b/pkgs/tools/networking/curl/default.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}"