From 59ce63437d2e83f270433305ecf32ff42c029187 Mon Sep 17 00:00:00 2001 From: Emmanuel Alap <15620712+ealap@users.noreply.github.com> Date: Thu, 3 Jul 2025 22:00:53 +0200 Subject: [PATCH] nushell: Set NU_TEST_LOCALE_OVERRIDE to standardize locale used in test Some tests are locale-specific expecting to compare string output in en_US.utf8, which causes failure on systems with different locale values. Signed-off-by: Emmanuel Alap <15620712+ealap@users.noreply.github.com> --- pkgs/shells/nushell/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/shells/nushell/default.nix b/pkgs/shells/nushell/default.nix index 3f92cc4224fb..57e8a730bd65 100644 --- a/pkgs/shells/nushell/default.nix +++ b/pkgs/shells/nushell/default.nix @@ -56,6 +56,10 @@ rustPlatform.buildRustPackage { buildNoDefaultFeatures = !withDefaultFeatures; buildFeatures = additionalFeatures [ ]; + preCheck = '' + export NU_TEST_LOCALE_OVERRIDE="en_US.UTF-8" + ''; + checkPhase = '' runHook preCheck (