anchor.diff: -{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, perl, python3, which
  +{ stdenv, fetchurl, fetchFromGitHub, pkgconfig, perl, python, which, makeWrapper
   , libX11, libxcb, qt5, mesa
   , ffmpeg
   , libchardet
  
positive.code:                    ++ optional cddaSupport "--enable-cdda"
                     ;
  
    nativeBuildInputs = [ pkgconfig perl which ];
  
    enableParallelBuilding = true;
  
  
negative.code: 
    preConfigure = ''
      patchShebangs configure
    '';
  
    preBuild = ''
      install -m755 ${waf} src/mpv/waf
      patchShebangs src/mpv/waf
      patchShebangs build-mpv
    '';
  
    postInstall = ''
      wrapProgram $out/bin/bomi \
        ${optionalString youtubeSupport "--prefix PATH ':' '${youtube-dl}/bin'"}
    '';
  
    configureFlags = with stdenv.lib;
  