anchor.diff:                     ++ optional cddaSupport "--enable-cdda"
                      ;
   
  -  nativeBuildInputs = [ pkgconfig perl which ];
  +  nativeBuildInputs = [ pkgconfig perl python which qt5.tools makeWrapper ];
   
     enableParallelBuilding = true;
   
  
positive.code: 
    preConfigure = ''
      patchShebangs configure
      # src/mpv/waf build-mpv; do
    '';
  
    preBuild = ''
      patchShebangs build-mpv
      install -m755 ${waf} src/mpv/waf
      sed -i '1 s,.*,#!${python3.interpreter},' src/mpv/waf
    '';
  
    configureFlags = with stdenv.lib;
  
negative.code: , portaudioSupport ? false, portaudio ? null
  , pulseSupport ? true, pulseaudio ? null
  , cddaSupport ? false, libcdda ? null
  , youtubeSupport ? true, youtube-dl ? null
  }:
  
  with stdenv.lib;
  
  assert jackSupport -> jack != null;
  assert portaudioSupport -> portaudio != null;
  assert pulseSupport -> pulseaudio != null;
  assert cddaSupport -> libcdda != null;
  assert youtubeSupport -> youtube-dl != null;
  
  let
    waf = fetchurl {
  