anchor.diff:    ] ++ optional enableTextureFloats "--enable-texture-float"
       ++ optional grsecEnabled "--enable-glx-rts"; # slight performance degradation, enable only for grsec
   
  -  nativeBuildInputs = [ pkgconfig python makedepend file flex bison pythonPackages.Mako ];
  +  nativeBuildInputs = [ pkgconfig file ];
   
     propagatedBuildInputs = with xorg; [ libXdamage libXxf86vm ]
  -    ++ optionals stdenv.isLinux [ libdrm ];
  +    ++ optional stdenv.isLinux libdrm;
   
     buildInputs = with xorg; [
  -    autoreconfHook intltool expat libxml2Python llvmPackages.llvm
  +    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
  +    #libclc clang
     ] ++ optional stdenv.isLinux udev;
   
     enableParallelBuilding = true;
  
positive.code: { stdenv, fetchurl, fetchpatch, pkgconfig, intltool, flex, bison, autoreconfHook, substituteAll
  , python, libxml2Python, file, expat, makedepend, pythonPackages
  , libdrm, xorg, wayland, udev, llvmPackages, libffi, libomxil-bellagio
  , libvdpau, libelf, libva, libclc
  , grsecEnabled
  , enableTextureFloats ? false # Texture floats are patented, see docs/patents.txt
  
negative.code:   # ToDo: probably not all .la files are completely fixed, but it shouldn't matter
    postInstall = with stdenv.lib; ''
      mv -t "$drivers/lib/" \
        $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/ \
  