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.

44 lines
1.5 KiB
Nix
Raw Normal View History

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