anchor.diff:        inherit libstdcpp5;
       }
     else
  -    {}
  +    { libPath =  [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi xlibs.libXp xlibs.libXt]; }
   ))
   //
     {
  
positive.code: 
  (stdenv.mkDerivation ({
    name =
      if installjdk then "jdk-1.6.0_4" else "jre-1.6.0_4";
  
    src =
      if stdenv.system == "i686-linux" then
        fetchurl {
          url = http://download.java.net/dlj/binaries/jdk-6u4-dlj-linux-i586.bin;
          sha256 = "955186f497a50106cd1788fcaf032eedc560985826c8a6c3cb7ab43220cad23c";
        }
      else if stdenv.system == "x86_64-linux" then
        fetchurl {
          url = http://download.java.net/dlj/binaries/jdk-6u4-dlj-linux-amd64.bin;
          sha256 = "be0e21402a79c5b6cd6c96d34451bcc365619cd063930f3ca1c1abe2ee5dbf43";
        }
      else
        abort "jdk requires i686-linux or x86_64 linux";
  
negative.code:       abort "jdk requires i686-linux or x86_64 linux";
  
    buildInputs = [unzip makeWrapper];
    
    /**
     * libXt is only needed on amd64
     */
    libraries =
      (if swingSupport then [xlibs.libX11 xlibs.libXext xlibs.libXtst xlibs.libXi xlibs.libXp xlibs.libXt] else []);
  
    inherit pluginSupport;
  } // (
  