anchor.diff:        --replace 'rcc = os.path.join(qtbinpath, rcc_bin)' 'rcc = "${qtbase.dev}/libexec/rcc"'
   
       substituteInPlace src/cmake/linux.cmake \
  +      --replace '/etc/xdg/autostart' "$out/etc/xdg/autostart" \
  +      --replace '${"$"}{POLKIT_POLICY_DIR}' "$out/share/polkit-1/actions" \
  +      --replace '/usr/share/dbus-1' "$out/share/dbus-1" \
         --replace '${"$"}{SYSTEMD_UNIT_DIR}' "$out/lib/systemd/system"
  +
  +    substituteInPlace extension/CMakeLists.txt \
  +      --replace '/etc' "$out/etc"
   
       substituteInPlace src/connectionbenchmark/benchmarktaskdownload.cpp \
         --replace 'QT_VERSION >= 0x060400' 'false'
   
       ln -s '${netfilter-go-modules}' linux/netfilter/vendor
  +
  +    pushd extension/bridge
  +    cargoDepsCopy="$extensionBridgeDepsCopy" cargoSetupPostPatchHook
  +    popd
  +
  +    pushd signature
  +    cargoDepsCopy="$signatureDepsCopy" cargoSetupPostPatchHook
  +    popd
  +
  +    cargoSetupPostPatchHook() { true; }
     '';
   
     cmakeFlags = [
  
positive.code:     wrapQtAppsHook
    ];
  
    cargoDeps = rustPlatform.fetchCargoTarball {
      inherit src;
      name = "${pname}-${version}";
      preBuild = "cd ${cargoRoot}";
      hash = "sha256-lJfDLyoVDSFiZyWcBTI085MorWHPcNW4i7ua1+Ip3rA=";
    };
  
    postPatch = ''
      for file in linux/*.service linux/extra/*.desktop src/platforms/linux/daemon/*.service; do
  
negative.code:     "-DQT_LUPDATE_EXECUTABLE=${qttools.dev}/bin/lupdate"
      "-DQT_LRELEASE_EXECUTABLE=${qttools.dev}/bin/lrelease"
    ];
    dontFixCmake = true;
  
    qtWrapperArgs =
      [ "--prefix" "PATH" ":" (lib.makeBinPath [ wireguard-tools ]) ];
  