From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aE9gAX2WKV+1WAAA0tVLHw (envelope-from ) for ; Tue, 04 Aug 2020 17:10:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MGfQOHyWKV+TDQAA1q6Kng (envelope-from ) for ; Tue, 04 Aug 2020 17:10:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9415794053F for ; Tue, 4 Aug 2020 17:10:20 +0000 (UTC) Received: from localhost ([::1]:36412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k30SA-00030s-TM for larch@yhetil.org; Tue, 04 Aug 2020 13:10:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k30KC-0007dn-L1 for help-guix@gnu.org; Tue, 04 Aug 2020 13:02:04 -0400 Received: from relay-2.mailobj.net ([213.182.54.5]:57992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k30KA-0005Vy-8f for help-guix@gnu.org; Tue, 04 Aug 2020 13:02:04 -0400 Received: from v-1c.localdomain (unknown [192.168.90.161]) by relay-2.mailobj.net (Postfix) with SMTP id 50CCD12E8; Tue, 4 Aug 2020 19:01:59 +0200 (CEST) Received: by mail-1.net-c.com [213.182.54.15] with ESMTP Tue, 4 Aug 2020 19:01:59 +0200 (CEST) X-EA-Auth: AyiwXCFboG8gbNYbvqHx0Cm+PpDH5bx0DLwZl2wJdnvkWqfNHqKE+tsvDnFgnnnc/CeA0w7yqBBLe4FH+lHO7RdrTth8nrLY From: Dmitry Alexandrov To: hot12shots Subject: Re: Using --search-paths with multiple profiles In-Reply-To: (hot12shots@gmail.com's message of "Mon, 3 Aug 2020 23:26:59 +0000") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Tue, 04 Aug 2020 20:01:57 +0300 Message-ID: <3652e456.dag@gnui.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=213.182.54.5; envelope-from=dag@gnui.org; helo=relay-2.mailobj.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/04 13:01:59 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -2.11 X-TUID: kwSWw1fjbJOn --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable hot12shots wrote: > guix package --search-paths=3Dprefix \ > -p /run/current-system/profile \ > -p ~/.config/guix/current \ > -p ~/.guix-profile \ > -p $GUIX_EXTRA_PROFILES/abc/abc \ > -p $GUIX_EXTRA_PROFILES/xyz/zyz > # etc. > > This properly sets the manpath etc., as the consuming packages (man-db an= d friends) are present in the included "built-in" profiles (first 3 `-p` ar= guments listed above). Ha! Nice trick, thanks. Alas, it won=CA=BCt help much on top of foreign d= istribution, where they often are not. > The only caveat I'm aware of is that the multiple `guix` invocations aren= 't instantaneous, so one might not want to use this if sourcing their .prof= ile from .bashrc or equivalent, as it would add some init time to every she= ll invocation. But one should never source profiles from ~/.bashrc in any case! They are = supposed to sourced by login shell only. In other words, there is ~/.profi= le (or ~/.bash_profile) for that. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYIACsWIQRSX35grYEsI2F1K7TIsPhUjufz5wUCXymUhQ0cZGFnQGdudWku b3JnAAoJEMiw+FSO5/PnNLcBAKOJIVt6GM5o7UsYxC3ZLD/SntqmUaZLcRpIU7gw 9YRmAP0Vlt02lnSz8nhK7vh2e7ICH3DID6OFiSH+fB8sfeTaBg== =BmL0 -----END PGP SIGNATURE----- --=-=-=--