anchor.diff:  , fetchTritonPatch
   , fetchurl
   , gettext
  +, lib
   
   , expat
   , less
  
positive.code: }:
  
  let
    inherit (stdenv.lib)
      wtFlag;
  in
  
  stdenv.mkDerivation rec {
    name = "lftp-4.7.3";
  
    src = fetchurl {
      urls = [
        "https://lftp.yar.ru/ftp/${name}.tar.bz2"
        "https://lftp.yar.ru/ftp/old/${name}.tar.bz2"
      ];
      sha256 = "4c75f797717c8de614794795926a7b61bb67d2fea598d3bd3f463d837a62551a";
    };
  
    nativeBuildInputs = [
  
negative.code:     "--enable-ipv6"
      "--without-debug"
      "--without-profiling"
      "--${boolWt (stdenv.cc.isGNU)}-gnu-ld"
      #"--with-pager=${less}"
      # TODO: dante socks proxy support
      "--without-socks"
      "--without-socks5"
      #"--${boolWt (dante != null)}-socksdante"
      "--without-socksdante"
      "--with-modules"
      #"--with-sysroot"
      "--without-gnutls"
      "--${boolWt (openssl != null)}-openssl${
        boolString (openssl != null) "=${openssl}" ""}"
      "--without-included-regex"
      "--with-libresolv"
      "--${boolWt (readline != null)}-readline${
        boolString (readline != null) "=${readline}" ""}"
      "--${boolWt (zlib != null)}-zlib${
        boolString (zlib != null) "=${zlib}" ""}"
      "--${boolWt (expat != null)}-expat${
        boolString (expat != null) "=${expat}" ""}"
      # TODO
      #"--with-dnssec-local-validation"
      "--${boolWt (libidn != null)}-libidn"
    ];
  
    meta = with lib; {
      description = "A ftp/sftp/http/https/torrent client & file transfer program";
      homepage = https://lftp.yar.ru/;
      license = licenses.gpl3;
  