curl: enable brotli by default

This commit is contained in:
Sandro Jäckel 2021-02-12 23:56:15 +01:00
parent 0667f269fc
commit e3d19670a0
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 8 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{ stdenv, lib, fetchurl, pkg-config
, bzip2, curl, expat, libarchive, xz, zlib, libuv, rhash
, bzip2, curlMinimal, expat, libarchive, xz, zlib, libuv, rhash
, buildPackages
# darwin attributes
, ps
@ -50,7 +50,7 @@ stdenv.mkDerivation (rec {
nativeBuildInputs = [ setupHook pkg-config ];
buildInputs = []
++ lib.optionals useSharedLibraries [ bzip2 curl expat libarchive xz zlib libuv rhash ]
++ lib.optionals useSharedLibraries [ bzip2 curlMinimal expat libarchive xz zlib libuv rhash ]
++ lib.optional useOpenSSL openssl
++ lib.optional useNcurses ncurses
++ lib.optional useQt4 qt4

View file

@ -410,7 +410,7 @@ in
else makeOverridable (import ../build-support/fetchurl) {
inherit lib stdenvNoCC buildPackages;
inherit cacert;
curl = buildPackages.curl.override (old: rec {
curl = buildPackages.curlMinimal.override (old: rec {
# break dependency cycles
fetchurl = stdenv.fetchurlBoot;
zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; };
@ -3426,13 +3426,16 @@ in
cudnn = cudnn_cudatoolkit_10;
curlFull = curl.override {
idnSupport = true;
ldapSupport = true;
};
curl = curlMinimal.override {
idnSupport = true;
gssSupport = true;
brotliSupport = true;
};
curl = callPackage ../tools/networking/curl { };
curlMinimal = callPackage ../tools/networking/curl { };
curl_unix_socket = callPackage ../tools/networking/curl-unix-socket { };