anchor.diff: -{ stdenv, lib, fetchurl, fetchpatch, cmake, pkgconfig, lndir
  +{ stdenv, lib, fetchurl, cmake, pkgconfig, lndir
   , zlib, gettext, libvdpau, libva, libXv, sqlite
   , yasm, freetype, fontconfig, fribidi
   , makeWrapper, libXext, libGLU, qttools, qtbase
  
positive.code:     ++ lib.optionals withQT [ qttools qtbase ]
      ++ lib.optional withVPX libvpx;
  
    buildCommand = ''
      unpackPhase
      cd "$sourceRoot"
      patchPhase
  
negative.code:     mkdir $out
      cp -R install/usr/* $out
  
      ${wrapProgram "$out/bin/avidemux3_cli"}
  
      ${stdenv.lib.optionalString withQT ''
        ${wrapProgram "$out/bin/avidemux3_qt5"} --prefix QT_PLUGIN_PATH : ${qtbase}/lib/qt-${qtVersion}/plugins
        ${wrapProgram "$out/bin/avidemux3_jobs_qt5"} --prefix QT_PLUGIN_PATH : ${qtbase}/lib/qt-${qtVersion}/plugins
      ''}
  
      ln -s "$out/bin/avidemux3_${default}" "$out/bin/avidemux"
  
      fixupPhase
  