anchor.diff:      ] ++ lib.optionals (!headless && enableGnome2) [
         gtk2 gnome_vfs GConf glib
       ];
  -
  -    # move the seven other source dirs under the main jdk8u directory,
  -    # with version suffixes removed, as the remainder of the build will expect
  -    prePatch = ''
  -      mainDir=$(find . -maxdepth 1 -name jdk8u\*);
  -      find . -maxdepth 1 -name \*jdk\* -not -name jdk8u\* | awk -F- '{print $1}' | while read p; do
  -        mv $p-* $mainDir/$p
  -      done
  -      cd $mainDir
  -    '';
   
       patches = [
         ./fix-java-home-jdk8.patch
  
positive.code: { stdenv, lib, fetchurl, pkg-config, lndir, bash, cpio, file, which, unzip, zip
  , cups, freetype, alsa-lib, cacert, perl, liberation_ttf, fontconfig, zlib
  , libX11, libICE, libXrender, libXext, libXt, libXtst, libXi, libXinerama, libXcursor, libXrandr
  , libjpeg, giflib
  
negative.code:     aarch64-linux = "aarch64";
    }.${stdenv.system} or (throw "Unsupported platform");
  
    update = "322";
    build = "ga";
  
    openjdk8 = stdenv.mkDerivation rec {
      pname = "openjdk" + lib.optionalString headless "-headless";
      version = "8u${update}-${build}";
  
      src = fetchFromGitHub {
        owner = "openjdk";
        repo = "jdk8u";
        rev = "jdk${version}";
        sha256 = "sha256-e39Yv+NDQG7z6fGmpKEnkKd5MoHZ50SXlq/Q7lzWcDA=";
      };
      outputs = [ "out" "jre" ];
  
      nativeBuildInputs = [ pkg-config lndir unzip ];
  