anchor.diff:      "--enable-shared"
       "--with-threads"
       "--enable-unicode=ucs4"
  -  ] ++ optionals stdenv.isCygwin [
  +  ] ++ optionals hostPlatform.isCygwin [
       "--with-system-ffi"
       "--with-system-expat"
       "ac_cv_func_bind_textdomain_codeset=yes"
  
positive.code: 
        ./glibc-2.25-enosys.patch
  
      ] ++ optionals stdenv.isCygwin [
        ./2.5.2-ctypes-util-find_library.patch
        ./2.5.2-tkinter-x11.patch
        ./2.6.2-ssl-threads.patch
  
negative.code:     "--disable-toolbox-glue"
    ];
  
    postConfigure = if hostPlatform.isCygwin then ''
      sed -i Makefile -e 's,PYTHONPATH="$(srcdir),PYTHONPATH="$(abs_srcdir),'
    '' else null;
  
    buildInputs =
      optional (stdenv ? cc && stdenv.cc.libc != null) stdenv.cc.libc ++
      [ bzip2 openssl zlib ]
      ++ optionals hostPlatform.isCygwin [ expat libffi ]
      ++ [ db gdbm ncurses sqlite readline ]
      ++ optionals x11Support [ tcl tk xlibsWrapper libX11 ]
      ++ optionals stdenv.isDarwin [ CF configd ];
  