diff --git a/pkgs/build-support/build-graalvm-native-image/default.nix b/pkgs/build-support/build-graalvm-native-image/default.nix index 09b2d9f73a2b..3aedd61ea6ce 100644 --- a/pkgs/build-support/build-graalvm-native-image/default.nix +++ b/pkgs/build-support/build-graalvm-native-image/default.nix @@ -33,6 +33,8 @@ stdenv.mkDerivation (args // { nativeImageBuildArgs = nativeImageBuildArgs ++ extraNativeImageBuildArgs ++ [ graalvmXmx ]; buildPhase = args.buildPhase or '' + export LC_ALL="en_US.UTF-8" + runHook preBuild native-image ''${nativeImageBuildArgs[@]}