anchor.diff:  , xdg-utils, zip, unzip, gzip, bzip2, gnutar, p7zip, xz
   , IOKit, Carbon, Cocoa, AudioToolbox, OpenGL
   , withTTYX ? true, libX11
  -, withGUI ? true, wxGTK30, wxmac
  +, withGUI ? true, wxGTK32
   , withUCD ? true, libuchardet
   
   # Plugins
  
positive.code: , withPython ? false, python3Packages
  }:
  
  let
    wxWidgets = (if stdenv.isDarwin then wxmac else wxGTK30);
  in
  stdenv.mkDerivation rec {
    pname = "far2l";
    version = "2.4.0";
  
    src = fetchFromGitHub {
      owner = "elfmz";
      repo = "far2l";
      rev = "v_${version}";
      sha256 = "sha256-nfoAElPLQ97lj65MBX4JMEdgTFbkdEbR1BazYZgV/lg=";
    };
  
    patches = [ ./python_prebuild.patch ];
  
negative.code:   nativeBuildInputs = [ cmake ninja pkg-config m4 makeWrapper ];
  
    buildInputs = lib.optional withTTYX libX11
      ++ lib.optional withGUI wxGTK32
      ++ lib.optional withUCD libuchardet
      ++ lib.optionals withColorer [ spdlog xercesc ]
      ++ lib.optionals withMultiArc [ libarchive pcre ]
  