summary refs log tree commit diff
path: root/pkgs/development/compilers/graalvm/community-edition/python-installable-svm.nix
blob: 43d6e85ef5603dfde833970d3916dd0d360415c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ lib
, stdenv
, graalvmCEPackages
, javaVersion
, src
, version
}:

graalvmCEPackages.buildGraalvmProduct rec {
  inherit src javaVersion version;
  product = "python-installable-svm";

  graalvmPhases.installCheckPhase = ''
    echo "Testing GraalPython"
    $out/bin/graalpy -c 'print(1 + 1)'
    echo '1 + 1' | $out/bin/graalpy
  '';
}