anchor.diff:    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 
  +    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
  
positive.code:     make TIGERVNC_SRCDIR=`pwd`/../.. install
    '';
  
    buildInputs =
      [ libX11 libXext gettext libICE libXtst libXi libSM
        libtool nasm utilmacros fontutil libgcrypt gnutls pam
      ];
    
    buildNativeInputs = 
      [ autoconf automake cvs ] ++ xorgserver.buildNativeInputs;
  
    propagatedBuildNativeInputs = xorgserver.propagatedBuildNativeInputs;
  
  
negative.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, flex, bison
  , fixesproto, damageproto, xcmiscproto, bigreqsproto, randrproto, renderproto
  , fontsproto, videoproto, compositeproto, scrnsaverproto, resourceproto
  , libxkbfile, libXfont, libpciaccess
  }:
  
  
  
  with stdenv.lib;
  
  