3
0
Fork 0
forked from mirrors/nixpkgs

curl: add support rtmp protocol

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

View file

@ -21,6 +21,7 @@
), libkrb5 ? null
, c-aresSupport ? false, c-ares ? null
, brotliSupport ? false, brotli ? null
, rtmpSupport ? false, rtmpdump ? null
}:
# Note: this package is used for bootstrapping fetchurl, and thus
@ -44,6 +45,7 @@ assert c-aresSupport -> c-ares != null;
assert brotliSupport -> brotli != null;
assert gsaslSupport -> gsasl != null;
assert gssSupport -> libkrb5 != null;
assert rtmpSupport -> rtmpdump !=null;
stdenv.mkDerivation rec {
pname = "curl";
@ -86,7 +88,8 @@ stdenv.mkDerivation rec {
optional gnutlsSupport gnutls ++
optional wolfsslSupport wolfssl ++
optional scpSupport libssh2 ++
optional brotliSupport brotli;
optional brotliSupport brotli ++
optional rtmpSupport rtmpdump;
# for the second line see https://curl.haxx.se/mail/tracker-2014-03/0087.html
preConfigure = ''
@ -110,6 +113,7 @@ stdenv.mkDerivation rec {
(lib.withFeatureAs idnSupport "libidn2" (lib.getDev libidn2))
(lib.withFeature zstdSupport "zstd")
(lib.withFeature brotliSupport "brotli")
(lib.withFeature rtmpSupport "librtmp")
]
++ lib.optional wolfsslSupport "--with-wolfssl=${lib.getDev wolfssl}"
++ lib.optional c-aresSupport "--enable-ares=${c-ares}"

View file

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