diff options
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/build-graalvm-native-image/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/build-support/build-graalvm-native-image/default.nix b/pkgs/build-support/build-graalvm-native-image/default.nix index 760896706ac28..f223009cba5cb 100644 --- a/pkgs/build-support/build-graalvm-native-image/default.nix +++ b/pkgs/build-support/build-graalvm-native-image/default.nix @@ -21,20 +21,20 @@ , graalvmXmx ? "-J-Xmx6g" # The GraalVM derivation to use , graalvmDrv ? graalvm + # Locale to be used by GraalVM compiler +, LC_ALL ? "en_US.UTF-8" , meta ? { } , ... } @ args: stdenv.mkDerivation (args // { - inherit dontUnpack; + inherit dontUnpack LC_ALL; nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [ graalvmDrv glibcLocales ]; nativeImageBuildArgs = nativeImageBuildArgs ++ extraNativeImageBuildArgs ++ [ graalvmXmx ]; buildPhase = args.buildPhase or '' - export LC_ALL="en_US.UTF-8" - runHook preBuild native-image ''${nativeImageBuildArgs[@]} |