anchor.diff:      sed -i 's/com.github.anuken:packr:-SNAPSHOT/com.github.anuken:packr:034efe51781d2d8faa90370492133241bfb0283c/' build.gradle
     '';
   
  +  # The default one still uses jdk8 (#89731)
  +  gradle_6 = (gradleGen.override (old: { java = jdk14; })).gradle_6_7;
  +
     # fake build to pre-download deps into fixed-output derivation
     deps = stdenv.mkDerivation {
       pname = "${pname}-deps";
       inherit version src postPatch;
  -    nativeBuildInputs = [ gradle_5 perl ];
  +    nativeBuildInputs = [ gradle_6 perl ];
       # Here we build both the server and the client so we only have to specify
       # one hash for 'deps'. Deps can be garbage collected after the build,
       # so this is not really an issue.
  
positive.code:   # Note: when raising the version, ensure that all SNAPSHOT versions in
    # build.gradle are replaced by a fixed version
    # (the current one at the time of release) (see postPatch).
    version = "104.6";
    buildVersion = makeBuildVersion version;
  
    src = fetchFromGitHub {
      owner = "Anuken";
      repo = "Mindustry";
      rev = "v${version}";
      sha256 = "1crdfiymaz57gnma6bmdcsnbl635nhjdndrjv467c4xfq9vvap2i";
    };
  
    desktopItem = makeDesktopItem {
  
negative.code:     install -Dm644 desktop/build/libs/Mindustry.jar $out/share/mindustry.jar
      mkdir -p $out/bin
      makeWrapper ${jre}/bin/java $out/bin/mindustry \
        ${stdenv.lib.optionalString stdenv.isLinux "--prefix LD_LIBRARY_PATH : ${alsaLib}/lib"} \
        --add-flags "-jar $out/share/mindustry.jar"
      install -Dm644 core/assets/icons/icon_64.png $out/share/icons/hicolor/64x64/apps/mindustry.png
      install -Dm644 ${desktopItem}/share/applications/Mindustry.desktop $out/share/applications/Mindustry.desktop
  