mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
buildFHSEnv: use LOCALE_ARCHIVE from environment if present
If the environment provides the variable (as NixOS does when the i18n option is set), keep it rather than overriding unconditionally. Fixes https://github.com/NixOS/nixpkgs/issues/354887
This commit is contained in:
parent
4aa36568d4
commit
a59e625bb4
@ -87,7 +87,7 @@ let
|
||||
destination = "/etc/profile";
|
||||
text = ''
|
||||
export PS1='${name}-fhsenv:\u@\h:\w\$ '
|
||||
export LOCALE_ARCHIVE='/usr/lib/locale/locale-archive'
|
||||
export LOCALE_ARCHIVE="''${LOCALE_ARCHIVE:-/usr/lib/locale/locale-archive}"
|
||||
export PATH="/run/wrappers/bin:/usr/bin:/usr/sbin:$PATH"
|
||||
export TZDIR='/etc/zoneinfo'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user