From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Clemmer Subject: Re: How to "Use PROFILE instead of the =?utf-8?Q?user=E2=80=99s?= default profile."? Date: Thu, 21 Jun 2018 10:56:55 -0400 Message-ID: <877ems9oi0.fsf@gmail.com> References: <87bmc4aoa8.fsf@gmail.com> <878t78to95.fsf@elephly.net> <87a7ro9r2z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW11E-0000YY-Ay for help-guix@gnu.org; Thu, 21 Jun 2018 10:57:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fW119-0005gI-Bx for help-guix@gnu.org; Thu, 21 Jun 2018 10:57:04 -0400 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]:35338) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fW119-0005ef-39 for help-guix@gnu.org; Thu, 21 Jun 2018 10:56:59 -0400 Received: by mail-qk0-x22e.google.com with SMTP id d130-v6so1907741qkc.2 for ; Thu, 21 Jun 2018 07:56:58 -0700 (PDT) In-reply-to: <87a7ro9r2z.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: help-guix George Clemmer writes: > Ricardo Wurmus writes: > >> Hi George, >> >> You understand correctly and this is how it is supposed to work. The >> =E2=80=9Csource=E2=80=9D method always augments the environment variable= s. >> >>> If so, how do I "Use my znc PROFILE *instead* of my user=E2=80=99s defa= ult >>> profile?" >> >> You can use =E2=80=9Cguix package --search-paths=3DKIND=E2=80=9D to gene= rate different >> kinds of environment variable changes. The manual says this: >> >> --8<---------------cut here---------------start------------->8--- >> =E2=80=98--search-paths[=3DKIND]=E2=80=99 >> 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 =E2=80=9Csearch paths=E2= =80=9D 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 =E2=80=9Cexact=E2=80=9D overrides variables, which means= that you would >> end up without things you might take for granted, such as =E2=80=9C/bin= =E2=80=9D or >> =E2=80=9C/run/current-system/profile/bin=E2=80=9D. >> >> The behaviour of sourcing a profile=E2=80=99s =E2=80=9Cetc/profile=E2=80= =9D file is equivalent >> to using >> >> eval `guix package --search-paths=3Dprefix` >> >> We wanted to add a more convenient command to =E2=80=9Cenable=E2=80=9D a= nother 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=3Dexact Oops, I left out the back quotes. I mean ... eval `guix package -p /var/guix/profiles/system -p PROFILE --search-paths=3Dexact` ... 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