nixpkgs/pkgs/development/compilers/graalvm/community-edition/default.nix
Thibault Gagnaux 50f6c0dfa7
graalvmXX-ce: refactor and clean up of update.nix
The update script fetches the latest versions and only
computes/downloads the sha256 if there is a new version to improve runtime.
2022-03-31 08:42:55 +02:00

79 lines
1.9 KiB
Nix

{ lib, callPackage, Foundation }:
/*
Add new graal versions and products here and then see update.nix on how to
generate the sources.
*/
let
mkGraal = opts: callPackage (import ./mkGraal.nix opts) {
inherit Foundation;
};
commonProducts = [
"graalvm-ce"
"native-image-installable-svm"
"ruby-installable-svm"
"wasm-installable-svm"
];
in
{
inherit mkGraal;
graalvm11-ce = mkGraal rec {
config = {
x86_64-darwin = {
arch = "darwin-amd64";
products = commonProducts ++ [ "python-installable-svm" ];
};
x86_64-linux = {
arch = "linux-amd64";
products = commonProducts ++ [ "python-installable-svm" ];
};
aarch64-linux = {
arch = "linux-aarch64";
products = commonProducts;
};
};
version = "22.0.0.2";
javaVersion = "11";
platforms = builtins.attrNames config;
};
# TODO: fix aarch64-linux, failing during Native Image compilation
# "Caused by: java.io.IOException: Cannot run program
# "/nix/store/1q1mif7h3lgxdaxg6j39hli5azikrfla-gcc-wrapper-9.3.0/bin/gcc" (in
# directory"/tmp/SVM-4194439592488143713"): error=0, Failed to exec spawn
# helper: pid: 19865, exit value: 1"
graalvm17-ce = mkGraal rec {
config = {
x86_64-darwin = {
arch = "darwin-amd64";
products = commonProducts ++ [ "python-installable-svm" ];
};
x86_64-linux = {
arch = "linux-amd64";
products = commonProducts ++ [ "python-installable-svm" ];
};
};
version = "22.0.0.2";
javaVersion = "17";
platforms = builtins.attrNames config;
};
graalvm17-ce-dev = mkGraal rec {
config = {
aarch64-darwin = {
arch = "darwin-aarch64";
products = [
"graalvm-ce"
"native-image-installable-svm"
];
};
};
version = "22.2.0-dev-20220330_2302";
javaVersion = "17";
platforms = builtins.attrNames config;
};
}