nixpkgs/pkgs/development/compilers/graalvm/community-edition/js-installable-svm.nix
2023-02-15 21:07:19 +00:00

18 lines
288 B
Nix

{ lib
, stdenv
, graalvmCEPackages
, javaVersion
, src
, version
}:
graalvmCEPackages.buildGraalvmProduct rec {
inherit src javaVersion version;
product = "js-installable-svm";
graalvmPhases.installCheckPhase = ''
echo "Testing GraalJS"
echo '1 + 1' | $out/bin/js
'';
}