anchor.diff:      ] ++ (if enableInfinality then [
         ./004_add-fontconfig.patch
         ./005_enable-infinality.patch
  -    ] else []);
  +    ] else [ ]);
   
       preConfigure = ''
         chmod +x configure
  -      substituteInPlace configure --replace /bin/bash "$shell"
  -      substituteInPlace hotspot/make/linux/adlc_updater --replace /bin/sh "$shell"
  +      sed -i configure \
  +        -e "s,/bin/bash,$shell,"
  +      sed -i hotspot/make/linux/adlc_updater \
  +        -e "s,/bin/sh,$shell,"
       '';
   
       configureFlags = [
  
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: 
      outputs = [ "out" "jre" ];
  
      buildInputs = [
        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
          mv $p-* $(ls | grep '^jdk8u')/$p
        done
        cd $(ls | grep '^jdk8u')
  