anchor.diff:  , mailcap, mimetypesSupport ? true
   , ncurses
   , openssl
  -, openssl_1_1
   , readline
   , sqlite
   , tcl ? null, tk ? null, tix ? null, libX11 ? null, xorgproto ? null, x11Support ? false
  
positive.code:     "--with-threads"
    ] ++ optionals (sqlite != null && isPy3k) [
      "--enable-loadable-sqlite-extensions"
    ] ++ optionals (openssl' != null) [
      "--with-openssl=${openssl'.dev}"
    ] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
      "ac_cv_buggy_getaddrinfo=no"
      # Assume little-endian IEEE 754 floating point when cross compiling
  
negative.code:   ];
  
    buildInputs = filter (p: p != null) ([
      zlib bzip2 expat xz libffi gdbm sqlite readline ncurses openssl ]
      ++ optionals x11Support [ tcl tk libX11 xorgproto ]
      ++ optionals (bluezSupport && stdenv.isLinux) [ bluez ]
      ++ optionals stdenv.isDarwin [ configd ])
  