2023-02-08 21:56:10 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, callPackage
|
|
|
|
, fetchurl
|
2023-02-09 23:18:10 +00:00
|
|
|
, Foundation
|
2023-02-08 21:56:10 +00:00
|
|
|
}:
|
2021-08-04 01:15:06 +00:00
|
|
|
|
|
|
|
let
|
2023-02-09 23:18:10 +00:00
|
|
|
buildGraalvm = callPackage ./buildGraalvm.nix { inherit Foundation; };
|
2023-02-08 21:56:10 +00:00
|
|
|
buildGraalvmProduct = callPackage ./buildGraalvmProduct.nix { };
|
2023-02-08 21:26:19 +00:00
|
|
|
sources = javaVersion: builtins.fromJSON (builtins.readFile (./. + "/graalvm${javaVersion}-ce-sources.json"));
|
2021-10-19 17:03:00 +00:00
|
|
|
in
|
2023-02-08 21:26:19 +00:00
|
|
|
rec {
|
2023-02-09 22:12:36 +00:00
|
|
|
inherit buildGraalvm buildGraalvmProduct;
|
|
|
|
|
2023-02-08 21:26:19 +00:00
|
|
|
graalvm11-ce = buildGraalvm rec {
|
|
|
|
version = "22.3.0";
|
2021-08-04 01:15:06 +00:00
|
|
|
javaVersion = "11";
|
2023-02-08 21:26:19 +00:00
|
|
|
src = fetchurl (sources javaVersion).${stdenv.system}.${"graalvm-ce|java${javaVersion}|${version}"};
|
|
|
|
meta.platforms = builtins.attrNames (sources javaVersion);
|
2023-02-08 21:56:10 +00:00
|
|
|
products = [ native-image-installable-svm-java11 ];
|
|
|
|
};
|
|
|
|
|
2023-02-09 22:12:36 +00:00
|
|
|
native-image-installable-svm-java11 = callPackage ./native-image-installable-svm.nix rec {
|
2023-02-08 21:56:10 +00:00
|
|
|
javaVersion = "11";
|
|
|
|
version = "22.3.0";
|
2023-02-09 22:12:36 +00:00
|
|
|
src = fetchurl (sources javaVersion).${stdenv.system}.${"native-image-installable-svm|java${javaVersion}|${version}"};
|
2021-08-04 01:15:06 +00:00
|
|
|
};
|
2021-10-19 17:03:00 +00:00
|
|
|
|
2023-02-08 21:26:19 +00:00
|
|
|
graalvm17-ce = buildGraalvm rec {
|
|
|
|
version = "22.3.0";
|
2022-03-29 10:36:39 +00:00
|
|
|
javaVersion = "17";
|
2023-02-08 21:26:19 +00:00
|
|
|
src = fetchurl (sources javaVersion).${stdenv.system}.${"graalvm-ce|java${javaVersion}|${version}"};
|
|
|
|
meta.platforms = builtins.attrNames (sources javaVersion);
|
2023-02-09 22:12:36 +00:00
|
|
|
products = [ native-image-installable-svm-java17 ];
|
2023-02-08 21:56:10 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 22:12:36 +00:00
|
|
|
native-image-installable-svm-java17 = callPackage ./native-image-installable-svm.nix rec {
|
2023-02-08 21:56:10 +00:00
|
|
|
javaVersion = "17";
|
|
|
|
version = "22.3.0";
|
2023-02-09 22:12:36 +00:00
|
|
|
src = fetchurl (sources javaVersion).${stdenv.system}.${"native-image-installable-svm|java${javaVersion}|${version}"};
|
2022-03-29 10:36:39 +00:00
|
|
|
};
|
2021-08-04 01:15:06 +00:00
|
|
|
}
|