mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-17 12:50:04 +00:00
jet: fix native image with GraalVM 25.2.4 (#556631)
This commit is contained in:
@@ -19,8 +19,24 @@ buildGraalvmNativeImage (finalAttrs: {
|
||||
"-H:Log=registerResource:"
|
||||
"--no-fallback"
|
||||
"--no-server"
|
||||
"-J-Djet.native=true"
|
||||
# GraalVM >= 25.1 no longer discovers @AutomaticFeature annotations.
|
||||
"--features=InitAtBuildTimeFeature"
|
||||
];
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
|
||||
output="$(
|
||||
printf '%s\n' '{"value":1}' \
|
||||
| $out/bin/jet --from json --to edn --keywordize
|
||||
)"
|
||||
test "$output" = '{:value 1}'
|
||||
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
inherit (finalAttrs) version;
|
||||
package = finalAttrs.finalPackage;
|
||||
|
||||
Reference in New Issue
Block a user