----- Mail original -----
De: "宋文武" <iyzs...@member.fsf.org>
À: "hub lombard" <hub.lomb...@free.fr>
Cc: "Help Guix" <help-guix@gnu.org>
Envoyé: Mercredi 17 Juillet 2019 15:14:38
Objet: Re: A question about manifest for my profile

hub.lomb...@free.fr writes:

>> Hi Guix!
>> I generated a 'manifest-to-manifest.scm' manifest of all the packages 
>> installed in my user profile
>> Then I called it:
>> hubert@gnu ~$ guile -s manifest-to-manifest.scm ~/.guix-profile


>> Then I made the updates, reconfigured /etc/config.scm and restarted.

>> I think the launch of the script was more or less equivalent to the 
>> following command:

>> $ guix package --manifest=manifest-to-manifest.scm

>This '--manifest' option accept a file, which should return a manifest
>object, and the script you run generate it from your profile.  So you
>can write the script output "(specifications->manifest .....)" into a
>file, eg: "~/.config/guix/manifest.scm", then use "guix package -m
>~/.config/guix-manifest.scm" to apply it.

Done!... By launching:

$ guix package -m ~/.config/guix/manifest.scm

>
>> In which case, I will not need to run this command?
>
>> And finally, are there any changes to make in '/etc/config.scm'? Maybe add 
>> to it:
>
>> -----------------------------------------------
>> (specifications->manifest
>>   '("brasero"
>>     "ffmpeg"
>>     "gimp"
>>     "gnumeric"
>>     "inkscape"
>>     "lynx"
>>     "markdown"
>>     "mpv"
>>     "obs"
>>     "qemu"
>>     "quassel"
>>     "racket"
>>     "ungoogled-chromium"
>>     "wget"
>>     "youtube-dl"
>>     "youtube-viewer"))
>> -----------------------------------------------


>No, the "packages" field of "operation-system" accept a list of package
>objects, it can't deal with "manifest".  In fact, "manifest" is used to
>manage user's own profile, in a declarative way, just like "packages".

Got it...


>> Thank you in advance for your possible clarification :-)

>Yeah, hope it helps!

Indeed :) Thank you so much iyzsong!

Hubert

Reply via email to