youtube-dl: fix youtube video download

This commit is contained in:
Timo Kaufmann 2018-09-07 21:03:57 +02:00
parent fa76f75c7b
commit 8ef940a038

View File

@ -1,5 +1,6 @@
{ lib, fetchurl, buildPythonPackage { lib, fetchurl, buildPythonPackage
, zip, ffmpeg, rtmpdump, phantomjs2, atomicparsley, pycryptodome, pandoc , zip, ffmpeg, rtmpdump, phantomjs2, atomicparsley, pycryptodome, pandoc
, fetchpatch
# Pandoc is required to build the package's man page. Release tarballs contain a # Pandoc is required to build the package's man page. Release tarballs contain a
# formatted man page already, though, it will still be installed. We keep the # formatted man page already, though, it will still be installed. We keep the
# manpage argument in place in case someone wants to use this derivation to # manpage argument in place in case someone wants to use this derivation to
@ -22,6 +23,15 @@ buildPythonPackage rec {
sha256 = "0h8x8agl4s5cnfzwmshbcg4pxcgg3iyb86w8krs21y2k9d1ng036"; sha256 = "0h8x8agl4s5cnfzwmshbcg4pxcgg3iyb86w8krs21y2k9d1ng036";
}; };
patches = [
# https://github.com/rg3/youtube-dl/pull/17464
(fetchpatch {
name = "youtube-js-player-fix.patch";
url = "https://github.com/rg3/youtube-dl/pull/17464/commits/6d7359775ae4eef1d1213aae81e092467a2c675c.patch";
sha256 = "12mwfmp7iwlawpx6r4rhz546b3anxrx6zc4nyjs8grbh5vxhj9yg";
})
];
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [ makeWrapper ];
buildInputs = [ zip ] ++ lib.optional generateManPage pandoc; buildInputs = [ zip ] ++ lib.optional generateManPage pandoc;
propagatedBuildInputs = lib.optional hlsEncryptedSupport pycryptodome; propagatedBuildInputs = lib.optional hlsEncryptedSupport pycryptodome;