anchor.diff:    # ToDo: probably not all .la files are completely fixed, but it shouldn't matter
     postInstall = with stdenv.lib; ''
       mv -t "$drivers/lib/" \
  -  '' + optionalString enableExtraFeatures ''
  -      `#$out/lib/libXvMC*` \
  -      $out/lib/gbm $out/lib/libgbm* \
  -  '' + ''
  -      $out/lib/gallium-pipe \
  +      $out/lib/libXvMC* \
         $out/lib/libdricore* \
         $out/lib/libgallium* \
         $out/lib/vdpau \
  +      $out/lib/{bellagio,d3d} \
         $out/lib/libxatracker*
  +
  +    mv -t "$drivers/lib/dri/" \
  +      "$out"/lib/dri/*
  +    rmdir "$out/lib/dri"
   
       mkdir -p {$osmesa,$drivers}/lib/pkgconfig
       mv -t $osmesa/lib/ \
  
positive.code:   configureFlags = [
      "--sysconfdir=/etc"
      "--localstatedir=/var"
      "--with-clang-libdir=${clang}/lib"
      "--with-dri-driverdir=$(drivers)/lib/dri"
      "--with-dri-searchpath=${driverLink}/lib/dri"
  
  
negative.code:   ] ++ optional enableTextureFloats "--enable-texture-float"
      ++ optional grsecEnabled "--enable-glx-rts"; # slight performance degradation, enable only for grsec
  
    nativeBuildInputs = [ pkgconfig file ];
  
    propagatedBuildInputs = with xorg; [ libXdamage libXxf86vm ]
      ++ optional stdenv.isLinux libdrm;
  
    buildInputs = with xorg; [
      autoreconfHook intltool expat llvmPackages.llvm
      glproto dri2proto dri3proto presentproto
      libX11 libXext libxcb libXt libXfixes libxshmfence
      libffi wayland libvdpau libelf libXvMC libomxil-bellagio libva
      #libclc clang
    ] ++ optional stdenv.isLinux udev;
  
    enableParallelBuilding = true;
  