mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
acf8579307
This way it is easier to differentiate between phases running in the `buildGraalvmProduct` and `buildGraalvm`.
23 lines
478 B
Nix
23 lines
478 B
Nix
{ lib
|
|
, stdenv
|
|
, graalvm-ce
|
|
, graalvmCEPackages
|
|
, javaVersion
|
|
, src
|
|
, version
|
|
}:
|
|
|
|
graalvmCEPackages.buildGraalvmProduct rec {
|
|
inherit src javaVersion version;
|
|
product = "wasm-installable-svm";
|
|
|
|
# TODO: improve this test
|
|
graalvmPhases.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;
|
|
}
|