anchor.diff:      "--enable-dri3"
       "--enable-glx"
       "--disable-osmesa"
  -    "--enable-gallium-osmesa" # used by wine
  +    "--enable-gallium-osmesa"
       "--enable-egl"
       "--enable-xa" # used in vmware driver
       "--enable-gbm"
  
positive.code:     "--localstatedir=/var"
      "--enable-largefile"
      # slight performance degradation, enable only for grsec
      (enFlag "glx-rts" grsecEnabled null)
      "--disable-debug"
      "--disable-profile"
      (enFlag "libglvnd" (libglvnd != null) null)
      "--disable-mangling"
      (enFlag "texture-float" enableTextureFloats null)
      "--enable-asm"
      # TODO: selinux support
      "--disable-selinux"
  
negative.code: 
  let
    inherit (stdenv.lib)
      boolEn
      head
      optional
      optionals
      optionalString
      splitString;
  
    # this is the default search path for DRI drivers
    driverSearchPath = "/run/opengl-driver-${stdenv.targetSystem}";
  in
  stdenv.mkDerivation rec {
    name = "mesa-noglu-${version}";
    version = "12.0.1";
  