anchor.diff:  , file, expat, libdrm, xorg, wayland, wayland-protocols, openssl
   , llvmPackages, libffi, libomxil-bellagio, libva
   , libelf, libvdpau, valgrind-light, python2
  +, libglvnd
   , grsecEnabled ? false
   , enableRadv ? true
   # Texture floats are patented, see docs/patents.txt, so we don't enable them for full Mesa.
  
positive.code:     (enableFeature grsecEnabled "glx-rts")
      (enableFeature stdenv.isLinux "dri3")
      (enableFeature stdenv.isLinux "nine") # Direct3D in Wine
      "--enable-dri"
      "--enable-driglx-direct"
      "--enable-gles1"
  
negative.code:     valgrind-light python2
    ];
  
    enableParallelBuilding = true;
    doCheck = false;
  
    installFlags = [
      "sysconfdir=\${out}/etc"
      "localstatedir=\${TMPDIR}"
      "vendorjsondir=\${out}/share/glvnd/egl_vendor.d"
    ];
  
    # TODO: probably not all .la files are completely fixed, but it shouldn't matter;
  