anchor.diff:        $out/lib/libxatracker* \
         $out/lib/libvulkan_*
   
  +    # Move other drivers to a separate output
       mv $out/lib/dri/* $drivers/lib/dri # */
       rmdir "$out/lib/dri"
  +    mv $out/lib/lib*_mesa* $drivers/lib
   
       # move libOSMesa to $osmesa, as it's relatively big
       mkdir -p {$osmesa,$drivers}/lib/
  
positive.code:     ++ optional stdenv.isLinux libdrm;
  
    buildInputs = with xorg; [
      expat llvmPackages.llvm
      glproto dri2proto dri3proto presentproto
      libX11 libXext libxcb libXt libXfixes libxshmfence
      libffi wayland wayland-protocols libvdpau libelf libXvMC
  
negative.code:     sed "/^libdir=/s,$out,$osmesa," -i $osmesa/lib/libOSMesa*.la
  
      # set the default search path for DRI drivers; used e.g. by X server
      substituteInPlace "$dev/lib/pkgconfig/dri.pc" --replace '$(drivers)' "${libglvnd.driverLink}"
  
      # remove GLES libraries; they are provided by libglvnd
      rm $out/lib/lib{GLESv1_CM,GLESv2}.*
  
      # remove pkgconfig files for GL/GLES/EGL; they are provided by libGL.
      rm $dev/lib/pkgconfig/{gl,egl,glesv1_cm,glesv2}.pc
  
      # move vendor files
      mv $out/share/ $drivers/
  
      # Update search path used by glvnd
      for js in $drivers/share/glvnd/egl_vendor.d/*.json; do
        substituteInPlace "$js" --replace '"libEGL_' '"'"$drivers/lib/libEGL_"
      done
    '' + optionalString (vulkanDrivers != []) ''
      # Update search path used by Vulkan (it's pointing to $out but
      # drivers are in $drivers)
      for js in $drivers/share/vulkan/icd.d/*.json; do
  