anchor.diff:      libxrandr
       libxrender
       xorg.libXxf86vm
  -    mesa
  +    opengl-dummy
       randrproto
       renderproto
       xf86vidmodeproto
       xproto
  +  ];
  +
  +  cmakeFlags = [
  +    "-DFREEGLUT_BUILD_DEMOS=OFF"
  +    # FIXME: is glesv1 or glesv2?
  +    "-DFREEGLUT_GLES=${boolOn (
  +      opengl-dummy.egl
  +      && opengl-dummy.glesv1
  +      && opengl-dummy.glesv2)}"
     ];
   
     meta = with lib; {
  
positive.code: , libx11
  , libxrandr
  , libxrender
  , mesa
  , randrproto
  , renderproto
  , xf86vidmodeproto
  
negative.code: , xproto
  }:
  
  let
    inherit (lib)
      boolOn;
  in
  stdenv.mkDerivation rec {
    name = "freeglut-3.0.0";
  
  