Re: [Nix-dev] Set locale during nix build?

2013-08-27 Thread Peter Simons
Hi Rickard,

have you tried adding

  export LANG=en_US.UTF-8

to the build environment, i.e. in a preConfigure hook?

Take care,
Peter

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Set locale during nix build?

2013-08-27 Thread Eelco Dolstra
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.

-- 
Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Set locale during nix build?

2013-08-27 Thread Rickard Nilsson
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

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] Set locale during nix build?

2013-08-26 Thread Rickard Nilsson
Hi,

I have a Nix build that fail because the locale is POSIX in the build 
environment. I need to set it to an UTF-8 locale.

How do I do that? I have tried various exports, and looked at other 
packages for solutions, but I have so far not found any solution.


Best regards,
   Rickard
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Set locale during nix build?

2013-08-26 Thread Domen Kožar
I'm just guessing: python related (maybe 3?).

I also haven't found a way to fix that.


On Mon, Aug 26, 2013 at 7:50 PM, Rickard Nilsson
rickard.nils...@telia.comwrote:

 Hi,

 I have a Nix build that fail because the locale is POSIX in the build
 environment. I need to set it to an UTF-8 locale.

 How do I do that? I have tried various exports, and looked at other
 packages for solutions, but I have so far not found any solution.


 Best regards,
Rickard
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] Set locale during nix build?

2013-08-26 Thread Rickard Nilsson
No, this is actually Haskell-related. I'm trying to use Hakyll in a Nix 
build, but it fails due to the locale 
(http://jaspervdj.be/hakyll/tutorials/faq.html).

   / Rickard


On 08/26/2013 07:54 PM, Domen Kožar wrote:
 I'm just guessing: python related (maybe 3?).

 I also haven't found a way to fix that.


 On Mon, Aug 26, 2013 at 7:50 PM, Rickard Nilsson
 rickard.nils...@telia.com mailto:rickard.nils...@telia.com wrote:

 Hi,

 I have a Nix build that fail because the locale is POSIX in the build
 environment. I need to set it to an UTF-8 locale.

 How do I do that? I have tried various exports, and looked at other
 packages for solutions, but I have so far not found any solution.


 Best regards,
 Rickard
 ___
 nix-dev mailing list
 nix-dev@lists.science.uu.nl mailto:nix-dev@lists.science.uu.nl
 http://lists.science.uu.nl/mailman/listinfo/nix-dev



___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev