From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: =?utf-8?Q?=E2=80=9CGuix?= Profiles in =?utf-8?Q?Practice?= =?utf-8?Q?=E2=80=9D?= Date: Sat, 02 Nov 2019 20:21:11 +0100 Message-ID: <87o8xuf5js.fsf@ambrevar.xyz> References: <20191102185150.sq2rvjobx5rzww7b@melmoth> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:60357) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQyxg-0003Y0-Dj for guix-devel@gnu.org; Sat, 02 Nov 2019 15:21:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQyxe-0000Iv-84 for guix-devel@gnu.org; Sat, 02 Nov 2019 15:21:23 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:43537) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQyxe-00008U-1h for guix-devel@gnu.org; Sat, 02 Nov 2019 15:21:22 -0400 In-Reply-To: <20191102185150.sq2rvjobx5rzww7b@melmoth> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Tanguy Le Carrour Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Tanguy, Glad you like it! Tanguy Le Carrour writes: > I have two rather simple questions: > #1. why put the profile in `"$GUIX_EXTRA_PROFILES"/my-project/my-project` > instead of `"$GUIX_EXTRA_PROFILES"/my-project`? I tried to create 2 > profiles right under `"$GUIX_EXTRA_PROFILES"`, and it seems to work! Maybe this wasn't completely clear in the article. The reason is that successive generations create symlinks next to "my-project. In the end, the file hierarchy will look like this: $GUIX_EXTRA_PROFILES/my-project/my-project $GUIX_EXTRA_PROFILES/my-project/my-project-1 $GUIX_EXTRA_PROFILES/my-project/my-project-2 $GUIX_EXTRA_PROFILES/my-project/my-project-3 ... If you have multiple profiles, having a subdir for each profile makes your life easier. > #2. how can I remove a profile?! =E2=80=A6 actually, I figured out that r= emoving > the links works. Garbage would be (magically) collected on the next > `guix gc` ("removing stale link from=E2=80=A6"). Indeed! ;) > Is point #2 the reason why the profiles are stored in subfolders?! If > yes, I would use `"$GUIX_EXTRA_PROFILES"/my-project/current` instead. > Does it make sense?! You can use current, the name is arbitrary. > My actual concern with profiles comes from the fact that I'm a Fish [1] > user. This is a known problem and it's being discussed here: https://lists.gnu.org/archive/html/guix-devel/2019-10/msg00565.html Your insights are welcome! ;) > This brings me to my last (but not quite related) question=E2=80=A6 where= does > `--search-paths` get its information from? I guess it's something in the > package definition that tells it "you have to export PYTHONPATH", but > I'm not sure where. Any clue welcome! Look at the `native-search-path` field in the package definitions. > Anyway, thanks again for your work on the article! You're welcome! Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl291ycACgkQm9z0l6S7 zH/sMAf/Z4K9vPY0vxnYoyZhLjN1h3Bh7YImAfBFGaYM8YkHQ5FtsRnar2Cysa9j lrG9WXP6wEYlgA4cKhPQ5DAFnbt/QrpbPK/kaWDpGfFN5kh1i/xbRkm1tPbYU8MF AJMGD/zraXtHk3tXH49EeG4tWb723kUWZ4B2AL3OYDo9ELnIZy//pbYuA/KWkKYZ FOzbkW/TcMwJrMI6w2cEEY2YnJbYHbArGKDrycHig2275lFnVCEuUb1fEoFQ2NZV P3Qa8hyw7BEkQRP+fxkJaky8poSD5Y4JLacJh1AoFEEU9ATIflrh0cNNOdYM/oba Rn2CuaeILRt5fkE4uSx3bbWnP3t9ZA== =RwPQ -----END PGP SIGNATURE----- --=-=-=--