nixpkgs/pkgs/development/compilers/graalvm/community-edition/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
1.6 KiB
Nix
Raw Normal View History

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