2022-04-03 18:54:34 +00:00
|
|
|
{ callPackage, Foundation }:
|
|
|
|
/*
|
|
|
|
Add new graal versions and products here and then see update.nix on how to
|
|
|
|
generate the sources.
|
|
|
|
*/
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
let
|
2021-10-17 09:34:42 +00:00
|
|
|
mkGraal = opts: callPackage (import ./mkGraal.nix opts) {
|
2021-08-05 21:33:18 +00:00
|
|
|
inherit Foundation;
|
|
|
|
};
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
Looks a bit ugly but makes version update in the update script using sed
|
|
|
|
much easier
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
Don't change these values! They will be updated by the update script, see ./update.nix.
|
2022-04-03 18:54:34 +00:00
|
|
|
*/
|
2022-08-12 12:06:08 +00:00
|
|
|
graalvm11-ce-release-version = "22.2.0";
|
|
|
|
graalvm17-ce-release-version = "22.2.0";
|
2022-04-03 18:54:34 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
products = [
|
2022-04-03 18:54:34 +00:00
|
|
|
"graalvm-ce"
|
|
|
|
"native-image-installable-svm"
|
|
|
|
];
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
in
|
|
|
|
{
|
2021-08-05 21:33:18 +00:00
|
|
|
inherit mkGraal;
|
|
|
|
|
|
|
|
graalvm11-ce = mkGraal rec {
|
2022-04-03 18:54:34 +00:00
|
|
|
config = {
|
|
|
|
x86_64-darwin = {
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit products;
|
2022-04-03 18:54:34 +00:00
|
|
|
arch = "darwin-amd64";
|
|
|
|
};
|
|
|
|
x86_64-linux = {
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit products;
|
2022-04-03 18:54:34 +00:00
|
|
|
arch = "linux-amd64";
|
|
|
|
};
|
|
|
|
aarch64-darwin = {
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit products;
|
2022-04-03 18:54:34 +00:00
|
|
|
arch = "darwin-aarch64";
|
|
|
|
};
|
|
|
|
aarch64-linux = {
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit products;
|
2022-04-03 18:54:34 +00:00
|
|
|
arch = "linux-aarch64";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
defaultVersion = graalvm11-ce-release-version;
|
2021-08-05 21:33:18 +00:00
|
|
|
javaVersion = "11";
|
|
|
|
};
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
graalvm17-ce = mkGraal rec {
|
2022-04-03 18:54:34 +00:00
|
|
|
config = {
|
|
|
|
x86_64-darwin = {
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit products;
|
2022-04-03 18:54:34 +00:00
|
|
|
arch = "darwin-amd64";
|
|
|
|
};
|
|
|
|
x86_64-linux = {
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit products;
|
2022-04-03 18:54:34 +00:00
|
|
|
arch = "linux-amd64";
|
|
|
|
};
|
|
|
|
aarch64-darwin = {
|
2022-04-27 09:35:20 +00:00
|
|
|
inherit products;
|
2022-04-03 18:54:34 +00:00
|
|
|
arch = "darwin-aarch64";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
aarch64-linux = {
|
|
|
|
inherit products;
|
|
|
|
arch = "linux-aarch64";
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
defaultVersion = graalvm17-ce-release-version;
|
2021-12-06 16:07:01 +00:00
|
|
|
javaVersion = "17";
|
|
|
|
};
|
2021-08-05 21:33:18 +00:00
|
|
|
}
|