2022-04-01 11:59:37 +01:00
|
|
|
{ callPackage, Foundation }:
|
2022-03-29 15:59:42 +01:00
|
|
|
/*
|
2022-04-01 11:59:37 +01:00
|
|
|
Add new graal versions and products here and then see update.nix on how to
|
|
|
|
generate the sources.
|
2022-03-29 15:59:42 +01:00
|
|
|
*/
|
2021-08-04 02:15:06 +01:00
|
|
|
|
|
|
|
let
|
2021-10-19 18:03:00 +01:00
|
|
|
mkGraal = opts: callPackage (import ./mkGraal.nix opts) {
|
2021-08-04 02:15:06 +01:00
|
|
|
inherit Foundation;
|
|
|
|
};
|
2022-03-28 07:06:08 +01:00
|
|
|
|
|
|
|
commonProducts = [
|
|
|
|
"graalvm-ce"
|
|
|
|
"native-image-installable-svm"
|
|
|
|
"ruby-installable-svm"
|
|
|
|
"wasm-installable-svm"
|
|
|
|
];
|
|
|
|
|
2022-04-01 11:59:37 +01:00
|
|
|
/*
|
|
|
|
Looks a bit ugly but makes version update in the update script using sed
|
|
|
|
much easier
|
|
|
|
*/
|
|
|
|
graalvm11-ce-release-version = "22.0.0.2";
|
|
|
|
graalvm17-ce-release-version = "22.0.0.2";
|
|
|
|
graalvm11-ce-dev-version = "22.2.0-dev-20220331_1955";
|
|
|
|
graalvm17-ce-dev-version = "22.2.0-dev-20220331_1955";
|
|
|
|
|
2021-10-19 18:03:00 +01:00
|
|
|
in
|
|
|
|
{
|
2021-08-04 02:15:06 +01:00
|
|
|
inherit mkGraal;
|
|
|
|
|
|
|
|
graalvm11-ce = mkGraal rec {
|
2022-03-28 07:06:08 +01:00
|
|
|
config = {
|
|
|
|
x86_64-darwin = {
|
|
|
|
arch = "darwin-amd64";
|
|
|
|
products = commonProducts ++ [ "python-installable-svm" ];
|
2022-04-01 11:59:37 +01:00
|
|
|
version = graalvm11-ce-release-version;
|
2022-03-28 07:06:08 +01:00
|
|
|
};
|
|
|
|
x86_64-linux = {
|
|
|
|
arch = "linux-amd64";
|
|
|
|
products = commonProducts ++ [ "python-installable-svm" ];
|
2022-04-01 11:59:37 +01:00
|
|
|
version = graalvm11-ce-release-version;
|
2022-03-28 07:06:08 +01:00
|
|
|
};
|
|
|
|
aarch64-linux = {
|
|
|
|
arch = "linux-aarch64";
|
|
|
|
products = commonProducts;
|
2022-04-01 11:59:37 +01:00
|
|
|
version = graalvm11-ce-release-version;
|
|
|
|
};
|
|
|
|
aarch64-darwin = {
|
|
|
|
arch = "darwin-aarch64";
|
|
|
|
products = [
|
|
|
|
"graalvm-ce"
|
|
|
|
"native-image-installable-svm"
|
|
|
|
];
|
|
|
|
version = graalvm11-ce-dev-version;
|
2022-03-28 07:06:08 +01:00
|
|
|
};
|
|
|
|
};
|
2021-08-04 02:15:06 +01:00
|
|
|
javaVersion = "11";
|
2022-03-28 07:06:08 +01:00
|
|
|
platforms = builtins.attrNames config;
|
2021-08-04 02:15:06 +01:00
|
|
|
};
|
2021-10-19 18:03:00 +01:00
|
|
|
|
2021-10-20 16:25:18 +01:00
|
|
|
# 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 {
|
2022-03-28 07:06:08 +01:00
|
|
|
config = {
|
|
|
|
x86_64-darwin = {
|
|
|
|
arch = "darwin-amd64";
|
|
|
|
products = commonProducts ++ [ "python-installable-svm" ];
|
2022-04-01 11:59:37 +01:00
|
|
|
version = graalvm17-ce-release-version;
|
2022-03-28 07:06:08 +01:00
|
|
|
};
|
|
|
|
x86_64-linux = {
|
|
|
|
arch = "linux-amd64";
|
|
|
|
products = commonProducts ++ [ "python-installable-svm" ];
|
2022-04-01 11:59:37 +01:00
|
|
|
version = graalvm17-ce-release-version;
|
2022-03-28 07:06:08 +01:00
|
|
|
};
|
2022-03-29 11:36:39 +01:00
|
|
|
aarch64-darwin = {
|
|
|
|
arch = "darwin-aarch64";
|
|
|
|
products = [
|
|
|
|
"graalvm-ce"
|
|
|
|
"native-image-installable-svm"
|
|
|
|
];
|
2022-04-01 11:59:37 +01:00
|
|
|
version = graalvm17-ce-dev-version;
|
2022-03-29 11:36:39 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
javaVersion = "17";
|
|
|
|
platforms = builtins.attrNames config;
|
|
|
|
};
|
2021-08-04 02:15:06 +01:00
|
|
|
}
|