guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: quirky behaviour of “guix environment”


From: Chris Marusich
Subject: Re: quirky behaviour of “guix environment”
Date: Sat, 24 Feb 2018 23:30:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Ricardo Wurmus <address@hidden> writes:

> 1.) the environment includes glibc and its executables.  Is this ever
>     desired?  When loading an environment from a file or from a package
>     (i.e. when “--ad-hoc” is NOT provided) “guix environment” uses
>     “package-environment-inputs”, which runs “package->bag” and then
>     “bag-transitive-inputs”.  The resulting list of packages is then
>     used as the inputs for a profile derivation.  That seems a bit
>     excessive.
>
>     Would it not be sufficient to use only the direct inputs of the
>     package as the inputs to the profile derivation?  That way “guix
>     environment foo” would behave just like “guix environment --ad-hoc
>     input-a-of-foo input-b-of-foo input-c-of-foo”.
>
>     Is there a reason why it creates a whole bag and dumps its contents
>     into the inputs of the profile derivation?

My interpretation of the intended behavior of "guix environment foo" is
that is that only the inputs of (the bag of) foo should show up in the
environment, not the transitive closure of inputs.  I am surprised to
hear that that is not the case, but perhaps I am missing something.

-- 
Chris

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]