summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2021-04-18 02:33:39 +0200
committerJulien Lepiller <julien@lepiller.eu>2021-04-18 13:17:31 +0200
commit58c5911652cfda308d45c190bad3e79367b1d200 (patch)
tree66003d0595380890e03223089c4a256fcbbdb851
parent0571edc179fd2ba8edd603487c808717d6733604 (diff)
nls: Add French translation of the cookbook.
-rw-r--r--doc/local.mk3
-rw-r--r--po/doc/guix-cookbook.fr.po4977
-rw-r--r--po/doc/local.mk3
3 files changed, 4981 insertions, 2 deletions
diff --git a/doc/local.mk b/doc/local.mk
index 53f41f1c877..6e1390a6e2f 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -28,7 +28,8 @@ info_TEXINFOS = %D%/guix.texi \
28 %D%/guix.ru.texi \ 28 %D%/guix.ru.texi \
29 %D%/guix.zh_CN.texi \ 29 %D%/guix.zh_CN.texi \
30 %D%/guix-cookbook.texi \ 30 %D%/guix-cookbook.texi \
31 %D%/guix-cookbook.de.texi 31 %D%/guix-cookbook.de.texi \
32 %D%/guix-cookbook.fr.texi
32 33
33%C%_guix_TEXINFOS = \ 34%C%_guix_TEXINFOS = \
34 %D%/contributing.texi \ 35 %D%/contributing.texi \
diff --git a/po/doc/guix-cookbook.fr.po b/po/doc/guix-cookbook.fr.po
new file mode 100644
index 00000000000..e7cab77b765
--- /dev/null
+++ b/po/doc/guix-cookbook.fr.po
@@ -0,0 +1,4977 @@
1# SOME DESCRIPTIVE TITLE
2# Copyright (C) YEAR the authors of Guix (msgids)
3# This file is distributed under the same license as the guix manual package.
4# Julien Lepiller <fedora-account@lepiller.eu>, 2021.
5# Francois Polito <francois@polito.se>, 2021.
6msgid ""
7msgstr ""
8"Project-Id-Version: guix manual checkout\n"
9"Report-Msgid-Bugs-To: bug-guix@gnu.org\n"
10"POT-Creation-Date: 2021-01-25 00:00+0100\n"
11"PO-Revision-Date: 2021-04-17 23:47+0000\n"
12"Last-Translator: Julien Lepiller <fedora-account@lepiller.eu>\n"
13"Language-Team: French <https://translate.fedoraproject.org/projects/guix/documentation-cookbook/fr/>\n"
14"Language: fr\n"
15"MIME-Version: 1.0\n"
16"Content-Type: text/plain; charset=UTF-8\n"
17"Content-Transfer-Encoding: 8bit\n"
18"Plural-Forms: nplurals=2; plural=n > 1;\n"
19"X-Generator: Weblate 4.5.3\n"
20
21#. type: Plain text
22#: guix-git/doc/guix-cookbook.texi:7
23msgid "@documentencoding UTF-8"
24msgstr ""
25"@documentencoding UTF-8\n"
26"@documentlanguage fr\n"
27"@frenchspacing on"
28
29#. type: top
30#: guix-git/doc/guix-cookbook.texi:7 guix-git/doc/guix-cookbook.texi:35
31#: guix-git/doc/guix-cookbook.texi:49
32#, no-wrap
33msgid "GNU Guix Cookbook"
34msgstr "Livre de recettes de GNU Guix"
35
36#. type: copying
37#: guix-git/doc/guix-cookbook.texi:20
38msgid "Copyright @copyright{} 2019 Ricardo Wurmus@* Copyright @copyright{} 2019 Efraim Flashner@* Copyright @copyright{} 2019 Pierre Neidhardt@* Copyright @copyright{} 2020 Oleg Pykhalov@* Copyright @copyright{} 2020 Matthew Brooks@* Copyright @copyright{} 2020 Marcin Karpezo@* Copyright @copyright{} 2020 Brice Waegeneire@* Copyright @copyright{} 2020 André Batista@* Copyright @copyright{} 2020 Christopher Lemmer Webber"
39msgstr ""
40"Copyright @copyright{} 2019 Ricardo Wurmus@*\n"
41"Copyright @copyright{} 2019 Efraim Flashner@*\n"
42"Copyright @copyright{} 2019 Pierre Neidhardt@*\n"
43"Copyright @copyright{} 2020 Oleg Pykhalov@*\n"
44"Copyright @copyright{} 2020 Matthew Brooks@*\n"
45"Copyright @copyright{} 2020 Marcin Karpezo@*\n"
46"Copyright @copyright{} 2020 Brice Waegeneire@*\n"
47"Copyright @copyright{} 2020 André Batista@*\n"
48"Copyright @copyright{} 2020 Christopher Lemmer Webber"
49
50#. type: copying
51#: guix-git/doc/guix-cookbook.texi:27
52msgid "Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled ``GNU Free Documentation License''."
53msgstr "Vous avez la permission de copier, distribuer ou modifier ce document sous les termes de la Licence GNU Free Documentation, version 1.3 ou toute version ultérieure publiée par la Free Software Foundation ; sans section invariante, texte de couverture et sans texte de quatrième de couverture. Une copie de la licence est incluse dans la section intitulée « GNU Free Documentation License »."
54
55#. type: dircategory
56#: guix-git/doc/guix-cookbook.texi:29
57#, no-wrap
58msgid "System administration"
59msgstr "Administration système"
60
61#. type: menuentry
62#: guix-git/doc/guix-cookbook.texi:32
63msgid "Guix cookbook: (guix-cookbook)"
64msgstr "Livre de recettes de Guix: (guix-cookbook.fr)"
65
66#. type: menuentry
67#: guix-git/doc/guix-cookbook.texi:32
68msgid "Tutorials and examples for GNU Guix."
69msgstr "Didacticiels et exemples pour GNU Guix."
70
71#. type: subtitle
72#: guix-git/doc/guix-cookbook.texi:36
73#, no-wrap
74msgid "Tutorials and examples for using the GNU Guix Functional Package Manager"
75msgstr "Didacticiels et exemples d'utilisation du gestionnaire de paquets GNU Guix"
76
77#. type: author
78#: guix-git/doc/guix-cookbook.texi:37
79#, no-wrap
80msgid "The GNU Guix Developers"
81msgstr "Les développeurs de GNU Guix"
82
83#. type: node
84#: guix-git/doc/guix-cookbook.texi:48
85#, no-wrap
86msgid "Top"
87msgstr "Top"
88
89#. type: Plain text
90#: guix-git/doc/guix-cookbook.texi:55
91msgid "This document presents tutorials and detailed examples for GNU@tie{}Guix, a functional package management tool written for the GNU system. Please @pxref{Top,,, guix, GNU Guix reference manual} for details about the system, its API, and related concepts."
92msgstr "Ce document propose des didacticiels et des exemples détaillés pour GNU@tie{}Guix, un outil de gestion des paquets fonctionnel écrit pour le système GNU. @pxref{Top,,, guix.fr, le manuel de référence de Guix} pour plus de détails sur le système, son API et les concepts associés."
93
94#. You can replace the following paragraph with information on
95#. type: Plain text
96#: guix-git/doc/guix-cookbook.texi:63
97msgid "If you would like to translate this document in your native language, consider joining @uref{https://translate.fedoraproject.org/projects/guix/documentation-cookbook, Weblate}."
98msgstr "Si vous désirez traduire ce document dans votre langue maternelle, rejoignez @uref{https://translate.fedoraproject.org/projects/guix/documentation-cookbook, Weblate}."
99
100#. type: chapter
101#: guix-git/doc/guix-cookbook.texi:70 guix-git/doc/guix-cookbook.texi:79
102#: guix-git/doc/guix-cookbook.texi:95 guix-git/doc/guix-cookbook.texi:96
103#, no-wrap
104msgid "Scheme tutorials"
105msgstr "Didacticiels pour Scheme"
106
107#. type: menuentry
108#: guix-git/doc/guix-cookbook.texi:70
109msgid "Meet your new favorite language!"
110msgstr "Découvrez votre nouveau langage préféré !"
111
112#. type: chapter
113#: guix-git/doc/guix-cookbook.texi:70 guix-git/doc/guix-cookbook.texi:83
114#: guix-git/doc/guix-cookbook.texi:302 guix-git/doc/guix-cookbook.texi:303
115#, no-wrap
116msgid "Packaging"
117msgstr "Empaquetage"
118
119#. type: menuentry
120#: guix-git/doc/guix-cookbook.texi:70
121msgid "Packaging tutorials"
122msgstr "Didacticiel d'empaquetage"
123
124#. type: chapter
125#: guix-git/doc/guix-cookbook.texi:70 guix-git/doc/guix-cookbook.texi:87
126#: guix-git/doc/guix-cookbook.texi:1345 guix-git/doc/guix-cookbook.texi:1346
127#, no-wrap
128msgid "System Configuration"
129msgstr "Configuration du système"
130
131#. type: menuentry
132#: guix-git/doc/guix-cookbook.texi:70
133msgid "Customizing the GNU System"
134msgstr "Personnalisation du système GNU"
135
136#. type: chapter
137#: guix-git/doc/guix-cookbook.texi:70 guix-git/doc/guix-cookbook.texi:2394
138#: guix-git/doc/guix-cookbook.texi:2395
139#, no-wrap
140msgid "Advanced package management"
141msgstr "Gestion avancée des paquets"
142
143#. type: menuentry
144#: guix-git/doc/guix-cookbook.texi:70
145msgid "Power to the users!"
146msgstr "Le pouvoir aux utilisateurs !"
147
148#. type: chapter
149#: guix-git/doc/guix-cookbook.texi:70 guix-git/doc/guix-cookbook.texi:2792
150#: guix-git/doc/guix-cookbook.texi:2793
151#, no-wrap
152msgid "Environment management"
153msgstr "Gestion de l'environnement"
154
155#. type: menuentry
156#: guix-git/doc/guix-cookbook.texi:70
157msgid "Control environment"
158msgstr "Environnement de contrôle"
159
160#. type: chapter
161#: guix-git/doc/guix-cookbook.texi:74 guix-git/doc/guix-cookbook.texi:2916
162#: guix-git/doc/guix-cookbook.texi:2917
163#, no-wrap
164msgid "Acknowledgments"
165msgstr "Remerciements"
166
167#. type: menuentry
168#: guix-git/doc/guix-cookbook.texi:74
169msgid "Thanks!"
170msgstr "Merci !"
171
172#. type: appendix
173#: guix-git/doc/guix-cookbook.texi:74 guix-git/doc/guix-cookbook.texi:2941
174#: guix-git/doc/guix-cookbook.texi:2942
175#, no-wrap
176msgid "GNU Free Documentation License"
177msgstr "La licence GNU Free Documentation"
178
179#. type: menuentry
180#: guix-git/doc/guix-cookbook.texi:74
181msgid "The license of this document."
182msgstr "La licence de ce document."
183
184#. type: unnumbered
185#: guix-git/doc/guix-cookbook.texi:74 guix-git/doc/guix-cookbook.texi:2947
186#: guix-git/doc/guix-cookbook.texi:2948
187#, no-wrap
188msgid "Concept Index"
189msgstr "Index des concepts"
190
191#. type: menuentry
192#: guix-git/doc/guix-cookbook.texi:74
193msgid "Concepts."
194msgstr "Les concepts."
195
196#. type: menuentry
197#: guix-git/doc/guix-cookbook.texi:77
198msgid "--- The Detailed Node Listing ---"
199msgstr "--- Liste détaillée des nœuds ---"
200
201#. type: section
202#: guix-git/doc/guix-cookbook.texi:81 guix-git/doc/guix-cookbook.texi:109
203#: guix-git/doc/guix-cookbook.texi:110
204#, no-wrap
205msgid "A Scheme Crash Course"
206msgstr "Cours accéléré du language Scheme"
207
208#. type: menuentry
209#: guix-git/doc/guix-cookbook.texi:81
210msgid "Learn the basics of Scheme"
211msgstr "Apprenez les bases du langage Scheme"
212
213#. type: section
214#: guix-git/doc/guix-cookbook.texi:85 guix-git/doc/guix-cookbook.texi:314
215#: guix-git/doc/guix-cookbook.texi:316 guix-git/doc/guix-cookbook.texi:317
216#, no-wrap
217msgid "Packaging Tutorial"
218msgstr "Didacticiel d'empaquetage"
219
220#. type: menuentry
221#: guix-git/doc/guix-cookbook.texi:85
222msgid "Let's add a package to Guix!"
223msgstr "Ajoutons un paquet à Guix !"
224
225#. type: section
226#: guix-git/doc/guix-cookbook.texi:89 guix-git/doc/guix-cookbook.texi:1364
227#: guix-git/doc/guix-cookbook.texi:1366 guix-git/doc/guix-cookbook.texi:1367
228#, no-wrap
229msgid "Customizing the Kernel"
230msgstr "Personnalisation du noyau"
231
232#. type: menuentry
233#: guix-git/doc/guix-cookbook.texi:89
234msgid "Creating and using a custom Linux kernel"
235msgstr "Créer et utiliser un noyau Linux personnalisé"
236
237#. type: Plain text
238#: guix-git/doc/guix-cookbook.texi:102
239msgid "GNU@tie{}Guix is written in the general purpose programming language Scheme, and many of its features can be accessed and manipulated programmatically. You can use Scheme to generate package definitions, to modify them, to build them, to deploy whole operating systems, etc."
240msgstr "GNU@tie{}Guix est écrit dans le langage de programmation Scheme. Nombre de ses fonctionnalités peuvent être consultées et manipulées par programmation. Vous pouvez utiliser Scheme entre autres pour générer des définitions de paquets, pour les modifier, pour les compiler ou pour déployer des systèmes d'exploitation entiers."
241
242#. type: Plain text
243#: guix-git/doc/guix-cookbook.texi:106
244msgid "Knowing the basics of how to program in Scheme will unlock many of the advanced features Guix provides --- and you don't even need to be an experienced programmer to use them!"
245msgstr "Connaître les bases de la programmation en Scheme vous permettra d'utiliser de nombreuses fonctionnalités avancées de Guix --- et vous n'avez pas besoin d'être un·e programmeur·euse chevronné·e !"
246
247#. type: Plain text
248#: guix-git/doc/guix-cookbook.texi:108
249msgid "Let's get started!"
250msgstr "C'est parti !"
251
252#. type: cindex
253#: guix-git/doc/guix-cookbook.texi:112
254#, no-wrap
255msgid "Scheme, crash course"
256msgstr "Scheme, cours accéléré"
257
258#. type: Plain text
259#: guix-git/doc/guix-cookbook.texi:118
260msgid "Guix uses the Guile implementation of Scheme. To start playing with the language, install it with @code{guix install guile} and start a @dfn{REPL}---short for @uref{https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop, @dfn{read-eval-print loop}}---by running @code{guile} from the command line."
261msgstr "Guix utilise l'implémentation Guile du langage Scheme. Pour commencer à jouer avec le langage, installez-le avec @code{guix install guile} et démarrer une @dfn{REPL}, une @uref{https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop, @dfn{boucle de lecture, évaluation, affichage}}, en lançant @code{guile} sur la ligne de commande."
262
263#. type: Plain text
264#: guix-git/doc/guix-cookbook.texi:121
265msgid "Alternatively you can also run @code{guix environment --ad-hoc guile -- guile} if you'd rather not have Guile installed in your user profile."
266msgstr "Vous pouvez également lancer la commande @code{guix environment --ad-hoc guile -- guile} si vous préférez ne pas installer Guile dans votre profil utilisateur."
267
268#. type: Plain text
269#: guix-git/doc/guix-cookbook.texi:127
270msgid "In the following examples, lines show what you would type at the REPL; lines starting with ``@result{}'' show evaluation results, while lines starting with ``@print{}'' show things that get printed. @xref{Using Guile Interactively,,, guile, GNU Guile Reference Manual}, for more details on the REPL."
271msgstr "Dans les exemples suivants, les lignes montrent ce que vous devez taper sur la REPL ; les lignes commençant par « @result{} » montrent le résultat de l'évaluation, tandis que les lignes commençant par « @print{} » montrent ce qui est affiché. @xref{Using Guile Interactively,,, guile, GNU Guile Reference Manual}, pour plus d'information sur la REPL."
272
273#. type: itemize
274#: guix-git/doc/guix-cookbook.texi:135
275msgid "Scheme syntax boils down to a tree of expressions (or @emph{s-expression} in Lisp lingo). An expression can be a literal such as numbers and strings, or a compound which is a parenthesized list of compounds and literals. @code{#true} and @code{#false} (abbreviated @code{#t} and @code{#f}) stand for the Booleans ``true'' and ``false'', respectively."
276msgstr "La syntaxe de Scheme se résume à un arbre d'expressions (ou une @emph{s-expression} dans le jargon Lisp). Une expression peut être un litéral comme un nombre ou une chaîne de caractères, ou composée d'une liste d'autres éléments composés et litéraux, entourée de parenthèses. @code{#true} et @code{#false} (abrégés @code{#t} et @code{#f}) correspondent aux booléens « vrai » et « faux »."
277
278#. type: itemize
279#: guix-git/doc/guix-cookbook.texi:137
280msgid "Examples of valid expressions:"
281msgstr "Voici des exemples d'expressions valides :"
282
283#. type: lisp
284#: guix-git/doc/guix-cookbook.texi:141
285#, no-wrap
286msgid ""
287"\"Hello World!\"\n"
288"@result{} \"Hello World!\"\n"
289"\n"
290msgstr ""
291"\"Bonjour le monde !\"\n"
292"@result{} \"Bonjour le monde !\"\n"
293"\n"
294
295#. type: lisp
296#: guix-git/doc/guix-cookbook.texi:144
297#, no-wrap
298msgid ""
299"17\n"
300"@result{} 17\n"
301"\n"
302msgstr ""
303"17\n"
304"@result{} 17\n"
305"\n"
306
307#. type: lisp
308#: guix-git/doc/guix-cookbook.texi:148
309#, no-wrap
310msgid ""
311"(display (string-append \"Hello \" \"Guix\" \"\\n\"))\n"
312"@print{} Hello Guix!\n"
313"@result{} #<unspecified>\n"
314msgstr ""
315"(display (string-append \"Bonjour \" \"Guix\" \"\\n\"))\n"
316"@print{} Bonjour Guix\n"
317"@result{} #<unspecified>\n"
318
319#. type: itemize
320#: guix-git/doc/guix-cookbook.texi:155
321msgid "This last example is a function call nested in another function call. When a parenthesized expression is evaluated, the first term is the function and the rest are the arguments passed to the function. Every function returns the last evaluated expression as its return value."
322msgstr "Ce dernier exemple est un appel de fonction imbriqué dans un autre appel de fonction. Lorsqu'une expression parenthésée est évaluée, le premier élément est la fonction et le reste sont les arguments passés à la fonction. Chaque fonction renvoie la dernière expression évaluée."
323
324#. type: itemize
325#: guix-git/doc/guix-cookbook.texi:158
326msgid "Anonymous functions are declared with the @code{lambda} term:"
327msgstr "On peut déclarer des fonctions anonymes avec le terme @code{lambda} :"
328
329#. type: lisp
330#: guix-git/doc/guix-cookbook.texi:162
331#, no-wrap
332msgid ""
333"(lambda (x) (* x x))\n"
334"@result{} #<procedure 120e348 at <unknown port>:24:0 (x)>\n"
335msgstr ""
336"(lambda (x) (* x x))\n"
337"@result{} #<procedure 120e348 at <unknown port>:24:0 (x)>\n"
338
339#. type: itemize
340#: guix-git/doc/guix-cookbook.texi:167
341msgid "The above procedure returns the square of its argument. Since everything is an expression, the @code{lambda} expression returns an anonymous procedure, which can in turn be applied to an argument:"
342msgstr "La procédure ci-dessus renvoie le carré de son argument. Comme tout est une expression, l'expression @code{lambda} renvoie une procédure anonyme, qui peut ensuite être appliquée à un argument :"
343
344#. type: lisp
345#: guix-git/doc/guix-cookbook.texi:171
346#, no-wrap
347msgid ""
348"((lambda (x) (* x x)) 3)\n"
349"@result{} 9\n"
350msgstr ""
351"((lambda (x) (* x x)) 3)\n"
352"@result{} 9\n"
353
354#. type: itemize
355#: guix-git/doc/guix-cookbook.texi:175
356msgid "Anything can be assigned a global name with @code{define}:"
357msgstr "On peut assigner un nom global à tout ce qu'on veut avec @code{define} :"
358
359#. type: lisp
360#: guix-git/doc/guix-cookbook.texi:181
361#, no-wrap
362msgid ""
363"(define a 3)\n"
364"(define square (lambda (x) (* x x)))\n"
365"(square a)\n"
366"@result{} 9\n"
367msgstr ""
368"(define a 3)\n"
369"(define square (lambda (x) (* x x)))\n"
370"(square a)\n"
371"@result{} 9\n"
372
373#. type: itemize
374#: guix-git/doc/guix-cookbook.texi:185
375msgid "Procedures can be defined more concisely with the following syntax:"
376msgstr "On peut définir des procédure de manière plus concise avec la syntaxe suivante :"
377
378#. type: lisp
379#: guix-git/doc/guix-cookbook.texi:188
380#, no-wrap
381msgid "(define (square x) (* x x))\n"
382msgstr "(define (square x) (* x x))\n"
383
384#. type: itemize
385#: guix-git/doc/guix-cookbook.texi:192
386msgid "A list structure can be created with the @code{list} procedure:"
387msgstr "On peut créer une structure de liste avec la procédure @code{list} :"
388
389#. type: lisp
390#: guix-git/doc/guix-cookbook.texi:196
391#, no-wrap
392msgid ""
393"(list 2 a 5 7)\n"
394"@result{} (2 3 5 7)\n"
395msgstr ""
396"(list 2 a 5 7)\n"
397"@result{} (2 3 5 7)\n"
398
399#. type: itemize
400#: guix-git/doc/guix-cookbook.texi:203
401msgid "The @dfn{quote} disables evaluation of a parenthesized expression: the first term is not called over the other terms (@pxref{Expression Syntax, quote,, guile, GNU Guile Reference Manual}). Thus it effectively returns a list of terms."
402msgstr "La @dfn{quote} (l'apostrophe) désactive l'évaluation d'une expression parenthésée : le premier élément n'est pas appelé avec les autres éléments en argument (@pxref{Expression Syntax, quote,, guile, GNU Guile Reference Manual}). Donc, il renvoie une liste de termes."
403
404#. type: lisp
405#: guix-git/doc/guix-cookbook.texi:207
406#, no-wrap
407msgid ""
408"'(display (string-append \"Hello \" \"Guix\" \"\\n\"))\n"
409"@result{} (display (string-append \"Hello \" \"Guix\" \"\\n\"))\n"
410"\n"
411msgstr ""
412"'(display (string-append \"Bonjour \" \"Guix\" \"\\n\"))\n"
413"@result{} (display (string-append \"Bonjour \" \"Guix\" \"\\n\"))\n"
414"\n"
415
416#. type: lisp
417#: guix-git/doc/guix-cookbook.texi:210
418#, no-wrap
419msgid ""
420"'(2 a 5 7)\n"
421"@result{} (2 a 5 7)\n"
422msgstr ""
423"'(2 a 5 7)\n"
424"@result{} (2 a 5 7)\n"
425
426#. type: itemize
427#: guix-git/doc/guix-cookbook.texi:216
428msgid "The @dfn{quasiquote} disables evaluation of a parenthesized expression until @dfn{unquote} (a comma) re-enables it. Thus it provides us with fine-grained control over what is evaluated and what is not."
429msgstr "La @dfn{quasiquote} (l'apostrophe à l'envers) désactive l'évaluation d'une expression parenthésée jusqu'à ce qu'un @dfn{unquote} (une virgule) la réactive. De cette manière, on garde un contrôle fin sur ce qui est évalué et sur ce qui ne l'est pas."
430
431#. type: lisp
432#: guix-git/doc/guix-cookbook.texi:220
433#, no-wrap
434msgid ""
435"`(2 a 5 7 (2 ,a 5 ,(+ a 4)))\n"
436"@result{} (2 a 5 7 (2 3 5 7))\n"
437msgstr ""
438"`(2 a 5 7 (2 ,a 5 ,(+ a 4)))\n"
439"@result{} (2 a 5 7 (2 3 5 7))\n"
440
441#. type: itemize
442#: guix-git/doc/guix-cookbook.texi:224
443msgid "Note that the above result is a list of mixed elements: numbers, symbols (here @code{a}) and the last element is a list itself."
444msgstr "Remarquez que le résultat ci-dessus est une liste d'éléments mixtes : des nombres, des symboles (ici @code{a}) et le dernier élément est aussi une liste."
445
446#. type: itemize
447#: guix-git/doc/guix-cookbook.texi:228
448msgid "Multiple variables can be named locally with @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual}):"
449msgstr "On peut nommer localement plusieurs variables avec @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual}) :"
450
451#. type: lisp
452#: guix-git/doc/guix-cookbook.texi:235
453#, no-wrap
454msgid ""
455"(define x 10)\n"
456"(let ((x 2)\n"
457" (y 3))\n"
458" (list x y))\n"
459"@result{} (2 3)\n"
460"\n"
461msgstr ""
462"(define x 10)\n"
463"(let ((x 2)\n"
464" (y 3))\n"
465" (list x y))\n"
466"@result{} (2 3)\n"
467"\n"
468
469#. type: lisp
470#: guix-git/doc/guix-cookbook.texi:238
471#, no-wrap
472msgid ""
473"x\n"
474"@result{} 10\n"
475"\n"
476msgstr ""
477"x\n"
478"@result{} 10\n"
479"\n"
480
481#. type: lisp
482#: guix-git/doc/guix-cookbook.texi:241
483#, no-wrap
484msgid ""
485"y\n"
486"@error{} In procedure module-lookup: Unbound variable: y\n"
487msgstr ""
488"y\n"
489"@error{} In procedure module-lookup: Unbound variable: y\n"
490
491#. type: itemize
492#: guix-git/doc/guix-cookbook.texi:245
493msgid "Use @code{let*} to allow later variable declarations to refer to earlier definitions."
494msgstr "On peut utiliser @code{let*} pour permettre au déclarations de variables ultérieures d'utiliser les définitions précédentes."
495
496#. type: lisp
497#: guix-git/doc/guix-cookbook.texi:251
498#, no-wrap
499msgid ""
500"(let* ((x 2)\n"
501" (y (* x 3)))\n"
502" (list x y))\n"
503"@result{} (2 6)\n"
504msgstr ""
505"(let* ((x 2)\n"
506" (y (* x 3)))\n"
507" (list x y))\n"
508"@result{} (2 6)\n"
509
510#. type: itemize
511#: guix-git/doc/guix-cookbook.texi:258
512msgid "@dfn{Keywords} are typically used to identify the named parameters of a procedure. They are prefixed by @code{#:} (hash, colon) followed by alphanumeric characters: @code{#:like-this}. @xref{Keywords,,, guile, GNU Guile Reference Manual}."
513msgstr "On utilise typiquement des @dfn{mot-clés} pour identifier les paramètres nommés d'une procédure. Ils sont précédés de @code{#:} (dièse, deux-points) suivi par des caractères alphanumériques : @code{#:comme-ça}. @xref{Keywords,,, guile, GNU Guile Reference Manual}."
514
515#. type: itemize
516#: guix-git/doc/guix-cookbook.texi:263
517msgid "The percentage @code{%} is typically used for read-only global variables in the build stage. Note that it is merely a convention, like @code{_} in C. Scheme treats @code{%} exactly the same as any other letter."
518msgstr "On utilise souvent le signe pourcent @code{%} pour les variables globales non modifiables à l'étape de construction. Remarquez que ce n'est qu'une convention, comme @code{_} en C. Scheme traite @code{%} de la même manière que les autres lettres."
519
520#. type: itemize
521#: guix-git/doc/guix-cookbook.texi:267
522msgid "Modules are created with @code{define-module} (@pxref{Creating Guile Modules,,, guile, GNU Guile Reference Manual}). For instance"
523msgstr "On peut créer des modules avec @code{define-module} (@pxref{Creating Guile Modules,,, guile, GNU Guile Reference Manual}). Par exemple :"
524
525#. type: lisp
526#: guix-git/doc/guix-cookbook.texi:273
527#, no-wrap
528msgid ""
529"(define-module (guix build-system ruby)\n"
530" #:use-module (guix store)\n"
531" #:export (ruby-build\n"
532" ruby-build-system))\n"
533msgstr ""
534"(define-module (guix build-system ruby)\n"
535" #:use-module (guix store)\n"
536" #:export (ruby-build\n"
537" ruby-build-system))\n"
538
539#. type: itemize
540#: guix-git/doc/guix-cookbook.texi:279
541msgid "defines the module @code{guix build-system ruby} which must be located in @file{guix/build-system/ruby.scm} somewhere in the Guile load path. It depends on the @code{(guix store)} module and it exports two variables, @code{ruby-build} and @code{ruby-build-system}."
542msgstr "défini le module @code{guix build-system ruby} qui doit se situer dans @file{guix/build-system/ruby.scm} quelque part dans le chemin de recherche de Guile. Il dépend du module @code{(guix store)} et exporte deux variables, @code{ruby-build} et @code{ruby-build-system}."
543
544#. type: Plain text
545#: guix-git/doc/guix-cookbook.texi:284
546msgid "For a more detailed introduction, check out @uref{http://www.troubleshooters.com/codecorn/scheme_guile/hello.htm, Scheme at a Glance}, by Steve Litt."
547msgstr "Pour une introduction plus détaillée, consultez @uref{http://www.troubleshooters.com/codecorn/scheme_guile/hello.htm, Scheme at a Glance}, par Steve Litt."
548
549#. type: Plain text
550#: guix-git/doc/guix-cookbook.texi:296
551msgid "One of the reference Scheme books is the seminal ``Structure and Interpretation of Computer Programs'', by Harold Abelson and Gerald Jay Sussman, with Julie Sussman. You'll find a @uref{https://mitpress.mit.edu/sites/default/files/sicp/index.html, free copy online}, together with @uref{https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/, videos of the lectures by the authors}. The book is available in Texinfo format as the @code{sicp} Guix package. Go ahead, run @code{guix install sicp} and start reading with @code{info sicp} (@pxref{,,, sicp, Structure and Interpretation of Computer Programs}). An @uref{https://sarabander.github.io/sicp/, unofficial ebook is also available}."
552msgstr "L'un des livres de référence majeurs pour Scheme est « Structure and Interpretation of Computer Programs » de Harold Abelson et Gerald Jay Sussman, avec Julie Sussman. Vous trouverez une @uref{https://mitpress.mit.edu/sites/default/files/sicp/index.html,copie gratuite en ligne}, avec @uref{https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring-2005/video-lectures/, les vidéos des cours donnés par les auteurs, en anglais}. Le livre est disponible au format Texinfo dans le paquet Guix @code{sicp}. Allez-y, lancez @code{guix install sicp} et commencez à le lire avec @code{info sicp} (@pxref{,,, sicp, Structure and Interpretation of Computer Programs}). Un @uref{https://sarabander.github.io/sicp/,livre électronique officieux est aussi disponible}."
553
554#. type: Plain text
555#: guix-git/doc/guix-cookbook.texi:299
556msgid "You'll find more books, tutorials and other resources at @url{https://schemers.org/}."
557msgstr "Vous trouverez plus de livres, de didacticiels et d'autres ressources sur @url{https://schemers.org/}."
558
559#. type: cindex
560#: guix-git/doc/guix-cookbook.texi:305
561#, no-wrap
562msgid "packaging"
563msgstr "empaquetage"
564
565#. type: Plain text
566#: guix-git/doc/guix-cookbook.texi:311
567msgid "This chapter is dedicated to teaching you how to add packages to the collection of packages that come with GNU Guix. This involves writing package definitions in Guile Scheme, organizing them in package modules, and building them."
568msgstr "Ce chapitre est conçu pour vous enseigner comment ajouter des paquets à la collection de paquets de GNU Guix. Pour cela, vous devrez écrire des définitions de paquets en Guile Scheme, les organiser en modules et les construire."
569
570#. type: menuentry
571#: guix-git/doc/guix-cookbook.texi:314
572msgid "A tutorial on how to add packages to Guix."
573msgstr "Un didacticiel sur la manière d'ajouter des paquets à Guix."
574
575#. type: Plain text
576#: guix-git/doc/guix-cookbook.texi:325
577msgid "GNU Guix stands out as the @emph{hackable} package manager, mostly because it uses @uref{https://www.gnu.org/software/guile/, GNU Guile}, a powerful high-level programming language, one of the @uref{https://en.wikipedia.org/wiki/Scheme_%28programming_language%29, Scheme} dialects from the @uref{https://en.wikipedia.org/wiki/Lisp_%28programming_language%29, Lisp family}."
578msgstr "GNU Guix se démarque des autres gestionnaire de paquets en étant @emph{bidouillable}, surtout parce qu'il utilise @uref{https://www.gnu.org/software/guile/,GNU Guile}, un langage de programmation de haut-niveau puissant, l'un des dialectes @uref{https://fr.wikipedia.org/wiki/Scheme, Scheme} de @uref{https://fr.wikipedia.org/wiki/Lisp, la famille Lisp}."
579
580#. type: Plain text
581#: guix-git/doc/guix-cookbook.texi:329
582msgid "Package definitions are also written in Scheme, which empowers Guix in some very unique ways, unlike most other package managers that use shell scripts or simple languages."
583msgstr "Les définitions de paquets sont aussi écrites en Scheme, ce qui le rend plus puissant de manière assez unique par rapport aux autres gestionnaires de paquets qui utilisent des scripts shell ou des langages simples."
584
585#. type: itemize
586#: guix-git/doc/guix-cookbook.texi:334
587msgid "Use functions, structures, macros and all of Scheme expressiveness for your package definitions."
588msgstr "Vous pouvez utiliser des fonctions, des structures, des macros et toute l'expressivité de Scheme dans vos définitions de paquets."
589
590#. type: itemize
591#: guix-git/doc/guix-cookbook.texi:338
592msgid "Inheritance makes it easy to customize a package by inheriting from it and modifying only what is needed."
593msgstr "L'héritage facilite la personnalisation d'un paquet en héritant d'un autre et en modifiant uniquement les points nécessaires."
594
595#. type: itemize
596#: guix-git/doc/guix-cookbook.texi:348
597msgid "Batch processing: the whole package collection can be parsed, filtered and processed. Building a headless server with all graphical interfaces stripped out? It's possible. Want to rebuild everything from source using specific compiler optimization flags? Pass the @code{#:make-flags \"...\"} argument to the list of packages. It wouldn't be a stretch to think @uref{https://wiki.gentoo.org/wiki/USE_flag, Gentoo USE flags} here, but this goes even further: the changes don't have to be thought out beforehand by the packager, they can be @emph{programmed} by the user!"
598msgstr "Traitement par lot : la collection des paquets entière peut être analysée, filtrée et traitée. Vous voulez construire un serveur sans interface graphique ? C'est possible. Vous voulez tout reconstruire à partir des sources avec des drapeaux d'optimisation spécifiques ? Passez l'argument @code{#:make-flags \"…\"} à la liste des paquets. Ce ne serait pas aberrant de penser @uref{https://wiki.gentoo.org/wiki/USE_flag, au drapeau USE de Gentoo}, mais cela va plus loin : la personne qui crée les paquets n'a pas besoin de penser à l'avance à ces changements, ils peuvent être @emph{programmés} par l'utilisateur ou l'utilisatrice !"
599
600#. type: Plain text
601#: guix-git/doc/guix-cookbook.texi:354
602msgid "The following tutorial covers all the basics around package creation with Guix. It does not assume much knowledge of the Guix system nor of the Lisp language. The reader is only expected to be familiar with the command line and to have some basic programming knowledge."
603msgstr "Le didacticiel suivant traite des bases de la création de paquets avec Guix. Il ne présuppose aucune connaissance du système Guix ni du langage Lisp. On ne s'attend qu'à ce que vous aillez une certaine familiarité avec la ligne de commande et des connaissances de base en programmation."
604
605#. type: subsection
606#: guix-git/doc/guix-cookbook.texi:355 guix-git/doc/guix-cookbook.texi:356
607#, no-wrap
608msgid "A ``Hello World'' package"
609msgstr "Un paquet « hello world »"
610
611#. type: Plain text
612#: guix-git/doc/guix-cookbook.texi:361
613msgid "The ``Defining Packages'' section of the manual introduces the basics of Guix packaging (@pxref{Defining Packages,,, guix, GNU Guix Reference Manual}). In the following section, we will partly go over those basics again."
614msgstr "La section « Définir des paquets » du manuel explique les bases de l'empaquetage avec Guix (@pxref{Définir des paquets,,, guix.fr, le manuel de référence de GNU Guix}). Dans la section suivante, nous reparlerons en partie de ces bases."
615
616#. type: Plain text
617#: guix-git/doc/guix-cookbook.texi:367
618msgid "GNU@tie{}Hello is a dummy project that serves as an idiomatic example for packaging. It uses the GNU build system (@code{./configure && make && make install}). Guix already provides a package definition which is a perfect example to start with. You can look up its declaration with @code{guix edit hello} from the command line. Let's see how it looks:"
619msgstr "GNU@tie{}Hello est un exemple de projet qui sert d'exemple idiomatique pour l'empaquetage. Il utilise le système de construction de GNU (@code{./configure && make && make install}). Guix fournit déjà une définition de paquet qui est un parfait exemple pour commencer. Vous pouvez voir sa déclaration avec @code{guix edit hello} depuis la ligne de commande. Voyons à quoi elle ressemble :"
620
621#. type: lisp
622#: guix-git/doc/guix-cookbook.texi:388
623#, no-wrap
624msgid ""
625"(define-public hello\n"
626" (package\n"
627" (name \"hello\")\n"
628" (version \"2.10\")\n"
629" (source (origin\n"
630" (method url-fetch)\n"
631" (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
632" \".tar.gz\"))\n"
633" (sha256\n"
634" (base32\n"
635" \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
636" (build-system gnu-build-system)\n"
637" (synopsis \"Hello, GNU world: An example GNU package\")\n"
638" (description\n"
639" \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
640"serves as an example of standard GNU coding practices. As such, it supports\n"
641"command-line arguments, multiple languages, and so on.\")\n"
642" (home-page \"https://www.gnu.org/software/hello/\")\n"
643" (license gpl3+)))\n"
644msgstr ""
645"(define-public hello\n"
646" (package\n"
647" (name \"hello\")\n"
648" (version \"2.10\")\n"
649" (source (origin\n"
650" (method url-fetch)\n"
651" (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
652" \".tar.gz\"))\n"
653" (sha256\n"
654" (base32\n"
655" \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
656" (build-system gnu-build-system)\n"
657" (synopsis \"Hello, GNU world: An example GNU package\")\n"
658" (description\n"
659" \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
660"serves as an example of standard GNU coding practices. As such, it supports\n"
661"command-line arguments, multiple languages, and so on.\")\n"
662" (home-page \"https://www.gnu.org/software/hello/\")\n"
663" (license gpl3+)))\n"
664
665#. type: Plain text
666#: guix-git/doc/guix-cookbook.texi:392
667msgid "As you can see, most of it is rather straightforward. But let's review the fields together:"
668msgstr "Comme vous pouvez le voir, la plus grosse partie est assez simple. Mais examinons les champs ensemble :"
669
670#. type: item
671#: guix-git/doc/guix-cookbook.texi:394
672#, no-wrap
673msgid "name"
674msgstr "name"
675
676#. type: table
677#: guix-git/doc/guix-cookbook.texi:397
678msgid "The project name. Using Scheme conventions, we prefer to keep it lower case, without underscore and using dash-separated words."
679msgstr "Le nom du projet. Avec les conventions de Scheme, on préfère le laisser en minuscule, sans tiret du bas, en séparant les mots par des tirets."
680
681#. type: item
682#: guix-git/doc/guix-cookbook.texi:398
683#, no-wrap
684msgid "source"
685msgstr "source"
686
687#. type: table
688#: guix-git/doc/guix-cookbook.texi:401
689msgid "This field contains a description of the source code origin. The @code{origin} record contains these fields:"
690msgstr "Ce champ contient une description de l'origine du code source. L'enregistrement @code{origin} contient ces champs :"
691
692#. type: item
693#: guix-git/doc/guix-cookbook.texi:403
694#, no-wrap
695msgid "The method, here @code{url-fetch} to download via HTTP/FTP, but other methods"
696msgstr "La méthode, ici @code{url-fetch} pour télécharger via HTTP/FTP, mais d'autres méthodes"
697
698#. type: enumerate
699#: guix-git/doc/guix-cookbook.texi:405
700msgid "exist, such as @code{git-fetch} for Git repositories."
701msgstr "existent, comme @code{git-fetch} pour les dépôts Git."
702
703#. type: item
704#: guix-git/doc/guix-cookbook.texi:405
705#, no-wrap
706msgid "The URI, which is typically some @code{https://} location for @code{url-fetch}. Here"
707msgstr "L'URI, qui est typiquement un emplacement @code{https://} pour @code{url-fetch}. Ici"
708
709#. type: enumerate
710#: guix-git/doc/guix-cookbook.texi:408
711msgid "the special `mirror://gnu` refers to a set of well known locations, all of which can be used by Guix to fetch the source, should some of them fail."
712msgstr "le code spécial « mirror://gnu » fait référence à une ensemble d'emplacements bien connus, qui peuvent tous être utilisés par Guix pour récupérer la source, si l'un d'entre eux échoue."
713
714#. type: item
715#: guix-git/doc/guix-cookbook.texi:408
716#, no-wrap
717msgid "The @code{sha256} checksum of the requested file. This is essential to ensure"
718msgstr "La somme de contrôle @code{sha256} du fichier demandé. C'est essentiel pour s'assurer"
719
720#. type: enumerate
721#: guix-git/doc/guix-cookbook.texi:411
722msgid "the source is not corrupted. Note that Guix works with base32 strings, hence the call to the @code{base32} function."
723msgstr "que la source n'est pas corrompue. Remarquez que Guix fonctionne avec des chaînes en base32, d'où l'appel à la fonction @code{base32}."
724
725#. type: item
726#: guix-git/doc/guix-cookbook.texi:413
727#, no-wrap
728msgid "build-system"
729msgstr "build-system"
730
731#. type: table
732#: guix-git/doc/guix-cookbook.texi:422
733msgid "This is where the power of abstraction provided by the Scheme language really shines: in this case, the @code{gnu-build-system} abstracts away the famous @code{./configure && make && make install} shell invocations. Other build systems include the @code{trivial-build-system} which does not do anything and requires from the packager to program all the build steps, the @code{python-build-system}, the @code{emacs-build-system}, and many more (@pxref{Build Systems,,, guix, GNU Guix Reference Manual})."
734msgstr "C'est ici que la puissance d'abstraction du langage Scheme brille de toute sa splendeur : dans ce cas, le @code{gnu-build-system} permet d'abstraire les fameuses invocations shell @code{./configure && make && make install}. Parmi les autres systèmes de construction on trouve le @code{trivial-build-system} qui ne fait rien et demande de programmer toutes les étapes de construction, le @code{python-build-system}, @code{emacs-build-system} et bien d'autres (@pxref{Systèmes de construction,,, guix.fr, le manuel de référence de GNU Guix})."
735
736#. type: item
737#: guix-git/doc/guix-cookbook.texi:423
738#, no-wrap
739msgid "synopsis"
740msgstr "synopsis"
741
742#. type: table
743#: guix-git/doc/guix-cookbook.texi:426
744msgid "It should be a concise summary of what the package does. For many packages a tagline from the project's home page can be used as the synopsis."
745msgstr "Le synopsis devrait être un résumé court de ce que fait le paquet. Pour beaucoup de paquets, le slogan de la page d'accueil du projet est approprié pour le synopsis."
746
747#. type: item
748#: guix-git/doc/guix-cookbook.texi:427
749#, no-wrap
750msgid "description"
751msgstr "description"
752
753#. type: table
754#: guix-git/doc/guix-cookbook.texi:430
755msgid "Same as for the synopsis, it's fine to re-use the project description from the homepage. Note that Guix uses Texinfo syntax."
756msgstr "Comme le synopsis, vous pouvez réutiliser la description de la page d'accueil du projet. Remarquez que Guix utilise la syntaxe Texinfo."
757
758#. type: item
759#: guix-git/doc/guix-cookbook.texi:431
760#, no-wrap
761msgid "home-page"
762msgstr "home-page"
763
764#. type: table
765#: guix-git/doc/guix-cookbook.texi:433
766msgid "Use HTTPS if available."
767msgstr "Utilisez l'adresse en HTTPS si elle est disponible."
768
769#. type: item
770#: guix-git/doc/guix-cookbook.texi:434
771#, no-wrap
772msgid "license"
773msgstr "license"
774
775#. type: table
776#: guix-git/doc/guix-cookbook.texi:437
777msgid "See @code{guix/licenses.scm} in the project source for a full list of available licenses."
778msgstr "Voir @code{guix/licenses.scm} dans les sources du projet pour une liste complète des licences disponibles."
779
780#. type: Plain text
781#: guix-git/doc/guix-cookbook.texi:441
782msgid "Time to build our first package! Nothing fancy here for now: we will stick to a dummy @code{my-hello}, a copy of the above declaration."
783msgstr "Il est temps de construire notre premier paquet ! Rien de bien compliqué pour l'instant : nous allons garder notre exemple avec @code{my-hello}, une copie de la déclaration montrée plus haut."
784
785#. type: Plain text
786#: guix-git/doc/guix-cookbook.texi:445
787msgid "As with the ritualistic ``Hello World'' taught with most programming languages, this will possibly be the most ``manual'' approach. We will work out an ideal setup later; for now we will go the simplest route."
788msgstr "Comme avec le rituel « Hello World » enseigné avec la plupart des langages de programmation, ce sera sans doute l'approche la plus « manuelle » d'empaquetage que vous utiliserez. Nous vous montrerons une configuration idéale plus tard, pour l'instant nous allons suivre la voie la plus simple."
789
790#. type: Plain text
791#: guix-git/doc/guix-cookbook.texi:447
792msgid "Save the following to a file @file{my-hello.scm}."
793msgstr "Enregistrez ce qui suit dans un fichier nommé @file{my-hello.scm}."
794
795#. type: lisp
796#: guix-git/doc/guix-cookbook.texi:453
797#, no-wrap
798msgid ""
799"(use-modules (guix packages)\n"
800" (guix download)\n"
801" (guix build-system gnu)\n"
802" (guix licenses))\n"
803"\n"
804msgstr ""
805"(use-modules (guix packages)\n"
806" (guix download)\n"
807" (guix build-system gnu)\n"
808" (guix licenses))\n"
809"\n"
810
811#. type: lisp
812#: guix-git/doc/guix-cookbook.texi:472
813#, no-wrap
814msgid ""
815"(package\n"
816" (name \"my-hello\")\n"
817" (version \"2.10\")\n"
818" (source (origin\n"
819" (method url-fetch)\n"
820" (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
821" \".tar.gz\"))\n"
822" (sha256\n"
823" (base32\n"
824" \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
825" (build-system gnu-build-system)\n"
826" (synopsis \"Hello, Guix world: An example custom Guix package\")\n"
827" (description\n"
828" \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
829"serves as an example of standard GNU coding practices. As such, it supports\n"
830"command-line arguments, multiple languages, and so on.\")\n"
831" (home-page \"https://www.gnu.org/software/hello/\")\n"
832" (license gpl3+))\n"
833msgstr ""
834"(package\n"
835" (name \"my-hello\")\n"
836" (version \"2.10\")\n"
837" (source (origin\n"
838" (method url-fetch)\n"
839" (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
840" \".tar.gz\"))\n"
841" (sha256\n"
842" (base32\n"
843" \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
844" (build-system gnu-build-system)\n"
845" (synopsis \"Hello, Guix world: An example custom Guix package\")\n"
846" (description\n"
847" \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
848"serves as an example of standard GNU coding practices. As such, it supports\n"
849"command-line arguments, multiple languages, and so on.\")\n"
850" (home-page \"https://www.gnu.org/software/hello/\")\n"
851" (license gpl3+))\n"
852
853#. type: Plain text
854#: guix-git/doc/guix-cookbook.texi:475
855msgid "We will explain the extra code in a moment."
856msgstr "Nous allons expliquer le code supplémentaire dans un moment."
857
858#. type: Plain text
859#: guix-git/doc/guix-cookbook.texi:482
860msgid "Feel free to play with the different values of the various fields. If you change the source, you'll need to update the checksum. Indeed, Guix refuses to build anything if the given checksum does not match the computed checksum of the source code. To obtain the correct checksum of the package declaration, we need to download the source, compute the sha256 checksum and convert it to base32."
861msgstr "Essayez de jouer avec les différentes valeurs des différents champs. Si vous changez la source, vous devrez mettre à jour la somme de contrôle. En fait, Guix refusera de construire quoi que ce soit si la somme de contrôle donnée ne correspond pas à la somme de contrôle calculée de la source téléchargée. Pour obtenir la bonne somme de contrôle pour une déclaration de paquet, vous devrez télécharger la source, calculer la somme de contrôle sha256 et la convertir en base32."
862
863#. type: Plain text
864#: guix-git/doc/guix-cookbook.texi:485
865msgid "Thankfully, Guix can automate this task for us; all we need is to provide the URI:"
866msgstr "Heureusement, Guix peut automatiser cette tache pour nous ; tout ce qu'on doit faire est de lui fournir l'URI :"
867
868#. This is example shell output.
869#. type: example
870#: guix-git/doc/guix-cookbook.texi:489
871#, no-wrap
872msgid ""
873"$ guix download mirror://gnu/hello/hello-2.10.tar.gz\n"
874"\n"
875msgstr ""
876"$ guix download mirror://gnu/hello/hello-2.10.tar.gz\n"
877"\n"
878
879#. type: example
880#: guix-git/doc/guix-cookbook.texi:496
881#, no-wrap
882msgid ""
883"Starting download of /tmp/guix-file.JLYgL7\n"
884"From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz...\n"
885"following redirection to `https://mirror.ibcp.fr/pub/gnu/hello/hello-2.10.tar.gz'...\n"
886" …10.tar.gz 709KiB 2.5MiB/s 00:00 [##################] 100.0%\n"
887"/gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz\n"
888"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\n"
889msgstr ""
890"Starting download of /tmp/guix-file.JLYgL7\n"
891"From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz...\n"
892"following redirection to `https://mirror.ibcp.fr/pub/gnu/hello/hello-2.10.tar.gz'...\n"
893" …10.tar.gz 709KiB 2.5MiB/s 00:00 [##################] 100.0%\n"
894"/gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz\n"
895"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\n"
896
897#. type: Plain text
898#: guix-git/doc/guix-cookbook.texi:501
899msgid "In this specific case the output tells us which mirror was chosen. If the result of the above command is not the same as in the above snippet, update your @code{my-hello} declaration accordingly."
900msgstr "Dans ce cas particulier, la sortie nous dit quel miroir a été choisi. Si le résultat de la commande au-dessus n'est pas le même que ce qui est montré, mettez à jour votre déclaration @code{my-hello} en fonction."
901
902#. type: Plain text
903#: guix-git/doc/guix-cookbook.texi:505
904msgid "Note that GNU package tarballs come with an OpenPGP signature, so you should definitely check the signature of this tarball with `gpg` to authenticate it before going further:"
905msgstr "Remarquez que les archives des paquets GNU sont accompagnées de leur signature OpenPGP, donc vous devriez vérifier la signature de cette archive avec « gpg » pour l'authentifier avant d'aller plus loin :"
906
907#. This is example shell output.
908#. type: example
909#: guix-git/doc/guix-cookbook.texi:509
910#, no-wrap
911msgid ""
912"$ guix download mirror://gnu/hello/hello-2.10.tar.gz.sig\n"
913"\n"
914msgstr ""
915"$ guix download mirror://gnu/hello/hello-2.10.tar.gz.sig\n"
916"\n"
917
918#. type: example
919#: guix-git/doc/guix-cookbook.texi:524
920#, no-wrap
921msgid ""
922"Starting download of /tmp/guix-file.03tFfb\n"
923"From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz.sig...\n"
924"following redirection to `https://ftp.igh.cnrs.fr/pub/gnu/hello/hello-2.10.tar.gz.sig'...\n"
925" ….tar.gz.sig 819B 1.2MiB/s 00:00 [##################] 100.0%\n"
926"/gnu/store/rzs8wba9ka7grrmgcpfyxvs58mly0sx6-hello-2.10.tar.gz.sig\n"
927"0q0v86n3y38z17rl146gdakw9xc4mcscpk8dscs412j22glrv9jf\n"
928"$ gpg --verify /gnu/store/rzs8wba9ka7grrmgcpfyxvs58mly0sx6-hello-2.10.tar.gz.sig /gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz\n"
929"gpg: Signature made Sun 16 Nov 2014 01:08:37 PM CET\n"
930"gpg: using RSA key A9553245FDE9B739\n"
931"gpg: Good signature from \"Sami Kerola <kerolasa@@iki.fi>\" [unknown]\n"
932"gpg: aka \"Sami Kerola (http://www.iki.fi/kerolasa/) <kerolasa@@iki.fi>\" [unknown]\n"
933"gpg: WARNING: This key is not certified with a trusted signature!\n"
934"gpg: There is no indication that the signature belongs to the owner.\n"
935"Primary key fingerprint: 8ED3 96E3 7E38 D471 A005 30D3 A955 3245 FDE9 B739\n"
936msgstr ""
937"Starting download of /tmp/guix-file.03tFfb\n"
938"From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz.sig...\n"
939"following redirection to `https://ftp.igh.cnrs.fr/pub/gnu/hello/hello-2.10.tar.gz.sig'...\n"
940" ….tar.gz.sig 819B 1.2MiB/s 00:00 [##################] 100.0%\n"
941"/gnu/store/rzs8wba9ka7grrmgcpfyxvs58mly0sx6-hello-2.10.tar.gz.sig\n"
942"0q0v86n3y38z17rl146gdakw9xc4mcscpk8dscs412j22glrv9jf\n"
943"$ gpg --verify /gnu/store/rzs8wba9ka7grrmgcpfyxvs58mly0sx6-hello-2.10.tar.gz.sig /gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz\n"
944"gpg: Signature faite le dim. 16 nov. 2014 13:08:37 CET\n"
945"gpg: avec la clef RSA A9553245FDE9B739\n"
946"gpg: Bonne signature de « Sami Kerola (https://www.iki.fi/kerolasa/) <kerolasa@@iki.fi> » [inconnu]\n"
947"gpg: Attention : cette clef n'est pas certifiée avec une signature de confiance.\n"
948"gpg: Rien n'indique que la signature appartient à son propriétaire.\n"
949"Empreinte de clef principale : 8ED3 96E3 7E38 D471 A005 30D3 A955 3245 FDE9 B739\n"
950
951#. type: Plain text
952#: guix-git/doc/guix-cookbook.texi:527
953msgid "You can then happily run"
954msgstr "Vous pouvez ensuite lancer"
955
956#. Do not translate this command
957#. type: example
958#: guix-git/doc/guix-cookbook.texi:531
959#, no-wrap
960msgid "$ guix package --install-from-file=my-hello.scm\n"
961msgstr "$ guix package --install-from-file=my-hello.scm\n"
962
963#. type: Plain text
964#: guix-git/doc/guix-cookbook.texi:534
965msgid "You should now have @code{my-hello} in your profile!"
966msgstr "Vous devriez maintenant avoir @code{my-hello} dans votre profil !"
967
968#. Do not translate this command
969#. type: example
970#: guix-git/doc/guix-cookbook.texi:540
971#, no-wrap
972msgid ""
973"$ guix package --list-installed=my-hello\n"
974"my-hello\t2.10\tout\n"
975"/gnu/store/f1db2mfm8syb8qvc357c53slbvf1g9m9-my-hello-2.10\n"
976msgstr ""
977"$ guix package --list-installed=my-hello\n"
978"my-hello\t2.10\tout\n"
979"/gnu/store/f1db2mfm8syb8qvc357c53slbvf1g9m9-my-hello-2.10\n"
980
981#. type: Plain text
982#: guix-git/doc/guix-cookbook.texi:545
983msgid "We've gone as far as we could without any knowledge of Scheme. Before moving on to more complex packages, now is the right time to brush up on your Scheme knowledge. @pxref{A Scheme Crash Course} to get up to speed."
984msgstr "Nous sommes allés aussi loin que possible sans aucune connaissance de Scheme. Avant de continuer sur des paquets plus complexes, il est maintenant temps de vous renforcer sur votre connaissance du langage Scheme. @pxref{A Scheme Crash Course} pour démarrer."
985
986#. type: subsection
987#: guix-git/doc/guix-cookbook.texi:546 guix-git/doc/guix-cookbook.texi:547
988#, no-wrap
989msgid "Setup"
990msgstr "Configuration"
991
992#. type: Plain text
993#: guix-git/doc/guix-cookbook.texi:552
994msgid "In the rest of this chapter we will rely on some basic Scheme programming knowledge. Now let's detail the different possible setups for working on Guix packages."
995msgstr "Dans le reste de ce chapitre, nous nous appuierons sur vos connaissances de base du langage Scheme. Maintenant voyons les différentes configurations possibles pour travailler sur des paquets Guix."
996
997#. type: Plain text
998#: guix-git/doc/guix-cookbook.texi:554
999msgid "There are several ways to set up a Guix packaging environment."
1000msgstr "Il y a plusieurs moyens de mettre en place un environnement d'empaquetage pour Guix."
1001
1002#. type: Plain text
1003#: guix-git/doc/guix-cookbook.texi:557
1004msgid "We recommend you work directly on the Guix source checkout since it makes it easier for everyone to contribute to the project."
1005msgstr "Nous vous recommandons de travailler directement dans le dépôt des sources de Guix car ça facilitera la contribution au projet."
1006
1007#. type: Plain text
1008#: guix-git/doc/guix-cookbook.texi:559
1009msgid "But first, let's look at other possibilities."
1010msgstr "Mais d'bord, voyons les autres possibilités."
1011
1012#. type: subsubsection
1013#: guix-git/doc/guix-cookbook.texi:560 guix-git/doc/guix-cookbook.texi:561
1014#, no-wrap
1015msgid "Local file"
1016msgstr "Fichier local"
1017
1018#. type: Plain text
1019#: guix-git/doc/guix-cookbook.texi:566
1020msgid "This is what we previously did with @samp{my-hello}. With the Scheme basics we've covered, we are now able to explain the leading chunks. As stated in @code{guix package --help}:"
1021msgstr "C'est ce que nous venons de faire avec @samp{my-hello}. Avec les bases de Scheme que nous vous avons présentées, nous pouvons maintenant éclairer le sens du début du fichier. Comme le dit @code{guix package --help} :"
1022
1023#. type: example
1024#: guix-git/doc/guix-cookbook.texi:571
1025#, no-wrap
1026msgid ""
1027" -f, --install-from-file=FILE\n"
1028" install the package that the code within FILE\n"
1029" evaluates to\n"
1030msgstr ""
1031" -f, --install-from-file=FICHIER\n"
1032" installer le paquet évalué par le code dans\n"
1033" FICHIER\n"
1034
1035#. type: Plain text
1036#: guix-git/doc/guix-cookbook.texi:575
1037msgid "Thus the last expression @emph{must} return a package, which is the case in our earlier example."
1038msgstr "Ainsi, la dernière expression @emph{doit} renvoyer un paquet, ce qui est le cas dans notre exemple précédent."
1039
1040#. type: Plain text
1041#: guix-git/doc/guix-cookbook.texi:579
1042msgid "The @code{use-modules} expression tells which of the modules we need in the file. Modules are a collection of values and procedures. They are commonly called ``libraries'' or ``packages'' in other programming languages."
1043msgstr "L'expression @code{use-modules} indique quels modules sont nécessaires dans le fichier. Les modules sont des collections de valeurs et de procédures. Ils sont souvent appelés « bibliothèques » ou « paquets » dans d'autres langages de programmation."
1044
1045#. type: node
1046#: guix-git/doc/guix-cookbook.texi:580
1047#, no-wrap
1048msgid "@samp{GUIX_PACKAGE_PATH}"
1049msgstr "@samp{GUIX_PACKAGE_PATH}"
1050
1051#. type: samp{#1}
1052#: guix-git/doc/guix-cookbook.texi:581
1053#, no-wrap
1054msgid "GUIX_PACKAGE_PATH"
1055msgstr "GUIX_PACKAGE_PATH"
1056
1057#. type: emph{#1}
1058#: guix-git/doc/guix-cookbook.texi:585
1059msgid "Note: Starting from Guix 0.16, the more flexible Guix @dfn{channels} are the preferred way and supersede @samp{GUIX_PACKAGE_PATH}. See next section."
1060msgstr "Remarque : à partir de Guix 0.16, les @dfn{canaux} plus flexibles sont préférables et remplacent @samp{GUIX_PACKAGE_PATH}. Voir la section suivante."
1061
1062#. type: Plain text
1063#: guix-git/doc/guix-cookbook.texi:589
1064msgid "It can be tedious to specify the file from the command line instead of simply calling @code{guix package --install my-hello} as you would do with the official packages."
1065msgstr "Il peut être fastidieux de spécifier le fichier depuis la ligne de commande par rapport à un appel à @code{guix package --install my-hello} comme on le ferait pour les paquets officiels."
1066
1067#. type: Plain text
1068#: guix-git/doc/guix-cookbook.texi:592
1069msgid "Guix makes it possible to streamline the process by adding as many ``package declaration directories'' as you want."
1070msgstr "Guix permet d'uniformiser le processus en ajoutant autant de « répertoires de déclaration de paquets » que vous le souhaitez."
1071
1072#. type: Plain text
1073#: guix-git/doc/guix-cookbook.texi:595
1074msgid "Create a directory, say @file{~./guix-packages} and add it to the @samp{GUIX_PACKAGE_PATH} environment variable:"
1075msgstr "Créez un répertoire, disons @file{~/guix-packages} et ajoutez-le à la variable d'environnement @samp{GUIX_PACKAGE_PATH} :"
1076
1077#. type: example
1078#: guix-git/doc/guix-cookbook.texi:599
1079#, no-wrap
1080msgid ""
1081"$ mkdir ~/guix-packages\n"
1082"$ export GUIX_PACKAGE_PATH=~/guix-packages\n"
1083msgstr ""
1084"$ mkdir ~/guix-packages\n"
1085"$ export GUIX_PACKAGE_PATH=~/guix-packages\n"
1086
1087#. type: Plain text
1088#: guix-git/doc/guix-cookbook.texi:602
1089msgid "To add several directories, separate them with a colon (@code{:})."
1090msgstr "Pour ajouter plusieurs répertoires, séparez-les avec un deux-points (@code{:})."
1091
1092#. type: Plain text
1093#: guix-git/doc/guix-cookbook.texi:604
1094msgid "Our previous @samp{my-hello} needs some adjustments though:"
1095msgstr "Notre @samp{my-hello} précédent doit être légèrement ajusté :"
1096
1097#. type: lisp
1098#: guix-git/doc/guix-cookbook.texi:611
1099#, no-wrap
1100msgid ""
1101"(define-module (my-hello)\n"
1102" #:use-module (guix licenses)\n"
1103" #:use-module (guix packages)\n"
1104" #:use-module (guix build-system gnu)\n"
1105" #:use-module (guix download))\n"
1106"\n"
1107msgstr ""
1108"(define-module (my-hello)\n"
1109" #:use-module (guix licenses)\n"
1110" #:use-module (guix packages)\n"
1111" #:use-module (guix build-system gnu)\n"
1112" #:use-module (guix download))\n"
1113"\n"
1114
1115#. type: lisp
1116#: guix-git/doc/guix-cookbook.texi:631
1117#, no-wrap
1118msgid ""
1119"(define-public my-hello\n"
1120" (package\n"
1121" (name \"my-hello\")\n"
1122" (version \"2.10\")\n"
1123" (source (origin\n"
1124" (method url-fetch)\n"
1125" (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
1126" \".tar.gz\"))\n"
1127" (sha256\n"
1128" (base32\n"
1129" \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
1130" (build-system gnu-build-system)\n"
1131" (synopsis \"Hello, Guix world: An example custom Guix package\")\n"
1132" (description\n"
1133" \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
1134"serves as an example of standard GNU coding practices. As such, it supports\n"
1135"command-line arguments, multiple languages, and so on.\")\n"
1136" (home-page \"https://www.gnu.org/software/hello/\")\n"
1137" (license gpl3+)))\n"
1138msgstr ""
1139"(define-public my-hello\n"
1140" (package\n"
1141" (name \"my-hello\")\n"
1142" (version \"2.10\")\n"
1143" (source (origin\n"
1144" (method url-fetch)\n"
1145" (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
1146" \".tar.gz\"))\n"
1147" (sha256\n"
1148" (base32\n"
1149" \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
1150" (build-system gnu-build-system)\n"
1151" (synopsis \"Hello, Guix world: An example custom Guix package\")\n"
1152" (description\n"
1153" \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
1154"serves as an example of standard GNU coding practices. As such, it supports\n"
1155"command-line arguments, multiple languages, and so on.\")\n"
1156" (home-page \"https://www.gnu.org/software/hello/\")\n"
1157" (license gpl3+)))\n"
1158
1159#. type: Plain text
1160#: guix-git/doc/guix-cookbook.texi:637
1161msgid "Note that we have assigned the package value to an exported variable name with @code{define-public}. This is effectively assigning the package to the @code{my-hello} variable so that it can be referenced, among other as dependency of other packages."
1162msgstr "Remarquez que nous avons assigné la valeur du paquet à un nom de variable exportée avec @code{define-public}. Cela assigne en fait le paquet à la variable @code{my-hello} pour qu'elle puisse être utilisée, par exemple en dépendance d'un autre paquet."
1163
1164#. type: Plain text
1165#: guix-git/doc/guix-cookbook.texi:642
1166msgid "If you use @code{guix package --install-from-file=my-hello.scm} on the above file, it will fail because the last expression, @code{define-public}, does not return a package. If you want to use @code{define-public} in this use-case nonetheless, make sure the file ends with an evaluation of @code{my-hello}:"
1167msgstr "Si vous utilisez @code{guix package --install-from-file=my-hello.scm} avec le fichier précédent, la commande échouera car la dernière expression, @code{define-public}, ne renvoie pas un paquet. Si vous voulez utiliser @code{define-public} dans ce cas tout de même, assurez-vous que le fichier termine par une évaluation de @code{my-hello} :"
1168
1169#. type: lisp
1170#: guix-git/doc/guix-cookbook.texi:648
1171#, no-wrap
1172msgid ""
1173"; ...\n"
1174"(define-public my-hello\n"
1175" ; ...\n"
1176" )\n"
1177"\n"
1178msgstr ""
1179"; ...\n"
1180"(define-public my-hello\n"
1181" ; ...\n"
1182" )\n"
1183"\n"
1184
1185#. type: lisp
1186#: guix-git/doc/guix-cookbook.texi:650
1187#, no-wrap
1188msgid "my-hello\n"
1189msgstr "my-hello\n"
1190
1191#. type: Plain text
1192#: guix-git/doc/guix-cookbook.texi:653
1193msgid "This last example is not very typical."
1194msgstr "Ce dernier exemple n'est pas très typique."
1195
1196#. type: Plain text
1197#: guix-git/doc/guix-cookbook.texi:656
1198msgid "Now @samp{my-hello} should be part of the package collection like all other official packages. You can verify this with:"
1199msgstr "Maintenant @samp{my-hello} devrait faire partie de la collection de paquets comme tous les paquets officiels. Vous pouvez le vérifier avec :"
1200
1201#. type: example
1202#: guix-git/doc/guix-cookbook.texi:659
1203#, no-wrap
1204msgid "$ guix package --show=my-hello\n"
1205msgstr "$ guix package --show=my-hello\n"
1206
1207#. type: subsubsection
1208#: guix-git/doc/guix-cookbook.texi:661 guix-git/doc/guix-cookbook.texi:662
1209#, no-wrap
1210msgid "Guix channels"
1211msgstr "Canaux Guix"
1212
1213#. type: Plain text
1214#: guix-git/doc/guix-cookbook.texi:668
1215msgid "Guix 0.16 features channels, which is very similar to @samp{GUIX_PACKAGE_PATH} but provides better integration and provenance tracking. Channels are not necessarily local, they can be maintained as a public Git repository for instance. Of course, several channels can be used at the same time."
1216msgstr "Guix 0.16 a introduit la notion de canaux, qui sont similaires à @samp{GUIX_PACKAGE_PATH} mais fournit une meilleure intégration et un meilleur suivi de la provenance. Les canaux ne sont pas nécessairement locaux et ils peuvent être maintenus dans un dépôt Git public par exemple. Bien sûr, vous pouvez utiliser plusieurs canaux en même temps."
1217
1218#. type: Plain text
1219#: guix-git/doc/guix-cookbook.texi:670
1220msgid "@xref{Channels,,, guix, GNU Guix Reference Manual} for setup details."
1221msgstr "@xref{Canaux,,, guix.fr, le manuel de référence de GNU Guix} pour des détails sur la mise en place des canaux."
1222
1223#. type: subsubsection
1224#: guix-git/doc/guix-cookbook.texi:671 guix-git/doc/guix-cookbook.texi:672
1225#, no-wrap
1226msgid "Direct checkout hacking"
1227msgstr "Bidouillage direct dans le dépôt git"
1228
1229#. type: Plain text
1230#: guix-git/doc/guix-cookbook.texi:677
1231msgid "Working directly on the Guix project is recommended: it reduces the friction when the time comes to submit your changes upstream to let the community benefit from your hard work!"
1232msgstr "Nous vous recommandons de travailler directement sur le projet Guix : cela réduit le travail nécessaire quand vous voudrez soumettre vos changements en amont pour que la communauté puisse bénéficier de votre dur labeur !"
1233
1234#. type: Plain text
1235#: guix-git/doc/guix-cookbook.texi:683
1236msgid "Unlike most software distributions, the Guix repository holds in one place both the tooling (including the package manager) and the package definitions. This choice was made so that it would give developers the flexibility to modify the API without breakage by updating all packages at the same time. This reduces development inertia."
1237msgstr "Contrairement à la plupart des distributions logiciels, le dépôt Guix contient à la fois les outils (dont le gestionnaire de paquets) et les définitions des paquets. Nous avons fait ce choix pour permettre aux développeurs et développeuses de profiter de plus de flexibilité pour changer l'API sans rien casser, en mettant à jour tous les paquets en même temps. Cela réduit l'inertie dans le développement."
1238
1239#. type: Plain text
1240#: guix-git/doc/guix-cookbook.texi:685
1241msgid "Check out the official @uref{https://git-scm.com/, Git} repository:"
1242msgstr "Clonez le dépôt @uref{https://git-scm.com/, Git} officiel :"
1243
1244#. type: example
1245#: guix-git/doc/guix-cookbook.texi:688
1246#, no-wrap
1247msgid "$ git clone https://git.savannah.gnu.org/git/guix.git\n"
1248msgstr "$ git clone https://git.savannah.gnu.org/git/guix.git\n"
1249
1250#. type: Plain text
1251#: guix-git/doc/guix-cookbook.texi:692
1252msgid "In the rest of this article, we use @samp{$GUIX_CHECKOUT} to refer to the location of the checkout."
1253msgstr "Dans le reste de cet article, nous utiliserons @samp{$GUIX_CHECKOUT} pour faire référence à l'emplacement de ce clone."
1254
1255#. type: Plain text
1256#: guix-git/doc/guix-cookbook.texi:696
1257msgid "Follow the instructions in the manual (@pxref{Contributing,,, guix, GNU Guix Reference Manual}) to set up the repository environment."
1258msgstr "Suivez les instructions du manuel (@pxref{Contribuer,,, guix.fr, le manuel de référence de GNU Guix}) pour mettre en place l'environnement du dépôt."
1259
1260#. type: Plain text
1261#: guix-git/doc/guix-cookbook.texi:699
1262msgid "Once ready, you should be able to use the package definitions from the repository environment."
1263msgstr "Une fois prêts, vous devriez pouvoir utiliser les définitions des paquets de l'environnement du dépôt."
1264
1265#. type: Plain text
1266#: guix-git/doc/guix-cookbook.texi:701
1267msgid "Feel free to edit package definitions found in @samp{$GUIX_CHECKOUT/gnu/packages}."
1268msgstr "N'ayez pas peur de modifier les définitions des paquets que vous trouverez dans @samp{$GUIX_CHECKOUT/gnu/packages}."
1269
1270#. type: Plain text
1271#: guix-git/doc/guix-cookbook.texi:705
1272msgid "The @samp{$GUIX_CHECKOUT/pre-inst-env} script lets you use @samp{guix} over the package collection of the repository (@pxref{Running Guix Before It Is Installed,,, guix, GNU Guix Reference Manual})."
1273msgstr "Le script @samp{$GUIX_CHECKOUT/pre-inst-env} vous permet d'utiliser @samp{guix} sur la collection de paquets du dépôt (@pxref{Lancer Guix avant qu’il ne soit installé,,, guix.fr, le manuel de référence de GNU Guix})."
1274
1275#. type: itemize
1276#: guix-git/doc/guix-cookbook.texi:709
1277msgid "Search packages, such as Ruby:"
1278msgstr "Recherchez des paquets, comme Ruby :"
1279
1280#. type: example
1281#: guix-git/doc/guix-cookbook.texi:716
1282#, no-wrap
1283msgid ""
1284" $ cd $GUIX_CHECKOUT\n"
1285" $ ./pre-inst-env guix package --list-available=ruby\n"
1286" ruby 1.8.7-p374 out gnu/packages/ruby.scm:119:2\n"
1287" ruby 2.1.6 out gnu/packages/ruby.scm:91:2\n"
1288" ruby 2.2.2 out gnu/packages/ruby.scm:39:2\n"
1289msgstr ""
1290" $ cd $GUIX_CHECKOUT\n"
1291" $ ./pre-inst-env guix package --list-available=ruby\n"
1292" ruby 1.8.7-p374 out gnu/packages/ruby.scm:119:2\n"
1293" ruby 2.1.6 out gnu/packages/ruby.scm:91:2\n"
1294" ruby 2.2.2 out gnu/packages/ruby.scm:39:2\n"
1295
1296#. type: itemize
1297#: guix-git/doc/guix-cookbook.texi:720
1298msgid "Build a package, here Ruby version 2.1:"
1299msgstr "Construisez un paquet, ici Ruby version 2.1 :"
1300
1301#. type: example
1302#: guix-git/doc/guix-cookbook.texi:724
1303#, no-wrap
1304msgid ""
1305" $ ./pre-inst-env guix build --keep-failed ruby@@2.1\n"
1306" /gnu/store/c13v73jxmj2nir2xjqaz5259zywsa9zi-ruby-2.1.6\n"
1307msgstr ""
1308" $ ./pre-inst-env guix build --keep-failed ruby@@2.1\n"
1309" /gnu/store/c13v73jxmj2nir2xjqaz5259zywsa9zi-ruby-2.1.6\n"
1310
1311#. type: itemize
1312#: guix-git/doc/guix-cookbook.texi:728
1313msgid "Install it to your user profile:"
1314msgstr "Installez-le dans votre profil utilisateur :"
1315
1316#. type: example
1317#: guix-git/doc/guix-cookbook.texi:731
1318#, no-wrap
1319msgid " $ ./pre-inst-env guix package --install ruby@@2.1\n"
1320msgstr " $ ./pre-inst-env guix package --install ruby@@2.1\n"
1321
1322#. type: itemize
1323#: guix-git/doc/guix-cookbook.texi:735
1324msgid "Check for common mistakes:"
1325msgstr "Vérifiez que vous n'avez pas fait l'une des erreurs courantes :"
1326
1327#. type: example
1328#: guix-git/doc/guix-cookbook.texi:738
1329#, no-wrap
1330msgid " $ ./pre-inst-env guix lint ruby@@2.1\n"
1331msgstr " $ ./pre-inst-env guix lint ruby@@2.1\n"
1332
1333#. type: Plain text
1334#: guix-git/doc/guix-cookbook.texi:743
1335msgid "Guix strives at maintaining a high packaging standard; when contributing to the Guix project, remember to"
1336msgstr "Guix essaye de maintenir un bon standard d'empaquetage ; quand vous contribuez au projet Guix, rappelez-vous de"
1337
1338#. type: itemize
1339#: guix-git/doc/guix-cookbook.texi:747
1340msgid "follow the coding style (@pxref{Coding Style,,, guix, GNU Guix Reference Manual}),"
1341msgstr "suivre le style de code (@pxref{Style de code,,, guix.fr, le manuel de référence de GNU Guix}),"
1342
1343#. type: itemize
1344#: guix-git/doc/guix-cookbook.texi:749
1345msgid "and review the check list from the manual (@pxref{Submitting Patches,,, guix, GNU Guix Reference Manual})."
1346msgstr "et de vérifier la check-list du manuel (@pxref{Envoyer des correctifs,,, guix.fr, le manuel de référence de GNU Guix})."
1347
1348#. type: Plain text
1349#: guix-git/doc/guix-cookbook.texi:753
1350msgid "Once you are happy with the result, you are welcome to send your contribution to make it part of Guix. This process is also detailed in the manual. (@pxref{Contributing,,, guix, GNU Guix Reference Manual})"
1351msgstr "Une fois que vous êtes satisfait du résultat, vous pouvez envoyer votre contribution pour qu'elle rentre dans Guix. Ce processus est aussi détaillé dans le manuel (@pxref{Contribuer,,, guix.fr, le manuel de référence de GNU Guix})"
1352
1353#. type: Plain text
1354#: guix-git/doc/guix-cookbook.texi:756
1355msgid "It's a community effort so the more join in, the better Guix becomes!"
1356msgstr "Guix est un projet communautaire, donc plus on est de fous, plus on rit !"
1357
1358#. type: subsection
1359#: guix-git/doc/guix-cookbook.texi:757 guix-git/doc/guix-cookbook.texi:758
1360#, no-wrap
1361msgid "Extended example"
1362msgstr "Exemple avancé"
1363
1364#. type: Plain text
1365#: guix-git/doc/guix-cookbook.texi:763
1366msgid "The above ``Hello World'' example is as simple as it goes. Packages can be more complex than that and Guix can handle more advanced scenarios. Let's look at another, more sophisticated package (slightly modified from the source):"
1367msgstr "L'exemple « Hello World » précédent est le plus simple possible. Les paquets peuvent devenir plus complexes que cela et Guix peut gérer des scénarios plus avancés. Voyons un autre paquet plus sophistiqué (légèrement modifié à partir des sources) :"
1368
1369#. type: lisp
1370#: guix-git/doc/guix-cookbook.texi:777
1371#, no-wrap
1372msgid ""
1373"(define-module (gnu packages version-control)\n"
1374" #:use-module ((guix licenses) #:prefix license:)\n"
1375" #:use-module (guix utils)\n"
1376" #:use-module (guix packages)\n"
1377" #:use-module (guix git-download)\n"
1378" #:use-module (guix build-system cmake)\n"
1379" #:use-module (gnu packages ssh)\n"
1380" #:use-module (gnu packages web)\n"
1381" #:use-module (gnu packages pkg-config)\n"
1382" #:use-module (gnu packages python)\n"
1383" #:use-module (gnu packages compression)\n"
1384" #:use-module (gnu packages tls))\n"
1385"\n"
1386msgstr ""
1387"(define-module (gnu packages version-control)\n"
1388" #:use-module ((guix licenses) #:prefix license:)\n"
1389" #:use-module (guix utils)\n"
1390" #:use-module (guix packages)\n"
1391" #:use-module (guix git-download)\n"
1392" #:use-module (guix build-system cmake)\n"
1393" #:use-module (gnu packages ssh)\n"
1394" #:use-module (gnu packages web)\n"
1395" #:use-module (gnu packages pkg-config)\n"
1396" #:use-module (gnu packages python)\n"
1397" #:use-module (gnu packages compression)\n"
1398" #:use-module (gnu packages tls))\n"
1399"\n"
1400
1401#. type: lisp
1402#: guix-git/doc/guix-cookbook.texi:837
1403#, no-wrap
1404msgid ""
1405"(define-public my-libgit2\n"
1406" (let ((commit \"e98d0a37c93574d2c6107bf7f31140b548c6a7bf\")\n"
1407" (revision \"1\"))\n"
1408" (package\n"
1409" (name \"my-libgit2\")\n"
1410" (version (git-version \"0.26.6\" revision commit))\n"
1411" (source (origin\n"
1412" (method git-fetch)\n"
1413" (uri (git-reference\n"
1414" (url \"https://github.com/libgit2/libgit2/\")\n"
1415" (commit commit)))\n"
1416" (file-name (git-file-name name version))\n"
1417" (sha256\n"
1418" (base32\n"
1419" \"17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3\"))\n"
1420" (patches (search-patches \"libgit2-mtime-0.patch\"))\n"
1421" (modules '((guix build utils)))\n"
1422" (snippet '(begin\n"
1423" ;; Remove bundled software.\n"
1424" (delete-file-recursively \"deps\")\n"
1425" #true))))\n"
1426" (build-system cmake-build-system)\n"
1427" (outputs '(\"out\" \"debug\"))\n"
1428" (arguments\n"
1429" `(#:tests? #true ; Run the test suite (this is the default)\n"
1430" #:configure-flags '(\"-DUSE_SHA1DC=ON\") ; SHA-1 collision detection\n"
1431" #:phases\n"
1432" (modify-phases %standard-phases\n"
1433" (add-after 'unpack 'fix-hardcoded-paths\n"
1434" (lambda _\n"
1435" (substitute* \"tests/repo/init.c\"\n"
1436" ((\"#!/bin/sh\") (string-append \"#!\" (which \"sh\"))))\n"
1437" (substitute* \"tests/clar/fs.h\"\n"
1438" ((\"/bin/cp\") (which \"cp\"))\n"
1439" ((\"/bin/rm\") (which \"rm\")))\n"
1440" #true))\n"
1441" ;; Run checks more verbosely.\n"
1442" (replace 'check\n"
1443" (lambda _ (invoke \"./libgit2_clar\" \"-v\" \"-Q\")))\n"
1444" (add-after 'unpack 'make-files-writable-for-tests\n"
1445" (lambda _ (for-each make-file-writable (find-files \".\" \".*\")))))))\n"
1446" (inputs\n"
1447" `((\"libssh2\" ,libssh2)\n"
1448" (\"http-parser\" ,http-parser)\n"
1449" (\"python\" ,python-wrapper)))\n"
1450" (native-inputs\n"
1451" `((\"pkg-config\" ,pkg-config)))\n"
1452" (propagated-inputs\n"
1453" ;; These two libraries are in 'Requires.private' in libgit2.pc.\n"
1454" `((\"openssl\" ,openssl)\n"
1455" (\"zlib\" ,zlib)))\n"
1456" (home-page \"https://libgit2.github.com/\")\n"
1457" (synopsis \"Library providing Git core methods\")\n"
1458" (description\n"
1459" \"Libgit2 is a portable, pure C implementation of the Git core methods\n"
1460"provided as a re-entrant linkable library with a solid API, allowing you to\n"
1461"write native speed custom Git applications in any language with bindings.\")\n"
1462" ;; GPLv2 with linking exception\n"
1463" (license license:gpl2))))\n"
1464msgstr ""
1465"(define-public my-libgit2\n"
1466" (let ((commit \"e98d0a37c93574d2c6107bf7f31140b548c6a7bf\")\n"
1467" (revision \"1\"))\n"
1468" (package\n"
1469" (name \"my-libgit2\")\n"
1470" (version (git-version \"0.26.6\" revision commit))\n"
1471" (source (origin\n"
1472" (method git-fetch)\n"
1473" (uri (git-reference\n"
1474" (url \"https://github.com/libgit2/libgit2/\")\n"
1475" (commit commit)))\n"
1476" (file-name (git-file-name name version))\n"
1477" (sha256\n"
1478" (base32\n"
1479" \"17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3\"))\n"
1480" (patches (search-patches \"libgit2-mtime-0.patch\"))\n"
1481" (modules '((guix build utils)))\n"
1482" (snippet '(begin\n"
1483" ;; Remove bundled software.\n"
1484" (delete-file-recursively \"deps\")\n"
1485" #true))))\n"
1486" (build-system cmake-build-system)\n"
1487" (outputs '(\"out\" \"debug\"))\n"
1488" (arguments\n"
1489" `(#:tests? #true ; Run the test suite (this is the default)\n"
1490" #:configure-flags '(\"-DUSE_SHA1DC=ON\") ; SHA-1 collision detection\n"
1491" #:phases\n"
1492" (modify-phases %standard-phases\n"
1493" (add-after 'unpack 'fix-hardcoded-paths\n"
1494" (lambda _\n"
1495" (substitute* \"tests/repo/init.c\"\n"
1496" ((\"#!/bin/sh\") (string-append \"#!\" (which \"sh\"))))\n"
1497" (substitute* \"tests/clar/fs.h\"\n"
1498" ((\"/bin/cp\") (which \"cp\"))\n"
1499" ((\"/bin/rm\") (which \"rm\")))\n"
1500" #true))\n"
1501" ;; Run checks more verbosely.\n"
1502" (replace 'check\n"
1503" (lambda _ (invoke \"./libgit2_clar\" \"-v\" \"-Q\")))\n"
1504" (add-after 'unpack 'make-files-writable-for-tests\n"
1505" (lambda _ (for-each make-file-writable (find-files \".\" \".*\")))))))\n"
1506" (inputs\n"
1507" `((\"libssh2\" ,libssh2)\n"
1508" (\"http-parser\" ,http-parser)\n"
1509" (\"python\" ,python-wrapper)))\n"
1510" (native-inputs\n"
1511" `((\"pkg-config\" ,pkg-config)))\n"
1512" (propagated-inputs\n"
1513" ;; These two libraries are in 'Requires.private' in libgit2.pc.\n"
1514" `((\"openssl\" ,openssl)\n"
1515" (\"zlib\" ,zlib)))\n"
1516" (home-page \"https://libgit2.github.com/\")\n"
1517" (synopsis \"Library providing Git core methods\")\n"
1518" (description\n"
1519" \"Libgit2 is a portable, pure C implementation of the Git core methods\n"
1520"provided as a re-entrant linkable library with a solid API, allowing you to\n"
1521"write native speed custom Git applications in any language with bindings.\")\n"
1522" ;; GPLv2 with linking exception\n"
1523" (license license:gpl2))))\n"
1524
1525#. type: Plain text
1526#: guix-git/doc/guix-cookbook.texi:842
1527msgid "(In those cases were you only want to tweak a few fields from a package definition, you should rely on inheritance instead of copy-pasting everything. See below.)"
1528msgstr "(Dans les cas où vous voulez seulement changer quelques champs d'une définition de paquets, vous devriez utiliser l'héritage au lieu de tout copier-coller. Voir plus bas.)"
1529
1530#. type: Plain text
1531#: guix-git/doc/guix-cookbook.texi:844
1532msgid "Let's discuss those fields in depth."
1533msgstr "Parlons maintenant de ces champs en détail."
1534
1535#. type: subsubsection
1536#: guix-git/doc/guix-cookbook.texi:845
1537#, no-wrap
1538msgid "@code{git-fetch} method"
1539msgstr "La méthode @code{git-fetch}"
1540
1541#. type: Plain text
1542#: guix-git/doc/guix-cookbook.texi:852
1543msgid "Unlike the @code{url-fetch} method, @code{git-fetch} expects a @code{git-reference} which takes a Git repository and a commit. The commit can be any Git reference such as tags, so if the @code{version} is tagged, then it can be used directly. Sometimes the tag is prefixed with a @code{v}, in which case you'd use @code{(commit (string-append \"v\" version))}."
1544msgstr "Contrairement à la méthode @code{url-fetch}, @code{git-fetch} a besoin d'un @code{git-reference} qui prend un dépôt Git et un commit. Le commit peut être n'importe quelle référence Git comme des tags, donc si la @code{version} a un tag associé, vous pouvez l'utiliser directement. Parfois le tag est précédé de @code{v}, auquel cas vous pouvez utiliser @code{(commit (string-append \"v\" version))}."
1545
1546#. type: Plain text
1547#: guix-git/doc/guix-cookbook.texi:856
1548msgid "To ensure that the source code from the Git repository is stored in a directory with a descriptive name, we use @code{(file-name (git-file-name name version))}."
1549msgstr "Pour vous assurer que le code source du dépôt Git est stocké dans un répertoire avec un nom descriptif, utilisez @code{(file-name (git-file-name name version))}."
1550
1551#. type: Plain text
1552#: guix-git/doc/guix-cookbook.texi:861
1553msgid "The @code{git-version} procedure can be used to derive the version when packaging programs for a specific commit, following the Guix contributor guidelines (@pxref{Version Numbers,,, guix, GNU Guix Reference Manual})."
1554msgstr "Vous pouvez utiliser la procédure @code{git-version} pour calculer la version quand vous empaquetez des programmes pour un commit spécifique, en suivant le guide de contribution (@pxref{Numéros de version,,, guix.fr, le manuel de référence de GNU Guix})."
1555
1556#. type: Plain text
1557#: guix-git/doc/guix-cookbook.texi:865
1558msgid "How does one obtain the @code{sha256} hash that's in there, you ask? By invoking @command{guix hash} on a checkout of the desired commit, along these lines:"
1559msgstr "Comment obtenir le hash @code{sha256}, vous demandez-vous ? En invoquant @command{guix hash} sur un clone du commit voulu, de cette manière :"
1560
1561#. type: example
1562#: guix-git/doc/guix-cookbook.texi:871
1563#, no-wrap
1564msgid ""
1565"git clone https://github.com/libgit2/libgit2/\n"
1566"cd libgit2\n"
1567"git checkout v0.26.6\n"
1568"guix hash -rx .\n"
1569msgstr ""
1570"git clone https://github.com/libgit2/libgit2/\n"
1571"cd libgit2\n"
1572"git checkout v0.26.6\n"
1573"guix hash -rx .\n"
1574
1575#. type: Plain text
1576#: guix-git/doc/guix-cookbook.texi:876
1577msgid "@command{guix hash -rx} computes a SHA256 hash over the whole directory, excluding the @file{.git} sub-directory (@pxref{Invoking guix hash,,, guix, GNU Guix Reference Manual})."
1578msgstr "@command{guix hash -rx} calcul un SHA256 sur le répertoire entier, en excluant le sous-répertoire @file{.git} (@pxref{Invoquer guix hash,,, guix.fr, le manuel de référence de GNU Guix})."
1579
1580#. type: Plain text
1581#: guix-git/doc/guix-cookbook.texi:879
1582msgid "In the future, @command{guix download} will hopefully be able to do these steps for you, just like it does for regular downloads."
1583msgstr "Dans le futur, @command{guix download} sera sans doute capable de faire cela pour vous, comme il le fait pour les téléchargements directs."
1584
1585#. type: subsubsection
1586#: guix-git/doc/guix-cookbook.texi:880
1587#, no-wrap
1588msgid "Snippets"
1589msgstr "Les bouts de code"
1590
1591#. type: Plain text
1592#: guix-git/doc/guix-cookbook.texi:886
1593msgid "Snippets are quoted (i.e. non-evaluated) Scheme code that are a means of patching the source. They are a Guix-y alternative to the traditional @file{.patch} files. Because of the quote, the code in only evaluated when passed to the Guix daemon for building. There can be as many snippets as needed."
1594msgstr "Les bouts de code (snippet) sont des fragments quotés (c.-à-d. non évalués) de code Scheme utilisés pour modifier les sources. C'est une alternative aux fichiers @file{.patch} traditionnels, plus proche de l'esprit de Guix. À cause de la quote, le code n'est évalué que lorsqu'il est passé au démon Guix pour la construction. Il peut y avoir autant de bout de code que nécessaire."
1595
1596#. type: Plain text
1597#: guix-git/doc/guix-cookbook.texi:889
1598msgid "Snippets might need additional Guile modules which can be imported from the @code{modules} field."
1599msgstr "Les bouts de code on parfois besoin de modules Guile supplémentaires qui peuvent être importés dans le champ @code{modules}."
1600
1601#. type: subsubsection
1602#: guix-git/doc/guix-cookbook.texi:890
1603#, no-wrap
1604msgid "Inputs"
1605msgstr "Entrées"
1606
1607#. type: Plain text
1608#: guix-git/doc/guix-cookbook.texi:893
1609msgid "First, a syntactic comment: See the quasi-quote / comma syntax?"
1610msgstr "Tout d'abord, un commentaire sur la syntaxe : vous voyez la quasiquote (la virgule) ?"
1611
1612#. type: lisp
1613#: guix-git/doc/guix-cookbook.texi:897
1614#, no-wrap
1615msgid ""
1616" (native-inputs\n"
1617" `((\"pkg-config\" ,pkg-config)))\n"
1618msgstr ""
1619" (native-inputs\n"
1620" `((\"pkg-config\" ,pkg-config)))\n"
1621
1622#. type: Plain text
1623#: guix-git/doc/guix-cookbook.texi:900
1624msgid "is equivalent to"
1625msgstr "est équivalent à"
1626
1627#. type: lisp
1628#: guix-git/doc/guix-cookbook.texi:904
1629#, no-wrap
1630msgid ""
1631" (native-inputs\n"
1632" (list (list \"pkg-config\" pkg-config)))\n"
1633msgstr ""
1634" (native-inputs\n"
1635" (list (list \"pkg-config\" pkg-config)))\n"
1636
1637#. type: Plain text
1638#: guix-git/doc/guix-cookbook.texi:907
1639msgid "You'll mostly see the former because it's shorter."
1640msgstr "Vous verrez surtout la première forme car elle est plus courte."
1641
1642#. type: Plain text
1643#: guix-git/doc/guix-cookbook.texi:909
1644msgid "There are 3 different input types. In short:"
1645msgstr "Il y a trois types d'entrées. En résumé :"
1646
1647#. type: item
1648#: guix-git/doc/guix-cookbook.texi:911
1649#, no-wrap
1650msgid "native-inputs"
1651msgstr "native-inputs"
1652
1653#. type: table
1654#: guix-git/doc/guix-cookbook.texi:914
1655msgid "Required for building but not runtime -- installing a package through a substitute won't install these inputs."
1656msgstr "Requis pour construire mais pas à l'exécution -- installer un paquet avec un substitut n'installera pas ces entrées."
1657
1658#. type: item
1659#: guix-git/doc/guix-cookbook.texi:914
1660#, no-wrap
1661msgid "inputs"
1662msgstr "inputs"
1663
1664#. type: table
1665#: guix-git/doc/guix-cookbook.texi:917
1666msgid "Installed in the store but not in the profile, as well as being present at build time."
1667msgstr "Installées dans le dépôt mais pas dans le profil, et présentes à la construction."
1668
1669#. type: item
1670#: guix-git/doc/guix-cookbook.texi:917
1671#, no-wrap
1672msgid "propagated-inputs"
1673msgstr "propagated-inputs"
1674
1675#. type: table
1676#: guix-git/doc/guix-cookbook.texi:920
1677msgid "Installed in the store and in the profile, as well as being present at build time."
1678msgstr "Installées dans le dépôt et dans le profil, et présentes à la construction."
1679
1680#. type: Plain text
1681#: guix-git/doc/guix-cookbook.texi:923
1682msgid "@xref{Package Reference,,, guix, GNU Guix Reference Manual} for more details."
1683msgstr "@xref{Référence de package,,, guix.fr, le manuel de référence de GNU Guix} pour plus de détails."
1684
1685#. type: Plain text
1686#: guix-git/doc/guix-cookbook.texi:927
1687msgid "The distinction between the various inputs is important: if a dependency can be handled as an @emph{input} instead of a @emph{propagated input}, it should be done so, or else it ``pollutes'' the user profile for no good reason."
1688msgstr "La différence entre les différents types d'entrées est importante : si une dépendance peut être utilisée comme @emph{entrée} plutôt que comme @emph{entrée propagée}, il faut faire ça, sinon elle « polluera » le profil utilisateur sans raison."
1689
1690#. type: Plain text
1691#: guix-git/doc/guix-cookbook.texi:934
1692msgid "For instance, a user installing a graphical program that depends on a command line tool might only be interested in the graphical part, so there is no need to force the command line tool into the user profile. The dependency is a concern to the package, not to the user. @emph{Inputs} make it possible to handle dependencies without bugging the user by adding undesired executable files (or libraries) to their profile."
1693msgstr "Par exemple, si vous installez un programme graphique qui dépend d'un outil en ligne de commande, vous êtes probablement intéressé uniquement par la partie graphique, donc inutile de forcer l'outil en ligne de commande à être présent dans le profil utilisateur. Les dépendances sont gérés par les paquets, pas par les utilisateurs et utilisatrices. Les @emph{entrées} permettent de gérer les dépendances sans ennuyer les utilisateurs et utilisatrices en ajoutant des fichiers exécutables (ou bibliothèque) inutiles dans leur profil."
1694
1695#. type: Plain text
1696#: guix-git/doc/guix-cookbook.texi:940
1697msgid "Same goes for @emph{native-inputs}: once the program is installed, build-time dependencies can be safely garbage-collected. It also matters when a substitute is available, in which case only the @emph{inputs} and @emph{propagated inputs} will be fetched: the @emph{native inputs} are not required to install a package from a substitute."
1698msgstr "Pareil pour @emph{native-inputs} : une fois le programme installé, les dépendances à la construction peuvent être supprimées sans problème par le ramasse-miettes. Lorsqu'un substitut est disponible, seuls les @emph{entrées} et les @emph{entrées propagées} sont récupérées : les @emph{entrées natives} ne sont pas requises pour installer un paquet à partir d'un substitut."
1699
1700#. type: subsubsection
1701#: guix-git/doc/guix-cookbook.texi:941
1702#, no-wrap
1703msgid "Outputs"
1704msgstr "Sorties"
1705
1706#. type: Plain text
1707#: guix-git/doc/guix-cookbook.texi:945
1708msgid "Just like how a package can have multiple inputs, it can also produce multiple outputs."
1709msgstr "De la même manière qu'un paquet peut avoir plusieurs entrées, il peut aussi avoir plusieurs sorties."
1710
1711#. type: Plain text
1712#: guix-git/doc/guix-cookbook.texi:947
1713msgid "Each output corresponds to a separate directory in the store."
1714msgstr "Chaque sortie correspond à un répertoire différent dans le dépôt."
1715
1716#. type: Plain text
1717#: guix-git/doc/guix-cookbook.texi:950
1718msgid "The user can choose which output to install; this is useful to save space or to avoid polluting the user profile with unwanted executables or libraries."
1719msgstr "Vous pouvez choisir quelle sortie installer ; c'est utile pour préserver l'espace disque et éviter de polluer le profil utilisateur avec des exécutables et des bibliothèques inutiles."
1720
1721#. type: Plain text
1722#: guix-git/doc/guix-cookbook.texi:953
1723msgid "Output separation is optional. When the @code{outputs} field is left out, the default and only output (the complete package) is referred to as @code{\"out\"}."
1724msgstr "La séparation des sorties est facultative. Lorsque le champ @code{outputs} n'est pas spécifié, l'unique sortie par défaut (le paquet complet donc) est @code{\"out\"}."
1725
1726#. type: Plain text
1727#: guix-git/doc/guix-cookbook.texi:955
1728msgid "Typical separate output names include @code{debug} and @code{doc}."
1729msgstr "Les sorties séparées sont en général @code{debug} et @code{doc}."
1730
1731#. type: Plain text
1732#: guix-git/doc/guix-cookbook.texi:959
1733msgid "It's advised to separate outputs only when you've shown it's worth it: if the output size is significant (compare with @code{guix size}) or in case the package is modular."
1734msgstr "Vous devriez séparer les sorties seulement si vous pouvez montrer que c'est utile : si la taille de la sortie est importante (vous pouvez comparer avec @code{guix size}) ou si le paquet est modulaire."
1735
1736#. type: subsubsection
1737#: guix-git/doc/guix-cookbook.texi:960
1738#, no-wrap
1739msgid "Build system arguments"
1740msgstr "Arguments du système de construction"
1741
1742#. type: Plain text
1743#: guix-git/doc/guix-cookbook.texi:963
1744msgid "The @code{arguments} is a keyword-value list used to configure the build process."
1745msgstr "Le champ @code{arguments} est une liste de mot-clés et de valeurs utilisés pour configurer le processus de construction."
1746
1747#. type: Plain text
1748#: guix-git/doc/guix-cookbook.texi:968
1749msgid "The simplest argument @code{#:tests?} can be used to disable the test suite when building the package. This is mostly useful when the package does not feature any test suite. It's strongly recommended to keep the test suite on if there is one."
1750msgstr "L'argument le plus simple est @code{#:tests?} et on l'utilise pour désactiver la suite de tests pendant la construction du paquet. C'est surtout utile si le paquet n'a pas de suite de tests. Nous vous recommandons fortement de laisser tourner la suite de tests s'il y en a une."
1751
1752#. type: Plain text
1753#: guix-git/doc/guix-cookbook.texi:972
1754msgid "Another common argument is @code{:make-flags}, which specifies a list of flags to append when running make, as you would from the command line. For instance, the following flags"
1755msgstr "Un autre argument courant est @code{#:make-flags}, qui spécifie une liste de drapeaux à ajouter en lançant make, comme ce que vous feriez sur la ligne de commande. Par exemple, les drapeaux suivants"
1756
1757#. type: lisp
1758#: guix-git/doc/guix-cookbook.texi:976
1759#, no-wrap
1760msgid ""
1761"#:make-flags (list (string-append \"prefix=\" (assoc-ref %outputs \"out\"))\n"
1762" \"CC=gcc\")\n"
1763msgstr ""
1764"#:make-flags (list (string-append \"prefix=\" (assoc-ref %outputs \"out\"))\n"
1765" \"CC=gcc\")\n"
1766
1767#. type: Plain text
1768#: guix-git/doc/guix-cookbook.texi:979
1769msgid "translate into"
1770msgstr "se traduisent en"
1771
1772#. type: example
1773#: guix-git/doc/guix-cookbook.texi:982
1774#, no-wrap
1775msgid "$ make CC=gcc prefix=/gnu/store/...-<out>\n"
1776msgstr "$ make CC=gcc prefix=/gnu/store/...-<out>\n"
1777
1778#. type: Plain text
1779#: guix-git/doc/guix-cookbook.texi:988
1780msgid "This sets the C compiler to @code{gcc} and the @code{prefix} variable (the installation directory in Make parlance) to @code{(assoc-ref %outputs \"out\")}, which is a build-stage global variable pointing to the destination directory in the store (something like @file{/gnu/store/...-my-libgit2-20180408})."
1781msgstr "Cela indique que le compilateur C sera @code{gcc} et la variable @code{prefix} (le répertoire d'installation pour Make) sera @code{(assoc-ref %outputs \"out\")}, qui est une variable globale côté construction qui pointe vers le répertoire de destination dans le dépôt (quelque chose comme @file{/gnu/store/…-my-libgit2-20180408})."
1782
1783#. type: Plain text
1784#: guix-git/doc/guix-cookbook.texi:990
1785msgid "Similarly, it's possible to set the configure flags:"
1786msgstr "De manière identique, vous pouvez indiquer les drapeaux de configuration :"
1787
1788#. type: lisp
1789#: guix-git/doc/guix-cookbook.texi:993
1790#, no-wrap
1791msgid "#:configure-flags '(\"-DUSE_SHA1DC=ON\")\n"
1792msgstr "#:configure-flags '(\"-DUSE_SHA1DC=ON\")\n"
1793
1794#. type: Plain text
1795#: guix-git/doc/guix-cookbook.texi:997
1796msgid "The @code{%build-inputs} variable is also generated in scope. It's an association table that maps the input names to their store directories."
1797msgstr "La variable @code{%build-inputs} est aussi générée dans cette portée. C'est une liste d'association qui fait correspondre les noms des entrées à leur répertoire dans le dépôt."
1798
1799#. type: Plain text
1800#: guix-git/doc/guix-cookbook.texi:1002
1801msgid "The @code{phases} keyword lists the sequential steps of the build system. Typically phases include @code{unpack}, @code{configure}, @code{build}, @code{install} and @code{check}. To know more about those phases, you need to work out the appropriate build system definition in @samp{$GUIX_CHECKOUT/guix/build/gnu-build-system.scm}:"
1802msgstr "Le mot-clé @code{phases} liste la séquence d'étapes du système de construction. Les phases usuelles sont @code{unpack}, @code{configure}, @code{build}, @code{install} et @code{check}. Pour en savoir plus, vous devez trouver la bonne définition du système de construction dans @samp{$GUIX_CHECKOUT/guix/build/gnu-build-system.scm} :"
1803
1804#. type: lisp
1805#: guix-git/doc/guix-cookbook.texi:1021
1806#, no-wrap
1807msgid ""
1808"(define %standard-phases\n"
1809" ;; Standard build phases, as a list of symbol/procedure pairs.\n"
1810" (let-syntax ((phases (syntax-rules ()\n"
1811" ((_ p ...) `((p . ,p) ...)))))\n"
1812" (phases set-SOURCE-DATE-EPOCH set-paths install-locale unpack\n"
1813" bootstrap\n"
1814" patch-usr-bin-file\n"
1815" patch-source-shebangs configure patch-generated-file-shebangs\n"
1816" build check install\n"
1817" patch-shebangs strip\n"
1818" validate-runpath\n"
1819" validate-documentation-location\n"
1820" delete-info-dir-file\n"
1821" patch-dot-desktop-files\n"
1822" install-license-files\n"
1823" reset-gzip-timestamps\n"
1824" compress-documentation)))\n"
1825msgstr ""
1826"(define %standard-phases\n"
1827" ;; Standard build phases, as a list of symbol/procedure pairs.\n"
1828" (let-syntax ((phases (syntax-rules ()\n"
1829" ((_ p ...) `((p . ,p) ...)))))\n"
1830" (phases set-SOURCE-DATE-EPOCH set-paths install-locale unpack\n"
1831" bootstrap\n"
1832" patch-usr-bin-file\n"
1833" patch-source-shebangs configure patch-generated-file-shebangs\n"
1834" build check install\n"
1835" patch-shebangs strip\n"
1836" validate-runpath\n"
1837" validate-documentation-location\n"
1838" delete-info-dir-file\n"
1839" patch-dot-desktop-files\n"
1840" install-license-files\n"
1841" reset-gzip-timestamps\n"
1842" compress-documentation)))\n"
1843
1844#. type: Plain text
1845#: guix-git/doc/guix-cookbook.texi:1024
1846msgid "Or from the REPL:"
1847msgstr "Ou depuis la REPL :"
1848
1849#. type: lisp
1850#: guix-git/doc/guix-cookbook.texi:1030
1851#, no-wrap
1852msgid ""
1853"(add-to-load-path \"/path/to/guix/checkout\")\n"
1854",use (guix build gnu-build-system)\n"
1855"(map first %standard-phases)\n"
1856"@result{} (set-SOURCE-DATE-EPOCH set-paths install-locale unpack bootstrap patch-usr-bin-file patch-source-shebangs configure patch-generated-file-shebangs build check install patch-shebangs strip validate-runpath validate-documentation-location delete-info-dir-file patch-dot-desktop-files install-license-files reset-gzip-timestamps compress-documentation)\n"
1857msgstr ""
1858"(add-to-load-path \"/path/to/guix/checkout\")\n"
1859",use (guix build gnu-build-system)\n"
1860"(map first %standard-phases)\n"
1861"@result{} (set-SOURCE-DATE-EPOCH set-paths install-locale unpack bootstrap patch-usr-bin-file patch-source-shebangs configure patch-generated-file-shebangs build check install patch-shebangs strip validate-runpath validate-documentation-location delete-info-dir-file patch-dot-desktop-files install-license-files reset-gzip-timestamps compress-documentation)\n"
1862
1863#. type: Plain text
1864#: guix-git/doc/guix-cookbook.texi:1034
1865msgid "If you want to know more about what happens during those phases, consult the associated procedures."
1866msgstr "Si vous voulez en apprendre plus sur ce qui arrive pendant ces phases, consultez les procédures associées."
1867
1868#. type: Plain text
1869#: guix-git/doc/guix-cookbook.texi:1037
1870msgid "For instance, as of this writing the definition of @code{unpack} for the GNU build system is:"
1871msgstr "Par exemple, au moment d'écrire ces lignes, la définition de @code{unpack} dans le système de construction de GNU est :"
1872
1873#. type: lisp
1874#: guix-git/doc/guix-cookbook.texi:1047
1875#, no-wrap
1876msgid ""
1877"(define* (unpack #:key source #:allow-other-keys)\n"
1878" \"Unpack SOURCE in the working directory, and change directory within the\n"
1879"source. When SOURCE is a directory, copy it in a sub-directory of the current\n"
1880"working directory.\"\n"
1881" (if (file-is-directory? source)\n"
1882" (begin\n"
1883" (mkdir \"source\")\n"
1884" (chdir \"source\")\n"
1885"\n"
1886msgstr ""
1887"(define* (unpack #:key source #:allow-other-keys)\n"
1888" \"Unpack SOURCE in the working directory, and change directory within the\n"
1889"source. When SOURCE is a directory, copy it in a sub-directory of the current\n"
1890"working directory.\"\n"
1891" (if (file-is-directory? source)\n"
1892" (begin\n"
1893" (mkdir \"source\")\n"
1894" (chdir \"source\")\n"
1895"\n"
1896
1897#. type: lisp
1898#: guix-git/doc/guix-cookbook.texi:1058
1899#, no-wrap
1900msgid ""
1901" ;; Preserve timestamps (set to the Epoch) on the copied tree so that\n"
1902" ;; things work deterministically.\n"
1903" (copy-recursively source \".\"\n"
1904" #:keep-mtime? #true))\n"
1905" (begin\n"
1906" (if (string-suffix? \".zip\" source)\n"
1907" (invoke \"unzip\" source)\n"
1908" (invoke \"tar\" \"xvf\" source))\n"
1909" (chdir (first-subdirectory \".\"))))\n"
1910" #true)\n"
1911msgstr ""
1912" ;; Preserve timestamps (set to the Epoch) on the copied tree so that\n"
1913" ;; things work deterministically.\n"
1914" (copy-recursively source \".\"\n"
1915" #:keep-mtime? #true))\n"
1916" (begin\n"
1917" (if (string-suffix? \".zip\" source)\n"
1918" (invoke \"unzip\" source)\n"
1919" (invoke \"tar\" \"xvf\" source))\n"
1920" (chdir (first-subdirectory \".\"))))\n"
1921" #true)\n"
1922
1923#. type: Plain text
1924#: guix-git/doc/guix-cookbook.texi:1066
1925msgid "Note the @code{chdir} call: it changes the working directory to where the source was unpacked. Thus every phase following the @code{unpack} will use the source as a working directory, which is why we can directly work on the source files. That is to say, unless a later phase changes the working directory to something else."
1926msgstr "Remarquez l'appel à @code{chdir} : il change de répertoire courant vers la source qui vient d'être décompressée. Ainsi toutes les phases suivantes utiliseront le répertoire des sources comme répertoire de travail, ce qui explique qu'on peut travailler directement sur les fichiers sources. Du moins, tant qu'une phase suivante ne change pas le répertoire de travail."
1927
1928#. type: Plain text
1929#: guix-git/doc/guix-cookbook.texi:1070
1930msgid "We modify the list of @code{%standard-phases} of the build system with the @code{modify-phases} macro as per the list of specified modifications, which may have the following forms:"
1931msgstr "Nous modifions la liste des @code{%standard-phases} du système de construction avec la macro @code{modify-phases} qui indique la liste des modifications, sous cette formes :"
1932
1933#. type: itemize
1934#: guix-git/doc/guix-cookbook.texi:1074
1935msgid "@code{(add-before @var{phase} @var{new-phase} @var{procedure})}: Run @var{procedure} named @var{new-phase} before @var{phase}."
1936msgstr "@code{(add-before @var{phase} @var{nouvelle-phase} @var{procédure})} : Lance une @var{procédure} nommée @var{nouvelle-phase} avant @var{phase}."
1937
1938#. type: itemize
1939#: guix-git/doc/guix-cookbook.texi:1076
1940msgid "@code{(add-after @var{phase} @var{new-phase} @var{procedure})}: Same, but afterwards."
1941msgstr "@code{(add-after @var{phase} @var{nouvelle-phase} @var{procédure})} : Pareil, mais après la @var{phase}."
1942
1943#. type: itemize
1944#: guix-git/doc/guix-cookbook.texi:1078
1945msgid "@code{(replace @var{phase} @var{procedure})}."
1946msgstr "@code{(replace @var{phase} @var{procédure})}."
1947
1948#. type: itemize
1949#: guix-git/doc/guix-cookbook.texi:1080
1950msgid "@code{(delete @var{phase})}."
1951msgstr "@code{(delete @var{phase})}."
1952
1953#. type: Plain text
1954#: guix-git/doc/guix-cookbook.texi:1087
1955msgid "The @var{procedure} supports the keyword arguments @code{inputs} and @code{outputs}. Each input (whether @emph{native}, @emph{propagated} or not) and output directory is referenced by their name in those variables. Thus @code{(assoc-ref outputs \"out\")} is the store directory of the main output of the package. A phase procedure may look like this:"
1956msgstr "La @var{procédure} prend en charge les arguments @code{inputs} et @code{outputs} sous forme de mot-clés. Les entrées (@emph{natives}, @emph{propagées} et simples) et répertoires de sortie sont référencés par leur nom dans ces variables. Ainsi @code{(assoc-ref outputs \"out\")} est le répertoire du dépôt de la sortie principale du paquet. Une procédure de phase ressemble à cela :"
1957
1958#. type: lisp
1959#: guix-git/doc/guix-cookbook.texi:1095
1960#, no-wrap
1961msgid ""
1962"(lambda* (#:key inputs outputs #:allow-other-keys)\n"
1963" (let ((bash-directory (assoc-ref inputs \"bash\"))\n"
1964" (output-directory (assoc-ref outputs \"out\"))\n"
1965" (doc-directory (assoc-ref outputs \"doc\")))\n"
1966" ;; ...\n"
1967" #true))\n"
1968msgstr ""
1969"(lambda* (#:key inputs outputs #:allow-other-keys)\n"
1970" (let ((bash-directory (assoc-ref inputs \"bash\"))\n"
1971" (output-directory (assoc-ref outputs \"out\"))\n"
1972" (doc-directory (assoc-ref outputs \"doc\")))\n"
1973" ;; ...\n"
1974" #true))\n"
1975
1976#. type: Plain text
1977#: guix-git/doc/guix-cookbook.texi:1101
1978msgid "The procedure must return @code{#true} on success. It's brittle to rely on the return value of the last expression used to tweak the phase because there is no guarantee it would be a @code{#true}. Hence the trailing @code{#true} to ensure the right value is returned on success."
1979msgstr "La procédure doit renvoyer @code{#true} si elle réussit. S'appuyer sur la valeur de retour de la dernière expression n'est pas très solide parce qu'il n'y a pas de garantie qu'elle sera @code{#true}. Donc le @code{#true} à la fin permet de s'assurer que la bonne valeur est renvoyée si la phase réussit."
1980
1981#. type: subsubsection
1982#: guix-git/doc/guix-cookbook.texi:1102
1983#, no-wrap
1984msgid "Code staging"
1985msgstr "Échelonnage de code"
1986
1987#. type: Plain text
1988#: guix-git/doc/guix-cookbook.texi:1108
1989msgid "The astute reader may have noticed the quasi-quote and comma syntax in the argument field. Indeed, the build code in the package declaration should not be evaluated on the client side, but only when passed to the Guix daemon. This mechanism of passing code around two running processes is called @uref{https://arxiv.org/abs/1709.00833, code staging}."
1990msgstr "Si vous avez été attentif, vous aurez remarqué la quasi-quote et la virgule dans le champ argument. En effet, le code de construction dans la déclaration du paquet ne doit pas être évalué côté client, mais seulement après avoir été passé au démon Guix. Ce mécanisme de passage de code entre deux processus s'appelle @uref{https://arxiv.org/abs/1709.00833, l'échelonnage de code}."
1991
1992#. type: subsubsection
1993#: guix-git/doc/guix-cookbook.texi:1109
1994#, no-wrap
1995msgid "Utility functions"
1996msgstr "Fonctions utilitaires"
1997
1998#. type: Plain text
1999#: guix-git/doc/guix-cookbook.texi:1114
2000msgid "When customizing @code{phases}, we often need to write code that mimics the equivalent system invocations (@code{make}, @code{mkdir}, @code{cp}, etc.)@: commonly used during regular ``Unix-style'' installations."
2001msgstr "Lorsque vous modifiez les @code{phases}, vous aurez souvent besoin d'écrire du code qui ressemble aux invocation équivalentes (@code{make}, @code{mkdir}, @code{cp}, etc) couramment utilisées durant une installatio plus standard dans le monde Unix."
2002
2003#. type: Plain text
2004#: guix-git/doc/guix-cookbook.texi:1117
2005msgid "Some like @code{chmod} are native to Guile. @xref{,,, guile, Guile reference manual} for a complete list."
2006msgstr "Certaines comme @code{chmod} sont natives dans Guile. @xref{,,, guile, Guile reference manual} pour une liste complète."
2007
2008#. type: Plain text
2009#: guix-git/doc/guix-cookbook.texi:1120
2010msgid "Guix provides additional helper functions which prove especially handy in the context of package management."
2011msgstr "Guix fournit des fonctions utilitaires supplémentaires qui sont particulièrement utiles pour la gestion des paquets."
2012
2013#. type: Plain text
2014#: guix-git/doc/guix-cookbook.texi:1124
2015msgid "Some of those functions can be found in @samp{$GUIX_CHECKOUT/guix/guix/build/utils.scm}. Most of them mirror the behaviour of the traditional Unix system commands:"
2016msgstr "Certaines de ces fonctions se trouvent dans @samp{$GUIX_CHECKOUT/guix/guix/build/utils.scm}. La plupart copient le comportement des commandes systèmes Unix traditionnelles :"
2017
2018#. type: item
2019#: guix-git/doc/guix-cookbook.texi:1126
2020#, no-wrap
2021msgid "which"
2022msgstr "which"
2023
2024#. type: table
2025#: guix-git/doc/guix-cookbook.texi:1128
2026msgid "Like the @samp{which} system command."
2027msgstr "Fonctionne comme la commande système @samp{which}."
2028
2029#. type: item
2030#: guix-git/doc/guix-cookbook.texi:1128
2031#, no-wrap
2032msgid "find-files"
2033msgstr "find-files"
2034
2035#. type: table
2036#: guix-git/doc/guix-cookbook.texi:1130
2037msgid "Akin to the @samp{find} system command."
2038msgstr "Fonctionne un peu comme la commande @samp{find}."
2039
2040#. type: item
2041#: guix-git/doc/guix-cookbook.texi:1130
2042#, no-wrap
2043msgid "mkdir-p"
2044msgstr "mkdir-p"
2045
2046#. type: table
2047#: guix-git/doc/guix-cookbook.texi:1132
2048msgid "Like @samp{mkdir -p}, which creates all parents as needed."
2049msgstr "Fonctionne comme @samp{mkdir -p}, qui crée tous les parents si besoin."
2050
2051#. type: item
2052#: guix-git/doc/guix-cookbook.texi:1132
2053#, no-wrap
2054msgid "install-file"
2055msgstr "install-file"
2056
2057#. type: table
2058#: guix-git/doc/guix-cookbook.texi:1136
2059msgid "Similar to @samp{install} when installing a file to a (possibly non-existing) directory. Guile has @code{copy-file} which works like @samp{cp}."
2060msgstr "Fonctionne comme @samp{install} pour installer un fichier vers un répertoire (éventuellement non existant). Guile a @code{copy-file} qui fonctionne comme @samp{cp}."
2061
2062#. type: item
2063#: guix-git/doc/guix-cookbook.texi:1136
2064#, no-wrap
2065msgid "copy-recursively"
2066msgstr "copy-recursively"
2067
2068#. type: table
2069#: guix-git/doc/guix-cookbook.texi:1138
2070msgid "Like @samp{cp -r}."
2071msgstr "Fonctionne comme @samp{cp -r}."
2072
2073#. type: item
2074#: guix-git/doc/guix-cookbook.texi:1138
2075#, no-wrap
2076msgid "delete-file-recursively"
2077msgstr "delete-file-recursively"
2078
2079#. type: table
2080#: guix-git/doc/guix-cookbook.texi:1140
2081msgid "Like @samp{rm -rf}."
2082msgstr "Fonctionne comme @samp{rm -rf}."
2083
2084#. type: item
2085#: guix-git/doc/guix-cookbook.texi:1140
2086#, no-wrap
2087msgid "invoke"
2088msgstr "invoke"
2089
2090#. type: table
2091#: guix-git/doc/guix-cookbook.texi:1142
2092msgid "Run an executable. This should be used instead of @code{system*}."
2093msgstr "Lance un exécutable. Vous devriez utiliser cela à la place de @code{system*}."
2094
2095#. type: item
2096#: guix-git/doc/guix-cookbook.texi:1142
2097#, no-wrap
2098msgid "with-directory-excursion"
2099msgstr "with-directory-excursion"
2100
2101#. type: table
2102#: guix-git/doc/guix-cookbook.texi:1145
2103msgid "Run the body in a different working directory, then restore the previous working directory."
2104msgstr "Lance le corps dans un répertoire de travail différent, puis revient au répertoire de travail précédent."
2105
2106#. type: item
2107#: guix-git/doc/guix-cookbook.texi:1145
2108#, no-wrap
2109msgid "substitute*"
2110msgstr "substitute*"
2111
2112#. type: table
2113#: guix-git/doc/guix-cookbook.texi:1147
2114msgid "A ``@command{sed}-like'' function."
2115msgstr "Une fonction similaire à @command{sed}."
2116
2117#. type: Plain text
2118#: guix-git/doc/guix-cookbook.texi:1151
2119msgid "@xref{Build Utilities,,, guix, GNU Guix Reference Manual}, for more information on these utilities."
2120msgstr "@xref{Utilitaires de construction,,, guix.fr, le manuel de référence de GNU Guix}, pour plus d'informations sur ces utilitaires."
2121
2122#. type: subsubsection
2123#: guix-git/doc/guix-cookbook.texi:1152
2124#, no-wrap
2125msgid "Module prefix"
2126msgstr "Préfixe de module"
2127
2128#. type: Plain text
2129#: guix-git/doc/guix-cookbook.texi:1162
2130msgid "The license in our last example needs a prefix: this is because of how the @code{license} module was imported in the package, as @code{#:use-module ((guix licenses) #:prefix license:)}. The Guile module import mechanism (@pxref{Using Guile Modules,,, guile, Guile reference manual}) gives the user full control over namespacing: this is needed to avoid clashes between, say, the @samp{zlib} variable from @samp{licenses.scm} (a @emph{license} value) and the @samp{zlib} variable from @samp{compression.scm} (a @emph{package} value)."
2131msgstr "La licence dans notre dernier exemple a besoin d'un préfixe à cause de la manière dont le module @code{licenses} a été importé dans le paquet, avec @code{#:use-module ((guix licenses) #:prefix license:)}. Le mécanisme d'import de module de Guile (@pxref{Using Guile Modules,,, guile, Guile reference manual}) permet de contrôler complètement l'espace de nom. Cela évite les conflits entre, disons, la variable @samp{zlib} de @samp{licenses.scm} (un @emph{licence}) et la variable @samp{zlib} de @samp{compression.scm} (un @emph{paquet})."
2132
2133#. type: subsection
2134#: guix-git/doc/guix-cookbook.texi:1163 guix-git/doc/guix-cookbook.texi:1164
2135#, no-wrap
2136msgid "Other build systems"
2137msgstr "Autres systèmes de construction"
2138
2139#. type: Plain text
2140#: guix-git/doc/guix-cookbook.texi:1171
2141msgid "What we've seen so far covers the majority of packages using a build system other than the @code{trivial-build-system}. The latter does not automate anything and leaves you to build everything manually. This can be more demanding and we won't cover it here for now, but thankfully it is rarely necessary to fall back on this system."
2142msgstr "Ce que nous avons vu jusqu'ici couvre la majeur partie des paquets qui utilisent un système de construction autre que @code{trivial-build-system}. Ce dernier n'automatise rien et vous laisse tout construire par vous-même. C'est plus exigeant et nous n'en parlerons pas pour l'instant, mais heureusement il est rarement nécessaire d'aller jusqu'à ces extrémités."
2143
2144#. type: Plain text
2145#: guix-git/doc/guix-cookbook.texi:1175
2146msgid "For the other build systems, such as ASDF, Emacs, Perl, Ruby and many more, the process is very similar to the GNU build system except for a few specialized arguments."
2147msgstr "Pour les autres systèmes de construction, comme ASDF, Emacs, Perl, Ruby et bien d'autres, le processus est très similaire à celui du système de construction de GNU en dehors de quelques arguments spécialisés."
2148
2149#. type: Plain text
2150#: guix-git/doc/guix-cookbook.texi:1180
2151msgid "@xref{Build Systems,,, guix, GNU Guix Reference Manual}, for more information on build systems, or check the source code in the @samp{$GUIX_CHECKOUT/guix/build} and @samp{$GUIX_CHECKOUT/guix/build-system} directories."
2152msgstr "@xref{Systèmes de construction,,, guix.fr, le manuel de référence de GNU Guix}, pour plus d'informations sur les systèmes de construction, ou voir le code source dans les répertoires @samp{$GUIX_CHECKOUT/guix/build} et @samp{$GUIX_CHECKOUT/guix/build-system}."
2153
2154#. type: subsection
2155#: guix-git/doc/guix-cookbook.texi:1181 guix-git/doc/guix-cookbook.texi:1182
2156#, no-wrap
2157msgid "Programmable and automated package definition"
2158msgstr "Définition programmable et automatisée"
2159
2160#. type: Plain text
2161#: guix-git/doc/guix-cookbook.texi:1186
2162msgid "We can't repeat it enough: having a full-fledged programming language at hand empowers us in ways that reach far beyond traditional package management."
2163msgstr "Nous ne le répéterons jamais assez : avoir un langage de programmation complet à disposition nous permet de faire bien plus de choses que la gestion de paquets traditionnelle."
2164
2165#. type: Plain text
2166#: guix-git/doc/guix-cookbook.texi:1188
2167msgid "Let's illustrate this with some awesome features of Guix!"
2168msgstr "Illustrons cela avec certaines fonctionnalités géniales de Guix !"
2169
2170#. type: subsubsection
2171#: guix-git/doc/guix-cookbook.texi:1189 guix-git/doc/guix-cookbook.texi:1190
2172#, no-wrap
2173msgid "Recursive importers"
2174msgstr "Les importateurs récursifs"
2175
2176#. type: Plain text
2177#: guix-git/doc/guix-cookbook.texi:1197
2178msgid "You might find some build systems good enough that there is little to do at all to write a package, to the point that it becomes repetitive and tedious after a while. A @emph{raison d'être} of computers is to replace human beings at those boring tasks. So let's tell Guix to do this for us and create the package definition of an R package from CRAN (the output is trimmed for conciseness):"
2179msgstr "Certains systèmes de constructions sont si bons qu'il n'y a presque rien à écrire pour créer un paquet, au point que cela devient rapidement répétitif et pénible. L'une des raisons d'être des ordinateurs est de remplacer les êtres humains pour ces taches barbantes. Disons donc à Guix de faire cela pour nous et de créer les définitions de paquets pour un paquet R venant de CRAN (la sortie est coupée par souci de place) :"
2180
2181#. type: example
2182#: guix-git/doc/guix-cookbook.texi:1200
2183#, no-wrap
2184msgid ""
2185"$ guix import cran --recursive walrus\n"
2186"\n"
2187msgstr ""
2188"$ guix import cran --recursive walrus\n"
2189"\n"
2190
2191#. type: example
2192#: guix-git/doc/guix-cookbook.texi:1204
2193#, no-wrap
2194msgid ""
2195"(define-public r-mc2d\n"
2196" ; ...\n"
2197" (license gpl2+)))\n"
2198"\n"
2199msgstr ""
2200"(define-public r-mc2d\n"
2201" ; ...\n"
2202" (license gpl2+)))\n"
2203"\n"
2204
2205#. type: example
2206#: guix-git/doc/guix-cookbook.texi:1208
2207#, no-wrap
2208msgid ""
2209"(define-public r-jmvcore\n"
2210" ; ...\n"
2211" (license gpl2+)))\n"
2212"\n"
2213msgstr ""
2214"(define-public r-jmvcore\n"
2215" ; ...\n"
2216" (license gpl2+)))\n"
2217"\n"
2218
2219#. type: example
2220#: guix-git/doc/guix-cookbook.texi:1212
2221#, no-wrap
2222msgid ""
2223"(define-public r-wrs2\n"
2224" ; ...\n"
2225" (license gpl3)))\n"
2226"\n"
2227msgstr ""
2228"(define-public r-wrs2\n"
2229" ; ...\n"
2230" (license gpl3)))\n"
2231"\n"
2232
2233#. type: example
2234#: guix-git/doc/guix-cookbook.texi:1241
2235#, no-wrap
2236msgid ""
2237"(define-public r-walrus\n"
2238" (package\n"
2239" (name \"r-walrus\")\n"
2240" (version \"1.0.3\")\n"
2241" (source\n"
2242" (origin\n"
2243" (method url-fetch)\n"
2244" (uri (cran-uri \"walrus\" version))\n"
2245" (sha256\n"
2246" (base32\n"
2247" \"1nk2glcvy4hyksl5ipq2mz8jy4fss90hx6cq98m3w96kzjni6jjj\"))))\n"
2248" (build-system r-build-system)\n"
2249" (propagated-inputs\n"
2250" `((\"r-ggplot2\" ,r-ggplot2)\n"
2251" (\"r-jmvcore\" ,r-jmvcore)\n"
2252" (\"r-r6\" ,r-r6)\n"
2253" (\"r-wrs2\" ,r-wrs2)))\n"
2254" (home-page \"https://github.com/jamovi/walrus\")\n"
2255" (synopsis \"Robust Statistical Methods\")\n"
2256" (description\n"
2257" \"This package provides a toolbox of common robust statistical\n"
2258"tests, including robust descriptives, robust t-tests, and robust ANOVA.\n"
2259"It is also available as a module for 'jamovi' (see\n"
2260"<https://www.jamovi.org> for more information). Walrus is based on the\n"
2261"WRS2 package by Patrick Mair, which is in turn based on the scripts and\n"
2262"work of Rand Wilcox. These analyses are described in depth in the book\n"
2263"'Introduction to Robust Estimation & Hypothesis Testing'.\")\n"
2264" (license gpl3)))\n"
2265msgstr ""
2266"(define-public r-walrus\n"
2267" (package\n"
2268" (name \"r-walrus\")\n"
2269" (version \"1.0.3\")\n"
2270" (source\n"
2271" (origin\n"
2272" (method url-fetch)\n"
2273" (uri (cran-uri \"walrus\" version))\n"
2274" (sha256\n"
2275" (base32\n"
2276" \"1nk2glcvy4hyksl5ipq2mz8jy4fss90hx6cq98m3w96kzjni6jjj\"))))\n"
2277" (build-system r-build-system)\n"
2278" (propagated-inputs\n"
2279" `((\"r-ggplot2\" ,r-ggplot2)\n"
2280" (\"r-jmvcore\" ,r-jmvcore)\n"
2281" (\"r-r6\" ,r-r6)\n"
2282" (\"r-wrs2\" ,r-wrs2)))\n"
2283" (home-page \"https://github.com/jamovi/walrus\")\n"
2284" (synopsis \"Robust Statistical Methods\")\n"
2285" (description\n"
2286" \"This package provides a toolbox of common robust statistical\n"
2287"tests, including robust descriptives, robust t-tests, and robust ANOVA.\n"
2288"It is also available as a module for 'jamovi' (see\n"
2289"<https://www.jamovi.org> for more information). Walrus is based on the\n"
2290"WRS2 package by Patrick Mair, which is in turn based on the scripts and\n"
2291"work of Rand Wilcox. These analyses are described in depth in the book\n"
2292"'Introduction to Robust Estimation & Hypothesis Testing'.\")\n"
2293" (license gpl3)))\n"
2294
2295#. type: Plain text
2296#: guix-git/doc/guix-cookbook.texi:1245
2297msgid "The recursive importer won't import packages for which Guix already has package definitions, except for the very first."
2298msgstr "L'importateur récursif n'importera pas les paquets pour lesquels Guix a déjà une définition, sauf pour le tout premier."
2299
2300#. type: Plain text
2301#: guix-git/doc/guix-cookbook.texi:1250
2302msgid "Not all applications can be packaged this way, only those relying on a select number of supported systems. Read about the full list of importers in the guix import section of the manual (@pxref{Invoking guix import,,, guix, GNU Guix Reference Manual})."
2303msgstr "Toutes les applications ne peuvent pas être empaquetées de cette manière, seules celles qui s'appuient sur un nombre restreint de systèmes pris en charge le peuvent. Vous trouverez la liste complète des importateurs dans la section dédiée du manuel (@pxref{Invoquer guix import,,, guix.fr, le manuel de référence de GNU})."
2304
2305#. type: subsubsection
2306#: guix-git/doc/guix-cookbook.texi:1251 guix-git/doc/guix-cookbook.texi:1252
2307#, no-wrap
2308msgid "Automatic update"
2309msgstr "Mise à jour automatique"
2310
2311#. type: Plain text
2312#: guix-git/doc/guix-cookbook.texi:1256
2313msgid "Guix can be smart enough to check for updates on systems it knows. It can report outdated package definitions with"
2314msgstr "Guix peut être assez intelligent pour vérifier s'il y a des mises à jour sur les systèmes qu'il connaît. Il peut rapporter les paquets anciens avec"
2315
2316#. type: example
2317#: guix-git/doc/guix-cookbook.texi:1259
2318#, no-wrap
2319msgid "$ guix refresh hello\n"
2320msgstr "$ guix refresh hello\n"
2321
2322#. type: Plain text
2323#: guix-git/doc/guix-cookbook.texi:1264
2324msgid "In most cases, updating a package to a newer version requires little more than changing the version number and the checksum. Guix can do that automatically as well:"
2325msgstr "La plupart du temps, mettre à jour un paquet vers une nouvelle version ne demande pas beaucoup plus que de changer le numéro de version et la somme de contrôle. Guix peut aussi le faire automatiquement :"
2326
2327#. type: example
2328#: guix-git/doc/guix-cookbook.texi:1267
2329#, no-wrap
2330msgid "$ guix refresh hello --update\n"
2331msgstr "$ guix refresh hello --update\n"
2332
2333#. type: subsubsection
2334#: guix-git/doc/guix-cookbook.texi:1269 guix-git/doc/guix-cookbook.texi:1270
2335#, no-wrap
2336msgid "Inheritance"
2337msgstr "Héritage"
2338
2339#. type: Plain text
2340#: guix-git/doc/guix-cookbook.texi:1274
2341msgid "If you've started browsing the existing package definitions, you might have noticed that a significant number of them have a @code{inherit} field:"
2342msgstr "Si vous avez commencé à regarder des définitions de paquets existantes, vous avez peut-être remarqué qu'un certain nombre d'entre elles ont un champ @code{inherit} :"
2343
2344#. type: lisp
2345#: guix-git/doc/guix-cookbook.texi:1290
2346#, no-wrap
2347msgid ""
2348"(define-public adwaita-icon-theme\n"
2349" (package (inherit gnome-icon-theme)\n"
2350" (name \"adwaita-icon-theme\")\n"
2351" (version \"3.26.1\")\n"
2352" (source (origin\n"
2353" (method url-fetch)\n"
2354" (uri (string-append \"mirror://gnome/sources/\" name \"/\"\n"
2355" (version-major+minor version) \"/\"\n"
2356" name \"-\" version \".tar.xz\"))\n"
2357" (sha256\n"
2358" (base32\n"
2359" \"17fpahgh5dyckgz7rwqvzgnhx53cx9kr2xw0szprc6bnqy977fi8\"))))\n"
2360" (native-inputs\n"
2361" `((\"gtk-encode-symbolic-svg\" ,gtk+ \"bin\")))))\n"
2362msgstr ""
2363"(define-public adwaita-icon-theme\n"
2364" (package (inherit gnome-icon-theme)\n"
2365" (name \"adwaita-icon-theme\")\n"
2366" (version \"3.26.1\")\n"
2367" (source (origin\n"
2368" (method url-fetch)\n"
2369" (uri (string-append \"mirror://gnome/sources/\" name \"/\"\n"
2370" (version-major+minor version) \"/\"\n"
2371" name \"-\" version \".tar.xz\"))\n"
2372" (sha256\n"
2373" (base32\n"
2374" \"17fpahgh5dyckgz7rwqvzgnhx53cx9kr2xw0szprc6bnqy977fi8\"))))\n"
2375" (native-inputs\n"
2376" `((\"gtk-encode-symbolic-svg\" ,gtk+ \"bin\")))))\n"
2377
2378#. type: Plain text
2379#: guix-git/doc/guix-cookbook.texi:1295
2380msgid "All unspecified fields are inherited from the parent package. This is very convenient to create alternative packages, for instance with different source, version or compilation options."
2381msgstr "Tous les champs non spécifiés héritent du paquet parent. C'est très pratique pour créer un paquet alternatif, par exemple avec une source, une version ou des options de compilation différentes."
2382
2383#. type: subsection
2384#: guix-git/doc/guix-cookbook.texi:1296 guix-git/doc/guix-cookbook.texi:1297
2385#, no-wrap
2386msgid "Getting help"
2387msgstr "Se faire aider"
2388
2389#. type: Plain text
2390#: guix-git/doc/guix-cookbook.texi:1303
2391msgid "Sadly, some applications can be tough to package. Sometimes they need a patch to work with the non-standard file system hierarchy enforced by the store. Sometimes the tests won't run properly. (They can be skipped but this is not recommended.) Other times the resulting package won't be reproducible."
2392msgstr "Malheureusement, certaines applications peuvent être difficiles à empaqueter. Parfois elles ont besoin d'un correctif pour fonctionner avec la hiérarchie du système de fichiers non standard imposée par de dépôt. Parfois les tests ne se lancent pas correctement (vous pouvez les passer mais ce n'est pas recommandé). Parfois le paquet n'est pas reproductible."
2393
2394#. type: Plain text
2395#: guix-git/doc/guix-cookbook.texi:1306
2396msgid "Should you be stuck, unable to figure out how to fix any sort of packaging issue, don't hesitate to ask the community for help."
2397msgstr "Si vous êtes bloqué·e, incapable de trouver comme corriger un problème d'empaquetage, n'hésitez pas à demander de l'aide à la communauté."
2398
2399#. type: Plain text
2400#: guix-git/doc/guix-cookbook.texi:1308
2401msgid "See the @uref{https://www.gnu.org/software/guix/contact/, Guix homepage} for information on the mailing lists, IRC, etc."
2402msgstr "voir la @uref{https://guix.gnu.org/fr/contact/,la page d'accueil de Guix} pour plus d'informations sur les listes de diffusion, IRC, etc."
2403
2404#. type: subsection
2405#: guix-git/doc/guix-cookbook.texi:1309 guix-git/doc/guix-cookbook.texi:1310
2406#, no-wrap
2407msgid "Conclusion"
2408msgstr "Conclusion"
2409
2410#. type: Plain text
2411#: guix-git/doc/guix-cookbook.texi:1316
2412msgid "This tutorial was a showcase of the sophisticated package management that Guix boasts. At this point we have mostly restricted this introduction to the @code{gnu-build-system} which is a core abstraction layer on which more advanced abstractions are based."
2413msgstr "Ce didacticiel vous a montré la gestion des paquets sophistiquée dont Guix se targue. Maintenant, nous avons restreint cette introduction au système @code{gnu-build-system} qui est un niveau d'abstraction essentiel sur lequel des niveaux d'abstraction plus avancés se reposent."
2414
2415#. type: Plain text
2416#: guix-git/doc/guix-cookbook.texi:1321
2417msgid "Where do we go from here? Next we ought to dissect the innards of the build system by removing all abstractions, using the @code{trivial-build-system}: this should give us a thorough understanding of the process before investigating some more advanced packaging techniques and edge cases."
2418msgstr "Comment continuer ? Nous devrions ensuite disséquer le fonctionnement interne des systèmes de construction en supprimant toutes les abstractions, avec le @code{trivial-build-system} : cela vous permettra de bien comprendre le processus avant de voir des techniques plus avancées et certains cas particuliers."
2419
2420#. type: Plain text
2421#: guix-git/doc/guix-cookbook.texi:1324
2422msgid "Other features worth exploring are the interactive editing and debugging capabilities of Guix provided by the Guile REPL@."
2423msgstr "D'autres fonctionnalités que vous devriez explorer sont l'édition interactive et les possibilités de débogage de Guix fournies par la REPL de Guile."
2424
2425#. type: Plain text
2426#: guix-git/doc/guix-cookbook.texi:1329
2427msgid "Those fancy features are completely optional and can wait; now is a good time to take a well-deserved break. With what we've introduced here you should be well armed to package lots of programs. You can get started right away and hopefully we will see your contributions soon!"
2428msgstr "Ces fonctionnalités avancées sont complètement facultatives et peuvent attendre ; maintenant vous devriez prendre une pause bien méritée. Avec ce dont nous venons de parler ici vous devriez être bien armé·e pour empaqueter de nombreux paquets. Vous pouvez commencer dès maintenant et on espère voir votre contribution bientôt !"
2429
2430#. type: subsection
2431#: guix-git/doc/guix-cookbook.texi:1330 guix-git/doc/guix-cookbook.texi:1331
2432#, no-wrap
2433msgid "References"
2434msgstr "Références"
2435
2436#. type: itemize
2437#: guix-git/doc/guix-cookbook.texi:1336
2438msgid "The @uref{https://www.gnu.org/software/guix/manual/en/html_node/Defining-Packages.html, package reference in the manual}"
2439msgstr "La @uref{https://guix.gnu.org/manual/devel/fr/html_node/reference-de-package.html, référence des paquets dans le manuel}"
2440
2441#. type: itemize
2442#: guix-git/doc/guix-cookbook.texi:1339
2443msgid "@uref{https://gitlab.com/pjotrp/guix-notes/blob/master/HACKING.org, Pjotr’s hacking guide to GNU Guix}"
2444msgstr "@uref{https://gitlab.com/pjotrp/guix-notes/blob/master/HACKING.org, le guide de bidouillage de GNU Guix de Pjotr}"
2445
2446#. type: itemize
2447#: guix-git/doc/guix-cookbook.texi:1342
2448msgid "@uref{https://www.gnu.org/software/guix/guix-ghm-andreas-20130823.pdf, ``GNU Guix: Package without a scheme!''}, by Andreas Enge"
2449msgstr "@uref{https://www.gnu.org/software/guix/guix-ghm-andreas-20130823.pdf, « GNU Guix: Package without a scheme! »}, d'Andreas Enge"
2450
2451#. type: Plain text
2452#: guix-git/doc/guix-cookbook.texi:1351
2453msgid "Guix offers a flexible language for declaratively configuring your Guix System. This flexibility can at times be overwhelming. The purpose of this chapter is to demonstrate some advanced configuration concepts."
2454msgstr "Guix propose un langage flexible pour déclarer la configuration de votre système Guix. Cette flexibilité peut parfois paraître écrasante. Le but de ce chapitre est de vous montrer quelques concepts de configuration avancés."
2455
2456#. type: Plain text
2457#: guix-git/doc/guix-cookbook.texi:1354
2458msgid "@pxref{System Configuration,,, guix, GNU Guix Reference Manual} for a complete reference."
2459msgstr "@pxref{Configuration du système,,, guix.fr, le manuel de référence de GNU Guix} pour une référence complète."
2460
2461#. type: menuentry
2462#: guix-git/doc/guix-cookbook.texi:1364
2463msgid "Creating and using a custom Linux kernel on Guix System."
2464msgstr "Créer et utiliser un noyau Linux personnalisé sur le système Guix."
2465
2466#. type: section
2467#: guix-git/doc/guix-cookbook.texi:1364 guix-git/doc/guix-cookbook.texi:1606
2468#: guix-git/doc/guix-cookbook.texi:1607
2469#, no-wrap
2470msgid "Guix System Image API"
2471msgstr "L'API de création d'images du système Guix"
2472
2473#. type: menuentry
2474#: guix-git/doc/guix-cookbook.texi:1364
2475msgid "Customizing images to target specific platforms."
2476msgstr "Personnaliser des images pour des plateformes particulières."
2477
2478#. type: section
2479#: guix-git/doc/guix-cookbook.texi:1364 guix-git/doc/guix-cookbook.texi:1817
2480#: guix-git/doc/guix-cookbook.texi:1818
2481#, no-wrap
2482msgid "Connecting to Wireguard VPN"
2483msgstr "Se connecter à un VPN Wireguard"
2484
2485#. type: menuentry
2486#: guix-git/doc/guix-cookbook.texi:1364
2487msgid "Connecting to a Wireguard VPN."
2488msgstr "Se connecter à un VPN Wireguard."
2489
2490#. type: section
2491#: guix-git/doc/guix-cookbook.texi:1364 guix-git/doc/guix-cookbook.texi:1894
2492#: guix-git/doc/guix-cookbook.texi:1895
2493#, no-wrap
2494msgid "Customizing a Window Manager"
2495msgstr "Personnaliser un gestionnaire de fenêtres"
2496
2497#. type: menuentry
2498#: guix-git/doc/guix-cookbook.texi:1364
2499msgid "Handle customization of a Window manager on Guix System."
2500msgstr "Gérer la personnalisation d'un gestionnaire de fenêtres sur le système Guix."
2501
2502#. type: section
2503#: guix-git/doc/guix-cookbook.texi:1364 guix-git/doc/guix-cookbook.texi:1985
2504#: guix-git/doc/guix-cookbook.texi:1986
2505#, no-wrap
2506msgid "Running Guix on a Linode Server"
2507msgstr "Lancer Guix sur un serveur Linode"
2508
2509#. type: section
2510#: guix-git/doc/guix-cookbook.texi:1364 guix-git/doc/guix-cookbook.texi:2225
2511#: guix-git/doc/guix-cookbook.texi:2226
2512#, no-wrap
2513msgid "Setting up a bind mount"
2514msgstr ""
2515
2516#. type: menuentry
2517#: guix-git/doc/guix-cookbook.texi:1364
2518msgid "Setting up a bind mount in the file-systems definition."
2519msgstr ""
2520
2521#. type: section
2522#: guix-git/doc/guix-cookbook.texi:1364 guix-git/doc/guix-cookbook.texi:2274
2523#: guix-git/doc/guix-cookbook.texi:2275
2524#, no-wrap
2525msgid "Getting substitutes from Tor"
2526msgstr "Récupérer des substituts via Tor"
2527
2528#. type: menuentry
2529#: guix-git/doc/guix-cookbook.texi:1364
2530msgid "Configuring Guix daemon to get substitutes through Tor."
2531msgstr "Configurer le démon Guix pour récupérer les substituts via Tor."
2532
2533#. type: section
2534#: guix-git/doc/guix-cookbook.texi:1364 guix-git/doc/guix-cookbook.texi:2336
2535#: guix-git/doc/guix-cookbook.texi:2337
2536#, no-wrap
2537msgid "Setting up NGINX with Lua"
2538msgstr "Configurer NGINX avec Lua"
2539
2540#. type: menuentry
2541#: guix-git/doc/guix-cookbook.texi:1364
2542msgid "Configuring NGINX web-server to load Lua modules."
2543msgstr "Configurer le serveur web NGINX pour qu'il charge des modules Lua."
2544
2545#. type: Plain text
2546#: guix-git/doc/guix-cookbook.texi:1376
2547msgid "Guix is, at its core, a source based distribution with substitutes (@pxref{Substitutes,,, guix, GNU Guix Reference Manual}), and as such building packages from their source code is an expected part of regular package installations and upgrades. Given this starting point, it makes sense that efforts are made to reduce the amount of time spent compiling packages, and recent changes and upgrades to the building and distribution of substitutes continues to be a topic of discussion within Guix."
2548msgstr "Guix est, en son cœur, une distribution source avec des substituts (@pxref{Substituts,,, guix.fr, le manuel de référence de GNU Guix}), et donc construire des paquets à partir de leur code source est normal pendant les installations et les mis à jour de paquets. Malgré tout, c'est aussi normal d'essayer de réduire le temps passé à compiler des paquets, et les changements récents et futurs concernant la construction et la distribution des substituts continue d'être un sujet de discussion dans le projet Guix."
2549
2550#. type: Plain text
2551#: guix-git/doc/guix-cookbook.texi:1382
2552msgid "The kernel, while not requiring an overabundance of RAM to build, does take a rather long time on an average machine. The official kernel configuration, as is the case with many GNU/Linux distributions, errs on the side of inclusiveness, and this is really what causes the build to take such a long time when the kernel is built from source."
2553msgstr "Le noyau, bien qu'il ne demande pas énormément de RAM pour être construit, prend assez long à construire sur une machine usuelle. La configuration du noyau officielle, comme avec la plupart des autres distributions GNU/Linux, penche du côté de l'inclusivité, et c'est vraiment ça qui rend la construction aussi longue à partir des sources."
2554
2555#. type: Plain text
2556#: guix-git/doc/guix-cookbook.texi:1387
2557msgid "The Linux kernel, however, can also just be described as a regular old package, and as such can be customized just like any other package. The procedure is a little bit different, although this is primarily due to the nature of how the package definition is written."
2558msgstr "Le noyau Linux, cependant, peut aussi être décrit comme un simple paquet comme les autres, et peut donc être personnalisé comme n'importe quel autre paquet. La procédure est un peu différente, même si c'est surtout dû à la nature de la définition du paquet."
2559
2560#. type: Plain text
2561#: guix-git/doc/guix-cookbook.texi:1390
2562msgid "The @code{linux-libre} kernel package definition is actually a procedure which creates a package."
2563msgstr "Le paquet du noyau @code{linux-libre} est en fait une procédure qui crée un paquet."
2564
2565#. type: lisp
2566#: guix-git/doc/guix-cookbook.texi:1402
2567#, no-wrap
2568msgid ""
2569"(define* (make-linux-libre version hash supported-systems\n"
2570" #:key\n"
2571" ;; A function that takes an arch and a variant.\n"
2572" ;; See kernel-config for an example.\n"
2573" (extra-version #false)\n"
2574" (configuration-file #false)\n"
2575" (defconfig \"defconfig\")\n"
2576" (extra-options %default-extra-linux-options)\n"
2577" (patches (list %boot-logo-patch)))\n"
2578" ...)\n"
2579msgstr ""
2580"(define* (make-linux-libre version hash supported-systems\n"
2581" #:key\n"
2582" ;; A function that takes an arch and a variant.\n"
2583" ;; See kernel-config for an example.\n"
2584" (extra-version #false)\n"
2585" (configuration-file #false)\n"
2586" (defconfig \"defconfig\")\n"
2587" (extra-options %default-extra-linux-options)\n"
2588" (patches (list %boot-logo-patch)))\n"
2589" ...)\n"
2590
2591#. type: Plain text
2592#: guix-git/doc/guix-cookbook.texi:1406
2593msgid "The current @code{linux-libre} package is for the 5.1.x series, and is declared like this:"
2594msgstr "Le paquet @code{linux-libre} actuel pour la série 5.1.x, est déclaré comme ceci :"
2595
2596#. type: lisp
2597#: guix-git/doc/guix-cookbook.texi:1414
2598#, no-wrap
2599msgid ""
2600"(define-public linux-libre\n"
2601" (make-linux-libre %linux-libre-version\n"
2602" %linux-libre-hash\n"
2603" '(\"x86_64-linux\" \"i686-linux\" \"armhf-linux\" \"aarch64-linux\")\n"
2604" #:patches %linux-libre-5.1-patches\n"
2605" #:configuration-file kernel-config))\n"
2606msgstr ""
2607"(define-public linux-libre\n"
2608" (make-linux-libre %linux-libre-version\n"
2609" %linux-libre-hash\n"
2610" '(\"x86_64-linux\" \"i686-linux\" \"armhf-linux\" \"aarch64-linux\")\n"
2611" #:patches %linux-libre-5.1-patches\n"
2612" #:configuration-file kernel-config))\n"
2613
2614#. type: Plain text
2615#: guix-git/doc/guix-cookbook.texi:1423
2616msgid "Any keys which are not assigned values inherit their default value from the @code{make-linux-libre} definition. When comparing the two snippets above, you may notice that the code comment in the first doesn't actually refer to the @code{#:extra-version} keyword; it is actually for @code{#:configuration-file}. Because of this, it is not actually easy to include a custom kernel configuration from the definition, but don't worry, there are other ways to work with what we do have."
2617msgstr "Les clés qui n'ont pas de valeur associée prennent leur valeur par défaut dans la définition de @code{make-linux-libre}. Lorsque vous comparez les deux bouts de code ci-dessus, vous aurez remarqué que le commentaire du premier ne correspond pas au mot-clé @code{#:extra-version}, mais à @code{#:configuration-file}. À cause de cela, il n'est pas facile d'inclure une configuration personnalisée du noyau à partir de la définition, mais ne vous inquiétez pas, il y a d'autres moyens de travailler avec ce qu'on a."
2618
2619#. type: Plain text
2620#: guix-git/doc/guix-cookbook.texi:1429
2621msgid "There are two ways to create a kernel with a custom kernel configuration. The first is to provide a standard @file{.config} file during the build process by including an actual @file{.config} file as a native input to our custom kernel. The following is a snippet from the custom @code{'configure} phase of the @code{make-linux-libre} package definition:"
2622msgstr "Il y a deux manières de créer un noyau avec une configuration personnalisée. La première consiste à fournir un fichier @file{.config} standard au processus de construction en ajoutant un fichier @file{.config} comme entrée native de notre noyau. Voici un bout de code correspondant à la phase @code{'configure} de la définition de paquet @code{make-linux-libre} :"
2623
2624#. type: lisp
2625#: guix-git/doc/guix-cookbook.texi:1433
2626#, no-wrap
2627msgid ""
2628"(let ((build (assoc-ref %standard-phases 'build))\n"
2629" (config (assoc-ref (or native-inputs inputs) \"kconfig\")))\n"
2630"\n"
2631msgstr ""
2632"(let ((build (assoc-ref %standard-phases 'build))\n"
2633" (config (assoc-ref (or native-inputs inputs) \"kconfig\")))\n"
2634"\n"
2635
2636#. type: lisp
2637#: guix-git/doc/guix-cookbook.texi:1441
2638#, no-wrap
2639msgid ""
2640" ;; Use a custom kernel configuration file or a default\n"
2641" ;; configuration file.\n"
2642" (if config\n"
2643" (begin\n"
2644" (copy-file config \".config\")\n"
2645" (chmod \".config\" #o666))\n"
2646" (invoke \"make\" ,defconfig)))\n"
2647msgstr ""
2648" ;; Use a custom kernel configuration file or a default\n"
2649" ;; configuration file.\n"
2650" (if config\n"
2651" (begin\n"
2652" (copy-file config \".config\")\n"
2653" (chmod \".config\" #o666))\n"
2654" (invoke \"make\" ,defconfig)))\n"
2655
2656#. type: Plain text
2657#: guix-git/doc/guix-cookbook.texi:1446
2658msgid "Below is a sample kernel package. The @code{linux-libre} package is nothing special and can be inherited from and have its fields overridden like any other package:"
2659msgstr "Et voici un exemple de paquet de noyau. Le paquet @code{linux-libre} n'a rien de spécial, on peut en hériter et remplacer ses champs comme n'importe quel autre paquet :"
2660
2661#. type: lisp
2662#: guix-git/doc/guix-cookbook.texi:1455
2663#, no-wrap
2664msgid ""
2665"(define-public linux-libre/E2140\n"
2666" (package\n"
2667" (inherit linux-libre)\n"
2668" (native-inputs\n"
2669" `((\"kconfig\" ,(local-file \"E2140.config\"))\n"
2670" ,@@(alist-delete \"kconfig\"\n"
2671" (package-native-inputs linux-libre))))))\n"
2672msgstr ""
2673"(define-public linux-libre/E2140\n"
2674" (package\n"
2675" (inherit linux-libre)\n"
2676" (native-inputs\n"
2677" `((\"kconfig\" ,(local-file \"E2140.config\"))\n"
2678" ,@@(alist-delete \"kconfig\"\n"
2679" (package-native-inputs linux-libre))))))\n"
2680
2681#. type: Plain text
2682#: guix-git/doc/guix-cookbook.texi:1462
2683msgid "In the same directory as the file defining @code{linux-libre-E2140} is a file named @file{E2140.config}, which is an actual kernel configuration file. The @code{defconfig} keyword of @code{make-linux-libre} is left blank here, so the only kernel configuration in the package is the one which was included in the @code{native-inputs} field."
2684msgstr "Dans le même répertoire que le fichier définissant @code{linux-libre-E2140} se trouve un fichier nommé @file{E2140.config}, qui est un fichier de configuration du noyau. Le mot-clé @code{defconfig} de @code{make-linux-libre} reste vide ici, donc la configuration du noyau dans le paquet est celle qui sera incluse dans le champ @code{native-inputs}."
2685
2686#. type: Plain text
2687#: guix-git/doc/guix-cookbook.texi:1467
2688msgid "The second way to create a custom kernel is to pass a new value to the @code{extra-options} keyword of the @code{make-linux-libre} procedure. The @code{extra-options} keyword works with another function defined right below it:"
2689msgstr "La deuxième manière de créer un noyau personnalisé est de passer une nouvelle valeur au mot-clé @code{extra-options} de la procédure @code{make-linux-libre}. Le mot-clé @code{extra-options} fonctionne avec une autre fonction définie juste en dessous :"
2690
2691#. type: lisp
2692#: guix-git/doc/guix-cookbook.texi:1483
2693#, no-wrap
2694msgid ""
2695"(define %default-extra-linux-options\n"
2696" `(;; https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00039.html\n"
2697" (\"CONFIG_DEVPTS_MULTIPLE_INSTANCES\" . #true)\n"
2698" ;; Modules required for initrd:\n"
2699" (\"CONFIG_NET_9P\" . m)\n"
2700" (\"CONFIG_NET_9P_VIRTIO\" . m)\n"
2701" (\"CONFIG_VIRTIO_BLK\" . m)\n"
2702" (\"CONFIG_VIRTIO_NET\" . m)\n"
2703" (\"CONFIG_VIRTIO_PCI\" . m)\n"
2704" (\"CONFIG_VIRTIO_BALLOON\" . m)\n"
2705" (\"CONFIG_VIRTIO_MMIO\" . m)\n"
2706" (\"CONFIG_FUSE_FS\" . m)\n"
2707" (\"CONFIG_CIFS\" . m)\n"
2708" (\"CONFIG_9P_FS\" . m)))\n"
2709"\n"
2710msgstr ""
2711"(define %default-extra-linux-options\n"
2712" `(;; https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00039.html\n"
2713" (\"CONFIG_DEVPTS_MULTIPLE_INSTANCES\" . #true)\n"
2714" ;; Modules required for initrd:\n"
2715" (\"CONFIG_NET_9P\" . m)\n"
2716" (\"CONFIG_NET_9P_VIRTIO\" . m)\n"
2717" (\"CONFIG_VIRTIO_BLK\" . m)\n"
2718" (\"CONFIG_VIRTIO_NET\" . m)\n"
2719" (\"CONFIG_VIRTIO_PCI\" . m)\n"
2720" (\"CONFIG_VIRTIO_BALLOON\" . m)\n"
2721" (\"CONFIG_VIRTIO_MMIO\" . m)\n"
2722" (\"CONFIG_FUSE_FS\" . m)\n"
2723" (\"CONFIG_CIFS\" . m)\n"
2724" (\"CONFIG_9P_FS\" . m)))\n"
2725"\n"
2726
2727#. type: lisp
2728#: guix-git/doc/guix-cookbook.texi:1494
2729#, no-wrap
2730msgid ""
2731"(define (config->string options)\n"
2732" (string-join (map (match-lambda\n"
2733" ((option . 'm)\n"
2734" (string-append option \"=m\"))\n"
2735" ((option . #true)\n"
2736" (string-append option \"=y\"))\n"
2737" ((option . #false)\n"
2738" (string-append option \"=n\")))\n"
2739" options)\n"
2740" \"\\n\"))\n"
2741msgstr ""
2742"(define (config->string options)\n"
2743" (string-join (map (match-lambda\n"
2744" ((option . 'm)\n"
2745" (string-append option \"=m\"))\n"
2746" ((option . #true)\n"
2747" (string-append option \"=y\"))\n"
2748" ((option . #false)\n"
2749" (string-append option \"=n\")))\n"
2750" options)\n"
2751" \"\\n\"))\n"
2752
2753#. type: Plain text
2754#: guix-git/doc/guix-cookbook.texi:1497
2755msgid "And in the custom configure script from the `make-linux-libre` package:"
2756msgstr "Et dans le script configure personnalisé du paquet « make-linux-libre » :"
2757
2758#. type: lisp
2759#: guix-git/doc/guix-cookbook.texi:1505
2760#, no-wrap
2761msgid ""
2762";; Appending works even when the option wasn't in the\n"
2763";; file. The last one prevails if duplicated.\n"
2764"(let ((port (open-file \".config\" \"a\"))\n"
2765" (extra-configuration ,(config->string extra-options)))\n"
2766" (display extra-configuration port)\n"
2767" (close-port port))\n"
2768"\n"
2769msgstr ""
2770";; Appending works even when the option wasn't in the\n"
2771";; file. The last one prevails if duplicated.\n"
2772"(let ((port (open-file \".config\" \"a\"))\n"
2773" (extra-configuration ,(config->string extra-options)))\n"
2774" (display extra-configuration port)\n"
2775" (close-port port))\n"
2776"\n"
2777
2778#. type: lisp
2779#: guix-git/doc/guix-cookbook.texi:1507
2780#, no-wrap
2781msgid "(invoke \"make\" \"oldconfig\")\n"
2782msgstr ""
2783
2784#. type: Plain text
2785#: guix-git/doc/guix-cookbook.texi:1512
2786msgid "So by not providing a configuration-file the @file{.config} starts blank, and then we write into it the collection of flags that we want. Here's another custom kernel:"
2787msgstr "Donc, en ne fournissant pas de fichier de configuration le fichier @file{.config} est au départ vide et on écrit ensuite l'ensemble des drapeaux que l'on veut. Voici un autre noyau personnalisé :"
2788
2789#. type: lisp
2790#: guix-git/doc/guix-cookbook.texi:1520
2791#, no-wrap
2792msgid ""
2793"(define %macbook41-full-config\n"
2794" (append %macbook41-config-options\n"
2795" %file-systems\n"
2796" %efi-support\n"
2797" %emulation\n"
2798" (@@@@ (gnu packages linux) %default-extra-linux-options)))\n"
2799"\n"
2800msgstr ""
2801"(define %macbook41-full-config\n"
2802" (append %macbook41-config-options\n"
2803" %file-systems\n"
2804" %efi-support\n"
2805" %emulation\n"
2806" (@@@@ (gnu packages linux) %default-extra-linux-options)))\n"
2807"\n"
2808
2809#. type: lisp
2810#: guix-git/doc/guix-cookbook.texi:1530
2811#, no-wrap
2812msgid ""
2813"(define-public linux-libre-macbook41\n"
2814" ;; XXX: Access the internal 'make-linux-libre' procedure, which is\n"
2815" ;; private and unexported, and is liable to change in the future.\n"
2816" ((@@@@ (gnu packages linux) make-linux-libre) (@@@@ (gnu packages linux) %linux-libre-version)\n"
2817" (@@@@ (gnu packages linux) %linux-libre-hash)\n"
2818" '(\"x86_64-linux\")\n"
2819" #:extra-version \"macbook41\"\n"
2820" #:patches (@@@@ (gnu packages linux) %linux-libre-5.1-patches)\n"
2821" #:extra-options %macbook41-config-options))\n"
2822msgstr ""
2823"(define-public linux-libre-macbook41\n"
2824" ;; XXX: Access the internal 'make-linux-libre' procedure, which is\n"
2825" ;; private and unexported, and is liable to change in the future.\n"
2826" ((@@@@ (gnu packages linux) make-linux-libre) (@@@@ (gnu packages linux) %linux-libre-version)\n"
2827" (@@@@ (gnu packages linux) %linux-libre-hash)\n"
2828" '(\"x86_64-linux\")\n"
2829" #:extra-version \"macbook41\"\n"
2830" #:patches (@@@@ (gnu packages linux) %linux-libre-5.1-patches)\n"
2831" #:extra-options %macbook41-config-options))\n"
2832
2833#. type: Plain text
2834#: guix-git/doc/guix-cookbook.texi:1537
2835msgid "In the above example @code{%file-systems} is a collection of flags enabling different file system support, @code{%efi-support} enables EFI support and @code{%emulation} enables a x86_64-linux machine to act in 32-bit mode also. @code{%default-extra-linux-options} are the ones quoted above, which had to be added in since they were replaced in the @code{extra-options} keyword."
2836msgstr "Dans l'exemple ci-dessus @code{%fale-systems} est un ensemble de drapeaux qui activent la prise en charge de différents systèmes de fichiers, @code{%efi-support} active la prise en charge de l'EFI et @code{%emulation} permet à une machine x86_64-linux de fonctionner aussi en mode 32-bits. @code{%default-extra-linux-options} sont l'ensemble de ces options et elles devaient être ajoutées puisqu'elles ont été remplacées dans le mot-clé @code{extra-options}."
2837
2838#. type: Plain text
2839#: guix-git/doc/guix-cookbook.texi:1546
2840msgid "This all sounds like it should be doable, but how does one even know which modules are required for a particular system? Two places that can be helpful in trying to answer this question is the @uref{https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel, Gentoo Handbook} and the @uref{https://www.kernel.org/doc/html/latest/admin-guide/README.html?highlight=localmodconfig, documentation from the kernel itself}. From the kernel documentation, it seems that @code{make localmodconfig} is the command we want."
2841msgstr "Tout ça est bien beau, mais comment savoir quels modules sont requis pour un système en particulier ? Il y a deux ressources qui peuvent être utiles pour répondre à cette question : le @uref{https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel, manuel de Gentoo} et la @uref{https://www.kernel.org/doc/html/latest/admin-guide/README.html?highlight=localmodconfig, documentation du noyau}. D'après la documentation du noyau, il semble que la commande @code{make localmodconfig} soit la bonne."
2842
2843#. type: Plain text
2844#: guix-git/doc/guix-cookbook.texi:1549
2845msgid "In order to actually run @code{make localmodconfig} we first need to get and unpack the kernel source code:"
2846msgstr "Pour lancer @code{make localmodconfig} on doit d'abord récupérer et décompresser le code source du noyau :"
2847
2848#. type: example
2849#: guix-git/doc/guix-cookbook.texi:1552
2850#, no-wrap
2851msgid "tar xf $(guix build linux-libre --source)\n"
2852msgstr "tar xf $(guix build linux-libre --source)\n"
2853
2854#. type: Plain text
2855#: guix-git/doc/guix-cookbook.texi:1559
2856msgid "Once inside the directory containing the source code run @code{touch .config} to create an initial, empty @file{.config} to start with. @code{make localmodconfig} works by seeing what you already have in @file{.config} and letting you know what you're missing. If the file is blank then you're missing everything. The next step is to run:"
2857msgstr "Une fois dans le répertoire contenant le code source lancez @code{touch .config} pour créer un fichier @file{.config} initialement vide pour commencer. @code{make localmodconfig} fonctionne en remarquant que avec déjà un @file{.config} et en vous disant ce qu'il vous manque. Si le fichier est vide, il vous manquera tout ce qui est nécessaire. L'étape suivante consiste à lancer :"
2858
2859#. type: example
2860#: guix-git/doc/guix-cookbook.texi:1562
2861#, no-wrap
2862msgid "guix environment linux-libre -- make localmodconfig\n"
2863msgstr "guix environment linux-libre -- make localmodconfig\n"
2864
2865#. type: Plain text
2866#: guix-git/doc/guix-cookbook.texi:1567
2867msgid "and note the output. Do note that the @file{.config} file is still empty. The output generally contains two types of warnings. The first start with \"WARNING\" and can actually be ignored in our case. The second read:"
2868msgstr "et regardez la sortie. Remarquez que le fichier @file{.config} est toujours vide. La sortie contient en général deux types d'avertissements. Le premier commence par « WARNING » et peut être ignoré dans notre cas. Le deuxième dit :"
2869
2870#. type: example
2871#: guix-git/doc/guix-cookbook.texi:1570
2872#, no-wrap
2873msgid "module pcspkr did not have configs CONFIG_INPUT_PCSPKR\n"
2874msgstr "module pcspkr did not have configs CONFIG_INPUT_PCSPKR\n"
2875
2876#. type: Plain text
2877#: guix-git/doc/guix-cookbook.texi:1575
2878msgid "For each of these lines, copy the @code{CONFIG_XXXX_XXXX} portion into the @file{.config} in the directory, and append @code{=m}, so in the end it looks like this:"
2879msgstr "Pour chacune de ces lignes, copiez la partie @code{CONFIG_XXXX_XXXX} dans le @file{.config} du répertoire et ajoutez @code{=m} pour qu'à la fin il ressemble à cela :"
2880
2881#. type: example
2882#: guix-git/doc/guix-cookbook.texi:1579
2883#, no-wrap
2884msgid ""
2885"CONFIG_INPUT_PCSPKR=m\n"
2886"CONFIG_VIRTIO=m\n"
2887msgstr ""
2888"CONFIG_INPUT_PCSPKR=m\n"
2889"CONFIG_VIRTIO=m\n"
2890
2891#. type: Plain text
2892#: guix-git/doc/guix-cookbook.texi:1588
2893msgid "After copying all the configuration options, run @code{make localmodconfig} again to make sure that you don't have any output starting with ``module''. After all of these machine specific modules there are a couple more left that are also needed. @code{CONFIG_MODULES} is necessary so that you can build and load modules separately and not have everything built into the kernel. @code{CONFIG_BLK_DEV_SD} is required for reading from hard drives. It is possible that there are other modules which you will need."
2894msgstr "Après avoir copié toutes les options de configuration, lancez @code{make localmodconfig} de nouveau pour vous assurer que vous n'avez pas de sortie commençant par « module ». Après tous ces modules spécifiques à la machine, il y en a encore quelques uns que nous devons aussi définir. @code{CONFIG_MODULES} est nécessaire pour que nous puissions construire et charger les modules séparément et ne pas tout construire dans le noyau. @code{CONFIG_BLK_DEV_SD} est requis pour lire les disques durs. Il est possible que vous aillez besoin de quelques autres modules."
2895
2896#. type: Plain text
2897#: guix-git/doc/guix-cookbook.texi:1592
2898msgid "This post does not aim to be a guide to configuring your own kernel however, so if you do decide to build a custom kernel you'll have to seek out other guides to create a kernel which is just right for your needs."
2899msgstr "Cet article n'a pas pour but de vous guider dans la configuration de votre propre noyau cependant, donc si vous décidez de construire un noyau personnalisé vous devrez chercher d'autres guides pour créer un noyau qui vous convient."
2900
2901#. type: Plain text
2902#: guix-git/doc/guix-cookbook.texi:1600
2903msgid "The second way to setup the kernel configuration makes more use of Guix's features and allows you to share configuration segments between different kernels. For example, all machines using EFI to boot have a number of EFI configuration flags that they need. It is likely that all the kernels will share a list of file systems to support. By using variables it is easier to see at a glance what features are enabled and to make sure you don't have features in one kernel but missing in another."
2904msgstr "La deuxième manière de configurer le noyau utilise un peu plus les fonctionnalités de Guix et vous permettent de partager des bouts de configuration entre différents noyaux. Par exemple, toutes les machines avec un démarrage EFI ont besoin d'un certain nombre de configurations. Tous les noyaux vont probablement partager une liste de systèmes de fichiers à prendre en charge. En utilisant des variables il est facile de voir du premier coup quelles fonctionnalités sont activées pour vous assurer que vous n'avez pas des fonctionnalités dans un noyau qui manquent dans un autre."
2905
2906#. type: Plain text
2907#: guix-git/doc/guix-cookbook.texi:1605
2908msgid "Left undiscussed however, is Guix's initrd and its customization. It is likely that you'll need to modify the initrd on a machine using a custom kernel, since certain modules which are expected to be built may not be available for inclusion into the initrd."
2909msgstr "Cependant, nous ne parlons pas de la personnalisation du disque de ram initial. Vous devrez sans doute modifier le disque de ram initial sur les machines qui utilisent un noyau personnalisé, puisque certains modules attendus peuvent ne pas être disponibles."
2910
2911#. type: Plain text
2912#: guix-git/doc/guix-cookbook.texi:1612
2913msgid "Historically, Guix System is centered around an @code{operating-system} structure. This structure contains various fields ranging from the bootloader and kernel declaration to the services to install."
2914msgstr "Historiquement, le système Guix est centré sur une structure @code{operating-system}. Cette structure contient divers champs qui vont du chargeur d'amorçage et à la déclaration du noyau aux services à installer."
2915
2916#. type: Plain text
2917#: guix-git/doc/guix-cookbook.texi:1618
2918msgid "Depending on the target machine, that can go from a standard @code{x86_64} machine to a small ARM single board computer such as the Pine64, the image constraints can vary a lot. The hardware manufacturers will impose different image formats with various partition sizes and offsets."
2919msgstr "En fonction de la machine cible, qui peut aller d'une machine @code{x86_64} standard à un petit ordinateur ARM sur carte unique comme le Pine64, les contraintes sur l'image varient beaucoup. Les fabricants imposent différents formats d'image avec plusieurs tailles de partitions et de positions."
2920
2921#. type: Plain text
2922#: guix-git/doc/guix-cookbook.texi:1623
2923msgid "To create images suitable for all those machines, a new abstraction is necessary: that's the goal of the @code{image} record. This record contains all the required information to be transformed into a standalone image, that can be directly booted on any target machine."
2924msgstr "Pour créer des images convenables pour toutes ces machines, une nouvelle abstraction est nécessaire : c'est le but de l'enregistrement @code{image}. Cet enregistrement contient toutes les informations requises pour être transformé en une image complète, qui peut être directement démarrée sur une machine cible."
2925
2926#. type: lisp
2927#: guix-git/doc/guix-cookbook.texi:1645
2928#, no-wrap
2929msgid ""
2930"(define-record-type* <image>\n"
2931" image make-image\n"
2932" image?\n"
2933" (name image-name ;symbol\n"
2934" (default #f))\n"
2935" (format image-format) ;symbol\n"
2936" (target image-target\n"
2937" (default #f))\n"
2938" (size image-size ;size in bytes as integer\n"
2939" (default 'guess))\n"
2940" (operating-system image-operating-system ;<operating-system>\n"
2941" (default #f))\n"
2942" (partitions image-partitions ;list of <partition>\n"
2943" (default '()))\n"
2944" (compression? image-compression? ;boolean\n"
2945" (default #t))\n"
2946" (volatile-root? image-volatile-root? ;boolean\n"
2947" (default #t))\n"
2948" (substitutable? image-substitutable? ;boolean\n"
2949" (default #t)))\n"
2950msgstr ""
2951"(define-record-type* <image>\n"
2952" image make-image\n"
2953" image?\n"
2954" (name image-name ;symbol\n"
2955" (default #f))\n"
2956" (format image-format) ;symbol\n"
2957" (target image-target\n"
2958" (default #f))\n"
2959" (size image-size ;size in bytes as integer\n"
2960" (default 'guess))\n"
2961" (operating-system image-operating-system ;<operating-system>\n"
2962" (default #f))\n"
2963" (partitions image-partitions ;list of <partition>\n"
2964" (default '()))\n"
2965" (compression? image-compression? ;boolean\n"
2966" (default #t))\n"
2967" (volatile-root? image-volatile-root? ;boolean\n"
2968" (default #t))\n"
2969" (substitutable? image-substitutable? ;boolean\n"
2970" (default #t)))\n"
2971
2972#. type: Plain text
2973#: guix-git/doc/guix-cookbook.texi:1651
2974msgid "This record contains the operating-system to instantiate. The @code{format} field defines the image type and can be @code{efi-raw}, @code{qcow2} or @code{iso9660} for instance. In the future, it could be extended to @code{docker} or other image types."
2975msgstr "Cet enregistrement contient le système d'exploitation à instancier. Le champ @code{format} défini le type d'image et peut être @code{efi-raw}, @code{qcow2} ou @code{iso9660} par exemple. Plus tard, on prévoit de l'étendre à @code{docker} et aux autres types d'images."
2976
2977#. type: Plain text
2978#: guix-git/doc/guix-cookbook.texi:1654
2979msgid "A new directory in the Guix sources is dedicated to images definition. For now there are four files:"
2980msgstr "Un nouveau répertoire dans les sources de Guix est dédié aux définitions des images. Pour l'instant il y a quatre fichiers :"
2981
2982#. type: file{#1}
2983#: guix-git/doc/guix-cookbook.texi:1656
2984#, no-wrap
2985msgid "gnu/system/images/hurd.scm"
2986msgstr "gnu/system/images/hurd.scm"
2987
2988#. type: file{#1}
2989#: guix-git/doc/guix-cookbook.texi:1657
2990#, no-wrap
2991msgid "gnu/system/images/pine64.scm"
2992msgstr "gnu/system/images/pine64.scm"
2993
2994#. type: file{#1}
2995#: guix-git/doc/guix-cookbook.texi:1658
2996#, no-wrap
2997msgid "gnu/system/images/novena.scm"
2998msgstr "gnu/system/images/novena.scm"
2999
3000#. type: file{#1}
3001#: guix-git/doc/guix-cookbook.texi:1659
3002#, no-wrap
3003msgid "gnu/system/images/pinebook-pro.scm"
3004msgstr "gnu/system/images/pinebook-pro.scm"
3005
3006#. type: Plain text
3007#: guix-git/doc/guix-cookbook.texi:1665
3008msgid "Let's have a look to @file{pine64.scm}. It contains the @code{pine64-barebones-os} variable which is a minimal definition of an operating-system dedicated to the @b{Pine A64 LTS} board."
3009msgstr "Regardons le fichier @file{pine64.scm}. Il contient la variable @code{pine64-barebones-os} qui est une définition minimale d'un système d'exploitation dédié à la carte @b{Pine A64 LTS}."
3010
3011#. type: lisp
3012#: guix-git/doc/guix-cookbook.texi:1689
3013#, no-wrap
3014msgid ""
3015"(define pine64-barebones-os\n"
3016" (operating-system\n"
3017" (host-name \"vignemale\")\n"
3018" (timezone \"Europe/Paris\")\n"
3019" (locale \"en_US.utf8\")\n"
3020" (bootloader (bootloader-configuration\n"
3021" (bootloader u-boot-pine64-lts-bootloader)\n"
3022" (target \"/dev/vda\")))\n"
3023" (initrd-modules '())\n"
3024" (kernel linux-libre-arm64-generic)\n"
3025" (file-systems (cons (file-system\n"
3026" (device (file-system-label \"my-root\"))\n"
3027" (mount-point \"/\")\n"
3028" (type \"ext4\"))\n"
3029" %base-file-systems))\n"
3030" (services (cons (service agetty-service-type\n"
3031" (agetty-configuration\n"
3032" (extra-options '(\"-L\")) ; no carrier detect\n"
3033" (baud-rate \"115200\")\n"
3034" (term \"vt100\")\n"
3035" (tty \"ttyS0\")))\n"
3036" %base-services))))\n"
3037msgstr ""
3038"(define pine64-barebones-os\n"
3039" (operating-system\n"
3040" (host-name \"vignemale\")\n"
3041" (timezone \"Europe/Paris\")\n"
3042" (locale \"en_US.utf8\")\n"
3043" (bootloader (bootloader-configuration\n"
3044" (bootloader u-boot-pine64-lts-bootloader)\n"
3045" (target \"/dev/vda\")))\n"
3046" (initrd-modules '())\n"
3047" (kernel linux-libre-arm64-generic)\n"
3048" (file-systems (cons (file-system\n"
3049" (device (file-system-label \"my-root\"))\n"
3050" (mount-point \"/\")\n"
3051" (type \"ext4\"))\n"
3052" %base-file-systems))\n"
3053" (services (cons (service agetty-service-type\n"
3054" (agetty-configuration\n"
3055" (extra-options '(\"-L\")) ; no carrier detect\n"
3056" (baud-rate \"115200\")\n"
3057" (term \"vt100\")\n"
3058" (tty \"ttyS0\")))\n"
3059" %base-services))))\n"
3060
3061#. type: Plain text
3062#: guix-git/doc/guix-cookbook.texi:1693
3063msgid "The @code{kernel} and @code{bootloader} fields are pointing to packages dedicated to this board."
3064msgstr "Les champs @code{kernel} et @code{bootloader} pointent vers les paquets dédiés à cette carte."
3065
3066#. type: Plain text
3067#: guix-git/doc/guix-cookbook.texi:1695
3068msgid "Right below, the @code{pine64-image-type} variable is also defined."
3069msgstr "Ci-dessous, la variable @code{pine64-image-type} est ainsi définie."
3070
3071#. type: lisp
3072#: guix-git/doc/guix-cookbook.texi:1701
3073#, no-wrap
3074msgid ""
3075"(define pine64-image-type\n"
3076" (image-type\n"
3077" (name 'pine64-raw)\n"
3078" (constructor (cut image-with-os arm64-disk-image <>))))\n"
3079msgstr ""
3080"(define pine64-image-type\n"
3081" (image-type\n"
3082" (name 'pine64-raw)\n"
3083" (constructor (cut image-with-os arm64-disk-image <>))))\n"
3084
3085#. type: Plain text
3086#: guix-git/doc/guix-cookbook.texi:1705
3087msgid "It's using a record we haven't talked about yet, the @code{image-type} record, defined this way:"
3088msgstr "Elle utilise un enregistrement dont nous n'avons pas encore parlé, l'enregistrement @code{image-type}, défini de cette façon :"
3089
3090#. type: lisp
3091#: guix-git/doc/guix-cookbook.texi:1712
3092#, no-wrap
3093msgid ""
3094"(define-record-type* <image-type>\n"
3095" image-type make-image-type\n"
3096" image-type?\n"
3097" (name image-type-name) ;symbol\n"
3098" (constructor image-type-constructor)) ;<operating-system> -> <image>\n"
3099msgstr ""
3100"(define-record-type* <image-type>\n"
3101" image-type make-image-type\n"
3102" image-type?\n"
3103" (name image-type-name) ;symbol\n"
3104" (constructor image-type-constructor)) ;<operating-system> -> <image>\n"
3105
3106#. type: Plain text
3107#: guix-git/doc/guix-cookbook.texi:1718
3108msgid "The main purpose of this record is to associate a name to a procedure transforming an @code{operating-system} to an image. To understand why it is necessary, let's have a look to the command producing an image from an @code{operating-system} configuration file:"
3109msgstr "Le but principal de cet enregistrement est d'associer un nom à une procédure transformant un @code{operating-system} en une image. Pour comprendre pourquoi c'est nécessaire, voyons la commande produisant une image à partir d'un fichier de configuration de type @code{operating-system} :"
3110
3111#. type: example
3112#: guix-git/doc/guix-cookbook.texi:1721
3113#, no-wrap
3114msgid "guix system image my-os.scm\n"
3115msgstr "guix system image my-os.scm\n"
3116
3117#. type: Plain text
3118#: guix-git/doc/guix-cookbook.texi:1727
3119msgid "This command expects an @code{operating-system} configuration but how should we indicate that we want an image targeting a Pine64 board? We need to provide an extra information, the @code{image-type}, by passing the @code{--image-type} or @code{-t} flag, this way:"
3120msgstr "Cette commande demande une configuration de type @code{operating-system} mais comment indiquer que l'on veut cibler une carte Pine64 ? Nous devons fournir l'information supplémentaire, @code{image-type}, en passant le drapeau @code{--image-type} ou @code{-t}, de cette manière :"
3121
3122#. type: example
3123#: guix-git/doc/guix-cookbook.texi:1730
3124#, no-wrap
3125msgid "guix system image --image-type=pine64-raw my-os.scm\n"
3126msgstr "guix system image --image-type=pine64-raw my-os.scm\n"
3127
3128#. type: Plain text
3129#: guix-git/doc/guix-cookbook.texi:1736
3130msgid "This @code{image-type} parameter points to the @code{pine64-image-type} defined above. Hence, the @code{operating-system} declared in @code{my-os.scm} will be applied the @code{(cut image-with-os arm64-disk-image <>)} procedure to turn it into an image."
3131msgstr "Ce paramètre @code{image-type} pointe vers le @code{pine64-image-type} défini plus haut. Ainsi, la déclaration @code{operating-system} dans @code{my-os.scm} se verra appliquée la procédure @code{[cut image-with-os arm64-disk-image <>)} pour la transformer en une image."
3132
3133#. type: Plain text
3134#: guix-git/doc/guix-cookbook.texi:1738
3135msgid "The resulting image looks like:"
3136msgstr "L'image qui en résulte ressemble à ceci :"
3137
3138#. type: lisp
3139#: guix-git/doc/guix-cookbook.texi:1748
3140#, no-wrap
3141msgid ""
3142"(image\n"
3143" (format 'disk-image)\n"
3144" (target \"aarch64-linux-gnu\")\n"
3145" (operating-system my-os)\n"
3146" (partitions\n"
3147" (list (partition\n"
3148" (inherit root-partition)\n"
3149" (offset root-offset)))))\n"
3150msgstr ""
3151"(image\n"
3152" (format 'disk-image)\n"
3153" (target \"aarch64-linux-gnu\")\n"
3154" (operating-system my-os)\n"
3155" (partitions\n"
3156" (list (partition\n"
3157" (inherit root-partition)\n"
3158" (offset root-offset)))))\n"
3159
3160#. type: Plain text
3161#: guix-git/doc/guix-cookbook.texi:1752
3162msgid "which is the aggregation of the @code{operating-system} defined in @code{my-os.scm} to the @code{arm64-disk-image} record."
3163msgstr "qui ajoute l'objet @code{operating-system} défini dans @code{my-os.scm} à l'enregistrement @code{arm64-disk-image}."
3164
3165#. type: Plain text
3166#: guix-git/doc/guix-cookbook.texi:1754
3167msgid "But enough Scheme madness. What does this image API bring to the Guix user?"
3168msgstr "Mais assez de cette folie. Qu'est-ce que cette API pour les images apporte aux utilisateurs et utilisatrices ?"
3169
3170#. type: Plain text
3171#: guix-git/doc/guix-cookbook.texi:1756
3172msgid "One can run:"
3173msgstr "On peut lancer :"
3174
3175#. type: example
3176#: guix-git/doc/guix-cookbook.texi:1760
3177#, no-wrap
3178msgid ""
3179"mathieu@@cervin:~$ guix system --list-image-types\n"
3180"The available image types are:\n"
3181"\n"
3182msgstr ""
3183"mathieu@@cervin:~$ guix system --list-image-types\n"
3184"Les types d'image disponibles sont :\n"
3185"\n"
3186
3187#. type: example
3188#: guix-git/doc/guix-cookbook.texi:1772
3189#, no-wrap
3190msgid ""
3191" - pinebook-pro-raw\n"
3192" - pine64-raw\n"
3193" - novena-raw\n"
3194" - hurd-raw\n"
3195" - hurd-qcow2\n"
3196" - qcow2\n"
3197" - uncompressed-iso9660\n"
3198" - efi-raw\n"
3199" - arm64-raw\n"
3200" - arm32-raw\n"
3201" - iso9660\n"
3202msgstr ""
3203" - pinebook-pro-raw\n"
3204" - pine64-raw\n"
3205" - novena-raw\n"
3206" - hurd-raw\n"
3207" - hurd-qcow2\n"
3208" - qcow2\n"
3209" - uncompressed-iso9660\n"
3210" - efi-raw\n"
3211" - arm64-raw\n"
3212" - arm32-raw\n"
3213" - iso9660\n"
3214
3215#. type: Plain text
3216#: guix-git/doc/guix-cookbook.texi:1777
3217msgid "and by writing an @code{operating-system} file based on @code{pine64-barebones-os}, you can customize your image to your preferences in a file (@file{my-pine-os.scm}) like this:"
3218msgstr "et en écrivant un fichier de type @code{operating-system} basé sur @code{pine64-barebones-os}, vous pouvez personnaliser votre image selon vos préférences dasn un fichier (@file{my-pine-os.scm}) de cette manière :"
3219
3220#. type: lisp
3221#: guix-git/doc/guix-cookbook.texi:1781
3222#, no-wrap
3223msgid ""
3224"(use-modules (gnu services linux)\n"
3225" (gnu system images pine64))\n"
3226"\n"
3227msgstr ""
3228"(use-modules (gnu services linux)\n"
3229" (gnu system images pine64))\n"
3230"\n"
3231
3232#. type: lisp
3233#: guix-git/doc/guix-cookbook.texi:1792
3234#, no-wrap
3235msgid ""
3236"(let ((base-os pine64-barebones-os))\n"
3237" (operating-system\n"
3238" (inherit base-os)\n"
3239" (timezone \"America/Indiana/Indianapolis\")\n"
3240" (services\n"
3241" (cons\n"
3242" (service earlyoom-service-type\n"
3243" (earlyoom-configuration\n"
3244" (prefer-regexp \"icecat|chromium\")))\n"
3245" (operating-system-user-services base-os)))))\n"
3246msgstr ""
3247"(let ((base-os pine64-barebones-os))\n"
3248" (operating-system\n"
3249" (inherit base-os)\n"
3250" (timezone \"America/Indiana/Indianapolis\")\n"
3251" (services\n"
3252" (cons\n"
3253" (service earlyoom-service-type\n"
3254" (earlyoom-configuration\n"
3255" (prefer-regexp \"icecat|chromium\")))\n"
3256" (operating-system-user-services base-os)))))\n"
3257
3258#. type: Plain text
3259#: guix-git/doc/guix-cookbook.texi:1795
3260msgid "run:"
3261msgstr "lancez :"
3262
3263#. type: example
3264#: guix-git/doc/guix-cookbook.texi:1798
3265#, no-wrap
3266msgid "guix system image --image-type=pine64-raw my-pine-os.scm\n"
3267msgstr "guix system image --image-type=pine64-raw my-pine-os.scm\n"
3268
3269#. type: Plain text
3270#: guix-git/doc/guix-cookbook.texi:1801
3271msgid "or,"
3272msgstr "ou bien,"
3273
3274#. type: example
3275#: guix-git/doc/guix-cookbook.texi:1804
3276#, no-wrap
3277msgid "guix system image --image-type=hurd-raw my-hurd-os.scm\n"
3278msgstr "guix system image --image-type=hurd-raw my-hurd-os.scm\n"
3279
3280#. type: Plain text
3281#: guix-git/doc/guix-cookbook.texi:1808
3282msgid "to get an image that can be written directly to a hard drive and booted from."
3283msgstr "pour récupérer une image que vous pouvez écrire sur un disque dur pour démarrer dessus."
3284
3285#. type: Plain text
3286#: guix-git/doc/guix-cookbook.texi:1810
3287msgid "Without changing anything to @code{my-hurd-os.scm}, calling:"
3288msgstr "Sans rien changer à @code{my-hurd-os.scm}, en appelant :"
3289
3290#. type: example
3291#: guix-git/doc/guix-cookbook.texi:1813
3292#, no-wrap
3293msgid "guix system image --image-type=hurd-qcow2 my-hurd-os.scm\n"
3294msgstr "guix system image --image-type=hurd-qcow2 my-hurd-os.scm\n"
3295
3296#. type: Plain text
3297#: guix-git/doc/guix-cookbook.texi:1816
3298msgid "will instead produce a Hurd QEMU image."
3299msgstr "vous aurez une image QEMU pour le Hurd à la place."
3300
3301#. type: Plain text
3302#: guix-git/doc/guix-cookbook.texi:1823
3303msgid "To connect to a Wireguard VPN server you need the kernel module to be loaded in memory and a package providing networking tools that support it (e.g. @code{wireguard-tools} or @code{network-manager})."
3304msgstr ""
3305
3306#. type: Plain text
3307#: guix-git/doc/guix-cookbook.texi:1827
3308msgid "Here is a configuration example for Linux-Libre < 5.6, where the module is out of tree and need to be loaded manually---following revisions of the kernel have it built-in and so don't need such configuration:"
3309msgstr ""
3310
3311#. type: lisp
3312#: guix-git/doc/guix-cookbook.texi:1832
3313#, no-wrap
3314msgid ""
3315"(use-modules (gnu))\n"
3316"(use-service-modules desktop)\n"
3317"(use-package-modules vpn)\n"
3318"\n"
3319msgstr ""
3320
3321#. type: lisp
3322#: guix-git/doc/guix-cookbook.texi:1841
3323#, no-wrap
3324msgid ""
3325"(operating-system\n"
3326" ;; …\n"
3327" (services (cons (simple-service 'wireguard-module\n"
3328" kernel-module-loader-service-type\n"
3329" '(\"wireguard\"))\n"
3330" %desktop-services))\n"
3331" (packages (cons wireguard-tools %base-packages))\n"
3332" (kernel-loadable-modules (list wireguard-linux-compat)))\n"
3333msgstr ""
3334
3335#. type: Plain text
3336#: guix-git/doc/guix-cookbook.texi:1845
3337msgid "After reconfiguring and restarting your system you can either use Wireguard tools or NetworkManager to connect to a VPN server."
3338msgstr ""
3339
3340#. type: subsection
3341#: guix-git/doc/guix-cookbook.texi:1846
3342#, no-wrap
3343msgid "Using Wireguard tools"
3344msgstr ""
3345
3346#. type: Plain text
3347#: guix-git/doc/guix-cookbook.texi:1852
3348msgid "To test your Wireguard setup it is convenient to use @command{wg-quick}. Just give it a configuration file @command{wg-quick up ./wg0.conf}; or put that file in @file{/etc/wireguard} and run @command{wg-quick up wg0} instead."
3349msgstr ""
3350
3351#. type: quotation
3352#: guix-git/doc/guix-cookbook.texi:1853
3353#, no-wrap
3354msgid "Note"
3355msgstr "Remarque"
3356
3357#. type: quotation
3358#: guix-git/doc/guix-cookbook.texi:1856
3359msgid "Be warned that the author described this command as a: “[…] very quick and dirty bash script […]”."
3360msgstr ""
3361
3362#. type: subsection
3363#: guix-git/doc/guix-cookbook.texi:1858
3364#, no-wrap
3365msgid "Using NetworkManager"
3366msgstr ""
3367
3368#. type: Plain text
3369#: guix-git/doc/guix-cookbook.texi:1866
3370msgid "Thanks to NetworkManager support for Wireguard we can connect to our VPN using @command{nmcli} command. Up to this point this guide assumes that you're using Network Manager service provided by @code{%desktop-services}. Ortherwise you need to adjust your services list to load @code{network-manager-service-type} and reconfigure your Guix system."
3371msgstr ""
3372
3373#. type: Plain text
3374#: guix-git/doc/guix-cookbook.texi:1868
3375msgid "To import your VPN configuration execute nmcli import command:"
3376msgstr ""
3377
3378#. type: example
3379#: guix-git/doc/guix-cookbook.texi:1872
3380#, no-wrap
3381msgid ""
3382"# nmcli connection import type wireguard file wg0.conf\n"
3383"Connection 'wg0' (edbee261-aa5a-42db-b032-6c7757c60fde) successfully added\n"
3384msgstr ""
3385
3386#. type: Plain text
3387#: guix-git/doc/guix-cookbook.texi:1877
3388msgid "This will create a configuration file in @file{/etc/NetworkManager/wg0.nmconnection}. Next connect to the Wireguard server:"
3389msgstr ""
3390
3391#. type: example
3392#: guix-git/doc/guix-cookbook.texi:1881
3393#, no-wrap
3394msgid ""
3395"$ nmcli connection up wg0\n"
3396"Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)\n"
3397msgstr ""
3398
3399#. type: Plain text
3400#: guix-git/doc/guix-cookbook.texi:1885
3401msgid "By default NetworkManager will connect automatically on system boot. To change that behaviour you need to edit your config:"
3402msgstr ""
3403
3404#. type: example
3405#: guix-git/doc/guix-cookbook.texi:1888
3406#, no-wrap
3407msgid "# nmcli connection modify wg0 connection.autoconnect no\n"
3408msgstr ""
3409
3410#. type: Plain text
3411#: guix-git/doc/guix-cookbook.texi:1893
3412msgid "For more specific information about NetworkManager and wireguard @uref{https://blogs.gnome.org/thaller/2019/03/15/wireguard-in-networkmanager/,see this post by thaller}."
3413msgstr ""
3414
3415#. type: cindex
3416#: guix-git/doc/guix-cookbook.texi:1896
3417#, no-wrap
3418msgid "wm"
3419msgstr "wm"
3420
3421#. type: subsection
3422#: guix-git/doc/guix-cookbook.texi:1898 guix-git/doc/guix-cookbook.texi:1899
3423#, no-wrap
3424msgid "StumpWM"
3425msgstr "StumpWM"
3426
3427#. type: cindex
3428#: guix-git/doc/guix-cookbook.texi:1900
3429#, no-wrap
3430msgid "stumpwm"
3431msgstr "stumpwm"
3432
3433#. type: Plain text
3434#: guix-git/doc/guix-cookbook.texi:1905
3435msgid "You could install StumpWM with a Guix system by adding @code{stumpwm} and optionally @code{`(,stumpwm \"lib\")} packages to a system configuration file, e.g.@: @file{/etc/config.scm}."
3436msgstr "Vous pouvez installer StumpWM sur un système Guix en ajoutant @code{stumwm} et éventuellement @code{`(,stumpwm \"lib\")} dans les paquets du fichier de système d'exploitation, p.@: ex.@: @file{/etc/config.scm}."
3437
3438#. type: Plain text
3439#: guix-git/doc/guix-cookbook.texi:1907
3440msgid "An example configuration can look like this:"
3441msgstr "Voici un exemple de configuration :"
3442
3443#. type: lisp
3444#: guix-git/doc/guix-cookbook.texi:1911
3445#, no-wrap
3446msgid ""
3447"(use-modules (gnu))\n"
3448"(use-package-modules wm)\n"
3449"\n"
3450msgstr ""
3451"(use-modules (gnu))\n"
3452"(use-package-modules wm)\n"
3453"\n"
3454
3455#. type: lisp
3456#: guix-git/doc/guix-cookbook.texi:1916
3457#, no-wrap
3458msgid ""
3459"(operating-system\n"
3460" ;; …\n"
3461" (packages (append (list sbcl stumpwm `(,stumpwm \"lib\"))\n"
3462" %base-packages)))\n"
3463msgstr ""
3464"(operating-system\n"
3465" ;; …\n"
3466" (packages (append (list sbcl stumpwm `(,stumpwm \"lib\"))\n"
3467" %base-packages)))\n"
3468
3469#. type: cindex
3470#: guix-git/doc/guix-cookbook.texi:1918
3471#, no-wrap
3472msgid "stumpwm fonts"
3473msgstr "polices stumpwm"
3474
3475#. type: Plain text
3476#: guix-git/doc/guix-cookbook.texi:1922
3477msgid "By default StumpWM uses X11 fonts, which could be small or pixelated on your system. You could fix this by installing StumpWM contrib Lisp module @code{sbcl-ttf-fonts}, adding it to Guix system packages:"
3478msgstr "Par défaut StumpWM utilise les polices X11, qui peuvent être petites ou pixelisées sur votre système. Vous pouvez corriger cela en installant le module Lisp pour StumpWM @code{sbcl-ttf-fonts}, en l'ajoutant aux paquets de votre système :"
3479
3480#. type: lisp
3481#: guix-git/doc/guix-cookbook.texi:1926
3482#, no-wrap
3483msgid ""
3484"(use-modules (gnu))\n"
3485"(use-package-modules fonts wm)\n"
3486"\n"
3487msgstr ""
3488"(use-modules (gnu))\n"
3489"(use-package-modules fonts wm)\n"
3490"\n"
3491
3492#. type: lisp
3493#: guix-git/doc/guix-cookbook.texi:1931
3494#, no-wrap
3495msgid ""
3496"(operating-system\n"
3497" ;; …\n"
3498" (packages (append (list sbcl stumpwm `(,stumpwm \"lib\"))\n"
3499" sbcl-ttf-fonts font-dejavu %base-packages)))\n"
3500msgstr ""
3501"(operating-system\n"
3502" ;; …\n"
3503" (packages (append (list sbcl stumpwm `(,stumpwm \"lib\"))\n"
3504" sbcl-ttf-fonts font-dejavu %base-packages)))\n"
3505
3506#. type: Plain text
3507#: guix-git/doc/guix-cookbook.texi:1935
3508msgid "Then you need to add the following code to a StumpWM configuration file @file{~/.stumpwm.d/init.lisp}:"
3509msgstr "Ensuite vous devrez ajouter le code suivant à au fichier de configuration de StumpWM @file{~/.stumpwm.d/init.lisp} :"
3510
3511#. type: lisp
3512#: guix-git/doc/guix-cookbook.texi:1942
3513#, no-wrap
3514msgid ""
3515"(require :ttf-fonts)\n"
3516"(setf xft:*font-dirs* '(\"/run/current-system/profile/share/fonts/\"))\n"
3517"(setf clx-truetype:+font-cache-filename+ (concat (getenv \"HOME\") \"/.fonts/font-cache.sexp\"))\n"
3518"(xft:cache-fonts)\n"
3519"(set-font (make-instance 'xft:font :family \"DejaVu Sans Mono\" :subfamily \"Book\" :size 11))\n"
3520msgstr ""
3521"(require :ttf-fonts)\n"
3522"(setf xft:*font-dirs* '(\"/run/current-system/profile/share/fonts/\"))\n"
3523"(setf clx-truetype:+font-cache-filename+ (concat (getenv \"HOME\") \"/.fonts/font-cache.sexp\"))\n"
3524"(xft:cache-fonts)\n"
3525"(set-font (make-instance 'xft:font :family \"DejaVu Sans Mono\" :subfamily \"Book\" :size 11))\n"
3526
3527#. type: subsection
3528#: guix-git/doc/guix-cookbook.texi:1944 guix-git/doc/guix-cookbook.texi:1945
3529#, no-wrap
3530msgid "Session lock"
3531msgstr "Verrouillage de session"
3532
3533#. type: cindex
3534#: guix-git/doc/guix-cookbook.texi:1946
3535#, no-wrap
3536msgid "sessionlock"
3537msgstr "verrouillage de session"
3538
3539#. type: Plain text
3540#: guix-git/doc/guix-cookbook.texi:1952
3541msgid "Depending on your environment, locking the screen of your session might come built in or it might be something you have to set up yourself. If you use a desktop environment like GNOME or KDE, it's usually built in. If you use a plain window manager like StumpWM or EXWM, you might have to set it up yourself."
3542msgstr "En fonction de votre environnement, le verrouillage de l'écran peut être inclus, ou vous devrez le configurer vous-même. La fonctionnalité est souvent intégrée aux environnements de bureau comme GNOME ou KDE. Si vous utilisez un gestionnaire de fenêtre comme StumpWM ou EXWM, vous devrez sans doute le configurer vous-même."
3543
3544#. type: subsubsection
3545#: guix-git/doc/guix-cookbook.texi:1953 guix-git/doc/guix-cookbook.texi:1954
3546#, no-wrap
3547msgid "Xorg"
3548msgstr "Xorg"
3549
3550#. type: Plain text
3551#: guix-git/doc/guix-cookbook.texi:1960
3552msgid "If you use Xorg, you can use the utility @uref{https://www.mankier.com/1/xss-lock, xss-lock} to lock the screen of your session. xss-lock is triggered by DPMS which since Xorg 1.8 is auto-detected and enabled if ACPI is also enabled at kernel runtime."
3553msgstr "Si vous utilisez Xorg, vous pouvez utiliser l'utilitaire @uref{https://www.mankier.com/1/xss-lock, xss-lock} pour verrouiller votre session. xss-lock est lancé par DPMS qui est détecté et activé automatiquement par Xorg 1.8 si ACPI est aussi activé à l'exécution dans le noyau."
3554
3555#. type: Plain text
3556#: guix-git/doc/guix-cookbook.texi:1963
3557msgid "To use xss-lock, you can simple execute it and put it into the background before you start your window manager from e.g. your @file{~/.xsession}:"
3558msgstr "Pour utiliser xss-lock, vous pouvez simplement l'exécuter et le laisser tourner en tache de fond avant de démarrer votre gestionnaire de fenêtre, par exemple dans votre @file{~/.xsession} :"
3559
3560#. type: example
3561#: guix-git/doc/guix-cookbook.texi:1967
3562#, no-wrap
3563msgid ""
3564"xss-lock -- slock &\n"
3565"exec stumpwm\n"
3566msgstr ""
3567"xss-lock -- slock &\n"
3568"exec stumpwm\n"
3569
3570#. type: Plain text
3571#: guix-git/doc/guix-cookbook.texi:1971
3572msgid "In this example, xss-lock uses @code{slock} to do the actual locking of the screen when it determines it's appropriate, like when you suspend your device."
3573msgstr "Dans cet exemple, xss-lock utilise @code{slock} pour effectivement verrouiller l'écran quand il pense que c'est nécessaire, comme lorsque vous mettez votre machine en veille."
3574
3575#. type: Plain text
3576#: guix-git/doc/guix-cookbook.texi:1975
3577msgid "For slock to be allowed to be a screen locker for the graphical session, it needs to be made setuid-root so it can authenticate users, and it needs a PAM service. This can be achieved by adding the following service to your @file{config.scm}:"
3578msgstr "Pour que slock puisse verrouiller l'écran de la session graphique, il doit être en setuid-root pour qu'il puisse authentifier les utilisateurs, et il a besoin d'un service PAM. On peut y arriver en ajoutant le service suivant dans notre @file{config.scm} :"
3579
3580#. type: lisp
3581#: guix-git/doc/guix-cookbook.texi:1978
3582#, no-wrap
3583msgid "(screen-locker-service slock)\n"
3584msgstr "(screen-locker-service slock)\n"
3585
3586#. type: Plain text
3587#: guix-git/doc/guix-cookbook.texi:1984
3588msgid "If you manually lock your screen, e.g. by directly calling slock when you want to lock your screen but not suspend it, it's a good idea to notify xss-lock about this so no confusion occurs. This can be done by executing @code{xset s activate} immediately before you execute slock."
3589msgstr "Si vous verrouillez l'écran manuellement, p.@: ex.@: en appelant slock directement si vous voulez verrouiller l'écran sans mettre l'ordinateur en veille, il vaut mieux notifier xss-lock pour éviter la confusion. Vous pouvez faire cela en exécutant @code{xset s activate} juste avant d'exécuter slock."
3590
3591#. type: cindex
3592#: guix-git/doc/guix-cookbook.texi:1987
3593#, no-wrap
3594msgid "linode, Linode"
3595msgstr "linode, Linode"
3596
3597#. type: Plain text
3598#: guix-git/doc/guix-cookbook.texi:1992
3599msgid "To run Guix on a server hosted by @uref{https://www.linode.com, Linode}, start with a recommended Debian server. We recommend using the default distro as a way to bootstrap Guix. Create your SSH keys."
3600msgstr "Pour lancer Guix sur un serveur hébergé par @uref{https://www.linode.com, Linode}, commencez par un serveur Debian recommandé. Nous vous recommandons d'utiliser la distribution par défaut pour amorcer Guix. Créez vos clés SSH."
3601
3602#. type: example
3603#: guix-git/doc/guix-cookbook.texi:1995
3604#, no-wrap
3605msgid "ssh-keygen\n"
3606msgstr "ssh-keygen\n"
3607
3608#. type: Plain text
3609#: guix-git/doc/guix-cookbook.texi:2001
3610msgid "Be sure to add your SSH key for easy login to the remote server. This is trivially done via Linode's graphical interface for adding SSH keys. Go to your profile and click add SSH Key. Copy into it the output of:"
3611msgstr "Assurez-vous d'ajouter votre clé SSH pour vous connecter facilement sur le serveur distant. C'est facilité par l'interface graphique de Linode. Allez sur votre profil et cliquez sur le bouton pour ajouter une clé SSH. Copiez la sortie de :"
3612
3613#. type: example
3614#: guix-git/doc/guix-cookbook.texi:2004
3615#, no-wrap
3616msgid "cat ~/.ssh/<username>_rsa.pub\n"
3617msgstr "cat ~/.ssh/<username>_rsa.pub\n"
3618
3619#. type: Plain text
3620#: guix-git/doc/guix-cookbook.texi:2008
3621msgid "Power the Linode down. In the Linode's Disks/Configurations tab, resize the Debian disk to be smaller. 30 GB is recommended."
3622msgstr "Éteignez le serveur Linode. Dans l'onglet Disks/Configurations de Linode, redimensionnez le disque Debian pour être plus petit. Nous vous recommandons de choisir 30 Go."
3623
3624#. type: Plain text
3625#: guix-git/doc/guix-cookbook.texi:2010
3626msgid "In the Linode settings, \"Add a disk\", with the following:"
3627msgstr "Dans les paramètres de Linode, « Add a disk » avec ce qui suit :"
3628
3629#. type: itemize
3630#: guix-git/doc/guix-cookbook.texi:2013
3631msgid "Label: \"Guix\""
3632msgstr "Label: \"Guix\""
3633
3634#. type: itemize
3635#: guix-git/doc/guix-cookbook.texi:2016
3636msgid "Filesystem: ext4"
3637msgstr "Filesystem: ext4"
3638
3639#. type: itemize
3640#: guix-git/doc/guix-cookbook.texi:2019
3641msgid "Set it to the remaining size"
3642msgstr "Donnez-lui la taille restante"
3643
3644#. type: Plain text
3645#: guix-git/doc/guix-cookbook.texi:2024
3646msgid "On the \"configuration\" field that comes with the default image, press \"...\" and select \"Edit\", then on that menu add to @file{/dev/sdc} the \"Guix\" label."
3647msgstr "Dans le champ « configuration » de l'image par défaut, cliquez sur « … » et choisissez « Edit », puis sur le menu ajoutez l'étiquette « Guix » à @file{/dev/sdc}."
3648
3649#. type: Plain text
3650#: guix-git/doc/guix-cookbook.texi:2026
3651msgid "Now \"Add a Configuration\", with the following:"
3652msgstr "Maintenant « Add a Configuration », avec ce qui suit :"
3653
3654#. type: itemize
3655#: guix-git/doc/guix-cookbook.texi:2029
3656msgid "Label: Guix"
3657msgstr "Label: Guix"
3658
3659#. type: itemize
3660#: guix-git/doc/guix-cookbook.texi:2032
3661msgid "Kernel:GRUB 2 (it's at the bottom! This step is @b{IMPORTANT!})"
3662msgstr "Kernel: GRUB 2 (c'est à la toute fin ! Cette étape est @b{IMPORTANTE !})"
3663
3664#. type: itemize
3665#: guix-git/doc/guix-cookbook.texi:2035
3666msgid "Block device assignment:"
3667msgstr "Périphériques blocs assignés :"
3668
3669#. type: itemize
3670#: guix-git/doc/guix-cookbook.texi:2038
3671msgid "@file{/dev/sda}: Guix"
3672msgstr "@file{/dev/sda} : Guix"
3673
3674#. type: itemize
3675#: guix-git/doc/guix-cookbook.texi:2041
3676msgid "@file{/dev/sdb}: swap"
3677msgstr "@file{/dev/sdb} : swap"
3678
3679#. type: itemize
3680#: guix-git/doc/guix-cookbook.texi:2044
3681msgid "Root device: @file{/dev/sda}"
3682msgstr "Périphérique racine : @file{/dev/sda}"
3683
3684#. type: itemize
3685#: guix-git/doc/guix-cookbook.texi:2047
3686msgid "Turn off all the filesystem/boot helpers"
3687msgstr ""
3688
3689#. type: Plain text
3690#: guix-git/doc/guix-cookbook.texi:2054
3691msgid "Now power it back up, picking the Debian configuration. Once it's booted up, ssh in your server via @code{ssh root@@@var{<your-server-IP-here>}}. (You can find your server IP address in your Linode Summary section.) Now you can run the \"install guix from @pxref{Binary Installation,,, guix, GNU Guix}\" steps:"
3692msgstr ""
3693
3694#. type: example
3695#: guix-git/doc/guix-cookbook.texi:2062
3696#, no-wrap
3697msgid ""
3698"sudo apt-get install gpg\n"
3699"wget https://sv.gnu.org/people/viewgpg.php?user_id=15145 -qO - | gpg --import -\n"
3700"wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh\n"
3701"chmod +x guix-install.sh\n"
3702"./guix-install.sh\n"
3703"guix pull\n"
3704msgstr ""
3705
3706#. type: Plain text
3707#: guix-git/doc/guix-cookbook.texi:2066
3708msgid "Now it's time to write out a config for the server. The key information is below. Save the resulting file as @file{guix-config.scm}."
3709msgstr ""
3710
3711#. type: lisp
3712#: guix-git/doc/guix-cookbook.texi:2077
3713#, no-wrap
3714msgid ""
3715"(use-modules (gnu)\n"
3716" (guix modules))\n"
3717"(use-service-modules networking\n"
3718" ssh)\n"
3719"(use-package-modules admin\n"
3720" certs\n"
3721" package-management\n"
3722" ssh\n"
3723" tls)\n"
3724"\n"
3725msgstr ""
3726
3727#. type: lisp
3728#: guix-git/doc/guix-cookbook.texi:2094
3729#, no-wrap
3730msgid ""
3731"(operating-system\n"
3732" (host-name \"my-server\")\n"
3733" (timezone \"America/New_York\")\n"
3734" (locale \"en_US.UTF-8\")\n"
3735" ;; This goofy code will generate the grub.cfg\n"
3736" ;; without installing the grub bootloader on disk.\n"
3737" (bootloader (bootloader-configuration\n"
3738" (bootloader\n"
3739" (bootloader\n"
3740" (inherit grub-bootloader)\n"
3741" (installer #~(const #true))))))\n"
3742" (file-systems (cons (file-system\n"
3743" (device \"/dev/sda\")\n"
3744" (mount-point \"/\")\n"
3745" (type \"ext4\"))\n"
3746" %base-file-systems))\n"
3747"\n"
3748msgstr ""
3749
3750#. type: lisp
3751#: guix-git/doc/guix-cookbook.texi:2097
3752#, no-wrap
3753msgid ""
3754" (swap-devices (list \"/dev/sdb\"))\n"
3755"\n"
3756msgstr ""
3757
3758#. type: lisp
3759#: guix-git/doc/guix-cookbook.texi:2101
3760#, no-wrap
3761msgid ""
3762" (initrd-modules (cons \"virtio_scsi\" ; Needed to find the disk\n"
3763" %base-initrd-modules))\n"
3764"\n"
3765msgstr ""
3766
3767#. type: lisp
3768#: guix-git/doc/guix-cookbook.texi:2110
3769#, no-wrap
3770msgid ""
3771" (users (cons (user-account\n"
3772" (name \"janedoe\")\n"
3773" (group \"users\")\n"
3774" ;; Adding the account to the \"wheel\" group\n"
3775" ;; makes it a sudoer.\n"
3776" (supplementary-groups '(\"wheel\"))\n"
3777" (home-directory \"/home/janedoe\"))\n"
3778" %base-user-accounts))\n"
3779"\n"
3780msgstr ""
3781
3782#. type: lisp
3783#: guix-git/doc/guix-cookbook.texi:2114
3784#, no-wrap
3785msgid ""
3786" (packages (cons* nss-certs ;for HTTPS access\n"
3787" openssh-sans-x\n"
3788" %base-packages))\n"
3789"\n"
3790msgstr ""
3791
3792#. type: lisp
3793#: guix-git/doc/guix-cookbook.texi:2125
3794#, no-wrap
3795msgid ""
3796" (services (cons*\n"
3797" (service dhcp-client-service-type)\n"
3798" (service openssh-service-type\n"
3799" (openssh-configuration\n"
3800" (openssh openssh-sans-x)\n"
3801" (password-authentication? #false)\n"
3802" (authorized-keys\n"
3803" `((\"janedoe\" ,(local-file \"janedoe_rsa.pub\"))\n"
3804" (\"root\" ,(local-file \"janedoe_rsa.pub\"))))))\n"
3805" %base-services)))\n"
3806msgstr ""
3807
3808#. type: Plain text
3809#: guix-git/doc/guix-cookbook.texi:2128
3810msgid "Replace the following fields in the above configuration:"
3811msgstr ""
3812
3813#. type: lisp
3814#: guix-git/doc/guix-cookbook.texi:2136
3815#, no-wrap
3816msgid ""
3817"(host-name \"my-server\") ; replace with your server name\n"
3818"; if you chose a linode server outside the U.S., then\n"
3819"; use tzselect to find a correct timezone string\n"
3820"(timezone \"America/New_York\") ; if needed replace timezone\n"
3821"(name \"janedoe\") ; replace with your username\n"
3822"(\"janedoe\" ,(local-file \"janedoe_rsa.pub\")) ; replace with your ssh key\n"
3823"(\"root\" ,(local-file \"janedoe_rsa.pub\")) ; replace with your ssh key\n"
3824msgstr ""
3825
3826#. type: Plain text
3827#: guix-git/doc/guix-cookbook.texi:2142
3828msgid "The last line in the above example lets you log into the server as root and set the initial root password. After you have done this, you may delete that line from your configuration and reconfigure to prevent root login."
3829msgstr ""
3830
3831#. type: Plain text
3832#: guix-git/doc/guix-cookbook.texi:2147
3833msgid "Save your ssh public key (eg: @file{~/.ssh/id_rsa.pub}) as @file{@var{<your-username-here>}_rsa.pub} and your @file{guix-config.scm} in the same directory. In a new terminal run these commands."
3834msgstr ""
3835
3836#. type: example
3837#: guix-git/doc/guix-cookbook.texi:2152
3838#, no-wrap
3839msgid ""
3840"sftp root@@<remote server ip address>\n"
3841"put /home/<username>/ssh/id_rsa.pub .\n"
3842"put /path/to/linode/guix-config.scm .\n"
3843msgstr ""
3844
3845#. type: Plain text
3846#: guix-git/doc/guix-cookbook.texi:2155
3847msgid "In your first terminal, mount the guix drive:"
3848msgstr ""
3849
3850#. type: example
3851#: guix-git/doc/guix-cookbook.texi:2159
3852#, no-wrap
3853msgid ""
3854"mkdir /mnt/guix\n"
3855"mount /dev/sdc /mnt/guix\n"
3856msgstr ""
3857
3858#. type: Plain text
3859#: guix-git/doc/guix-cookbook.texi:2164
3860msgid "Due to the way we set things up above, we do not install GRUB completely. Instead we install only our grub configuration file. So we need to copy over some of the other GRUB stuff that is already there:"
3861msgstr ""
3862
3863#. type: example
3864#: guix-git/doc/guix-cookbook.texi:2168
3865#, no-wrap
3866msgid ""
3867"mkdir -p /mnt/guix/boot/grub\n"
3868"cp -r /boot/grub/* /mnt/guix/boot/grub/\n"
3869msgstr ""
3870
3871#. type: Plain text
3872#: guix-git/doc/guix-cookbook.texi:2171
3873msgid "Now initialize the Guix installation:"
3874msgstr ""
3875
3876#. type: example
3877#: guix-git/doc/guix-cookbook.texi:2174
3878#, no-wrap
3879msgid "guix system init guix-config.scm /mnt/guix\n"
3880msgstr ""
3881
3882#. type: Plain text
3883#: guix-git/doc/guix-cookbook.texi:2178
3884msgid "Ok, power it down! Now from the Linode console, select boot and select \"Guix\"."
3885msgstr ""
3886
3887#. type: Plain text
3888#: guix-git/doc/guix-cookbook.texi:2181
3889msgid "Once it boots, you should be able to log in via SSH! (The server config will have changed though.) You may encounter an error like:"
3890msgstr ""
3891
3892#. type: example
3893#: guix-git/doc/guix-cookbook.texi:2197
3894#, no-wrap
3895msgid ""
3896"$ ssh root@@<server ip address>\n"
3897"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3898"@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
3899"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3900"IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3901"Someone could be eavesdropping on you right now (man-in-the-middle attack)!\n"
3902"It is also possible that a host key has just been changed.\n"
3903"The fingerprint for the ECDSA key sent by the remote host is\n"
3904"SHA256:0B+wp33w57AnKQuHCvQP0+ZdKaqYrI/kyU7CfVbS7R4.\n"
3905"Please contact your system administrator.\n"
3906"Add correct host key in /home/joshua/.ssh/known_hosts to get rid of this message.\n"
3907"Offending ECDSA key in /home/joshua/.ssh/known_hosts:3\n"
3908"ECDSA host key for 198.58.98.76 has changed and you have requested strict checking.\n"
3909"Host key verification failed.\n"
3910msgstr ""
3911
3912#. type: Plain text
3913#: guix-git/doc/guix-cookbook.texi:2201
3914msgid "Either delete @file{~/.ssh/known_hosts} file, or delete the offending line starting with your server IP address."
3915msgstr ""
3916
3917#. type: Plain text
3918#: guix-git/doc/guix-cookbook.texi:2203
3919msgid "Be sure to set your password and root's password."
3920msgstr ""
3921
3922#. type: example
3923#: guix-git/doc/guix-cookbook.texi:2208
3924#, no-wrap
3925msgid ""
3926"ssh root@@<remote ip address>\n"
3927"passwd ; for the root password\n"
3928"passwd <username> ; for the user password\n"
3929msgstr ""
3930
3931#. type: Plain text
3932#: guix-git/doc/guix-cookbook.texi:2215
3933msgid "You may not be able to run the above commands at this point. If you have issues remotely logging into your linode box via SSH, then you may still need to set your root and user password initially by clicking on the ``Launch Console'' option in your linode. Choose the ``Glish'' instead of ``Weblish''. Now you should be able to ssh into the machine."
3934msgstr ""
3935
3936#. type: Plain text
3937#: guix-git/doc/guix-cookbook.texi:2219
3938msgid "Horray! At this point you can shut down the server, delete the Debian disk, and resize the Guix to the rest of the size. Congratulations!"
3939msgstr ""
3940
3941#. type: Plain text
3942#: guix-git/doc/guix-cookbook.texi:2224
3943msgid "By the way, if you save it as a disk image right at this point, you'll have an easy time spinning up new Guix images! You may need to down-size the Guix image to 6144MB, to save it as an image. Then you can resize it again to the max size."
3944msgstr ""
3945
3946#. type: Plain text
3947#: guix-git/doc/guix-cookbook.texi:2233
3948msgid "To bind mount a file system, one must first set up some definitions before the @code{operating-system} section of the system definition. In this example we will bind mount a folder from a spinning disk drive to @file{/tmp}, to save wear and tear on the primary SSD, without dedicating an entire partition to be mounted as @file{/tmp}."
3949msgstr ""
3950
3951#. type: Plain text
3952#: guix-git/doc/guix-cookbook.texi:2236
3953msgid "First, the source drive that hosts the folder we wish to bind mount should be defined, so that the bind mount can depend on it."
3954msgstr ""
3955
3956#. type: lisp
3957#: guix-git/doc/guix-cookbook.texi:2243
3958#, no-wrap
3959msgid ""
3960"(define source-drive ;; \"source-drive\" can be named anything you want.\n"
3961" (file-system\n"
3962" (device (uuid \"UUID goes here\"))\n"
3963" (mount-point \"/path-to-spinning-disk-goes-here\")\n"
3964" (type \"ext4\"))) ;; Make sure to set this to the appropriate type for your drive.\n"
3965msgstr ""
3966
3967#. type: Plain text
3968#: guix-git/doc/guix-cookbook.texi:2247
3969msgid "The source folder must also be defined, so that guix will know it's not a regular block device, but a folder."
3970msgstr ""
3971
3972#. type: lisp
3973#: guix-git/doc/guix-cookbook.texi:2249
3974#, no-wrap
3975msgid "(define (%source-directory) \"/path-to-spinning-disk-goes-here/tmp\") ;; \"source-directory\" can be named any valid variable name.\n"
3976msgstr ""
3977
3978#. type: Plain text
3979#: guix-git/doc/guix-cookbook.texi:2253
3980msgid "Finally, inside the @code{file-systems} definition, we must add the mount itself."
3981msgstr ""
3982
3983#. type: lisp
3984#: guix-git/doc/guix-cookbook.texi:2256
3985#, no-wrap
3986msgid ""
3987"(file-systems (cons*\n"
3988"\n"
3989msgstr ""
3990
3991#. type: lisp
3992#: guix-git/doc/guix-cookbook.texi:2258
3993#, no-wrap
3994msgid ""
3995" ...<other drives omitted for clarity>...\n"
3996"\n"
3997msgstr ""
3998
3999#. type: lisp
4000#: guix-git/doc/guix-cookbook.texi:2260
4001#, no-wrap
4002msgid ""
4003" source-drive ;; Must match the name you gave the source drive in the earlier definition.\n"
4004"\n"
4005msgstr ""
4006
4007#. type: lisp
4008#: guix-git/doc/guix-cookbook.texi:2268
4009#, no-wrap
4010msgid ""
4011" (file-system\n"
4012" (device (%source-directory)) ;; Make sure \"source-directory\" matches your earlier definition.\n"
4013" (mount-point \"/tmp\")\n"
4014" (type \"none\") ;; We are mounting a folder, not a partition, so this type needs to be \"none\"\n"
4015" (flags '(bind-mount))\n"
4016" (dependencies (list source-drive)) ;; Ensure \"source-drive\" matches what you've named the variable for the drive.\n"
4017" )\n"
4018"\n"
4019msgstr ""
4020
4021#. type: lisp
4022#: guix-git/doc/guix-cookbook.texi:2270
4023#, no-wrap
4024msgid ""
4025" ...<other drives omitted for clarity>...\n"
4026"\n"
4027msgstr ""
4028
4029#. type: lisp
4030#: guix-git/doc/guix-cookbook.texi:2272
4031#, no-wrap
4032msgid " ))\n"
4033msgstr ""
4034
4035#. type: Plain text
4036#: guix-git/doc/guix-cookbook.texi:2279
4037msgid "Guix daemon can use a HTTP proxy to get substitutes, here we are configuring it to get them via Tor."
4038msgstr ""
4039
4040#. type: quotation
4041#: guix-git/doc/guix-cookbook.texi:2280
4042#, no-wrap
4043msgid "Warning"
4044msgstr "Attention"
4045
4046#. type: quotation
4047#: guix-git/doc/guix-cookbook.texi:2286
4048msgid "@emph{Not all} Guix daemon's traffic will go through Tor! Only HTTP/HTTPS will get proxied; FTP, Git protocol, SSH, etc connections will still go through the clearnet. Again, this configuration isn't foolproof some of your traffic won't get routed by Tor at all. Use it at your own risk."
4049msgstr ""
4050
4051#. type: quotation
4052#: guix-git/doc/guix-cookbook.texi:2292
4053msgid "Also note that the procedure described here applies only to package substitution. When you update your guix distribution with @command{guix pull}, you still need to use @command{torsocks} if you want to route the connection to guix's git repository servers through Tor."
4054msgstr ""
4055
4056#. type: Plain text
4057#: guix-git/doc/guix-cookbook.texi:2297
4058msgid "Guix's substitute server is available as a Onion service, if you want to use it to get your substitutes through Tor configure your system as follow:"
4059msgstr ""
4060
4061#. type: lisp
4062#: guix-git/doc/guix-cookbook.texi:2301
4063#, no-wrap
4064msgid ""
4065"(use-modules (gnu))\n"
4066"(use-service-module base networking)\n"
4067"\n"
4068msgstr ""
4069
4070#. type: lisp
4071#: guix-git/doc/guix-cookbook.texi:2317
4072#, no-wrap
4073msgid ""
4074"(operating-system\n"
4075" …\n"
4076" (services\n"
4077" (cons\n"
4078" (service tor-service-type\n"
4079" (tor-configuration\n"
4080" (config-file (plain-file \"tor-config\"\n"
4081" \"HTTPTunnelPort 127.0.0.1:9250\"))))\n"
4082" (modify-services %base-services\n"
4083" (guix-service-type\n"
4084" config => (guix-configuration\n"
4085" (inherit config)\n"
4086" ;; ci.guix.gnu.org's Onion service\n"
4087" (substitute-urls \"https://bp7o7ckwlewr4slm.onion\")\n"
4088" (http-proxy \"http://localhost:9250\")))))))\n"
4089msgstr ""
4090
4091#. type: Plain text
4092#: guix-git/doc/guix-cookbook.texi:2326
4093msgid "This will keep a tor process running that provides a HTTP CONNECT tunnel which will be used by @command{guix-daemon}. The daemon can use other protocols than HTTP(S) to get remote resources, request using those protocols won't go through Tor since we are only setting a HTTP tunnel here. Note that @code{substitutes-urls} is using HTTPS and not HTTP or it won't work, that's a limitation of Tor's tunnel; you may want to use @command{privoxy} instead to avoid such limitations."
4094msgstr ""
4095
4096#. type: Plain text
4097#: guix-git/doc/guix-cookbook.texi:2330
4098msgid "If you don't want to always get substitutes through Tor but using it just some of the times, then skip the @code{guix-configuration}. When you want to get a substitute from the Tor tunnel run:"
4099msgstr ""
4100
4101#. type: example
4102#: guix-git/doc/guix-cookbook.texi:2334
4103#, no-wrap
4104msgid ""
4105"sudo herd set-http-proxy guix-daemon http://localhost:9250\n"
4106"guix build --substitute-urls=https://bp7o7ckwlewr4slm.onion …\n"
4107msgstr ""
4108
4109#. type: cindex
4110#: guix-git/doc/guix-cookbook.texi:2338
4111#, no-wrap
4112msgid "nginx, lua, openresty, resty"
4113msgstr ""
4114
4115#. type: Plain text
4116#: guix-git/doc/guix-cookbook.texi:2341
4117msgid "NGINX could be extended with Lua scripts."
4118msgstr ""
4119
4120#. type: Plain text
4121#: guix-git/doc/guix-cookbook.texi:2344
4122msgid "Guix provides NGINX service with ability to load Lua module and specific Lua packages, and reply to requests by evaluating Lua scripts."
4123msgstr ""
4124
4125#. type: Plain text
4126#: guix-git/doc/guix-cookbook.texi:2348
4127msgid "The following example demonstrates system definition with configuration to evaluate @file{index.lua} Lua script on HTTP request to @uref{http://localhost/hello} endpoint:"
4128msgstr ""
4129
4130#. type: example
4131#: guix-git/doc/guix-cookbook.texi:2351
4132#, no-wrap
4133msgid ""
4134"local shell = require \"resty.shell\"\n"
4135"\n"
4136msgstr ""
4137
4138#. type: example
4139#: guix-git/doc/guix-cookbook.texi:2355
4140#, no-wrap
4141msgid ""
4142"local stdin = \"\"\n"
4143"local timeout = 1000 -- ms\n"
4144"local max_size = 4096 -- byte\n"
4145"\n"
4146msgstr ""
4147
4148#. type: example
4149#: guix-git/doc/guix-cookbook.texi:2358
4150#, no-wrap
4151msgid ""
4152"local ok, stdout, stderr, reason, status =\n"
4153" shell.run([[/run/current-system/profile/bin/ls /tmp]], stdin, timeout, max_size)\n"
4154"\n"
4155msgstr ""
4156
4157#. type: example
4158#: guix-git/doc/guix-cookbook.texi:2360
4159#, no-wrap
4160msgid "ngx.say(stdout)\n"
4161msgstr ""
4162
4163#. type: lisp
4164#: guix-git/doc/guix-cookbook.texi:2391
4165#, no-wrap
4166msgid ""
4167"(use-modules (gnu))\n"
4168"(use-service-modules #;… web)\n"
4169"(use-package-modules #;… lua)\n"
4170"(operating-system\n"
4171" ;; …\n"
4172" (services\n"
4173" ;; …\n"
4174" (service nginx-service-type\n"
4175" (nginx-configuration\n"
4176" (modules\n"
4177" (list\n"
4178" (file-append nginx-lua-module \"/etc/nginx/modules/ngx_http_lua_module.so\")))\n"
4179" (lua-package-path (list lua-resty-core\n"
4180" lua-resty-lrucache\n"
4181" lua-resty-signal\n"
4182" lua-tablepool\n"
4183" lua-resty-shell))\n"
4184" (lua-package-cpath (list lua-resty-signal))\n"
4185" (server-blocks\n"
4186" (list (nginx-server-configuration\n"
4187" (server-name '(\"localhost\"))\n"
4188" (listen '(\"80\"))\n"
4189" (root \"/etc\")\n"
4190" (locations (list\n"
4191" (nginx-location-configuration\n"
4192" (uri \"/hello\")\n"
4193" (body (list #~(format #f \"content_by_lua_file ~s;\"\n"
4194" #$(local-file \"index.lua\"))))))))))))))\n"
4195msgstr ""
4196
4197#. type: Plain text
4198#: guix-git/doc/guix-cookbook.texi:2402
4199msgid "Guix is a functional package manager that offers many features beyond what more traditional package managers can do. To the uninitiated, those features might not have obvious use cases at first. The purpose of this chapter is to demonstrate some advanced package management concepts."
4200msgstr ""
4201
4202#. type: Plain text
4203#: guix-git/doc/guix-cookbook.texi:2405
4204msgid "@pxref{Package Management,,, guix, GNU Guix Reference Manual} for a complete reference."
4205msgstr ""
4206
4207#. type: section
4208#: guix-git/doc/guix-cookbook.texi:2408 guix-git/doc/guix-cookbook.texi:2410
4209#: guix-git/doc/guix-cookbook.texi:2411
4210#, no-wrap
4211msgid "Guix Profiles in Practice"
4212msgstr ""
4213
4214#. type: menuentry
4215#: guix-git/doc/guix-cookbook.texi:2408
4216msgid "Strategies for multiple profiles and manifests."
4217msgstr ""
4218
4219#. type: Plain text
4220#: guix-git/doc/guix-cookbook.texi:2416
4221msgid "Guix provides a very useful feature that may be quite foreign to newcomers: @emph{profiles}. They are a way to group package installations together and all users on the same system are free to use as many profiles as they want."
4222msgstr ""
4223
4224#. type: Plain text
4225#: guix-git/doc/guix-cookbook.texi:2421
4226msgid "Whether you're a developer or not, you may find that multiple profiles bring you great power and flexibility. While they shift the paradigm somewhat compared to @emph{traditional package managers}, they are very convenient to use once you've understood how to set them up."
4227msgstr ""
4228
4229#. type: Plain text
4230#: guix-git/doc/guix-cookbook.texi:2427
4231msgid "If you are familiar with Python's @samp{virtualenv}, you can think of a profile as a kind of universal @samp{virtualenv} that can hold any kind of software whatsoever, not just Python software. Furthermore, profiles are self-sufficient: they capture all the runtime dependencies which guarantees that all programs within a profile will always work at any point in time."
4232msgstr ""
4233
4234#. type: Plain text
4235#: guix-git/doc/guix-cookbook.texi:2429
4236msgid "Multiple profiles have many benefits:"
4237msgstr ""
4238
4239#. type: itemize
4240#: guix-git/doc/guix-cookbook.texi:2433
4241msgid "Clean semantic separation of the various packages a user needs for different contexts."
4242msgstr ""
4243
4244#. type: itemize
4245#: guix-git/doc/guix-cookbook.texi:2437
4246msgid "Multiple profiles can be made available into the environment either on login or within a dedicated shell."
4247msgstr ""
4248
4249#. type: itemize
4250#: guix-git/doc/guix-cookbook.texi:2441
4251msgid "Profiles can be loaded on demand. For instance, the user can use multiple shells, each of them running different profiles."
4252msgstr ""
4253
4254#. type: itemize
4255#: guix-git/doc/guix-cookbook.texi:2446
4256msgid "Isolation: Programs from one profile will not use programs from the other, and the user can even install different versions of the same programs to the two profiles without conflict."
4257msgstr ""
4258
4259#. type: itemize
4260#: guix-git/doc/guix-cookbook.texi:2450
4261msgid "Deduplication: Profiles share dependencies that happens to be the exact same. This makes multiple profiles storage-efficient."
4262msgstr ""
4263
4264#. type: itemize
4265#: guix-git/doc/guix-cookbook.texi:2458
4266msgid "Reproducible: when used with declarative manifests, a profile can be fully specified by the Guix commit that was active when it was set up. This means that the exact same profile can be @uref{https://guix.gnu.org/blog/2018/multi-dimensional-transactions-and-rollbacks-oh-my/, set up anywhere and anytime}, with just the commit information. See the section on @ref{Reproducible profiles}."
4267msgstr ""
4268
4269#. type: itemize
4270#: guix-git/doc/guix-cookbook.texi:2462
4271msgid "Easier upgrades and maintenance: Multiple profiles make it easy to keep package listings at hand and make upgrades completely frictionless."
4272msgstr ""
4273
4274#. type: Plain text
4275#: guix-git/doc/guix-cookbook.texi:2465
4276msgid "Concretely, here follows some typical profiles:"
4277msgstr ""
4278
4279#. type: itemize
4280#: guix-git/doc/guix-cookbook.texi:2469
4281msgid "The dependencies of a project you are working on."
4282msgstr ""
4283
4284#. type: itemize
4285#: guix-git/doc/guix-cookbook.texi:2472
4286msgid "Your favourite programming language libraries."
4287msgstr ""
4288
4289#. type: itemize
4290#: guix-git/doc/guix-cookbook.texi:2475
4291msgid "Laptop-specific programs (like @samp{powertop}) that you don't need on a desktop."
4292msgstr ""
4293
4294#. type: itemize
4295#: guix-git/doc/guix-cookbook.texi:2479
4296msgid "@TeX{}live (this one can be really useful when you need to install just one package for this one document you've just received over email)."
4297msgstr ""
4298
4299#. type: itemize
4300#: guix-git/doc/guix-cookbook.texi:2482
4301msgid "Games."
4302msgstr "Jeux."
4303
4304#. type: Plain text
4305#: guix-git/doc/guix-cookbook.texi:2485
4306msgid "Let's dive in the set up!"
4307msgstr ""
4308
4309#. type: subsection
4310#: guix-git/doc/guix-cookbook.texi:2486 guix-git/doc/guix-cookbook.texi:2487
4311#, no-wrap
4312msgid "Basic setup with manifests"
4313msgstr ""
4314
4315#. type: Plain text
4316#: guix-git/doc/guix-cookbook.texi:2491
4317msgid "A Guix profile can be set up @emph{via} a so-called @emph{manifest specification} that looks like this:"
4318msgstr ""
4319
4320#. type: lisp
4321#: guix-git/doc/guix-cookbook.texi:2501
4322#, no-wrap
4323msgid ""
4324"(specifications->manifest\n"
4325" '(\"package-1\"\n"
4326" ;; Version 1.3 of package-2.\n"
4327" \"package-2@@1.3\"\n"
4328" ;; The \"lib\" output of package-3.\n"
4329" \"package-3:lib\"\n"
4330" ; ...\n"
4331" \"package-N\"))\n"
4332msgstr ""
4333
4334#. type: Plain text
4335#: guix-git/doc/guix-cookbook.texi:2505
4336msgid "@pxref{Invoking guix package,,, guix, GNU Guix Reference Manual}, for the syntax details."
4337msgstr ""
4338
4339#. type: Plain text
4340#: guix-git/doc/guix-cookbook.texi:2507
4341msgid "We can create a manifest specification per profile and install them this way:"
4342msgstr ""
4343
4344#. type: example
4345#: guix-git/doc/guix-cookbook.texi:2512
4346#, no-wrap
4347msgid ""
4348"GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles\n"
4349"mkdir -p \"$GUIX_EXTRA_PROFILES\"/my-project # if it does not exist yet\n"
4350"guix package --manifest=/path/to/guix-my-project-manifest.scm --profile=\"$GUIX_EXTRA_PROFILES\"/my-project/my-project\n"
4351msgstr ""
4352
4353#. type: Plain text
4354#: guix-git/doc/guix-cookbook.texi:2516
4355msgid "Here we set an arbitrary variable @samp{GUIX_EXTRA_PROFILES} to point to the directory where we will store our profiles in the rest of this article."
4356msgstr ""
4357
4358#. type: Plain text
4359#: guix-git/doc/guix-cookbook.texi:2522
4360msgid "Placing all your profiles in a single directory, with each profile getting its own sub-directory, is somewhat cleaner. This way, each sub-directory will contain all the symlinks for precisely one profile. Besides, ``looping over profiles'' becomes obvious from any programming language (e.g.@: a shell script) by simply looping over the sub-directories of @samp{$GUIX_EXTRA_PROFILES}."
4361msgstr ""
4362
4363#. type: Plain text
4364#: guix-git/doc/guix-cookbook.texi:2524
4365msgid "Note that it's also possible to loop over the output of"
4366msgstr ""
4367
4368#. type: example
4369#: guix-git/doc/guix-cookbook.texi:2527
4370#, no-wrap
4371msgid "guix package --list-profiles\n"
4372msgstr ""
4373
4374#. type: Plain text
4375#: guix-git/doc/guix-cookbook.texi:2530
4376msgid "although you'll probably have to filter out @file{~/.config/guix/current}."
4377msgstr ""
4378
4379#. type: Plain text
4380#: guix-git/doc/guix-cookbook.texi:2532
4381msgid "To enable all profiles on login, add this to your @file{~/.bash_profile} (or similar):"
4382msgstr ""
4383
4384#. type: example
4385#: guix-git/doc/guix-cookbook.texi:2542
4386#, no-wrap
4387msgid ""
4388"for i in $GUIX_EXTRA_PROFILES/*; do\n"
4389" profile=$i/$(basename \"$i\")\n"
4390" if [ -f \"$profile\"/etc/profile ]; then\n"
4391" GUIX_PROFILE=\"$profile\"\n"
4392" . \"$GUIX_PROFILE\"/etc/profile\n"
4393" fi\n"
4394" unset profile\n"
4395"done\n"
4396msgstr ""
4397
4398#. type: Plain text
4399#: guix-git/doc/guix-cookbook.texi:2547
4400msgid "Note to Guix System users: the above reflects how your default profile @file{~/.guix-profile} is activated from @file{/etc/profile}, that latter being loaded by @file{~/.bashrc} by default."
4401msgstr ""
4402
4403#. type: Plain text
4404#: guix-git/doc/guix-cookbook.texi:2549
4405msgid "You can obviously choose to only enable a subset of them:"
4406msgstr ""
4407
4408#. type: example
4409#: guix-git/doc/guix-cookbook.texi:2559
4410#, no-wrap
4411msgid ""
4412"for i in \"$GUIX_EXTRA_PROFILES\"/my-project-1 \"$GUIX_EXTRA_PROFILES\"/my-project-2; do\n"
4413" profile=$i/$(basename \"$i\")\n"
4414" if [ -f \"$profile\"/etc/profile ]; then\n"
4415" GUIX_PROFILE=\"$profile\"\n"
4416" . \"$GUIX_PROFILE\"/etc/profile\n"
4417" fi\n"
4418" unset profile\n"
4419"done\n"
4420msgstr ""
4421
4422#. type: Plain text
4423#: guix-git/doc/guix-cookbook.texi:2563
4424msgid "When a profile is off, it's straightforward to enable it for an individual shell without \"polluting\" the rest of the user session:"
4425msgstr ""
4426
4427#. type: example
4428#: guix-git/doc/guix-cookbook.texi:2566
4429#, no-wrap
4430msgid "GUIX_PROFILE=\"path/to/my-project\" ; . \"$GUIX_PROFILE\"/etc/profile\n"
4431msgstr ""
4432
4433#. type: Plain text
4434#: guix-git/doc/guix-cookbook.texi:2573
4435msgid "The key to enabling a profile is to @emph{source} its @samp{etc/profile} file. This file contains shell code that exports the right environment variables necessary to activate the software contained in the profile. It is built automatically by Guix and meant to be sourced. It contains the same variables you would get if you ran:"
4436msgstr ""
4437
4438#. type: example
4439#: guix-git/doc/guix-cookbook.texi:2576
4440#, no-wrap
4441msgid "guix package --search-paths=prefix --profile=$my_profile\"\n"
4442msgstr ""
4443
4444#. type: Plain text
4445#: guix-git/doc/guix-cookbook.texi:2580
4446msgid "Once again, see (@pxref{Invoking guix package,,, guix, GNU Guix Reference Manual}) for the command line options."
4447msgstr ""
4448
4449#. type: Plain text
4450#: guix-git/doc/guix-cookbook.texi:2582
4451msgid "To upgrade a profile, simply install the manifest again:"
4452msgstr ""
4453
4454#. type: example
4455#: guix-git/doc/guix-cookbook.texi:2585
4456#, no-wrap
4457msgid "guix package -m /path/to/guix-my-project-manifest.scm -p \"$GUIX_EXTRA_PROFILES\"/my-project/my-project\n"
4458msgstr ""
4459
4460#. type: Plain text
4461#: guix-git/doc/guix-cookbook.texi:2591
4462msgid "To upgrade all profiles, it's easy enough to loop over them. For instance, assuming your manifest specifications are stored in @file{~/.guix-manifests/guix-$profile-manifest.scm}, with @samp{$profile} being the name of the profile (e.g.@: \"project1\"), you could do the following in Bourne shell:"
4463msgstr ""
4464
4465#. type: example
4466#: guix-git/doc/guix-cookbook.texi:2596
4467#, no-wrap
4468msgid ""
4469"for profile in \"$GUIX_EXTRA_PROFILES\"/*; do\n"
4470" guix package --profile=\"$profile\" --manifest=\"$HOME/.guix-manifests/guix-$profile-manifest.scm\"\n"
4471"done\n"
4472msgstr ""
4473
4474#. type: Plain text
4475#: guix-git/doc/guix-cookbook.texi:2599
4476msgid "Each profile has its own generations:"
4477msgstr ""
4478
4479#. type: example
4480#: guix-git/doc/guix-cookbook.texi:2602
4481#, no-wrap
4482msgid "guix package -p \"$GUIX_EXTRA_PROFILES\"/my-project/my-project --list-generations\n"
4483msgstr ""
4484
4485#. type: Plain text
4486#: guix-git/doc/guix-cookbook.texi:2605
4487msgid "You can roll-back to any generation of a given profile:"
4488msgstr ""
4489
4490#. type: example
4491#: guix-git/doc/guix-cookbook.texi:2608
4492#, no-wrap
4493msgid "guix package -p \"$GUIX_EXTRA_PROFILES\"/my-project/my-project --switch-generations=17\n"
4494msgstr ""
4495
4496#. type: Plain text
4497#: guix-git/doc/guix-cookbook.texi:2612
4498msgid "Finally, if you want to switch to a profile without inheriting from the current environment, you can activate it from an empty shell:"
4499msgstr ""
4500
4501#. type: example
4502#: guix-git/doc/guix-cookbook.texi:2616
4503#, no-wrap
4504msgid ""
4505"env -i $(which bash) --login --noprofile --norc\n"
4506". my-project/etc/profile\n"
4507msgstr ""
4508
4509#. type: subsection
4510#: guix-git/doc/guix-cookbook.texi:2618 guix-git/doc/guix-cookbook.texi:2619
4511#, no-wrap
4512msgid "Required packages"
4513msgstr "Paquets requis"
4514
4515#. type: Plain text
4516#: guix-git/doc/guix-cookbook.texi:2624
4517msgid "Activating a profile essentially boils down to exporting a bunch of environmental variables. This is the role of the @samp{etc/profile} within the profile."
4518msgstr ""
4519
4520#. type: emph{#1}
4521#: guix-git/doc/guix-cookbook.texi:2627
4522msgid "Note: Only the environmental variables of the packages that consume them will be set."
4523msgstr ""
4524
4525#. type: Plain text
4526#: guix-git/doc/guix-cookbook.texi:2631
4527msgid "For instance, @samp{MANPATH} won't be set if there is no consumer application for man pages within the profile. So if you need to transparently access man pages once the profile is loaded, you've got two options:"
4528msgstr ""
4529
4530#. type: itemize
4531#: guix-git/doc/guix-cookbook.texi:2635
4532msgid "Either export the variable manually, e.g."
4533msgstr ""
4534
4535#. type: example
4536#: guix-git/doc/guix-cookbook.texi:2637
4537#, no-wrap
4538msgid "export MANPATH=/path/to/profile$@{MANPATH:+:@}$MANPATH\n"
4539msgstr ""
4540
4541#. type: itemize
4542#: guix-git/doc/guix-cookbook.texi:2641
4543msgid "Or include @samp{man-db} to the profile manifest."
4544msgstr ""
4545
4546#. type: Plain text
4547#: guix-git/doc/guix-cookbook.texi:2645
4548msgid "The same is true for @samp{INFOPATH} (you can install @samp{info-reader}), @samp{PKG_CONFIG_PATH} (install @samp{pkg-config}), etc."
4549msgstr ""
4550
4551#. type: subsection
4552#: guix-git/doc/guix-cookbook.texi:2646 guix-git/doc/guix-cookbook.texi:2647
4553#, no-wrap
4554msgid "Default profile"
4555msgstr ""
4556
4557#. type: Plain text
4558#: guix-git/doc/guix-cookbook.texi:2650
4559msgid "What about the default profile that Guix keeps in @file{~/.guix-profile}?"
4560msgstr ""
4561
4562#. type: Plain text
4563#: guix-git/doc/guix-cookbook.texi:2653
4564msgid "You can assign it the role you want. Typically you would install the manifest of the packages you want to use all the time."
4565msgstr ""
4566
4567#. type: Plain text
4568#: guix-git/doc/guix-cookbook.texi:2657
4569msgid "Alternatively, you could keep it ``manifest-less'' for throw-away packages that you would just use for a couple of days. This way makes it convenient to run"
4570msgstr ""
4571
4572#. type: example
4573#: guix-git/doc/guix-cookbook.texi:2661
4574#, no-wrap
4575msgid ""
4576"guix install package-foo\n"
4577"guix upgrade package-bar\n"
4578msgstr ""
4579
4580#. type: Plain text
4581#: guix-git/doc/guix-cookbook.texi:2664
4582msgid "without having to specify the path to a profile."
4583msgstr ""
4584
4585#. type: subsection
4586#: guix-git/doc/guix-cookbook.texi:2665 guix-git/doc/guix-cookbook.texi:2666
4587#, no-wrap
4588msgid "The benefits of manifests"
4589msgstr ""
4590
4591#. type: Plain text
4592#: guix-git/doc/guix-cookbook.texi:2670
4593msgid "Manifests are a convenient way to keep your package lists around and, say, to synchronize them across multiple machines using a version control system."
4594msgstr ""
4595
4596#. type: Plain text
4597#: guix-git/doc/guix-cookbook.texi:2674
4598msgid "A common complaint about manifests is that they can be slow to install when they contain large number of packages. This is especially cumbersome when you just want get an upgrade for one package within a big manifest."
4599msgstr ""
4600
4601#. type: Plain text
4602#: guix-git/doc/guix-cookbook.texi:2679
4603msgid "This is one more reason to use multiple profiles, which happen to be just perfect to break down manifests into multiple sets of semantically connected packages. Using multiple, small profiles provides more flexibility and usability."
4604msgstr ""
4605
4606#. type: Plain text
4607#: guix-git/doc/guix-cookbook.texi:2681
4608msgid "Manifests come with multiple benefits. In particular, they ease maintenance:"
4609msgstr ""
4610
4611#. type: itemize
4612#: guix-git/doc/guix-cookbook.texi:2689
4613msgid "When a profile is set up from a manifest, the manifest itself is self-sufficient to keep a ``package listing'' around and reinstall the profile later or on a different system. For ad-hoc profiles, we would need to generate a manifest specification manually and maintain the package versions for the packages that don't use the default version."
4614msgstr ""
4615
4616#. type: itemize
4617#: guix-git/doc/guix-cookbook.texi:2694
4618msgid "@code{guix package --upgrade} always tries to update the packages that have propagated inputs, even if there is nothing to do. Guix manifests remove this problem."
4619msgstr ""
4620
4621#. type: itemize
4622#: guix-git/doc/guix-cookbook.texi:2700
4623msgid "When partially upgrading a profile, conflicts may arise (due to diverging dependencies between the updated and the non-updated packages) and they can be annoying to resolve manually. Manifests remove this problem altogether since all packages are always upgraded at once."
4624msgstr ""
4625
4626#. type: itemize
4627#: guix-git/doc/guix-cookbook.texi:2706
4628msgid "As mentioned above, manifests allow for reproducible profiles, while the imperative @code{guix install}, @code{guix upgrade}, etc. do not, since they produce different profiles every time even when they hold the same packages. See @uref{https://issues.guix.gnu.org/issue/33285, the related discussion on the matter}."
4629msgstr ""
4630
4631#. type: itemize
4632#: guix-git/doc/guix-cookbook.texi:2714
4633msgid "Manifest specifications are usable by other @samp{guix} commands. For example, you can run @code{guix weather -m manifest.scm} to see how many substitutes are available, which can help you decide whether you want to try upgrading today or wait a while. Another example: you can run @code{guix pack -m manifest.scm} to create a pack containing all the packages in the manifest (and their transitive references)."
4634msgstr ""
4635
4636#. type: itemize
4637#: guix-git/doc/guix-cookbook.texi:2718
4638msgid "Finally, manifests have a Scheme representation, the @samp{<manifest>} record type. They can be manipulated in Scheme and passed to the various Guix @uref{https://en.wikipedia.org/wiki/Api, APIs}."
4639msgstr ""
4640
4641#. type: Plain text
4642#: guix-git/doc/guix-cookbook.texi:2726
4643msgid "It's important to understand that while manifests can be used to declare profiles, they are not strictly equivalent: profiles have the side effect that they ``pin'' packages in the store, which prevents them from being garbage-collected (@pxref{Invoking guix gc,,, guix, GNU Guix Reference Manual}) and ensures that they will still be available at any point in the future."
4644msgstr ""
4645
4646#. type: Plain text
4647#: guix-git/doc/guix-cookbook.texi:2728
4648msgid "Let's take an example:"
4649msgstr ""
4650
4651#. type: enumerate
4652#: guix-git/doc/guix-cookbook.texi:2734
4653msgid "We have an environment for hacking on a project for which there isn't a Guix package yet. We build the environment using a manifest, and then run @code{guix environment -m manifest.scm}. So far so good."
4654msgstr ""
4655
4656#. type: enumerate
4657#: guix-git/doc/guix-cookbook.texi:2740
4658msgid "Many weeks pass and we have run a couple of @code{guix pull} in the mean time. Maybe a dependency from our manifest has been updated; or we may have run @code{guix gc} and some packages needed by our manifest have been garbage-collected."
4659msgstr ""
4660
4661#. type: enumerate
4662#: guix-git/doc/guix-cookbook.texi:2745
4663msgid "Eventually, we set to work on that project again, so we run @code{guix environment -m manifest.scm}. But now we have to wait for Guix to build and install stuff!"
4664msgstr ""
4665
4666#. type: Plain text
4667#: guix-git/doc/guix-cookbook.texi:2751
4668msgid "Ideally, we could spare the rebuild time. And indeed we can, all we need is to install the manifest to a profile and use @code{GUIX_PROFILE=/the/profile; . \"$GUIX_PROFILE\"/etc/profile} as explained above: this guarantees that our hacking environment will be available at all times."
4669msgstr ""
4670
4671#. type: Plain text
4672#: guix-git/doc/guix-cookbook.texi:2754
4673msgid "@emph{Security warning:} While keeping old profiles around can be convenient, keep in mind that outdated packages may not have received the latest security fixes."
4674msgstr ""
4675
4676#. type: subsection
4677#: guix-git/doc/guix-cookbook.texi:2755 guix-git/doc/guix-cookbook.texi:2756
4678#, no-wrap
4679msgid "Reproducible profiles"
4680msgstr ""
4681
4682#. type: Plain text
4683#: guix-git/doc/guix-cookbook.texi:2759
4684msgid "To reproduce a profile bit-for-bit, we need two pieces of information:"
4685msgstr ""
4686
4687#. type: itemize
4688#: guix-git/doc/guix-cookbook.texi:2763
4689msgid "a manifest,"
4690msgstr ""
4691
4692#. type: itemize
4693#: guix-git/doc/guix-cookbook.texi:2765
4694msgid "a Guix channel specification."
4695msgstr ""
4696
4697#. type: Plain text
4698#: guix-git/doc/guix-cookbook.texi:2769
4699msgid "Indeed, manifests alone might not be enough: different Guix versions (or different channels) can produce different outputs for a given manifest."
4700msgstr ""
4701
4702#. type: Plain text
4703#: guix-git/doc/guix-cookbook.texi:2773
4704msgid "You can output the Guix channel specification with @samp{guix describe --format=channels}. Save this to a file, say @samp{channel-specs.scm}."
4705msgstr ""
4706
4707#. type: Plain text
4708#: guix-git/doc/guix-cookbook.texi:2776
4709msgid "On another computer, you can use the channel specification file and the manifest to reproduce the exact same profile:"
4710msgstr ""
4711
4712#. type: example
4713#: guix-git/doc/guix-cookbook.texi:2780
4714#, no-wrap
4715msgid ""
4716"GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles\n"
4717"GUIX_EXTRA=$HOME/.guix-extra\n"
4718"\n"
4719msgstr ""
4720
4721#. type: example
4722#: guix-git/doc/guix-cookbook.texi:2783
4723#, no-wrap
4724msgid ""
4725"mkdir \"$GUIX_EXTRA\"/my-project\n"
4726"guix pull --channels=channel-specs.scm --profile \"$GUIX_EXTRA/my-project/guix\"\n"
4727"\n"
4728msgstr ""
4729
4730#. type: example
4731#: guix-git/doc/guix-cookbook.texi:2786
4732#, no-wrap
4733msgid ""
4734"mkdir -p \"$GUIX_EXTRA_PROFILES/my-project\"\n"
4735"\"$GUIX_EXTRA\"/my-project/guix/bin/guix package --manifest=/path/to/guix-my-project-manifest.scm --profile=\"$GUIX_EXTRA_PROFILES\"/my-project/my-project\n"
4736msgstr ""
4737
4738#. type: Plain text
4739#: guix-git/doc/guix-cookbook.texi:2790
4740msgid "It's safe to delete the Guix channel profile you've just installed with the channel specification, the project profile does not depend on it."
4741msgstr ""
4742
4743#. type: Plain text
4744#: guix-git/doc/guix-cookbook.texi:2797
4745msgid "Guix provides multiple tools to manage environment. This chapter demonstrate such utilities."
4746msgstr ""
4747
4748#. type: section
4749#: guix-git/doc/guix-cookbook.texi:2800 guix-git/doc/guix-cookbook.texi:2802
4750#: guix-git/doc/guix-cookbook.texi:2803
4751#, no-wrap
4752msgid "Guix environment via direnv"
4753msgstr ""
4754
4755#. type: menuentry
4756#: guix-git/doc/guix-cookbook.texi:2800
4757msgid "Setup Guix environment with direnv"
4758msgstr ""
4759
4760#. type: Plain text
4761#: guix-git/doc/guix-cookbook.texi:2808
4762msgid "Guix provides a @samp{direnv} package, which could extend shell after directory change. This tool could be used to prepare a pure Guix environment."
4763msgstr ""
4764
4765#. type: Plain text
4766#: guix-git/doc/guix-cookbook.texi:2814
4767msgid "The following example provides a shell function for @file{~/.direnvrc} file, which could be used from Guix Git repository in @file{~/src/guix/.envrc} file to setup a build environment similar to described in @pxref{Building from Git,,, guix, GNU Guix Reference Manual}."
4768msgstr ""
4769
4770#. type: Plain text
4771#: guix-git/doc/guix-cookbook.texi:2816
4772msgid "Create a @file{~/.direnvrc} with a Bash code:"
4773msgstr ""
4774
4775#. type: example
4776#: guix-git/doc/guix-cookbook.texi:2834
4777#, no-wrap
4778msgid ""
4779"# Thanks <https://github.com/direnv/direnv/issues/73#issuecomment-152284914>\n"
4780"export_function()\n"
4781"@{\n"
4782" local name=$1\n"
4783" local alias_dir=$PWD/.direnv/aliases\n"
4784" mkdir -p \"$alias_dir\"\n"
4785" PATH_add \"$alias_dir\"\n"
4786" local target=\"$alias_dir/$name\"\n"
4787" if declare -f \"$name\" >/dev/null; then\n"
4788" echo \"#!$SHELL\" > \"$target\"\n"
4789" declare -f \"$name\" >> \"$target\" 2>/dev/null\n"
4790" # Notice that we add shell variables to the function trigger.\n"
4791" echo \"$name \\$*\" >> \"$target\"\n"
4792" chmod +x \"$target\"\n"
4793" fi\n"
4794"@}\n"
4795"\n"
4796msgstr ""
4797
4798#. type: example
4799#: guix-git/doc/guix-cookbook.texi:2839
4800#, no-wrap
4801msgid ""
4802"use_guix()\n"
4803"@{\n"
4804" # Set GitHub token.\n"
4805" export GUIX_GITHUB_TOKEN=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n"
4806"\n"
4807msgstr ""
4808
4809#. type: example
4810#: guix-git/doc/guix-cookbook.texi:2842
4811#, no-wrap
4812msgid ""
4813" # Unset 'GUIX_PACKAGE_PATH'.\n"
4814" export GUIX_PACKAGE_PATH=\"\"\n"
4815"\n"
4816msgstr ""
4817
4818#. type: example
4819#: guix-git/doc/guix-cookbook.texi:2851
4820#, no-wrap
4821msgid ""
4822" # Recreate a garbage collector root.\n"
4823" gcroots=\"$HOME/.config/guix/gcroots\"\n"
4824" mkdir -p \"$gcroots\"\n"
4825" gcroot=\"$gcroots/guix\"\n"
4826" if [ -L \"$gcroot\" ]\n"
4827" then\n"
4828" rm -v \"$gcroot\"\n"
4829" fi\n"
4830"\n"
4831msgstr ""
4832
4833#. type: example
4834#: guix-git/doc/guix-cookbook.texi:2866
4835#, no-wrap
4836msgid ""
4837" # Miscellaneous packages.\n"
4838" PACKAGES_MAINTENANCE=(\n"
4839" direnv\n"
4840" git\n"
4841" git:send-email\n"
4842" git-cal\n"
4843" gnupg\n"
4844" guile-colorized\n"
4845" guile-readline\n"
4846" less\n"
4847" ncurses\n"
4848" openssh\n"
4849" xdot\n"
4850" )\n"
4851"\n"
4852msgstr ""
4853
4854#. type: example
4855#: guix-git/doc/guix-cookbook.texi:2869
4856#, no-wrap
4857msgid ""
4858" # Environment packages.\n"
4859" PACKAGES=(help2man guile-sqlite3 guile-gcrypt)\n"
4860"\n"
4861msgstr ""
4862
4863#. type: example
4864#: guix-git/doc/guix-cookbook.texi:2872
4865#, no-wrap
4866msgid ""
4867" # Thanks <https://lists.gnu.org/archive/html/guix-devel/2016-09/msg00859.html>\n"
4868" eval \"$(guix environment --search-paths --root=\"$gcroot\" --pure guix --ad-hoc $@{PACKAGES[@@]@} $@{PACKAGES_MAINTENANCE[@@]@} \"$@@\")\"\n"
4869"\n"
4870msgstr ""
4871
4872#. type: example
4873#: guix-git/doc/guix-cookbook.texi:2879
4874#, no-wrap
4875msgid ""
4876" # Predefine configure flags.\n"
4877" configure()\n"
4878" @{\n"
4879" ./configure --localstatedir=/var --prefix=\n"
4880" @}\n"
4881" export_function configure\n"
4882"\n"
4883msgstr ""
4884
4885#. type: example
4886#: guix-git/doc/guix-cookbook.texi:2890
4887#, no-wrap
4888msgid ""
4889" # Run make and optionally build something.\n"
4890" build()\n"
4891" @{\n"
4892" make -j 2\n"
4893" if [ $# -gt 0 ]\n"
4894" then\n"
4895" ./pre-inst-env guix build \"$@@\"\n"
4896" fi\n"
4897" @}\n"
4898" export_function build\n"
4899"\n"
4900msgstr ""
4901
4902#. type: example
4903#: guix-git/doc/guix-cookbook.texi:2897
4904#, no-wrap
4905msgid ""
4906" # Predefine push Git command.\n"
4907" push()\n"
4908" @{\n"
4909" git push --set-upstream origin\n"
4910" @}\n"
4911" export_function push\n"
4912"\n"
4913msgstr ""
4914
4915#. type: example
4916#: guix-git/doc/guix-cookbook.texi:2900
4917#, no-wrap
4918msgid ""
4919" clear # Clean up the screen.\n"
4920" git-cal --author='Your Name' # Show contributions calendar.\n"
4921"\n"
4922msgstr ""
4923
4924#. type: example
4925#: guix-git/doc/guix-cookbook.texi:2908
4926#, no-wrap
4927msgid ""
4928" # Show commands help.\n"
4929" echo \"\n"
4930"build build a package or just a project if no argument provided\n"
4931"configure run ./configure with predefined parameters\n"
4932"push push to upstream Git repository\n"
4933"\"\n"
4934"@}\n"
4935msgstr ""
4936
4937#. type: Plain text
4938#: guix-git/doc/guix-cookbook.texi:2912
4939msgid "Every project containing @file{.envrc} with a string @code{use guix} will have predefined environment variables and procedures."
4940msgstr ""
4941
4942#. type: Plain text
4943#: guix-git/doc/guix-cookbook.texi:2914
4944msgid "Run @command{direnv allow} to setup the environment for the first time."
4945msgstr ""
4946
4947#. type: Plain text
4948#: guix-git/doc/guix-cookbook.texi:2926
4949msgid "Guix is based on the @uref{https://nixos.org/nix/, Nix package manager}, which was designed and implemented by Eelco Dolstra, with contributions from other people (see the @file{nix/AUTHORS} file in Guix.) Nix pioneered functional package management, and promoted unprecedented features, such as transactional package upgrades and rollbacks, per-user profiles, and referentially transparent build processes. Without this work, Guix would not exist."
4950msgstr "Guix se base sur le @uref{https://nixos.org/nix/ gestionnaire de paquets Nix} conçu et implémenté par Eelco Dolstra, avec des contributions d'autres personnes (voir le fichier @file{nix/AUTHORS} dans Guix). Nix a inventé la gestion de paquet fonctionnelle et promu des fonctionnalités sans précédents comme les mises à jour de paquets transactionnelles et les retours en arrière, les profils par utilisateurs et les processus de constructions transparents pour les références. Sans ce travail, Guix n'existerait pas."
4951
4952#. type: Plain text
4953#: guix-git/doc/guix-cookbook.texi:2929
4954msgid "The Nix-based software distributions, Nixpkgs and NixOS, have also been an inspiration for Guix."
4955msgstr "Les distributions logicielles basées sur Nix, Nixpkgs et NixOS, ont aussi été une inspiration pour Guix."
4956
4957#. type: Plain text
4958#: guix-git/doc/guix-cookbook.texi:2935
4959msgid "GNU@tie{}Guix itself is a collective work with contributions from a number of people. See the @file{AUTHORS} file in Guix for more information on these fine people. The @file{THANKS} file lists people who have helped by reporting bugs, taking care of the infrastructure, providing artwork and themes, making suggestions, and more---thank you!"
4960msgstr "GNU@tie{}Guix lui-même est un travail collectif avec des contributions d'un grand nombre de personnes. Voyez le fichier @file{AUTHORS} dans Guix pour plus d'information sur ces personnes de qualité. Le fichier @file{THANKS} liste les personnes qui ont aidé en rapportant des bogues, en prenant soin de l'infrastructure, en fournissant des images et des thèmes, en faisant des suggestions et bien plus. Merci !"
4961
4962#. type: Plain text
4963#: guix-git/doc/guix-cookbook.texi:2938
4964msgid "This document includes adapted sections from articles that have previously been published on the Guix blog at @uref{https://guix.gnu.org/blog}."
4965msgstr ""
4966
4967#. type: cindex
4968#: guix-git/doc/guix-cookbook.texi:2943
4969#, no-wrap
4970msgid "license, GNU Free Documentation License"
4971msgstr "licence, GNU Free Documentation License"
4972
4973#. type: include
4974#: guix-git/doc/guix-cookbook.texi:2944
4975#, no-wrap
4976msgid "fdl-1.3.texi"
4977msgstr "fdl-1.3.texi"
diff --git a/po/doc/local.mk b/po/doc/local.mk
index 751ea5a45f3..a3b90d359a9 100644
--- a/po/doc/local.mk
+++ b/po/doc/local.mk
@@ -24,7 +24,8 @@ DOC_PO_FILES= \
24 %D%/guix-manual.zh_CN.po 24 %D%/guix-manual.zh_CN.po
25 25
26DOC_COOKBOOK_PO_FILES= \ 26DOC_COOKBOOK_PO_FILES= \
27 %D%/guix-cookbook.de.po 27 %D%/guix-cookbook.de.po \
28 %D%/guix-cookbook.fr.po
28 29
29EXTRA_DIST = \ 30EXTRA_DIST = \
30 %D%/guix-manual.pot \ 31 %D%/guix-manual.pot \