anchor.diff: -{ stdenv, fetchurl, cpio, file, which, unzip, zip, xorg, cups, freetype
  -, alsa-lib, bootjdk, cacert, perl, liberation_ttf, fontconfig, zlib
  +{ stdenv
  +, fetchurl
  +
  +, alsa-lib
  +, bootjdk
  +, cacert
  +, cpio
  +, cups
  +, file
  +, fontconfig
  +, freetype
  +, liberation_ttf
  +, perl
  +, unzip
  +, which
  +, xorg
  +, zip
  +, zlib
  +
   , setJavaClassPath
   , minimal ? false
   , enableInfinality ? true # font rendering patch
  
positive.code: 
      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
      ];
  
      prePatch = ''
        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')
  
negative.code:     ] ++ (if enableInfinality then [
        ./004_add-fontconfig.patch
        ./005_enable-infinality.patch
      ] else [ ]);
  
      preConfigure = ''
        chmod +x configure
        sed -i configure \
          -e "s,/bin/bash,$shell,"
        sed -i hotspot/make/linux/adlc_updater \
          -e "s,/bin/sh,$shell,"
      '';
  
      configureFlags = [
  