anchor.diff:      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
  -      libtool nasm utilmacros fontutil libgcrypt gnutls pam
  +      nasm libgcrypt gnutls pam pixman
       ];
     
     buildNativeInputs = 
  -    [ autoconf automake cvs ] ++ xorgserver.buildNativeInputs;
  +    [ autoconf automake cvs utilmacros fontutil libtool flex bison ] 
  +      ++ xorgserver.buildNativeInputs;
   
     propagatedBuildNativeInputs = xorgserver.propagatedBuildNativeInputs;
   
  
positive.code: { 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 }:
  
  with stdenv.lib;
  
  
negative.code:   inherit fontDirectories;
  
    patchPhase = ''
      sed -i -e 's,$(includedir)/pixman-1,${if stdenv ? cross then pixman.hostDrv else pixman}/include/pixman-1,' unix/xserver/hw/vnc/Makefile.am
      sed -i -e '/^$pidFile/a$ENV{XKB_BINDIR}="${if stdenv ? cross then xkbcomp.hostDrv else xkbcomp}/bin";' unix/vncserver 
      sed -i -e '/^\$cmd \.= " -pn";/a$cmd .= " -xkbdir ${if stdenv ? cross then xkeyboard_config.hostDrv else xkeyboard_config}/etc/X11/xkb";' unix/vncserver 
  
      fontPath=
      for i in $fontDirectories; do
  