diff options
author | Thiago Kenji Okada <thiagokokada@gmail.com> | 2023-09-26 13:03:23 +0100 |
---|---|---|
committer | Thiago Kenji Okada <thiagokokada@gmail.com> | 2023-09-27 10:25:44 +0100 |
commit | 45eff9d9c7dbd2a907da9e66518459e1f163153f (patch) | |
tree | 6ff2f7d463d01d9beaa9c56bfbb5123659f1b316 /pkgs/development/compilers/graalvm/community-edition/update.sh | |
parent | 3bab155d848b693afa302ba98f99ca091c02fddf (diff) |
graalvm-ce: 22.3.1 -> 21.0.0
This initially may look like a downgrade, but this is caused by how upstream is tagging versions. Before they would have the GraalVM having its own version (e.g. 22.3.1), and each version would support multiple JVM versions (e.g. 11, 17, 19). Now each release supports only one JVM version (e.g.: 21), and they track the same version as the JVM. They also changed packaging, making all sub-products (e.g.: GraalPy, GraalRuby, etc.) standalone, so they do not depend in GraalVM anymore and have their own version. Thanks to this change, we will need to repackage everything. To simplify, this commit will remove all sub-products and only care about the GraalVM/Native Image (that is back to GraalVM itself) part. Other commits will re-added each sub-product. Fix (partial): https://github.com/NixOS/nixpkgs/issues/257292
Diffstat (limited to 'pkgs/development/compilers/graalvm/community-edition/update.sh')
-rwxr-xr-x | pkgs/development/compilers/graalvm/community-edition/update.sh | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/pkgs/development/compilers/graalvm/community-edition/update.sh b/pkgs/development/compilers/graalvm/community-edition/update.sh index ad523fbd6b33c..f4597316dafbb 100755 --- a/pkgs/development/compilers/graalvm/community-edition/update.sh +++ b/pkgs/development/compilers/graalvm/community-edition/update.sh @@ -26,7 +26,7 @@ if [[ -z "${1:-}" ]]; then ${GITHUB_TOKEN:+"-u \":$GITHUB_TOKEN\""} \ -s https://api.github.com/repos/graalvm/graalvm-ce-builds/releases/latest | \ jq --raw-output .tag_name)" - readonly new_version="${gh_version//vm-/}" + readonly new_version="${gh_version//jdk-/}" else readonly new_version="$1" fi @@ -41,29 +41,15 @@ else fi declare -r -A products_urls=( - [graalvm-ce]="https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${new_version}/graalvm-ce-java@platform@-${new_version}.tar.gz" - [js-installable-svm]="https://github.com/graalvm/graaljs/releases/download/vm-${new_version}/js-installable-svm-java@platform@-${new_version}.jar" - [llvm-installable-svm]="https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${new_version}/llvm-installable-svm-java@platform@-${new_version}.jar" - [native-image-installable-svm]="https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${new_version}/native-image-installable-svm-java@platform@-${new_version}.jar" - [nodejs-installable-svm]="https://github.com/graalvm/graaljs/releases/download/vm-${new_version}/nodejs-installable-svm-java@platform@-${new_version}.jar" - [python-installable-svm]="https://github.com/graalvm/graalpython/releases/download/vm-${new_version}/python-installable-svm-java@platform@-${new_version}.jar" - [ruby-installable-svm]="https://github.com/oracle/truffleruby/releases/download/vm-${new_version}/ruby-installable-svm-java@platform@-${new_version}.jar" - [wasm-installable-svm]="https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${new_version}/wasm-installable-svm-java@platform@-${new_version}.jar" + [graalvm-ce]="https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-${new_version}/graalvm-community-jdk-${new_version}_@platform@_bin.tar.gz" + ) readonly platforms=( - "11-linux-aarch64" - "17-linux-aarch64" - "19-linux-aarch64" - "11-linux-amd64" - "17-linux-amd64" - "19-linux-amd64" - "11-darwin-aarch64" - "17-darwin-aarch64" - "19-darwin-aarch64" - "11-darwin-amd64" - "17-darwin-amd64" - "19-darwin-amd64" + "linux-aarch64" + "linux-x64" + "macos-aarch64" + "macos-x64" ) info "Generating '$hashes_nix' file for 'graalvm-ce' $new_version. This will take a while..." |