about summary refs log tree commit diff
path: root/pkgs/development/compilers/graalvm/community-edition/js-installable-svm.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2023-02-16 00:13:54 +0000
committerGitHub <noreply@github.com>2023-02-16 00:13:54 +0000
commitdd816c8cfd5b1db54ad070c3c64279ad35e4d0d1 (patch)
tree5ada0bad4cd1a653230f87d4566b5309b68796ef /pkgs/development/compilers/graalvm/community-edition/js-installable-svm.nix
parent066aaaf12175afd0fe2c04ddbe016897a94fd4ae (diff)
parent383cd683b68f00e24ebd3bedba6eb8d8a20f9265 (diff)
Merge master into haskell-updates
Diffstat (limited to 'pkgs/development/compilers/graalvm/community-edition/js-installable-svm.nix')
-rw-r--r--pkgs/development/compilers/graalvm/community-edition/js-installable-svm.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/compilers/graalvm/community-edition/js-installable-svm.nix b/pkgs/development/compilers/graalvm/community-edition/js-installable-svm.nix
new file mode 100644
index 0000000000000..0ab20c0e1dfe6
--- /dev/null
+++ b/pkgs/development/compilers/graalvm/community-edition/js-installable-svm.nix
@@ -0,0 +1,18 @@
+{ lib
+, stdenv
+, graalvm-ce
+, 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
+  '';
+}