[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: “Guix Profiles in Practice”

From: Pierre Neidhardt
Subject: Re: “Guix Profiles in Practice”
Date: Sat, 02 Nov 2019 20:21:11 +0100

Hi Tanguy,

Glad you like it!

Tanguy Le Carrour <address@hidden> 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:


If you have multiple profiles, having a subdir for
each profile makes your life easier.

> #2. how can I remove a profile?! … actually, I figured out that removing
>     the links works. Garbage would be (magically) collected on the next
>     `guix gc` ("removing stale link from…").

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:

Your insights are welcome! ;)

> This brings me to my last (but not quite related) question… 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!


Pierre Neidhardt

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]