anchor.diff:  
       # Cleanup.
       case "$ARCH" in
  -        x86_64) rm -r tool/{i386,aarch64,mips64el};;
  -        i386) rm -r tool/{x86_64,aarch64,mips64el};;
  -        aarch64) rm -r tool/{x86_64,i386,mips64el};;
  -        mips64el) rm -r tool/{x86_64,i386,aarch64};;
  +        x86_64) rm -r {tool/,VentoyGUI.}{i386,aarch64,mips64el};;
  +        i386) rm -r {tool/,VentoyGUI.}{x86_64,aarch64,mips64el};;
  +        aarch64) rm -r {tool/,VentoyGUI.}{x86_64,i386,mips64el};;
  +        mips64el) rm -r {tool/,VentoyGUI.}{x86_64,i386,aarch64};;
       esac
       rm README
  +    rm tool/"$ARCH"/Ventoy2Disk.gtk2
   
       # Copy from "$src" to "$out".
       mkdir -p "$out"/bin "$VENTOY_PATH"
  
positive.code:   aarch64-linux = "aarch64";
    mipsel-linux = "mips64el";
  }.${stdenv.hostPlatform.system} or (throw "Unsupported platform ${stdenv.hostPlatform.system}");
  in stdenv.mkDerivation rec {
    pname = "ventoy-bin";
    version = "1.0.51";
  
    nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
    buildInputs = [ hexdump exfat dosfstools e2fsprogs xz util-linux bash parted ];
  
    src = fetchurl {
      url = "https://github.com/ventoy/Ventoy/releases/download/v${version}/ventoy-${version}-linux.tar.gz";
      sha256 = "81ae02a06b132b5965dd09c9b64e000a6dafa1d57e03d8564feefda14ef1ee02";
    };
    patches = [
      (fetchpatch {
  
negative.code:                     --prefix PATH : "${lib.makeBinPath buildInputs}" \
                      --run "cd '$VENTOY_PATH' || exit 1"
      done
    '' + lib.optionalString (withGtk3 || withQt5) ''
      echo "${defaultGuiType}" > "$VENTOY_PATH/ventoy_gui_type"
      makeWrapper "$VENTOY_PATH/VentoyGUI.$ARCH" "$out/bin/ventoy-gui" \
                  --prefix PATH : "${lib.makeBinPath buildInputs}" \
                  --run "cd '$VENTOY_PATH' || exit 1"
    '' + lib.optionalString (!withGtk3) ''
      rm "$out"/share/ventoy/tool/"$ARCH"/Ventoy2Disk.gtk3
    '' + lib.optionalString (!withQt5) ''
      rm "$out"/share/ventoy/tool/"$ARCH"/Ventoy2Disk.qt5
    '';
  
    meta = with lib; {
  