git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #43548 from Enzime/update/youtube-dl

youtube-dl: 2018.05.18 -> 2018.07.10

commitd3ed77f1fb1d4e7ef7ec7f63844c9257bc243be8 authoradisbladis <adisbladis@gmail.com> dateSun 15 Jul 2018, 15:59 (8 years ago) parent064bff06308fa8
1 file changed+11−12
pkgs/tools/misc/youtube-dl/default.nix+11−12
pkgs/tools/misc/youtube-dl/default.nix+11−12
@@ -1,4 +1,4 @@
1−{ stdenv, targetPlatform, fetchurl, buildPythonPackage
1+{ stdenv, lib, targetPlatform, fetchurl, buildPythonPackage
22, 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
@@ -12,20 +12,19 @@
1212, hlsEncryptedSupport ? true
1313, makeWrapper }:
1414
15−with stdenv.lib;
1615buildPythonPackage rec {
1716
1817 pname = "youtube-dl";
19− version = "2018.05.18";
18+ version = "2018.07.10";
2019
2120 src = fetchurl {
2221 url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
23− sha256 = "11r0hv6885w8k4m307kvf9545vr5a3ym9bf7szghvbcgmgc8lm5w";
22+ sha256 = "1rigah941k2drzx5qz937lk68gw9jrizj5lgd9f9znp0bgi2d0xd";
2423 };
2524
2625 nativeBuildInputs = [ makeWrapper ];
27− buildInputs = [ zip ] ++ optional generateManPage pandoc;
28− propagatedBuildInputs = optional hlsEncryptedSupport pycryptodome;
26+ buildInputs = [ zip ] ++ lib.optional generateManPage pandoc;
27+ propagatedBuildInputs = lib.optional hlsEncryptedSupport pycryptodome;
2928
3029 # Ensure ffmpeg is available in $PATH for post-processing & transcoding support.
3130 # rtmpdump is required to download files over RTMP
@@ -33,10 +32,10 @@ buildPythonPackage rec {
3332 makeWrapperArgs = let
3433 packagesToBinPath =
3534 [ atomicparsley ]
36− ++ optional ffmpegSupport ffmpeg
37− ++ optional rtmpSupport rtmpdump
38− ++ optional phantomjsSupport phantomjs2;
39− in [ ''--prefix PATH : "${makeBinPath packagesToBinPath}"'' ];
35+ ++ lib.optional ffmpegSupport ffmpeg
36+ ++ lib.optional rtmpSupport rtmpdump
37+ ++ lib.optional phantomjsSupport phantomjs2;
38+ in [ ''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"'' ];
4039
4140 postInstall = ''
4241 mkdir -p $out/share/zsh/site-functions
@@ -46,7 +45,7 @@ buildPythonPackage rec {
4645 # Requires network
4746 doCheck = false;
4847
49− meta = {
48+ meta = with lib; {
5049 homepage = https://rg3.github.io/youtube-dl/;
5150 repositories.git = https://github.com/rg3/youtube-dl.git;
5251 description = "Command-line tool to download videos from YouTube.com and other sites";
@@ -58,6 +57,6 @@ buildPythonPackage rec {
5857 '';
5958 license = licenses.publicDomain;
6059 platforms = with platforms; linux ++ darwin;
61− maintainers = with maintainers; [ bluescreen303 phreedom AndersonTorres fuuzetsu fpletz ];
60+ maintainers = with maintainers; [ bluescreen303 phreedom AndersonTorres fuuzetsu fpletz enzime ];
6261 };
6362}