about summary refs log tree commit diff
path: root/pkgs/development/beam-modules/build-mix.nix
diff options
context:
space:
mode:
authorAndrew Bruce <me@andrewbruce.net>2023-09-02 12:01:21 +0100
committerAndrew Bruce <me@andrewbruce.net>2023-09-02 12:14:21 +0100
commit56f1e95e095d56d1184e405d3c114afa8473332a (patch)
treebd9817010d2cf8a2ed4ee2ed83d71a005d5e4da1 /pkgs/development/beam-modules/build-mix.nix
parent0d5eee36d1417f52e5317022ebb3503ba4e5cd14 (diff)
buildMix: use C.UTF-8 locale
Avoid the following during mix builds:

warning: the VM is running with native name encoding of latin1 which may
cause Elixir to malfunction as it expects utf8.
Diffstat (limited to 'pkgs/development/beam-modules/build-mix.nix')
-rw-r--r--pkgs/development/beam-modules/build-mix.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/beam-modules/build-mix.nix b/pkgs/development/beam-modules/build-mix.nix
index 081d4988bace0..69e6c6c6e3b0b 100644
--- a/pkgs/development/beam-modules/build-mix.nix
+++ b/pkgs/development/beam-modules/build-mix.nix
@@ -28,6 +28,7 @@ let
     MIX_ENV = mixEnv;
     MIX_DEBUG = if enableDebugInfo then 1 else 0;
     HEX_OFFLINE = 1;
+    LC_ALL = "C.UTF-8";
 
     # add to ERL_LIBS so other modules can find at runtime.
     # http://erlang.org/doc/man/code.html#code-path