argc: only set $LOCALE_ARCHIVE if we’re running the tests

This commit is contained in:
Emily
2026-06-26 07:57:56 +01:00
parent bd83232593
commit 34045fbc40
+3 -3
View File
@@ -42,9 +42,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
env = {
LANG = "C.UTF-8";
}
// lib.optionalAttrs (glibcLocales != null) {
LOCALE_ARCHIVE = "${glibcLocales}/lib/locale/locale-archive";
LOCALE_ARCHIVE = lib.optionalString (
finalAttrs.finalPackage.doInstallCheck && glibcLocales != null
) "${glibcLocales}/lib/locale/locale-archive";
};
doInstallCheck = true;