anchor.diff:      (mkEnable unicode     "widec"       null)
       (mkEnable true        "ext-colors"  null)
       (mkEnable true        "ext-mouse"   null)
  +  ] ++ stdenv.lib.optionals stdenv.isCygwin [
  +    "--enable-sp-funcs"
  +    "--enable-term-driver"
  +    "--enable-const"
  +    "--enable-ext-colors"
  +    "--enable-ext-mouse"
  +    "--enable-reentrant"
  +    "--enable-colorfgbg"
  +    "--enable-tcap-names"
     ];
   
     # PKG_CONFIG_LIBDIR is where the *.pc files will be installed. If this
  
positive.code:     # Create curses compatability
      ln -svf libncursesw.so $out/lib/libcursesw.so
      ln -svf libncursesw.so $out/lib/libcurses.so
    '' else ''
      # Create a non-abi versioned config
      cfg=$(basename $out/bin/ncurses*-config)
      ln -svf $cfg $out/bin/ncurses-config
  
negative.code:   preConfigure = ''
      export PKG_CONFIG_LIBDIR="$out/lib/pkgconfig"
      mkdir -p "$PKG_CONFIG_LIBDIR"
    '' + stdenv.lib.optionalString stdenv.isCygwin ''
      sed -i -e 's,LIB_SUFFIX="t,LIB_SUFFIX=",' configure
    '';
  
    selfNativeBuildInput = true;
  