Merge pull request #43548 from Enzime/update/youtube-dl
youtube-dl: 2018.05.18 -> 2018.07.10
This commit is contained in:
commit
d3ed77f1fb
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, targetPlatform, fetchurl, buildPythonPackage
|
{ stdenv, lib, targetPlatform, fetchurl, buildPythonPackage
|
||||||
, zip, ffmpeg, rtmpdump, phantomjs2, atomicparsley, pycryptodome, pandoc
|
, zip, ffmpeg, rtmpdump, phantomjs2, atomicparsley, pycryptodome, pandoc
|
||||||
# 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
|
||||||
@ -12,20 +12,19 @@
|
|||||||
, hlsEncryptedSupport ? true
|
, hlsEncryptedSupport ? true
|
||||||
, makeWrapper }:
|
, makeWrapper }:
|
||||||
|
|
||||||
with stdenv.lib;
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
|
||||||
pname = "youtube-dl";
|
pname = "youtube-dl";
|
||||||
version = "2018.05.18";
|
version = "2018.07.10";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
|
url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
|
||||||
sha256 = "11r0hv6885w8k4m307kvf9545vr5a3ym9bf7szghvbcgmgc8lm5w";
|
sha256 = "1rigah941k2drzx5qz937lk68gw9jrizj5lgd9f9znp0bgi2d0xd";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
buildInputs = [ zip ] ++ optional generateManPage pandoc;
|
buildInputs = [ zip ] ++ lib.optional generateManPage pandoc;
|
||||||
propagatedBuildInputs = optional hlsEncryptedSupport pycryptodome;
|
propagatedBuildInputs = lib.optional hlsEncryptedSupport pycryptodome;
|
||||||
|
|
||||||
# Ensure ffmpeg is available in $PATH for post-processing & transcoding support.
|
# Ensure ffmpeg is available in $PATH for post-processing & transcoding support.
|
||||||
# rtmpdump is required to download files over RTMP
|
# rtmpdump is required to download files over RTMP
|
||||||
@ -33,10 +32,10 @@ buildPythonPackage rec {
|
|||||||
makeWrapperArgs = let
|
makeWrapperArgs = let
|
||||||
packagesToBinPath =
|
packagesToBinPath =
|
||||||
[ atomicparsley ]
|
[ atomicparsley ]
|
||||||
++ optional ffmpegSupport ffmpeg
|
++ lib.optional ffmpegSupport ffmpeg
|
||||||
++ optional rtmpSupport rtmpdump
|
++ lib.optional rtmpSupport rtmpdump
|
||||||
++ optional phantomjsSupport phantomjs2;
|
++ lib.optional phantomjsSupport phantomjs2;
|
||||||
in [ ''--prefix PATH : "${makeBinPath packagesToBinPath}"'' ];
|
in [ ''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"'' ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/share/zsh/site-functions
|
mkdir -p $out/share/zsh/site-functions
|
||||||
@ -46,7 +45,7 @@ buildPythonPackage rec {
|
|||||||
# Requires network
|
# Requires network
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = https://rg3.github.io/youtube-dl/;
|
homepage = https://rg3.github.io/youtube-dl/;
|
||||||
repositories.git = https://github.com/rg3/youtube-dl.git;
|
repositories.git = https://github.com/rg3/youtube-dl.git;
|
||||||
description = "Command-line tool to download videos from YouTube.com and other sites";
|
description = "Command-line tool to download videos from YouTube.com and other sites";
|
||||||
@ -58,6 +57,6 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
license = licenses.publicDomain;
|
license = licenses.publicDomain;
|
||||||
platforms = with platforms; linux ++ darwin;
|
platforms = with platforms; linux ++ darwin;
|
||||||
maintainers = with maintainers; [ bluescreen303 phreedom AndersonTorres fuuzetsu fpletz ];
|
maintainers = with maintainers; [ bluescreen303 phreedom AndersonTorres fuuzetsu fpletz enzime ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user