anchor.diff:        substituteInPlace \
           qtbase/src/plugins/platforminputcontexts/compose/generator/qtablegenerator.cpp \
           --replace "@libX11@" "${libX11.out}"
  -    ''
  -    + lib.optionalString gtkStyle ''
  -      substituteInPlace qtbase/src/widgets/styles/qgtk2painter.cpp --replace "@gtk@" "${gtk.out}"
  -      substituteInPlace qtbase/src/widgets/styles/qgtkstyle_p.cpp \
  -        --replace "@gtk@" "${gtk.out}" \
  -        --replace "@gnome_vfs@" "${gnome_vfs.out}" \
  -        --replace "@libgnomeui@" "${libgnomeui.out}" \
  -        --replace "@gconf@" "${GConf.out}"
       ''
       + lib.optionalString mesaSupported ''
         substituteInPlace \
  
positive.code: 
    patches =
      copyPathsToStore (lib.readPathsFromFile ./. ./series)
      ++ lib.optional gtkStyle ./dlopen-gtkstyle.patch
      ++ lib.optional decryptSslTraffic ./decrypt-ssl-traffic.patch
      ++ lib.optional mesaSupported [ ./dlopen-gl.patch ./mkspecs-libgl.patch ];
  
  
negative.code: , zlib, libjpeg, libpng, libtiff, sqlite, icu
  
  , coreutils, bison, flex, gdb, gperf, lndir, ruby
  , patchelf, perl, pkgconfig, python
  
  # optional dependencies
  , cups ? null
  