anchor.diff:            };
     openjdk8 = stdenv.mkDerivation {
     name = "openjdk-8u${update}b${build}";
  -  srcs = [jdk8 langtools hotspot corba jdk jaxws jaxp nashorn];
  +  srcs = [ jdk8 langtools hotspot corba jdk jaxws jaxp nashorn ];
     outputs = [ "out" "jre" ];
     buildInputs = [ cpio file which unzip zip
                     xorg.libX11 xorg.libXt xorg.libXext xorg.libXrender xorg.libXtst
                     xorg.libXi xorg.libXinerama xorg.libXcursor xorg.lndir
  -                  cups freetype alsaLib openjdk perl ];
  +                  cups freetype alsaLib openjdk perl liberation_ttf fontconfig ];
     setSourceRoot = ''
       sourceRoot="jdk8u${update}-jdk8u${update}-b${build}";
     '';
  
positive.code:     # Remove crap from the installation.
      rm -rf $out/lib/openjdk/demo $out/lib/openjdk/sample
  
      # Move the JRE to a separate output.
      mv $out/lib/openjdk/jre $jre/lib/openjdk/
      mkdir $out/lib/openjdk/jre
      lndir $jre/lib/openjdk/jre $out/lib/openjdk/jre
  
      rm -rf $out/lib/openjdk/jre/bina
      ln -s $out/lib/openjdk/bin $out/lib/openjdk/jre/bin
  
      # Set PaX markings
      exes=$(file $out/lib/openjdk/bin/* $jre/lib/openjdk/jre/bin/* 2> /dev/null | grep -E 'ELF.*(executable|shared object)' | sed -e 's/: .*$//')
      echo "to mark: *$exes*"
      for file in $exes; do
        echo "marking *$file*"
  
negative.code:     "--with-build-number=b${build}"
      "--with-milestone=fcs"
    ];
    NIX_LDFLAGS= "-lfontconfig";
    buildFlags = "DEBUG_BINARIES=true all";
    installPhase = ''
      mkdir -p $out/lib/openjdk $out/share $jre/lib/openjdk
  
      cp -av build"/"*/images/j2sdk-image"/"* $out/lib/openjdk
  
      # Move some stuff to top-level.
      mv $out/lib/openjdk/include $out/include
      mv $out/lib/openjdk/man $out/share/man
  
      # jni.h expects jni_md.h to be in the header search path.
      ln -s $out/include/linux"/"*_md.h $out/include/
  
      # Remove some broken manpages.
      rm -rf $out/share/man/ja*
  