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: 
  stdenv.mkDerivation rec {
    name = "avidemux-${version}";
    version = "2.7.1";
  
    src = fetchurl {
      url = "mirror://sourceforge/avidemux/avidemux/${version}/avidemux_${version}.tar.gz";
      sha256 = "15g9h791qbnmycabbbl7s2b3n3xpvygm88qrfk35g2cw6957ik9w";
    };
  
    patches = [
      ./dynamic_install_dir.patch
      ./bootstrap_logging.patch
    ];
  
    nativeBuildInputs = [ yasm cmake pkgconfig ];
  