anchor.diff:  
       outputs = [ "out" "jre" ];
   
  -    # Enabling optimizations breaks compilation
  -    fortifySource = false;
  -    optimize = false;
  -
       buildInputs = [
  -      cpio file which unzip zip
  -      xorg.xproto xorg.inputproto xorg.libICE xorg.xextproto xorg.renderproto
  -      xorg.libX11 xorg.libSM xorg.libXt xorg.libXext xorg.libXrender xorg.libXtst
  -      xorg.kbproto xorg.libXi xorg.libXinerama xorg.libXcursor xorg.lndir
  -      cups freetype alsa-lib perl liberation_ttf fontconfig bootjdk zlib
  +      alsa-lib
  +      bootjdk
  +      cpio
  +      cups
  +      file
  +      fontconfig
  +      freetype
  +      liberation_ttf
  +      perl
  +      which
  +      unzip
  +      xorg.inputproto
  +      xorg.kbproto
  +      xorg.libICE
  +      xorg.libSM
  +      xorg.libX11
  +      xorg.libXcursor
  +      xorg.libXext
  +      xorg.libXi
  +      xorg.libXinerama
  +      xorg.libXrender
  +      xorg.libXt
  +      xorg.libXtst
  +      xorg.lndir
  +      xorg.renderproto
  +      xorg.xextproto
  +      xorg.xproto
  +      zip
  +      zlib
       ];
   
       prePatch = ''
  -      ls | grep jdk | grep -v '^jdk8u' | awk -F- '{print $1}' | while read p; do
  +      ls | grep jdk | grep -v '^jdk8u' | awk -F- '{print $1}' | \
  +      while read p; do
           mv $p-* $(ls | grep '^jdk8u')/$p
         done
         cd $(ls | grep '^jdk8u')
  
positive.code: { stdenv, fetchurl, cpio, file, which, unzip, zip, xorg, cups, freetype
  , alsa-lib, bootjdk, cacert, perl, liberation_ttf, fontconfig, zlib
  , setJavaClassPath
  , minimal ? false
  , enableInfinality ? true # font rendering patch
  
negative.code:       done
      '';
  
      # Enabling optimizations breaks compilation
      fortifySource = false;
      optimize = false;
  
      # Explicitly does not support parallel building at all
      parallelBuild = false;
      parallelCheck = false;
      parallelInstall = false;
  
      passthru = {
        inherit architecture;
        home = "${openjdk8}/lib/openjdk";
      };
  
      meta = with stdenv.lib; {
        description = "The open-source Java Development Kit";
        homepage = http://openjdk.java.net/;
        license = licenses.gpl2;
        maintainers = with maintainers; [
          wkennington
        ];
        platforms = with platforms;
          x86_64-linux;
      };
    };
  in openjdk8
  