anchor.diff:      "--enable-raw-serial=no" ]
       # Boolean flags
       ++ stdenv.lib.optional termSupport "--with-term"
  -    ++ stdenv.lib.optional sdlSupport "--with-sdl"
  +    ++ stdenv.lib.optional sdlSupport "--with-sdl2"
       ++ stdenv.lib.optional wxSupport "--with-wx"
       ++ stdenv.lib.optional largefile "--enable-largefile"
       ++ stdenv.lib.optional idleHack "--enable-idle-hack"
  
positive.code: , pkgconfig, libtool
  , gtk, mesa, readline, libX11, libXpm
  , docbook_xml_dtd_45, docbook_xsl
  , sdlSupport ? true, SDL ? null
  , termSupport ? true , ncurses ? null
  , wxSupport ? false, wxGTK ? null # Warning! Broken
  # Optional, undocumented dependencies
  
negative.code: , curlSupport ? false, curl ? null
  }:
  
  assert sdlSupport -> (SDL2 != null);
  assert termSupport -> (ncurses != null);
  assert wxSupport -> (gtk != null && wxGTK != null);
  assert wgetSupport -> (wget != null);
  