@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, buildPythonApplication
2−, zip, ffmpeg, rtmpdump, atomicparsley, pycryptodome, pandoc
2+, zip, ffmpeg, rtmpdump, phantomjs2, atomicparsley, pycryptodome, pandoc
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
55# manpage argument in place in case someone wants to use this derivation to
@@ -8,6 +8,7 @@
88, generateManPage ? false
99, ffmpegSupport ? true
1010, rtmpSupport ? true
11+, phantomjsSupport ? true
1112, hlsEncryptedSupport ? true
1213, makeWrapper }:
1314
@@ -15,11 +16,11 @@ with stdenv.lib;
1516buildPythonApplication rec {
1617
1718 name = "youtube-dl-${version}";
18− version = "2017.12.23";
19+ version = "2017.12.31";
1920
2021 src = fetchurl {
2122 url = "https://yt-dl.org/downloads/${version}/${name}.tar.gz";
22− sha256 = "12m1bjdqm9bsc1f5psnzc203avzwr070xpdr6fqr728am536q845";
23+ sha256 = "0cq10ii96lpq3z7l1js0s59sqb4h4yqwdqinl2yf7cdjynvj62xi";
2324 };
2425
2526 nativeBuildInputs = [ makeWrapper ];
@@ -33,7 +34,8 @@ buildPythonApplication rec {
3334 packagesToBinPath =
3435 [ atomicparsley ]
3536 ++ optional ffmpegSupport ffmpeg
36− ++ optional rtmpSupport rtmpdump;
37+ ++ optional rtmpSupport rtmpdump
38+ ++ optional phantomjsSupport phantomjs2;
3739 in ''
3840 wrapProgram $out/bin/youtube-dl --prefix PATH : "${makeBinPath packagesToBinPath}"
3941 '';