curl: add psl support

This commit is contained in:
Izorkin 2021-11-13 22:49:32 +03:00
parent da30a0cfb8
commit 1e4864e295
No known key found for this signature in database
GPG Key ID: 1436C1B3F3679F09
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,7 @@
, c-aresSupport ? false, c-ares ? null
, brotliSupport ? false, brotli ? null
, rtmpSupport ? false, rtmpdump ? null
, pslSupport ? false, libpsl ? null
}:
# Note: this package is used for bootstrapping fetchurl, and thus
@ -46,6 +47,7 @@ assert brotliSupport -> brotli != null;
assert gsaslSupport -> gsasl != null;
assert gssSupport -> libkrb5 != null;
assert rtmpSupport -> rtmpdump !=null;
assert pslSupport -> libpsl !=null;
stdenv.mkDerivation rec {
pname = "curl";
@ -89,7 +91,8 @@ stdenv.mkDerivation rec {
optional wolfsslSupport wolfssl ++
optional scpSupport libssh2 ++
optional brotliSupport brotli ++
optional rtmpSupport rtmpdump;
optional rtmpSupport rtmpdump ++
optional pslSupport libpsl;
# for the second line see https://curl.haxx.se/mail/tracker-2014-03/0087.html
preConfigure = ''

View File

@ -4402,6 +4402,7 @@ with pkgs;
ldapSupport = true;
gsaslSupport = true;
rtmpSupport = true;
pslSupport = true;
};
curl = curlMinimal.override ({