argc: only set $LOCALE_ARCHIVE if we’re running the tests
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user