anchor.diff:  
     configureFlags = [
       "--disable-rpath-hacks"
  -    (lib.withFeature withLibrary "libtool")
  +    "--${if withLibrary then "with" else "without"}-libtool"
  +    "--with-libtool-opts=${lib.optionalString enableShared "-shared"}"
       "--with-ncurses${lib.optionalString unicodeSupport "w"}"
  -    "--with-libtool-opts=${lib.optionalString enableShared "-shared"}"
     ];
   
     installTargets = [
  
positive.code: { lib
  , stdenv
  , fetchurl
  , ncurses
  , withLibrary ? false, libtool
  , unicodeSupport ? true
  , enableShared ? !stdenv.isDarwin
  }:
  
  assert withLibrary -> libtool != null;
  assert unicodeSupport -> ncurses.unicodeSupport && ncurses != null;
  
  stdenv.mkDerivation rec {
    pname = "dialog";
    version = "1.3-20211214";
  
    src = fetchurl {
      url = "ftp://ftp.invisible-island.net/dialog/${pname}-${version}.tgz";
      hash = "sha256-zCll4FxqjDcHCza1ZBTqpWDfjYfyzqIXWeKJUOmyeks=";
    };
  
    buildInputs = [
  
negative.code:     maintainers = with maintainers; [ AndersonTorres spacefrogg ];
      inherit (ncurses.meta) platforms;
    };
  })
  