anchor.diff:  , hlsEncryptedSupport ? true
   , makeWrapper }:
   
  -with stdenv.lib;
   buildPythonPackage rec {
   
     pname = "youtube-dl";
  -  version = "2018.05.18";
  +  version = "2018.07.10";
   
     src = fetchurl {
       url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
  -    sha256 = "11r0hv6885w8k4m307kvf9545vr5a3ym9bf7szghvbcgmgc8lm5w";
  +    sha256 = "1rigah941k2drzx5qz937lk68gw9jrizj5lgd9f9znp0bgi2d0xd";
     };
   
     nativeBuildInputs = [ makeWrapper ];
  -  buildInputs = [ zip ] ++ optional generateManPage pandoc;
  -  propagatedBuildInputs = optional hlsEncryptedSupport pycryptodome;
  +  buildInputs = [ zip ] ++ lib.optional generateManPage pandoc;
  +  propagatedBuildInputs = lib.optional hlsEncryptedSupport pycryptodome;
   
     # Ensure ffmpeg is available in $PATH for post-processing & transcoding support.
     # rtmpdump is required to download files over RTMP
  
positive.code:   # Requires network
    doCheck = false;
  
    meta = {
      homepage = https://rg3.github.io/youtube-dl/;
      repositories.git = https://github.com/rg3/youtube-dl.git;
      description = "Command-line tool to download videos from YouTube.com and other sites";
  
negative.code:   makeWrapperArgs = let
        packagesToBinPath =
          [ atomicparsley ]
          ++ lib.optional ffmpegSupport ffmpeg
          ++ lib.optional rtmpSupport rtmpdump
          ++ lib.optional phantomjsSupport phantomjs2;
      in [ ''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"'' ];
  
    postInstall = ''
      mkdir -p $out/share/zsh/site-functions
  