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:01:08 -0400 Message-ID: <87a7ro9r2z.fsf@gmail.com> References: <87bmc4aoa8.fsf@gmail.com> <878t78to95.fsf@elephly.net> 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]:50709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fW09F-0002AQ-Ul for help-guix@gnu.org; Thu, 21 Jun 2018 10:01:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fW09A-0003Cf-5Y for help-guix@gnu.org; Thu, 21 Jun 2018 10:01:18 -0400 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]:42773) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fW09A-0003BT-0i for help-guix@gnu.org; Thu, 21 Jun 2018 10:01:12 -0400 Received: by mail-qk0-x22c.google.com with SMTP id j80-v6so1776415qke.9 for ; Thu, 21 Jun 2018 07:01:11 -0700 (PDT) In-reply-to: <878t78to95.fsf@elephly.net> 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 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 variables. > >> If so, how do I "Use my znc PROFILE *instead* of my user=E2=80=99s defau= lt >> profile?" > > You can use =E2=80=9Cguix package --search-paths=3DKIND=E2=80=9D to gener= ate 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 an= other 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=3D= exact Is that correct? TIA - George