anchor.diff:        --replace 'APP_DATA="$FILEBOT_HOME/data/$(id -u)"' 'APP_DATA=''${XDG_DATA_HOME:-$HOME/.local/share}/filebot/data' \
         --replace '$FILEBOT_HOME/data/.license' '$APP_DATA/.license'
       wrapProgram $out/opt/filebot.sh \
  -      --prefix PATH : ${lib.makeBinPath [ openjdk11 ]}
  +      --prefix PATH : ${lib.makeBinPath [ openjdk17 ]}
       # Expose the binary in bin to make runnable.
       ln -s $out/opt/filebot.sh $out/bin/filebot
     '';
  
positive.code: 
  stdenv.mkDerivation rec {
    pname = "filebot";
    version = "4.9.4";
  
    src = fetchurl {
      url = "https://web.archive.org/web/20210326102451/https://get.filebot.net/filebot/FileBot_${version}/FileBot_${version}-portable.tar.xz";
      sha256 = "sha256-fz0B9P/UBrlKGPZkheMd/4cFnWHt+brS3zRTv4nVt9o=";
    };
  
    unpackPhase = "tar xvf $src";
  
negative.code: { lib, stdenv, fetchurl, openjdk17, makeWrapper, autoPatchelfHook
  , zlib, libzen, libmediainfo, curl, libmms, glib
  }:
  
  