mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
graalvmCEPackages.wasm-installable-svm: init at 22.3.1
This commit is contained in:
parent
c37428c7f3
commit
e17f76f94f
@ -109,6 +109,9 @@ let
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
echo "Testing Jshell"
|
||||
echo '1 + 1' | $out/bin/jshell
|
||||
|
||||
echo ${
|
||||
lib.escapeShellArg ''
|
||||
public class HelloWorld {
|
||||
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user