[Nix-dev] Re: awesome locale issues

Florian Friesdorf flo at chaoflow.net
Mon Oct 18 16:32:55 CEST 2010


On Tue, Aug 24, 2010 at 01:53:32PM +0200, Peter Simons wrote:
> Hi Florian,
> 
>  > The setting for TZ is definitely taken from there, however, it is not
>  > possible to set LOCPATH, the variable is empty after logging into
>  > awesome.
> 
> it's hard to imagine that awesome would import TZ, but not LOCPATH. Maybe
> the problem is somewhere else? What happens if you set a completely random
> variable in your /etc/profile/nix.sh, say "export FOO=bar"? Is that variable
> visible after logging into awesome?

I tried FOO, LOCPAT, OCPATH and LOCPATH2, all of them are visible, but
not LOCPATH.

> In any case, you could write the following code to ~/.nixpkgs/config.nix to
> build Nix's glibc with native locale support enabled:
> 
>  | {
>  |   packageOverrides = pkgs:
>  |   {
>  |     glibc = pkgs.glibc.override { installLocales = true; };
>  |   };
>  | }
> 
> Then those locales would be found without the help of any environment
> variables. The downside is, unfortunately, that this setting forces you to
> build all packages from source code, i.e. it's no longer possible to use any
> binaries whatsoever from the build farm.

Thank you for your help, I installed now glibc-locales and set
LOCALE_ARCHIVE.

I can help with further debugging, but personally I am fine with the
current solution and intend to move to nixos anyway.

-- 
Florian Friesdorf <flo at chaoflow.net>
  GPG FPR: EA5C F2B4 FBBB BA65 3DCD  E8ED 82A1 6522 4A1F 4367
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20101018/63ebbabe/attachment.bin 


More information about the nix-dev mailing list