[Nix-dev] undefined variable

Tobias Hammerschmidt tobias.hammerschmidt at gmx.de
Sun Oct 14 19:27:09 CEST 2007


Marc Weber schrieb:
> On Sun, Oct 14, 2007 at 12:43:27PM +0200, Tobias Hammerschmidt wrote:
>>  Hi,
>>  I'm using nix stable (0.10.1) and nixpkgs from svn and I'm facing a problem 
>>  there. After the last svn up to revision 9459 I can't install and query 
>>  packages. Executing " nix-env -f nixpkgs/pkgs/top-level/all-packages.nix -qa 
>>  '*' " gives me " error: undefined variable `throw', in 
>>  `/DATA/nix-svn/nixpkgs/pkgs/lib/default-unstable.nix' ". Any suggestions?
> 
> throw is a language feature.
> It allows you to throw an exception like string message (though there is
> no finally or catch yet afaik).. so the your stable version might be
> outdated.
> 
> So you should update and also use the svn version of nixos (I think you
> should do this anyway to stay up to date.. )
> 
> Perhaps you also want to wait till someone else confirms this (I haven't
> checked the details) or join #trace on irc.freenode.net and ask
> niksnut..
> 
> Marc
> 
Ok, I switched to nix-0.11pre9439 and now everything seems to work 
again. Thanks a lot! Btw: I'm using nix on debian etch but nixos is on 
my TODO list ;)



More information about the nix-dev mailing list