anchor.diff:      nativeVersion = "0.22-milestone-21";
       sha256 = "00h3z0vxc4hv31sc71gb88r8yabyqgz304wpr0bxhbx2d14f11mm";
       defaultJava = jdk17;
  +    # Gradle 7 ships some binaries that are only available for some platforms
  +    # See https://github.com/gradle/native-platform#supported-platforms
  +    supportedPlatforms =  [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" "x86_64-cygwin" "x86_64-windows" "i686-windows"  ];
     };
   
     gradle_6 = gen {
  
positive.code: rec {
    gen =
  
      { version, nativeVersion, sha256, defaultJava ? jdk8 }:
  
      { lib, stdenv, fetchurl, makeWrapper, unzip, java ? defaultJava
      , javaToolchains ? [ ], ncurses5, ncurses6 }:
  
negative.code:         changelog = "https://docs.gradle.org/${version}/release-notes.html";
          downloadPage = "https://gradle.org/next-steps/?version=${version}";
          license = licenses.asl20;
          platforms = if (supportedPlatforms != null) then supportedPlatforms else platforms.unix;
          maintainers = with maintainers; [ lorenzleutgeb liff ];
        };
      };
  