all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: George Clemmer <myglc2@gmail.com>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: How to "Use PROFILE instead of the user’s default profile."?
Date: Thu, 21 Jun 2018 10:56:55 -0400	[thread overview]
Message-ID: <877ems9oi0.fsf@gmail.com> (raw)
In-Reply-To: <87a7ro9r2z.fsf@gmail.com>


George Clemmer <myglc2@gmail.com> writes:

> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> Hi George,
>>
>> You understand correctly and this is how it is supposed to work.  The
>> “source” method always augments the environment variables.
>>
>>> If so, how do I "Use my znc PROFILE *instead* of my user’s default
>>> profile?"
>>
>> You can use “guix package --search-paths=KIND” to generate different
>> kinds of environment variable changes.   The manual says this:
>>
>> --8<---------------cut here---------------start------------->8---
>> ‘--search-paths[=KIND]’
>>      Report environment variable definitions, in Bash syntax, that may
>>      be needed in order to use the set of installed packages.  These
>>      environment variables are used to specify “search paths” for files
>>      used by some of the installed packages.
> ...
>>      This option can also be used to compute the _combined_ search paths
>>      of several profiles.  Consider this example:
> ...
>> --8<---------------cut here---------------end--------------->8---
>>
>> Note that using “exact” overrides variables, which means that you would
>> end up without things you might take for granted, such as “/bin” or
>> “/run/current-system/profile/bin”.
>>
>> The behaviour of sourcing a profile’s “etc/profile” file is equivalent
>> to using
>>
>>     eval `guix package --search-paths=prefix`
>>
>> We wanted to add a more convenient command to “enable” another profile,
>> but IIRC there was no consensus on what that would look like.
>
> Thanks Ricardo,
>
> So, I can use PROFILE instead of my user default profile with ....
>
> eval guix package -p /var/guix/profiles/system -p PROFILE
> --search-paths=exact

Oops, I left out the back quotes. I mean ...

eval `guix package -p /var/guix/profiles/system -p PROFILE
--search-paths=exact`

... because I understand the doc to say this will give the "_combined_
search paths" of the two profiles. But I am disappointed that ...

guix package -p znc -i znc
eval `guix package -p /var/guix/profiles/system -p znc --search-paths`

... provides znc but no system packages. What am I misunderstanding now?

TIA - George

  parent reply	other threads:[~2018-06-21 14:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-21  2:03 How to "Use PROFILE instead of the user’s default profile."? George Clemmer
2018-06-21  9:32 ` Tom Balzer
2018-06-21 10:41 ` Ricardo Wurmus
2018-06-21 14:01   ` George Clemmer
2018-06-21 14:08     ` Ricardo Wurmus
2018-06-21 14:56     ` George Clemmer [this message]
2018-06-21 15:59       ` Ricardo Wurmus
2018-06-21 16:52         ` George Clemmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ems9oi0.fsf@gmail.com \
    --to=myglc2@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.