anchor.diff:    ];
   
     postInstall = ''
  -    mkdir -p $out/share/zsh/site-functions
  -    cp youtube-dl.zsh $out/share/zsh/site-functions/_youtube-dl
  +    installShellCompletion youtube-dl.zsh
     '';
   
     # Requires network
  
positive.code: , rtmpSupport ? true
  , phantomjsSupport ? false
  , hlsEncryptedSupport ? true
  , makeWrapper }:
  
  buildPythonPackage rec {
  
  
negative.code:   # The websites youtube-dl deals with are a very moving target. That means that
    # downloads break constantly. Because of that, updates should always be backported
    # to the latest stable release.
    version = "2020.03.24";
  
    src = fetchurl {
      url = "https://yt-dl.org/downloads/${version}/${pname}-${version}.tar.gz";
      sha256 = "05l4asakakxn53wrvxn6c03fd80zdizdbj6r2cj8c1ja3sj9i8s5";
    };
  
    nativeBuildInputs = [ installShellFiles makeWrapper ];
    buildInputs = [ zip ] ++ lib.optional generateManPage pandoc;
    propagatedBuildInputs = lib.optional hlsEncryptedSupport pycryptodome;
  
  