mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
acf8579307
This way it is easier to differentiate between phases running in the `buildGraalvmProduct` and `buildGraalvm`.
19 lines
340 B
Nix
19 lines
340 B
Nix
{ 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
|
|
'';
|
|
}
|