anchor.diff:      in ''
         runHook preInstall
   
  -      packagePath=$out/share/zoom-us
  -      mkdir -p $packagePath $out/bin
  +      mkdir -p $out/{bin,share/zoom-us}
   
  -      cp -ar ${files} $packagePath
  +      cp -ar ${files} $out/share/zoom-us
   
         # TODO Patch this somehow; tries to dlopen './libturbojpeg.so' from cwd
  -      ln -s $(readlink -e "${libjpeg_turbo.out}/lib/libturbojpeg.so") $packagePath/libturbojpeg.so
  -
  -      ln -s ${qtEnv}/bin/qt.conf $packagePath
  -
  -      makeWrapper $packagePath/zoom $out/bin/zoom-us \
  -        --prefix PATH : "${makeBinPath [ coreutils glib.dev pciutils procps qttools.dev utillinux ]}" \
  -        --prefix LD_PRELOAD : "${libv4l}/lib/libv4l/v4l2convert.so" \
  -        --run "cd $packagePath"
  +      ln -s $(readlink -e "${libjpeg_turbo.out}/lib/libturbojpeg.so") $out/share/zoom-us/libturbojpeg.so
   
         runHook postInstall
       '';
  
positive.code:     };
    };
  
    qtDeps = [
      qtbase qtdeclarative qtlocation qtquickcontrols qtquickcontrols2 qtscript
      qtwebchannel qtwebengine qtimageformats qtsvg qttools qtwayland
    ];
  
    qtEnv = env "zoom-us-qt-${qtbase.version}" qtDeps;
  
  in stdenv.mkDerivation {
    name = "zoom-us-${version}";
  
    src = srcs.${stdenv.hostPlatform.system};
  
    nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
  
    buildInputs = [
      dbus glib libGL libX11 libXfixes libuuid libxcb qtEnv libjpeg_turbo
    ] ++ qtDeps;
  
    runtimeDependencies = optional pulseaudioSupport libpulseaudio;
  
  
negative.code: { stdenv, fetchurl, mkDerivation, makeWrapper, makeDesktopItem, autoPatchelfHook
  , wrapQtAppsHook
  # Dynamic libraries
  , dbus, glib, libGL, libX11, libXfixes, libuuid, libxcb, qtbase, qtdeclarative
  , qtimageformats, qtlocation, qtquickcontrols, qtquickcontrols2, qtscript, qtsvg
  