[Nix-dev] Set locale during nix build?

Rickard Nilsson rickard.nilsson at telia.com
Tue Aug 27 16:47:48 CEST 2013


On 08/27/2013 02:37 PM, Eelco Dolstra wrote:
> Hi,
>
> On 27/08/13 10:29, Peter Simons wrote:
>
>> have you tried adding
>>
>>    export LANG="en_US.UTF-8"
>>
>> to the build environment, i.e. in a preConfigure hook?
>
> If you do that, you probably also need to set:
>
>    export LOCALE_ARCHIVE=${glibcLocales}/lib/locale/locale-archive
>
> Otherwise the locale won't be found.

Ah, the combination of LANG and LOCALE_ARCHIVE works, thank you!

   / Rickard



More information about the nix-dev mailing list