anchor.diff:  , libelf                      # optional, for link-time optimizations (LTO)
   , cloog ? null, isl ? null # optional, for the Graphite optimization framework.
   , zlib ? null, boehmgc ? null
  -, zip ? null, unzip ? null, pkgconfig ? null, gtk ? null, libart_lgpl ? null
  +, zip ? null, unzip ? null, pkgconfig ? null
  +, gtk ? null, libart_lgpl ? null
   , libX11 ? null, libXt ? null, libSM ? null, libICE ? null, libXtst ? null
   , libXrender ? null, xproto ? null, renderproto ? null, xextproto ? null
   , libXrandr ? null, libXi ? null, inputproto ? null, randrproto ? null
  +, x11Support ? langJava
   , gnatboot ? null
   , enableMultilib ? false
   , enablePlugin ? true             # whether to support user-supplied plug-ins
  
positive.code: in
  
  # We need all these X libraries when building AWT with GTK+.
  assert gtk != null -> (filter (x: x == null) xlibs) == [];
  
  stdenv.mkDerivation ({
    name = "${name}${if stripped then "" else "-debug"}-${version}" + crossNameAddon;
  
negative.code:       xproto renderproto xextproto inputproto randrproto
      ];
  
      javaAwtGtk = langJava && x11Support;
  
      /* Platform flags */
      platformFlags = let
  