[Nix-dev] Missing library: zlib

Thomas Bereknyei tomberek at gmail.com
Fri Mar 7 22:11:55 CET 2014


Is there a way to make it so that zlib is always in scope using something
in the configuration.nix setup?  Or should I just call nix-shell every time?
On Mar 7, 2014 2:16 AM, "Eelco Dolstra" <eelco.dolstra at logicblox.com> wrote:

> Hi,
>
> On 06/03/14 18:44, Thomas Bereknyei wrote:
>
> > I routinely find myself in a situation where some build tool or
> installation of
> > software (gcc, pip, a runtime) not via a nix expression) will fail due
> to not
> > having zlib available/in scope. What would be a simple way to prevent
> this
> > annoyance?
>
> In Nix 1.7, you can do:
>
>   $ nix-shell -p zlib
>
> to start a shell in which zlib is in scope (by setting various environment
> variables). So you should then be able to run "make" or whatever.
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140307/3876252f/attachment.html 


More information about the nix-dev mailing list