anchor.diff:  { stdenv, fetchurl, libX11, libXext, gettext, libICE, libXtst, libXi, libSM, xorgserver
   , autoconf, automake, cvs, libtool, nasm, utilmacros, pixman, xkbcomp, xkeyboard_config
  -, fontDirectories, fontutil, libgcrypt, gnutls, pam }:
  +, fontDirectories, fontutil, libgcrypt, gnutls, pam, flex, bison
  +, fixesproto, damageproto, xcmiscproto, bigreqsproto, randrproto, renderproto
  +, fontsproto, videoproto, compositeproto, scrnsaverproto, resourceproto
  +, libxkbfile, libXfont, libpciaccess
  +}:
  +
  +
   
   with stdenv.lib;
   
  
positive.code:   inherit fontDirectories;
  
    patchPhase = ''
      sed -i -e 's,$(includedir)/pixman-1,${pixman}/include/pixman-1,' unix/xserver/hw/vnc/Makefile.am
      sed -i -e '/^$pidFile/a$ENV{XKB_BINDIR}="${xkbcomp}/bin";' unix/vncserver 
      sed -i -e '/^\$cmd \.= " -pn";/a$cmd .= " -xkbdir ${xkeyboard_config}/etc/X11/xkb";' unix/vncserver 
  
      fontPath=
      for i in $fontDirectories; do
  
negative.code:     make TIGERVNC_SRCDIR=`pwd`/../.. install
    '';
  
    crossAttrs = {
      buildInputs = (map (x : x.hostDrv) (buildInputs ++ [
        fixesproto damageproto xcmiscproto bigreqsproto randrproto renderproto
        fontsproto videoproto compositeproto scrnsaverproto resourceproto
        libxkbfile libXfont libpciaccess
      ]));
    };
  
    buildInputs =
      [ libX11 libXext gettext libICE libXtst libXi libSM
        nasm libgcrypt gnutls pam pixman
      ];
    
    buildNativeInputs = 
      [ autoconf automake cvs utilmacros fontutil libtool flex bison ] 
        ++ xorgserver.buildNativeInputs;
  
    propagatedBuildNativeInputs = xorgserver.propagatedBuildNativeInputs;
  
  