@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, buildPythonApplication, makeWrapper, zip, ffmpeg, pandoc
1+{ stdenv, fetchurl, buildPythonApplication, makeWrapper, zip, ffmpeg, rtmpdump, pandoc
22, atomicparsley
33# Pandoc is required to build the package's man page. Release tarballs contain a
44# formatted man page already, though, it will still be installed. We keep the
@@ -7,6 +7,7 @@
77# included.
88, generateManPage ? false
99, ffmpegSupport ? true
10+, rtmpSupport ? true
1011}:
1112
1213with stdenv.lib;
@@ -24,9 +25,10 @@ buildPythonApplication rec {
2425 buildInputs = [ makeWrapper zip ] ++ optional generateManPage pandoc;
2526
2627 # Ensure ffmpeg is available in $PATH for post-processing & transcoding support.
28+ # rtmpdump is required to download files over RTMP
2729 # atomicparsley for embedding thumbnails
2830 postInstall = let
29− packagesthatwillbeusedbelow = [ atomicparsley ] ++ optional ffmpegSupport ffmpeg;
31+ packagesthatwillbeusedbelow = [ atomicparsley ] ++ optional ffmpegSupport ffmpeg ++ optional rtmpSupport rtmpdump;
3032 in ''
3133 wrapProgram $out/bin/youtube-dl --prefix PATH : "${makeBinPath packagesthatwillbeusedbelow}"
3234 '';