anchor.diff:      sed 's_qApp->applicationDirPath(), "ffmpeg"_"${mlt.ffmpeg}/bin/ffmpeg"_' -i src/docks/encodedock.cpp
       NICE=$(type -P nice)
       sed "s_/usr/bin/nice_''${NICE}_" -i src/jobs/meltjob.cpp src/jobs/ffmpegjob.cpp
  -    # Fix VAAPI auto-config: https://github.com/mltframework/shotcut/issues/771
  -    sed 's#"-vaapi_device" << ":0"#"-vaapi_device" << "/dev/dri/renderD128"#' -i src/docks/encodedock.cpp
     '';
   
     qtWrapperArgs = [
  
positive.code: { stdenv, fetchFromGitHub, SDL2, frei0r, gettext, mlt, jack1, mkDerivation
  , pkgconfig, qtbase, qtmultimedia, qtwebkit, qtx11extras, qtwebsockets
  , qtquickcontrols, qtgraphicaleffects, libmlt, qmake, qttools }:
  
  assert stdenv.lib.versionAtLeast libmlt.version "6.8.0";
  assert stdenv.lib.versionAtLeast mlt.version "6.8.0";
  
  mkDerivation rec {
    pname = "shotcut";
  
negative.code:     rev = "v${version}";
      sha256 = "1cl8ba1n0h450r4n5mfqmyjaxvczs3m19blwxslqskvmxy5my3cn";
    };
  
    patches = [ fixVaapiRendering1 fixVaapiRendering2 ];
  
    enableParallelBuilding = true;
    nativeBuildInputs = [ pkgconfig qmake ];
  