forked from mirrors/nixpkgs
curl: add support rtmp protocol
This commit is contained in:
parent
bc721b462b
commit
da30a0cfb8
|
@ -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}"
|
||||
|
|
|
@ -4401,6 +4401,7 @@ with pkgs;
|
|||
curlFull = curl.override {
|
||||
ldapSupport = true;
|
||||
gsaslSupport = true;
|
||||
rtmpSupport = true;
|
||||
};
|
||||
|
||||
curl = curlMinimal.override ({
|
||||
|
|
Loading…
Reference in a new issue