anchor.diff:  , enableGeoLocation ? true
   , geoclue2
   , sqlite
  -, enableGtk2Plugins ? false
  -, gtk2 ? null
   , enableGLES ? true
   , gst-plugins-base
   , gst-plugins-bad
  
positive.code: }:
  
  assert enableGeoLocation -> geoclue2 != null;
  assert enableGtk2Plugins -> gtk2 != null;
  assert stdenv.isDarwin -> !enableGtk2Plugins;
  
  with stdenv.lib;
  
  
negative.code:     "-DENABLE_X11_TARGET=OFF"
      "-DUSE_ACCELERATE=0"
      "-DUSE_SYSTEM_MALLOC=ON"
    ] ++ optional (stdenv.isLinux && enableGLES) "-DENABLE_GLES2=ON";
  
    postPatch = ''
      patchShebangs .
  