graalvmCEPackages.wasm-installable-svm: init at 22.3.1

This commit is contained in:
Thiago Kenji Okada 2023-02-13 21:19:42 +00:00
parent c37428c7f3
commit e17f76f94f
3 changed files with 39 additions and 0 deletions

View File

@ -109,6 +109,9 @@ let
installCheckPhase = ''
runHook preInstallCheck
echo "Testing Jshell"
echo '1 + 1' | $out/bin/jshell
echo ${
lib.escapeShellArg ''
public class HelloWorld {

View File

@ -36,6 +36,7 @@ rec {
products = [
native-image-installable-svm-java11
python-installable-svm-java11
wasm-installable-svm-java11
];
};
@ -51,6 +52,12 @@ rec {
src = fetchurl (source "native-image-installable-svm" javaVersion);
};
wasm-installable-svm-java11 = callPackage ./wasm-installable-svm.nix rec {
javaVersion = "11";
version = "22.3.1";
src = fetchurl (source "wasm-installable-svm" javaVersion);
};
graalvm17-ce = buildGraalvm rec {
version = "22.3.1";
javaVersion = "17";
@ -64,6 +71,7 @@ rec {
products = [
native-image-installable-svm-java17
python-installable-svm-java17
wasm-installable-svm-java17
];
};
@ -78,4 +86,10 @@ rec {
version = "22.3.1";
src = fetchurl (source "native-image-installable-svm" javaVersion);
};
wasm-installable-svm-java17 = callPackage ./wasm-installable-svm.nix rec {
javaVersion = "17";
version = "22.3.1";
src = fetchurl (source "wasm-installable-svm" javaVersion);
};
}

View File

@ -0,0 +1,22 @@
{ lib
, stdenv
, graalvm-ce
, graalvmCEPackages
, javaVersion
, src
, version
}:
graalvmCEPackages.buildGraalvmProduct rec {
inherit src javaVersion version;
product = "wasm-installable-svm";
# TODO: improve this test
installCheckPhase = ''
echo "Testing wasm"
$out/bin/wasm --help
'';
# Not supported in aarch64-darwin yet as GraalVM 22.3.1 release
meta.platforms = builtins.filter (p: p != "aarch64-darwin") graalvm-ce.meta.platforms;
}