guix-cookbook.fr.po 267 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) 2021 the authors of Guix (msgids) and the following authors (msgstr)
  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.
  6. # tisse vert <tissevert+fedora@marvid.fr>, 2021.
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: guix manual checkout\n"
  10. "Report-Msgid-Bugs-To: bug-guix@gnu.org\n"
  11. "POT-Creation-Date: 2021-08-25 23:26+0200\n"
  12. "PO-Revision-Date: 2021-08-26 14:42+0000\n"
  13. "Last-Translator: Julien Lepiller <fedora-account@lepiller.eu>\n"
  14. "Language-Team: French <https://translate.fedoraproject.org/projects/guix/documentation-cookbook/fr/>\n"
  15. "Language: fr\n"
  16. "MIME-Version: 1.0\n"
  17. "Content-Type: text/plain; charset=UTF-8\n"
  18. "Content-Transfer-Encoding: 8bit\n"
  19. "Plural-Forms: nplurals=2; plural=n > 1;\n"
  20. "X-Generator: Weblate 4.8\n"
  21. #. type: Plain text
  22. #: guix-git/doc/guix-cookbook.texi:7
  23. msgid "@documentencoding UTF-8"
  24. msgstr ""
  25. "@documentencoding UTF-8\n"
  26. "@documentlanguage fr\n"
  27. "@frenchspacing on"
  28. #. type: top
  29. #: guix-git/doc/guix-cookbook.texi:7 guix-git/doc/guix-cookbook.texi:36
  30. #: guix-git/doc/guix-cookbook.texi:50
  31. #, no-wrap
  32. msgid "GNU Guix Cookbook"
  33. msgstr "Livre de recettes de GNU Guix"
  34. #. type: copying
  35. #: guix-git/doc/guix-cookbook.texi:21
  36. msgid "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 Christine Lemmer-Webber@* Copyright @copyright{} 2021 Joshua Branson@*"
  37. msgstr ""
  38. "Copyright @copyright{} 2019 Ricardo Wurmus@*\n"
  39. "Copyright @copyright{} 2019 Efraim Flashner@*\n"
  40. "Copyright @copyright{} 2019 Pierre Neidhardt@*\n"
  41. "Copyright @copyright{} 2020 Oleg Pykhalov@*\n"
  42. "Copyright @copyright{} 2020 Matthew Brooks@*\n"
  43. "Copyright @copyright{} 2020 Marcin Karpezo@*\n"
  44. "Copyright @copyright{} 2020 Brice Waegeneire@*\n"
  45. "Copyright @copyright{} 2020 André Batista@*\n"
  46. "Copyright @copyright{} 2020 Christine Lemmer-Webber@*\n"
  47. "Copyright @copyright{} 2021 Joshua Branson@*"
  48. #. type: copying
  49. #: guix-git/doc/guix-cookbook.texi:28
  50. msgid "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''."
  51. msgstr "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 »."
  52. #. type: dircategory
  53. #: guix-git/doc/guix-cookbook.texi:30
  54. #, no-wrap
  55. msgid "System administration"
  56. msgstr "Administration système"
  57. #. type: menuentry
  58. #: guix-git/doc/guix-cookbook.texi:33
  59. msgid "Guix cookbook: (guix-cookbook)"
  60. msgstr "Livre de recettes de Guix: (guix-cookbook.fr)"
  61. #. type: menuentry
  62. #: guix-git/doc/guix-cookbook.texi:33
  63. msgid "Tutorials and examples for GNU Guix."
  64. msgstr "Didacticiels et exemples pour GNU Guix."
  65. #. type: subtitle
  66. #: guix-git/doc/guix-cookbook.texi:37
  67. #, no-wrap
  68. msgid "Tutorials and examples for using the GNU Guix Functional Package Manager"
  69. msgstr "Didacticiels et exemples d'utilisation du gestionnaire de paquets GNU Guix"
  70. #. type: author
  71. #: guix-git/doc/guix-cookbook.texi:38
  72. #, no-wrap
  73. msgid "The GNU Guix Developers"
  74. msgstr "Les développeurs de GNU Guix"
  75. #. type: node
  76. #: guix-git/doc/guix-cookbook.texi:49
  77. #, no-wrap
  78. msgid "Top"
  79. msgstr "Top"
  80. #. type: Plain text
  81. #: guix-git/doc/guix-cookbook.texi:56
  82. msgid "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."
  83. msgstr "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."
  84. #. You can replace the following paragraph with information on
  85. #. type: Plain text
  86. #: guix-git/doc/guix-cookbook.texi:64
  87. msgid "If you would like to translate this document in your native language, consider joining @uref{https://translate.fedoraproject.org/projects/guix/documentation-cookbook, Weblate}."
  88. msgstr "Si vous désirez traduire ce document dans votre langue maternelle, rejoignez @uref{https://translate.fedoraproject.org/projects/guix/documentation-cookbook, Weblate}."
  89. #. type: chapter
  90. #: guix-git/doc/guix-cookbook.texi:71 guix-git/doc/guix-cookbook.texi:80
  91. #: guix-git/doc/guix-cookbook.texi:96 guix-git/doc/guix-cookbook.texi:97
  92. #, no-wrap
  93. msgid "Scheme tutorials"
  94. msgstr "Didacticiels pour Scheme"
  95. #. type: menuentry
  96. #: guix-git/doc/guix-cookbook.texi:71
  97. msgid "Meet your new favorite language!"
  98. msgstr "Découvrez votre nouveau langage préféré !"
  99. #. type: chapter
  100. #: guix-git/doc/guix-cookbook.texi:71 guix-git/doc/guix-cookbook.texi:84
  101. #: guix-git/doc/guix-cookbook.texi:303 guix-git/doc/guix-cookbook.texi:304
  102. #, no-wrap
  103. msgid "Packaging"
  104. msgstr "Empaquetage"
  105. #. type: menuentry
  106. #: guix-git/doc/guix-cookbook.texi:71
  107. msgid "Packaging tutorials"
  108. msgstr "Didacticiel d'empaquetage"
  109. #. type: chapter
  110. #: guix-git/doc/guix-cookbook.texi:71 guix-git/doc/guix-cookbook.texi:88
  111. #: guix-git/doc/guix-cookbook.texi:1346 guix-git/doc/guix-cookbook.texi:1347
  112. #, no-wrap
  113. msgid "System Configuration"
  114. msgstr "Configuration du système"
  115. #. type: menuentry
  116. #: guix-git/doc/guix-cookbook.texi:71
  117. msgid "Customizing the GNU System"
  118. msgstr "Personnalisation du système GNU"
  119. #. type: chapter
  120. #: guix-git/doc/guix-cookbook.texi:71 guix-git/doc/guix-cookbook.texi:2441
  121. #: guix-git/doc/guix-cookbook.texi:2442
  122. #, no-wrap
  123. msgid "Advanced package management"
  124. msgstr "Gestion avancée des paquets"
  125. #. type: menuentry
  126. #: guix-git/doc/guix-cookbook.texi:71
  127. msgid "Power to the users!"
  128. msgstr "Le pouvoir aux utilisateurs !"
  129. #. type: chapter
  130. #: guix-git/doc/guix-cookbook.texi:71 guix-git/doc/guix-cookbook.texi:2839
  131. #: guix-git/doc/guix-cookbook.texi:2840
  132. #, no-wrap
  133. msgid "Environment management"
  134. msgstr "Gestion de l'environnement"
  135. #. type: menuentry
  136. #: guix-git/doc/guix-cookbook.texi:71
  137. msgid "Control environment"
  138. msgstr "Environnement de contrôle"
  139. #. type: chapter
  140. #: guix-git/doc/guix-cookbook.texi:75 guix-git/doc/guix-cookbook.texi:2963
  141. #: guix-git/doc/guix-cookbook.texi:2964
  142. #, no-wrap
  143. msgid "Acknowledgments"
  144. msgstr "Remerciements"
  145. #. type: menuentry
  146. #: guix-git/doc/guix-cookbook.texi:75
  147. msgid "Thanks!"
  148. msgstr "Merci !"
  149. #. type: appendix
  150. #: guix-git/doc/guix-cookbook.texi:75 guix-git/doc/guix-cookbook.texi:2988
  151. #: guix-git/doc/guix-cookbook.texi:2989
  152. #, no-wrap
  153. msgid "GNU Free Documentation License"
  154. msgstr "La licence GNU Free Documentation"
  155. #. type: menuentry
  156. #: guix-git/doc/guix-cookbook.texi:75
  157. msgid "The license of this document."
  158. msgstr "La licence de ce document."
  159. #. type: unnumbered
  160. #: guix-git/doc/guix-cookbook.texi:75 guix-git/doc/guix-cookbook.texi:2994
  161. #: guix-git/doc/guix-cookbook.texi:2995
  162. #, no-wrap
  163. msgid "Concept Index"
  164. msgstr "Index des concepts"
  165. #. type: menuentry
  166. #: guix-git/doc/guix-cookbook.texi:75
  167. msgid "Concepts."
  168. msgstr "Les concepts."
  169. #. type: menuentry
  170. #: guix-git/doc/guix-cookbook.texi:78
  171. msgid "--- The Detailed Node Listing ---"
  172. msgstr "--- Liste détaillée des nœuds ---"
  173. #. type: section
  174. #: guix-git/doc/guix-cookbook.texi:82 guix-git/doc/guix-cookbook.texi:110
  175. #: guix-git/doc/guix-cookbook.texi:111
  176. #, no-wrap
  177. msgid "A Scheme Crash Course"
  178. msgstr "Cours accéléré du language Scheme"
  179. #. type: menuentry
  180. #: guix-git/doc/guix-cookbook.texi:82
  181. msgid "Learn the basics of Scheme"
  182. msgstr "Apprenez les bases du langage Scheme"
  183. #. type: section
  184. #: guix-git/doc/guix-cookbook.texi:86 guix-git/doc/guix-cookbook.texi:315
  185. #: guix-git/doc/guix-cookbook.texi:317 guix-git/doc/guix-cookbook.texi:318
  186. #, no-wrap
  187. msgid "Packaging Tutorial"
  188. msgstr "Didacticiel d'empaquetage"
  189. #. type: menuentry
  190. #: guix-git/doc/guix-cookbook.texi:86
  191. msgid "Let's add a package to Guix!"
  192. msgstr "Ajoutons un paquet à Guix !"
  193. #. type: section
  194. #: guix-git/doc/guix-cookbook.texi:91 guix-git/doc/guix-cookbook.texi:1366
  195. #: guix-git/doc/guix-cookbook.texi:1368 guix-git/doc/guix-cookbook.texi:1369
  196. #, no-wrap
  197. msgid "Auto-Login to a Specific TTY"
  198. msgstr "Connexion automatique à un TTY donné"
  199. #. type: menuentry
  200. #: guix-git/doc/guix-cookbook.texi:91 guix-git/doc/guix-cookbook.texi:1366
  201. msgid "Automatically Login a User to a Specific TTY"
  202. msgstr "Connecter automatiquement un utilisateur sur un TTY donné"
  203. #. type: section
  204. #: guix-git/doc/guix-cookbook.texi:91 guix-git/doc/guix-cookbook.texi:1366
  205. #: guix-git/doc/guix-cookbook.texi:1413 guix-git/doc/guix-cookbook.texi:1414
  206. #, no-wrap
  207. msgid "Customizing the Kernel"
  208. msgstr "Personnalisation du noyau"
  209. #. type: menuentry
  210. #: guix-git/doc/guix-cookbook.texi:91 guix-git/doc/guix-cookbook.texi:1366
  211. msgid "Creating and using a custom Linux kernel on Guix System."
  212. msgstr "Créer et utiliser un noyau Linux personnalisé sur le système Guix."
  213. #. type: Plain text
  214. #: guix-git/doc/guix-cookbook.texi:103
  215. msgid "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."
  216. msgstr "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."
  217. #. type: Plain text
  218. #: guix-git/doc/guix-cookbook.texi:107
  219. msgid "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!"
  220. msgstr "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 !"
  221. #. type: Plain text
  222. #: guix-git/doc/guix-cookbook.texi:109
  223. msgid "Let's get started!"
  224. msgstr "C'est parti !"
  225. #. type: cindex
  226. #: guix-git/doc/guix-cookbook.texi:113
  227. #, no-wrap
  228. msgid "Scheme, crash course"
  229. msgstr "Scheme, cours accéléré"
  230. #. type: Plain text
  231. #: guix-git/doc/guix-cookbook.texi:119
  232. msgid "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."
  233. msgstr "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."
  234. #. type: Plain text
  235. #: guix-git/doc/guix-cookbook.texi:122
  236. msgid "Alternatively you can also run @code{guix environment --ad-hoc guile -- guile} if you'd rather not have Guile installed in your user profile."
  237. msgstr "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."
  238. #. type: Plain text
  239. #: guix-git/doc/guix-cookbook.texi:128
  240. msgid "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."
  241. msgstr "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."
  242. #. type: itemize
  243. #: guix-git/doc/guix-cookbook.texi:136
  244. msgid "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."
  245. msgstr "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 »."
  246. #. type: itemize
  247. #: guix-git/doc/guix-cookbook.texi:138
  248. msgid "Examples of valid expressions:"
  249. msgstr "Voici des exemples d'expressions valides :"
  250. #. type: lisp
  251. #: guix-git/doc/guix-cookbook.texi:142
  252. #, no-wrap
  253. msgid ""
  254. "\"Hello World!\"\n"
  255. "@result{} \"Hello World!\"\n"
  256. "\n"
  257. msgstr ""
  258. "\"Bonjour le monde !\"\n"
  259. "@result{} \"Bonjour le monde !\"\n"
  260. "\n"
  261. #. type: lisp
  262. #: guix-git/doc/guix-cookbook.texi:145
  263. #, no-wrap
  264. msgid ""
  265. "17\n"
  266. "@result{} 17\n"
  267. "\n"
  268. msgstr ""
  269. "17\n"
  270. "@result{} 17\n"
  271. "\n"
  272. #. type: lisp
  273. #: guix-git/doc/guix-cookbook.texi:149
  274. #, no-wrap
  275. msgid ""
  276. "(display (string-append \"Hello \" \"Guix\" \"\\n\"))\n"
  277. "@print{} Hello Guix!\n"
  278. "@result{} #<unspecified>\n"
  279. msgstr ""
  280. "(display (string-append \"Bonjour \" \"Guix\" \"\\n\"))\n"
  281. "@print{} Bonjour Guix\n"
  282. "@result{} #<unspecified>\n"
  283. #. type: itemize
  284. #: guix-git/doc/guix-cookbook.texi:156
  285. msgid "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."
  286. msgstr "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."
  287. #. type: itemize
  288. #: guix-git/doc/guix-cookbook.texi:159
  289. msgid "Anonymous functions are declared with the @code{lambda} term:"
  290. msgstr "On peut déclarer des fonctions anonymes avec le terme @code{lambda} :"
  291. #. type: lisp
  292. #: guix-git/doc/guix-cookbook.texi:163
  293. #, no-wrap
  294. msgid ""
  295. "(lambda (x) (* x x))\n"
  296. "@result{} #<procedure 120e348 at <unknown port>:24:0 (x)>\n"
  297. msgstr ""
  298. "(lambda (x) (* x x))\n"
  299. "@result{} #<procedure 120e348 at <unknown port>:24:0 (x)>\n"
  300. #. type: itemize
  301. #: guix-git/doc/guix-cookbook.texi:168
  302. msgid "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:"
  303. msgstr "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 :"
  304. #. type: lisp
  305. #: guix-git/doc/guix-cookbook.texi:172
  306. #, no-wrap
  307. msgid ""
  308. "((lambda (x) (* x x)) 3)\n"
  309. "@result{} 9\n"
  310. msgstr ""
  311. "((lambda (x) (* x x)) 3)\n"
  312. "@result{} 9\n"
  313. #. type: itemize
  314. #: guix-git/doc/guix-cookbook.texi:176
  315. msgid "Anything can be assigned a global name with @code{define}:"
  316. msgstr "On peut assigner un nom global à tout ce qu'on veut avec @code{define} :"
  317. #. type: lisp
  318. #: guix-git/doc/guix-cookbook.texi:182
  319. #, no-wrap
  320. msgid ""
  321. "(define a 3)\n"
  322. "(define square (lambda (x) (* x x)))\n"
  323. "(square a)\n"
  324. "@result{} 9\n"
  325. msgstr ""
  326. "(define a 3)\n"
  327. "(define square (lambda (x) (* x x)))\n"
  328. "(square a)\n"
  329. "@result{} 9\n"
  330. #. type: itemize
  331. #: guix-git/doc/guix-cookbook.texi:186
  332. msgid "Procedures can be defined more concisely with the following syntax:"
  333. msgstr "On peut définir des procédure de manière plus concise avec la syntaxe suivante :"
  334. #. type: lisp
  335. #: guix-git/doc/guix-cookbook.texi:189
  336. #, no-wrap
  337. msgid "(define (square x) (* x x))\n"
  338. msgstr "(define (square x) (* x x))\n"
  339. #. type: itemize
  340. #: guix-git/doc/guix-cookbook.texi:193
  341. msgid "A list structure can be created with the @code{list} procedure:"
  342. msgstr "On peut créer une structure de liste avec la procédure @code{list} :"
  343. #. type: lisp
  344. #: guix-git/doc/guix-cookbook.texi:197
  345. #, no-wrap
  346. msgid ""
  347. "(list 2 a 5 7)\n"
  348. "@result{} (2 3 5 7)\n"
  349. msgstr ""
  350. "(list 2 a 5 7)\n"
  351. "@result{} (2 3 5 7)\n"
  352. #. type: itemize
  353. #: guix-git/doc/guix-cookbook.texi:204
  354. msgid "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."
  355. msgstr "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."
  356. #. type: lisp
  357. #: guix-git/doc/guix-cookbook.texi:208
  358. #, no-wrap
  359. msgid ""
  360. "'(display (string-append \"Hello \" \"Guix\" \"\\n\"))\n"
  361. "@result{} (display (string-append \"Hello \" \"Guix\" \"\\n\"))\n"
  362. "\n"
  363. msgstr ""
  364. "'(display (string-append \"Bonjour \" \"Guix\" \"\\n\"))\n"
  365. "@result{} (display (string-append \"Bonjour \" \"Guix\" \"\\n\"))\n"
  366. "\n"
  367. #. type: lisp
  368. #: guix-git/doc/guix-cookbook.texi:211
  369. #, no-wrap
  370. msgid ""
  371. "'(2 a 5 7)\n"
  372. "@result{} (2 a 5 7)\n"
  373. msgstr ""
  374. "'(2 a 5 7)\n"
  375. "@result{} (2 a 5 7)\n"
  376. #. type: itemize
  377. #: guix-git/doc/guix-cookbook.texi:217
  378. msgid "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."
  379. msgstr "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."
  380. #. type: lisp
  381. #: guix-git/doc/guix-cookbook.texi:221
  382. #, no-wrap
  383. msgid ""
  384. "`(2 a 5 7 (2 ,a 5 ,(+ a 4)))\n"
  385. "@result{} (2 a 5 7 (2 3 5 7))\n"
  386. msgstr ""
  387. "`(2 a 5 7 (2 ,a 5 ,(+ a 4)))\n"
  388. "@result{} (2 a 5 7 (2 3 5 7))\n"
  389. #. type: itemize
  390. #: guix-git/doc/guix-cookbook.texi:225
  391. msgid "Note that the above result is a list of mixed elements: numbers, symbols (here @code{a}) and the last element is a list itself."
  392. msgstr "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."
  393. #. type: itemize
  394. #: guix-git/doc/guix-cookbook.texi:229
  395. msgid "Multiple variables can be named locally with @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual}):"
  396. msgstr "On peut nommer localement plusieurs variables avec @code{let} (@pxref{Local Bindings,,, guile, GNU Guile Reference Manual}) :"
  397. #. type: lisp
  398. #: guix-git/doc/guix-cookbook.texi:236
  399. #, no-wrap
  400. msgid ""
  401. "(define x 10)\n"
  402. "(let ((x 2)\n"
  403. " (y 3))\n"
  404. " (list x y))\n"
  405. "@result{} (2 3)\n"
  406. "\n"
  407. msgstr ""
  408. "(define x 10)\n"
  409. "(let ((x 2)\n"
  410. " (y 3))\n"
  411. " (list x y))\n"
  412. "@result{} (2 3)\n"
  413. "\n"
  414. #. type: lisp
  415. #: guix-git/doc/guix-cookbook.texi:239
  416. #, no-wrap
  417. msgid ""
  418. "x\n"
  419. "@result{} 10\n"
  420. "\n"
  421. msgstr ""
  422. "x\n"
  423. "@result{} 10\n"
  424. "\n"
  425. #. type: lisp
  426. #: guix-git/doc/guix-cookbook.texi:242
  427. #, no-wrap
  428. msgid ""
  429. "y\n"
  430. "@error{} In procedure module-lookup: Unbound variable: y\n"
  431. msgstr ""
  432. "y\n"
  433. "@error{} In procedure module-lookup: Unbound variable: y\n"
  434. #. type: itemize
  435. #: guix-git/doc/guix-cookbook.texi:246
  436. msgid "Use @code{let*} to allow later variable declarations to refer to earlier definitions."
  437. msgstr "On peut utiliser @code{let*} pour permettre au déclarations de variables ultérieures d'utiliser les définitions précédentes."
  438. #. type: lisp
  439. #: guix-git/doc/guix-cookbook.texi:252
  440. #, no-wrap
  441. msgid ""
  442. "(let* ((x 2)\n"
  443. " (y (* x 3)))\n"
  444. " (list x y))\n"
  445. "@result{} (2 6)\n"
  446. msgstr ""
  447. "(let* ((x 2)\n"
  448. " (y (* x 3)))\n"
  449. " (list x y))\n"
  450. "@result{} (2 6)\n"
  451. #. type: itemize
  452. #: guix-git/doc/guix-cookbook.texi:259
  453. msgid "@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}."
  454. msgstr "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}."
  455. #. type: itemize
  456. #: guix-git/doc/guix-cookbook.texi:264
  457. msgid "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."
  458. msgstr "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."
  459. #. type: itemize
  460. #: guix-git/doc/guix-cookbook.texi:268
  461. msgid "Modules are created with @code{define-module} (@pxref{Creating Guile Modules,,, guile, GNU Guile Reference Manual}). For instance"
  462. msgstr "On peut créer des modules avec @code{define-module} (@pxref{Creating Guile Modules,,, guile, GNU Guile Reference Manual}). Par exemple :"
  463. #. type: lisp
  464. #: guix-git/doc/guix-cookbook.texi:274
  465. #, no-wrap
  466. msgid ""
  467. "(define-module (guix build-system ruby)\n"
  468. " #:use-module (guix store)\n"
  469. " #:export (ruby-build\n"
  470. " ruby-build-system))\n"
  471. msgstr ""
  472. "(define-module (guix build-system ruby)\n"
  473. " #:use-module (guix store)\n"
  474. " #:export (ruby-build\n"
  475. " ruby-build-system))\n"
  476. #. type: itemize
  477. #: guix-git/doc/guix-cookbook.texi:280
  478. msgid "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}."
  479. msgstr "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}."
  480. #. type: Plain text
  481. #: guix-git/doc/guix-cookbook.texi:285
  482. msgid "For a more detailed introduction, check out @uref{http://www.troubleshooters.com/codecorn/scheme_guile/hello.htm, Scheme at a Glance}, by Steve Litt."
  483. msgstr "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."
  484. #. type: Plain text
  485. #: guix-git/doc/guix-cookbook.texi:297
  486. msgid "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}."
  487. msgstr "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}."
  488. #. type: Plain text
  489. #: guix-git/doc/guix-cookbook.texi:300
  490. msgid "You'll find more books, tutorials and other resources at @url{https://schemers.org/}."
  491. msgstr "Vous trouverez plus de livres, de didacticiels et d'autres ressources sur @url{https://schemers.org/}."
  492. #. type: cindex
  493. #: guix-git/doc/guix-cookbook.texi:306
  494. #, no-wrap
  495. msgid "packaging"
  496. msgstr "empaquetage"
  497. #. type: Plain text
  498. #: guix-git/doc/guix-cookbook.texi:312
  499. msgid "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."
  500. msgstr "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."
  501. #. type: menuentry
  502. #: guix-git/doc/guix-cookbook.texi:315
  503. msgid "A tutorial on how to add packages to Guix."
  504. msgstr "Un didacticiel sur la manière d'ajouter des paquets à Guix."
  505. #. type: Plain text
  506. #: guix-git/doc/guix-cookbook.texi:326
  507. msgid "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}."
  508. msgstr "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}."
  509. #. type: Plain text
  510. #: guix-git/doc/guix-cookbook.texi:330
  511. msgid "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."
  512. msgstr "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."
  513. #. type: itemize
  514. #: guix-git/doc/guix-cookbook.texi:335
  515. msgid "Use functions, structures, macros and all of Scheme expressiveness for your package definitions."
  516. msgstr "Vous pouvez utiliser des fonctions, des structures, des macros et toute l'expressivité de Scheme dans vos définitions de paquets."
  517. #. type: itemize
  518. #: guix-git/doc/guix-cookbook.texi:339
  519. msgid "Inheritance makes it easy to customize a package by inheriting from it and modifying only what is needed."
  520. msgstr "L'héritage facilite la personnalisation d'un paquet en héritant d'un autre et en modifiant uniquement les points nécessaires."
  521. #. type: itemize
  522. #: guix-git/doc/guix-cookbook.texi:349
  523. msgid "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!"
  524. msgstr "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 !"
  525. #. type: Plain text
  526. #: guix-git/doc/guix-cookbook.texi:355
  527. msgid "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."
  528. msgstr "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."
  529. #. type: subsection
  530. #: guix-git/doc/guix-cookbook.texi:356 guix-git/doc/guix-cookbook.texi:357
  531. #, no-wrap
  532. msgid "A ``Hello World'' package"
  533. msgstr "Un paquet « hello world »"
  534. #. type: Plain text
  535. #: guix-git/doc/guix-cookbook.texi:362
  536. msgid "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."
  537. msgstr "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."
  538. #. type: Plain text
  539. #: guix-git/doc/guix-cookbook.texi:368
  540. msgid "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:"
  541. msgstr "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 :"
  542. #. type: lisp
  543. #: guix-git/doc/guix-cookbook.texi:389
  544. #, no-wrap
  545. msgid ""
  546. "(define-public hello\n"
  547. " (package\n"
  548. " (name \"hello\")\n"
  549. " (version \"2.10\")\n"
  550. " (source (origin\n"
  551. " (method url-fetch)\n"
  552. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  553. " \".tar.gz\"))\n"
  554. " (sha256\n"
  555. " (base32\n"
  556. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  557. " (build-system gnu-build-system)\n"
  558. " (synopsis \"Hello, GNU world: An example GNU package\")\n"
  559. " (description\n"
  560. " \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
  561. "serves as an example of standard GNU coding practices. As such, it supports\n"
  562. "command-line arguments, multiple languages, and so on.\")\n"
  563. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  564. " (license gpl3+)))\n"
  565. msgstr ""
  566. "(define-public hello\n"
  567. " (package\n"
  568. " (name \"hello\")\n"
  569. " (version \"2.10\")\n"
  570. " (source (origin\n"
  571. " (method url-fetch)\n"
  572. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  573. " \".tar.gz\"))\n"
  574. " (sha256\n"
  575. " (base32\n"
  576. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  577. " (build-system gnu-build-system)\n"
  578. " (synopsis \"Hello, GNU world: An example GNU package\")\n"
  579. " (description\n"
  580. " \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
  581. "serves as an example of standard GNU coding practices. As such, it supports\n"
  582. "command-line arguments, multiple languages, and so on.\")\n"
  583. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  584. " (license gpl3+)))\n"
  585. #. type: Plain text
  586. #: guix-git/doc/guix-cookbook.texi:393
  587. msgid "As you can see, most of it is rather straightforward. But let's review the fields together:"
  588. msgstr "Comme vous pouvez le voir, la plus grosse partie est assez simple. Mais examinons les champs ensemble :"
  589. #. type: item
  590. #: guix-git/doc/guix-cookbook.texi:395
  591. #, no-wrap
  592. msgid "name"
  593. msgstr "name"
  594. #. type: table
  595. #: guix-git/doc/guix-cookbook.texi:398
  596. msgid "The project name. Using Scheme conventions, we prefer to keep it lower case, without underscore and using dash-separated words."
  597. msgstr "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."
  598. #. type: item
  599. #: guix-git/doc/guix-cookbook.texi:399
  600. #, no-wrap
  601. msgid "source"
  602. msgstr "source"
  603. #. type: table
  604. #: guix-git/doc/guix-cookbook.texi:402
  605. msgid "This field contains a description of the source code origin. The @code{origin} record contains these fields:"
  606. msgstr "Ce champ contient une description de l'origine du code source. L'enregistrement @code{origin} contient ces champs :"
  607. #. type: item
  608. #: guix-git/doc/guix-cookbook.texi:404
  609. #, no-wrap
  610. msgid "The method, here @code{url-fetch} to download via HTTP/FTP, but other methods"
  611. msgstr "La méthode, ici @code{url-fetch} pour télécharger via HTTP/FTP, mais d'autres méthodes"
  612. #. type: enumerate
  613. #: guix-git/doc/guix-cookbook.texi:406
  614. msgid "exist, such as @code{git-fetch} for Git repositories."
  615. msgstr "existent, comme @code{git-fetch} pour les dépôts Git."
  616. #. type: item
  617. #: guix-git/doc/guix-cookbook.texi:406
  618. #, no-wrap
  619. msgid "The URI, which is typically some @code{https://} location for @code{url-fetch}. Here"
  620. msgstr "L'URI, qui est typiquement un emplacement @code{https://} pour @code{url-fetch}. Ici"
  621. #. type: enumerate
  622. #: guix-git/doc/guix-cookbook.texi:409
  623. msgid "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."
  624. msgstr "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."
  625. #. type: item
  626. #: guix-git/doc/guix-cookbook.texi:409
  627. #, no-wrap
  628. msgid "The @code{sha256} checksum of the requested file. This is essential to ensure"
  629. msgstr "La somme de contrôle @code{sha256} du fichier demandé. C'est essentiel pour s'assurer"
  630. #. type: enumerate
  631. #: guix-git/doc/guix-cookbook.texi:412
  632. msgid "the source is not corrupted. Note that Guix works with base32 strings, hence the call to the @code{base32} function."
  633. msgstr "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}."
  634. #. type: item
  635. #: guix-git/doc/guix-cookbook.texi:414
  636. #, no-wrap
  637. msgid "build-system"
  638. msgstr "build-system"
  639. #. type: table
  640. #: guix-git/doc/guix-cookbook.texi:423
  641. msgid "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})."
  642. msgstr "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})."
  643. #. type: item
  644. #: guix-git/doc/guix-cookbook.texi:424
  645. #, no-wrap
  646. msgid "synopsis"
  647. msgstr "synopsis"
  648. #. type: table
  649. #: guix-git/doc/guix-cookbook.texi:427
  650. msgid "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."
  651. msgstr "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."
  652. #. type: item
  653. #: guix-git/doc/guix-cookbook.texi:428
  654. #, no-wrap
  655. msgid "description"
  656. msgstr "description"
  657. #. type: table
  658. #: guix-git/doc/guix-cookbook.texi:431
  659. msgid "Same as for the synopsis, it's fine to re-use the project description from the homepage. Note that Guix uses Texinfo syntax."
  660. msgstr "Comme le synopsis, vous pouvez réutiliser la description de la page d'accueil du projet. Remarquez que Guix utilise la syntaxe Texinfo."
  661. #. type: item
  662. #: guix-git/doc/guix-cookbook.texi:432
  663. #, no-wrap
  664. msgid "home-page"
  665. msgstr "home-page"
  666. #. type: table
  667. #: guix-git/doc/guix-cookbook.texi:434
  668. msgid "Use HTTPS if available."
  669. msgstr "Utilisez l'adresse en HTTPS si elle est disponible."
  670. #. type: item
  671. #: guix-git/doc/guix-cookbook.texi:435
  672. #, no-wrap
  673. msgid "license"
  674. msgstr "license"
  675. #. type: table
  676. #: guix-git/doc/guix-cookbook.texi:438
  677. msgid "See @code{guix/licenses.scm} in the project source for a full list of available licenses."
  678. msgstr "Voir @code{guix/licenses.scm} dans les sources du projet pour une liste complète des licences disponibles."
  679. #. type: Plain text
  680. #: guix-git/doc/guix-cookbook.texi:442
  681. msgid "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."
  682. msgstr "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."
  683. #. type: Plain text
  684. #: guix-git/doc/guix-cookbook.texi:446
  685. msgid "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."
  686. msgstr "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."
  687. #. type: Plain text
  688. #: guix-git/doc/guix-cookbook.texi:448
  689. msgid "Save the following to a file @file{my-hello.scm}."
  690. msgstr "Enregistrez ce qui suit dans un fichier nommé @file{my-hello.scm}."
  691. #. type: lisp
  692. #: guix-git/doc/guix-cookbook.texi:454
  693. #, no-wrap
  694. msgid ""
  695. "(use-modules (guix packages)\n"
  696. " (guix download)\n"
  697. " (guix build-system gnu)\n"
  698. " (guix licenses))\n"
  699. "\n"
  700. msgstr ""
  701. "(use-modules (guix packages)\n"
  702. " (guix download)\n"
  703. " (guix build-system gnu)\n"
  704. " (guix licenses))\n"
  705. "\n"
  706. #. type: lisp
  707. #: guix-git/doc/guix-cookbook.texi:473
  708. #, no-wrap
  709. msgid ""
  710. "(package\n"
  711. " (name \"my-hello\")\n"
  712. " (version \"2.10\")\n"
  713. " (source (origin\n"
  714. " (method url-fetch)\n"
  715. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  716. " \".tar.gz\"))\n"
  717. " (sha256\n"
  718. " (base32\n"
  719. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  720. " (build-system gnu-build-system)\n"
  721. " (synopsis \"Hello, Guix world: An example custom Guix package\")\n"
  722. " (description\n"
  723. " \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
  724. "serves as an example of standard GNU coding practices. As such, it supports\n"
  725. "command-line arguments, multiple languages, and so on.\")\n"
  726. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  727. " (license gpl3+))\n"
  728. msgstr ""
  729. "(package\n"
  730. " (name \"my-hello\")\n"
  731. " (version \"2.10\")\n"
  732. " (source (origin\n"
  733. " (method url-fetch)\n"
  734. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  735. " \".tar.gz\"))\n"
  736. " (sha256\n"
  737. " (base32\n"
  738. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  739. " (build-system gnu-build-system)\n"
  740. " (synopsis \"Hello, Guix world: An example custom Guix package\")\n"
  741. " (description\n"
  742. " \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
  743. "serves as an example of standard GNU coding practices. As such, it supports\n"
  744. "command-line arguments, multiple languages, and so on.\")\n"
  745. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  746. " (license gpl3+))\n"
  747. #. type: Plain text
  748. #: guix-git/doc/guix-cookbook.texi:476
  749. msgid "We will explain the extra code in a moment."
  750. msgstr "Nous allons expliquer le code supplémentaire dans un moment."
  751. #. type: Plain text
  752. #: guix-git/doc/guix-cookbook.texi:483
  753. msgid "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."
  754. msgstr "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."
  755. #. type: Plain text
  756. #: guix-git/doc/guix-cookbook.texi:486
  757. msgid "Thankfully, Guix can automate this task for us; all we need is to provide the URI:"
  758. msgstr "Heureusement, Guix peut automatiser cette tache pour nous ; tout ce qu'on doit faire est de lui fournir l'URI :"
  759. #. This is example shell output.
  760. #. type: example
  761. #: guix-git/doc/guix-cookbook.texi:490
  762. #, no-wrap
  763. msgid ""
  764. "$ guix download mirror://gnu/hello/hello-2.10.tar.gz\n"
  765. "\n"
  766. msgstr ""
  767. "$ guix download mirror://gnu/hello/hello-2.10.tar.gz\n"
  768. "\n"
  769. #. type: example
  770. #: guix-git/doc/guix-cookbook.texi:497
  771. #, no-wrap
  772. msgid ""
  773. "Starting download of /tmp/guix-file.JLYgL7\n"
  774. "From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz...\n"
  775. "following redirection to `https://mirror.ibcp.fr/pub/gnu/hello/hello-2.10.tar.gz'...\n"
  776. " …10.tar.gz 709KiB 2.5MiB/s 00:00 [##################] 100.0%\n"
  777. "/gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz\n"
  778. "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\n"
  779. msgstr ""
  780. "Starting download of /tmp/guix-file.JLYgL7\n"
  781. "From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz...\n"
  782. "following redirection to `https://mirror.ibcp.fr/pub/gnu/hello/hello-2.10.tar.gz'...\n"
  783. " …10.tar.gz 709KiB 2.5MiB/s 00:00 [##################] 100.0%\n"
  784. "/gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz\n"
  785. "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\n"
  786. #. type: Plain text
  787. #: guix-git/doc/guix-cookbook.texi:502
  788. msgid "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."
  789. msgstr "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."
  790. #. type: Plain text
  791. #: guix-git/doc/guix-cookbook.texi:506
  792. msgid "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:"
  793. msgstr "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 :"
  794. #. This is example shell output.
  795. #. type: example
  796. #: guix-git/doc/guix-cookbook.texi:510
  797. #, no-wrap
  798. msgid ""
  799. "$ guix download mirror://gnu/hello/hello-2.10.tar.gz.sig\n"
  800. "\n"
  801. msgstr ""
  802. "$ guix download mirror://gnu/hello/hello-2.10.tar.gz.sig\n"
  803. "\n"
  804. #. type: example
  805. #: guix-git/doc/guix-cookbook.texi:525
  806. #, no-wrap
  807. msgid ""
  808. "Starting download of /tmp/guix-file.03tFfb\n"
  809. "From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz.sig...\n"
  810. "following redirection to `https://ftp.igh.cnrs.fr/pub/gnu/hello/hello-2.10.tar.gz.sig'...\n"
  811. " ….tar.gz.sig 819B 1.2MiB/s 00:00 [##################] 100.0%\n"
  812. "/gnu/store/rzs8wba9ka7grrmgcpfyxvs58mly0sx6-hello-2.10.tar.gz.sig\n"
  813. "0q0v86n3y38z17rl146gdakw9xc4mcscpk8dscs412j22glrv9jf\n"
  814. "$ gpg --verify /gnu/store/rzs8wba9ka7grrmgcpfyxvs58mly0sx6-hello-2.10.tar.gz.sig /gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz\n"
  815. "gpg: Signature made Sun 16 Nov 2014 01:08:37 PM CET\n"
  816. "gpg: using RSA key A9553245FDE9B739\n"
  817. "gpg: Good signature from \"Sami Kerola <kerolasa@@iki.fi>\" [unknown]\n"
  818. "gpg: aka \"Sami Kerola (http://www.iki.fi/kerolasa/) <kerolasa@@iki.fi>\" [unknown]\n"
  819. "gpg: WARNING: This key is not certified with a trusted signature!\n"
  820. "gpg: There is no indication that the signature belongs to the owner.\n"
  821. "Primary key fingerprint: 8ED3 96E3 7E38 D471 A005 30D3 A955 3245 FDE9 B739\n"
  822. msgstr ""
  823. "Starting download of /tmp/guix-file.03tFfb\n"
  824. "From https://ftpmirror.gnu.org/gnu/hello/hello-2.10.tar.gz.sig...\n"
  825. "following redirection to `https://ftp.igh.cnrs.fr/pub/gnu/hello/hello-2.10.tar.gz.sig'...\n"
  826. " ….tar.gz.sig 819B 1.2MiB/s 00:00 [##################] 100.0%\n"
  827. "/gnu/store/rzs8wba9ka7grrmgcpfyxvs58mly0sx6-hello-2.10.tar.gz.sig\n"
  828. "0q0v86n3y38z17rl146gdakw9xc4mcscpk8dscs412j22glrv9jf\n"
  829. "$ gpg --verify /gnu/store/rzs8wba9ka7grrmgcpfyxvs58mly0sx6-hello-2.10.tar.gz.sig /gnu/store/hbdalsf5lpf01x4dcknwx6xbn6n5km6k-hello-2.10.tar.gz\n"
  830. "gpg: Signature faite le dim. 16 nov. 2014 13:08:37 CET\n"
  831. "gpg: avec la clef RSA A9553245FDE9B739\n"
  832. "gpg: Bonne signature de « Sami Kerola (https://www.iki.fi/kerolasa/) <kerolasa@@iki.fi> » [inconnu]\n"
  833. "gpg: Attention : cette clef n'est pas certifiée avec une signature de confiance.\n"
  834. "gpg: Rien n'indique que la signature appartient à son propriétaire.\n"
  835. "Empreinte de clef principale : 8ED3 96E3 7E38 D471 A005 30D3 A955 3245 FDE9 B739\n"
  836. #. type: Plain text
  837. #: guix-git/doc/guix-cookbook.texi:528
  838. msgid "You can then happily run"
  839. msgstr "Vous pouvez ensuite lancer"
  840. #. Do not translate this command
  841. #. type: example
  842. #: guix-git/doc/guix-cookbook.texi:532
  843. #, no-wrap
  844. msgid "$ guix package --install-from-file=my-hello.scm\n"
  845. msgstr "$ guix package --install-from-file=my-hello.scm\n"
  846. #. type: Plain text
  847. #: guix-git/doc/guix-cookbook.texi:535
  848. msgid "You should now have @code{my-hello} in your profile!"
  849. msgstr "Vous devriez maintenant avoir @code{my-hello} dans votre profil !"
  850. #. Do not translate this command
  851. #. type: example
  852. #: guix-git/doc/guix-cookbook.texi:541
  853. #, no-wrap
  854. msgid ""
  855. "$ guix package --list-installed=my-hello\n"
  856. "my-hello\t2.10\tout\n"
  857. "/gnu/store/f1db2mfm8syb8qvc357c53slbvf1g9m9-my-hello-2.10\n"
  858. msgstr ""
  859. "$ guix package --list-installed=my-hello\n"
  860. "my-hello\t2.10\tout\n"
  861. "/gnu/store/f1db2mfm8syb8qvc357c53slbvf1g9m9-my-hello-2.10\n"
  862. #. type: Plain text
  863. #: guix-git/doc/guix-cookbook.texi:546
  864. msgid "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."
  865. msgstr "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."
  866. #. type: subsection
  867. #: guix-git/doc/guix-cookbook.texi:547 guix-git/doc/guix-cookbook.texi:548
  868. #, no-wrap
  869. msgid "Setup"
  870. msgstr "Configuration"
  871. #. type: Plain text
  872. #: guix-git/doc/guix-cookbook.texi:553
  873. msgid "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."
  874. msgstr "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."
  875. #. type: Plain text
  876. #: guix-git/doc/guix-cookbook.texi:555
  877. msgid "There are several ways to set up a Guix packaging environment."
  878. msgstr "Il y a plusieurs moyens de mettre en place un environnement d'empaquetage pour Guix."
  879. #. type: Plain text
  880. #: guix-git/doc/guix-cookbook.texi:558
  881. msgid "We recommend you work directly on the Guix source checkout since it makes it easier for everyone to contribute to the project."
  882. msgstr "Nous vous recommandons de travailler directement dans le dépôt des sources de Guix car ça facilitera la contribution au projet."
  883. #. type: Plain text
  884. #: guix-git/doc/guix-cookbook.texi:560
  885. msgid "But first, let's look at other possibilities."
  886. msgstr "Mais d'abord, voyons les autres possibilités."
  887. #. type: subsubsection
  888. #: guix-git/doc/guix-cookbook.texi:561 guix-git/doc/guix-cookbook.texi:562
  889. #, no-wrap
  890. msgid "Local file"
  891. msgstr "Fichier local"
  892. #. type: Plain text
  893. #: guix-git/doc/guix-cookbook.texi:567
  894. msgid "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}:"
  895. msgstr "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} :"
  896. #. type: example
  897. #: guix-git/doc/guix-cookbook.texi:572
  898. #, no-wrap
  899. msgid ""
  900. " -f, --install-from-file=FILE\n"
  901. " install the package that the code within FILE\n"
  902. " evaluates to\n"
  903. msgstr ""
  904. " -f, --install-from-file=FICHIER\n"
  905. " installer le paquet évalué par le code dans\n"
  906. " FICHIER\n"
  907. #. type: Plain text
  908. #: guix-git/doc/guix-cookbook.texi:576
  909. msgid "Thus the last expression @emph{must} return a package, which is the case in our earlier example."
  910. msgstr "Ainsi, la dernière expression @emph{doit} renvoyer un paquet, ce qui est le cas dans notre exemple précédent."
  911. #. type: Plain text
  912. #: guix-git/doc/guix-cookbook.texi:580
  913. msgid "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."
  914. msgstr "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."
  915. #. type: node
  916. #: guix-git/doc/guix-cookbook.texi:581
  917. #, no-wrap
  918. msgid "@samp{GUIX_PACKAGE_PATH}"
  919. msgstr "@samp{GUIX_PACKAGE_PATH}"
  920. #. type: samp{#1}
  921. #: guix-git/doc/guix-cookbook.texi:582
  922. #, no-wrap
  923. msgid "GUIX_PACKAGE_PATH"
  924. msgstr "GUIX_PACKAGE_PATH"
  925. #. type: emph{#1}
  926. #: guix-git/doc/guix-cookbook.texi:586
  927. msgid "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."
  928. msgstr "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."
  929. #. type: Plain text
  930. #: guix-git/doc/guix-cookbook.texi:590
  931. msgid "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."
  932. msgstr "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."
  933. #. type: Plain text
  934. #: guix-git/doc/guix-cookbook.texi:593
  935. msgid "Guix makes it possible to streamline the process by adding as many ``package declaration directories'' as you want."
  936. msgstr "Guix permet d'uniformiser le processus en ajoutant autant de « répertoires de déclaration de paquets » que vous le souhaitez."
  937. #. type: Plain text
  938. #: guix-git/doc/guix-cookbook.texi:596
  939. msgid "Create a directory, say @file{~/guix-packages} and add it to the @samp{GUIX_PACKAGE_PATH} environment variable:"
  940. msgstr "Créez un répertoire, disons @file{~/guix-packages} et ajoutez-le à la variable d'environnement @samp{GUIX_PACKAGE_PATH} :"
  941. #. type: example
  942. #: guix-git/doc/guix-cookbook.texi:600
  943. #, no-wrap
  944. msgid ""
  945. "$ mkdir ~/guix-packages\n"
  946. "$ export GUIX_PACKAGE_PATH=~/guix-packages\n"
  947. msgstr ""
  948. "$ mkdir ~/guix-packages\n"
  949. "$ export GUIX_PACKAGE_PATH=~/guix-packages\n"
  950. #. type: Plain text
  951. #: guix-git/doc/guix-cookbook.texi:603
  952. msgid "To add several directories, separate them with a colon (@code{:})."
  953. msgstr "Pour ajouter plusieurs répertoires, séparez-les avec un deux-points (@code{:})."
  954. #. type: Plain text
  955. #: guix-git/doc/guix-cookbook.texi:605
  956. msgid "Our previous @samp{my-hello} needs some adjustments though:"
  957. msgstr "Notre @samp{my-hello} précédent doit être légèrement ajusté :"
  958. #. type: lisp
  959. #: guix-git/doc/guix-cookbook.texi:612
  960. #, no-wrap
  961. msgid ""
  962. "(define-module (my-hello)\n"
  963. " #:use-module (guix licenses)\n"
  964. " #:use-module (guix packages)\n"
  965. " #:use-module (guix build-system gnu)\n"
  966. " #:use-module (guix download))\n"
  967. "\n"
  968. msgstr ""
  969. "(define-module (my-hello)\n"
  970. " #:use-module (guix licenses)\n"
  971. " #:use-module (guix packages)\n"
  972. " #:use-module (guix build-system gnu)\n"
  973. " #:use-module (guix download))\n"
  974. "\n"
  975. #. type: lisp
  976. #: guix-git/doc/guix-cookbook.texi:632
  977. #, no-wrap
  978. msgid ""
  979. "(define-public my-hello\n"
  980. " (package\n"
  981. " (name \"my-hello\")\n"
  982. " (version \"2.10\")\n"
  983. " (source (origin\n"
  984. " (method url-fetch)\n"
  985. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  986. " \".tar.gz\"))\n"
  987. " (sha256\n"
  988. " (base32\n"
  989. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  990. " (build-system gnu-build-system)\n"
  991. " (synopsis \"Hello, Guix world: An example custom Guix package\")\n"
  992. " (description\n"
  993. " \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
  994. "serves as an example of standard GNU coding practices. As such, it supports\n"
  995. "command-line arguments, multiple languages, and so on.\")\n"
  996. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  997. " (license gpl3+)))\n"
  998. msgstr ""
  999. "(define-public my-hello\n"
  1000. " (package\n"
  1001. " (name \"my-hello\")\n"
  1002. " (version \"2.10\")\n"
  1003. " (source (origin\n"
  1004. " (method url-fetch)\n"
  1005. " (uri (string-append \"mirror://gnu/hello/hello-\" version\n"
  1006. " \".tar.gz\"))\n"
  1007. " (sha256\n"
  1008. " (base32\n"
  1009. " \"0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i\"))))\n"
  1010. " (build-system gnu-build-system)\n"
  1011. " (synopsis \"Hello, Guix world: An example custom Guix package\")\n"
  1012. " (description\n"
  1013. " \"GNU Hello prints the message \\\"Hello, world!\\\" and then exits. It\n"
  1014. "serves as an example of standard GNU coding practices. As such, it supports\n"
  1015. "command-line arguments, multiple languages, and so on.\")\n"
  1016. " (home-page \"https://www.gnu.org/software/hello/\")\n"
  1017. " (license gpl3+)))\n"
  1018. #. type: Plain text
  1019. #: guix-git/doc/guix-cookbook.texi:638
  1020. msgid "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."
  1021. msgstr "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."
  1022. #. type: Plain text
  1023. #: guix-git/doc/guix-cookbook.texi:643
  1024. msgid "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}:"
  1025. msgstr "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} :"
  1026. #. type: lisp
  1027. #: guix-git/doc/guix-cookbook.texi:649
  1028. #, no-wrap
  1029. msgid ""
  1030. "; ...\n"
  1031. "(define-public my-hello\n"
  1032. " ; ...\n"
  1033. " )\n"
  1034. "\n"
  1035. msgstr ""
  1036. "; ...\n"
  1037. "(define-public my-hello\n"
  1038. " ; ...\n"
  1039. " )\n"
  1040. "\n"
  1041. #. type: lisp
  1042. #: guix-git/doc/guix-cookbook.texi:651
  1043. #, no-wrap
  1044. msgid "my-hello\n"
  1045. msgstr "my-hello\n"
  1046. #. type: Plain text
  1047. #: guix-git/doc/guix-cookbook.texi:654
  1048. msgid "This last example is not very typical."
  1049. msgstr "Ce dernier exemple n'est pas très typique."
  1050. #. type: Plain text
  1051. #: guix-git/doc/guix-cookbook.texi:657
  1052. msgid "Now @samp{my-hello} should be part of the package collection like all other official packages. You can verify this with:"
  1053. msgstr "Maintenant @samp{my-hello} devrait faire partie de la collection de paquets comme tous les paquets officiels. Vous pouvez le vérifier avec :"
  1054. #. type: example
  1055. #: guix-git/doc/guix-cookbook.texi:660
  1056. #, no-wrap
  1057. msgid "$ guix package --show=my-hello\n"
  1058. msgstr "$ guix package --show=my-hello\n"
  1059. #. type: subsubsection
  1060. #: guix-git/doc/guix-cookbook.texi:662 guix-git/doc/guix-cookbook.texi:663
  1061. #, no-wrap
  1062. msgid "Guix channels"
  1063. msgstr "Canaux Guix"
  1064. #. type: Plain text
  1065. #: guix-git/doc/guix-cookbook.texi:669
  1066. msgid "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."
  1067. msgstr "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."
  1068. #. type: Plain text
  1069. #: guix-git/doc/guix-cookbook.texi:671
  1070. msgid "@xref{Channels,,, guix, GNU Guix Reference Manual} for setup details."
  1071. msgstr "@xref{Canaux,,, guix.fr, le manuel de référence de GNU Guix} pour des détails sur la mise en place des canaux."
  1072. #. type: subsubsection
  1073. #: guix-git/doc/guix-cookbook.texi:672 guix-git/doc/guix-cookbook.texi:673
  1074. #, no-wrap
  1075. msgid "Direct checkout hacking"
  1076. msgstr "Bidouillage direct dans le dépôt git"
  1077. #. type: Plain text
  1078. #: guix-git/doc/guix-cookbook.texi:678
  1079. msgid "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!"
  1080. msgstr "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 !"
  1081. #. type: Plain text
  1082. #: guix-git/doc/guix-cookbook.texi:684
  1083. msgid "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."
  1084. msgstr "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."
  1085. #. type: Plain text
  1086. #: guix-git/doc/guix-cookbook.texi:686
  1087. msgid "Check out the official @uref{https://git-scm.com/, Git} repository:"
  1088. msgstr "Clonez le dépôt @uref{https://git-scm.com/, Git} officiel :"
  1089. #. type: example
  1090. #: guix-git/doc/guix-cookbook.texi:689
  1091. #, no-wrap
  1092. msgid "$ git clone https://git.savannah.gnu.org/git/guix.git\n"
  1093. msgstr "$ git clone https://git.savannah.gnu.org/git/guix.git\n"
  1094. #. type: Plain text
  1095. #: guix-git/doc/guix-cookbook.texi:693
  1096. msgid "In the rest of this article, we use @samp{$GUIX_CHECKOUT} to refer to the location of the checkout."
  1097. msgstr "Dans le reste de cet article, nous utiliserons @samp{$GUIX_CHECKOUT} pour faire référence à l'emplacement de ce clone."
  1098. #. type: Plain text
  1099. #: guix-git/doc/guix-cookbook.texi:697
  1100. msgid "Follow the instructions in the manual (@pxref{Contributing,,, guix, GNU Guix Reference Manual}) to set up the repository environment."
  1101. msgstr "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."
  1102. #. type: Plain text
  1103. #: guix-git/doc/guix-cookbook.texi:700
  1104. msgid "Once ready, you should be able to use the package definitions from the repository environment."
  1105. msgstr "Une fois prêts, vous devriez pouvoir utiliser les définitions des paquets de l'environnement du dépôt."
  1106. #. type: Plain text
  1107. #: guix-git/doc/guix-cookbook.texi:702
  1108. msgid "Feel free to edit package definitions found in @samp{$GUIX_CHECKOUT/gnu/packages}."
  1109. msgstr "N'ayez pas peur de modifier les définitions des paquets que vous trouverez dans @samp{$GUIX_CHECKOUT/gnu/packages}."
  1110. #. type: Plain text
  1111. #: guix-git/doc/guix-cookbook.texi:706
  1112. msgid "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})."
  1113. msgstr "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})."
  1114. #. type: itemize
  1115. #: guix-git/doc/guix-cookbook.texi:710
  1116. msgid "Search packages, such as Ruby:"
  1117. msgstr "Recherchez des paquets, comme Ruby :"
  1118. #. type: example
  1119. #: guix-git/doc/guix-cookbook.texi:717
  1120. #, no-wrap
  1121. msgid ""
  1122. " $ cd $GUIX_CHECKOUT\n"
  1123. " $ ./pre-inst-env guix package --list-available=ruby\n"
  1124. " ruby 1.8.7-p374 out gnu/packages/ruby.scm:119:2\n"
  1125. " ruby 2.1.6 out gnu/packages/ruby.scm:91:2\n"
  1126. " ruby 2.2.2 out gnu/packages/ruby.scm:39:2\n"
  1127. msgstr ""
  1128. " $ cd $GUIX_CHECKOUT\n"
  1129. " $ ./pre-inst-env guix package --list-available=ruby\n"
  1130. " ruby 1.8.7-p374 out gnu/packages/ruby.scm:119:2\n"
  1131. " ruby 2.1.6 out gnu/packages/ruby.scm:91:2\n"
  1132. " ruby 2.2.2 out gnu/packages/ruby.scm:39:2\n"
  1133. #. type: itemize
  1134. #: guix-git/doc/guix-cookbook.texi:721
  1135. msgid "Build a package, here Ruby version 2.1:"
  1136. msgstr "Construisez un paquet, ici Ruby version 2.1 :"
  1137. #. type: example
  1138. #: guix-git/doc/guix-cookbook.texi:725
  1139. #, no-wrap
  1140. msgid ""
  1141. " $ ./pre-inst-env guix build --keep-failed ruby@@2.1\n"
  1142. " /gnu/store/c13v73jxmj2nir2xjqaz5259zywsa9zi-ruby-2.1.6\n"
  1143. msgstr ""
  1144. " $ ./pre-inst-env guix build --keep-failed ruby@@2.1\n"
  1145. " /gnu/store/c13v73jxmj2nir2xjqaz5259zywsa9zi-ruby-2.1.6\n"
  1146. #. type: itemize
  1147. #: guix-git/doc/guix-cookbook.texi:729
  1148. msgid "Install it to your user profile:"
  1149. msgstr "Installez-le dans votre profil utilisateur :"
  1150. #. type: example
  1151. #: guix-git/doc/guix-cookbook.texi:732
  1152. #, no-wrap
  1153. msgid " $ ./pre-inst-env guix package --install ruby@@2.1\n"
  1154. msgstr " $ ./pre-inst-env guix package --install ruby@@2.1\n"
  1155. #. type: itemize
  1156. #: guix-git/doc/guix-cookbook.texi:736
  1157. msgid "Check for common mistakes:"
  1158. msgstr "Vérifiez que vous n'avez pas fait l'une des erreurs courantes :"
  1159. #. type: example
  1160. #: guix-git/doc/guix-cookbook.texi:739
  1161. #, no-wrap
  1162. msgid " $ ./pre-inst-env guix lint ruby@@2.1\n"
  1163. msgstr " $ ./pre-inst-env guix lint ruby@@2.1\n"
  1164. #. type: Plain text
  1165. #: guix-git/doc/guix-cookbook.texi:744
  1166. msgid "Guix strives at maintaining a high packaging standard; when contributing to the Guix project, remember to"
  1167. msgstr "Guix essaye de maintenir un bon standard d'empaquetage ; quand vous contribuez au projet Guix, rappelez-vous de"
  1168. #. type: itemize
  1169. #: guix-git/doc/guix-cookbook.texi:748
  1170. msgid "follow the coding style (@pxref{Coding Style,,, guix, GNU Guix Reference Manual}),"
  1171. msgstr "suivre le style de code (@pxref{Style de code,,, guix.fr, le manuel de référence de GNU Guix}),"
  1172. #. type: itemize
  1173. #: guix-git/doc/guix-cookbook.texi:750
  1174. msgid "and review the check list from the manual (@pxref{Submitting Patches,,, guix, GNU Guix Reference Manual})."
  1175. msgstr "et de vérifier la check-list du manuel (@pxref{Envoyer des correctifs,,, guix.fr, le manuel de référence de GNU Guix})."
  1176. #. type: Plain text
  1177. #: guix-git/doc/guix-cookbook.texi:754
  1178. msgid "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})"
  1179. msgstr "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})"
  1180. #. type: Plain text
  1181. #: guix-git/doc/guix-cookbook.texi:757
  1182. msgid "It's a community effort so the more join in, the better Guix becomes!"
  1183. msgstr "Guix est un projet communautaire, donc plus on est de fous, plus on rit !"
  1184. #. type: subsection
  1185. #: guix-git/doc/guix-cookbook.texi:758 guix-git/doc/guix-cookbook.texi:759
  1186. #, no-wrap
  1187. msgid "Extended example"
  1188. msgstr "Exemple avancé"
  1189. #. type: Plain text
  1190. #: guix-git/doc/guix-cookbook.texi:764
  1191. msgid "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):"
  1192. msgstr "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) :"
  1193. #. type: lisp
  1194. #: guix-git/doc/guix-cookbook.texi:778
  1195. #, no-wrap
  1196. msgid ""
  1197. "(define-module (gnu packages version-control)\n"
  1198. " #:use-module ((guix licenses) #:prefix license:)\n"
  1199. " #:use-module (guix utils)\n"
  1200. " #:use-module (guix packages)\n"
  1201. " #:use-module (guix git-download)\n"
  1202. " #:use-module (guix build-system cmake)\n"
  1203. " #:use-module (gnu packages ssh)\n"
  1204. " #:use-module (gnu packages web)\n"
  1205. " #:use-module (gnu packages pkg-config)\n"
  1206. " #:use-module (gnu packages python)\n"
  1207. " #:use-module (gnu packages compression)\n"
  1208. " #:use-module (gnu packages tls))\n"
  1209. "\n"
  1210. msgstr ""
  1211. "(define-module (gnu packages version-control)\n"
  1212. " #:use-module ((guix licenses) #:prefix license:)\n"
  1213. " #:use-module (guix utils)\n"
  1214. " #:use-module (guix packages)\n"
  1215. " #:use-module (guix git-download)\n"
  1216. " #:use-module (guix build-system cmake)\n"
  1217. " #:use-module (gnu packages ssh)\n"
  1218. " #:use-module (gnu packages web)\n"
  1219. " #:use-module (gnu packages pkg-config)\n"
  1220. " #:use-module (gnu packages python)\n"
  1221. " #:use-module (gnu packages compression)\n"
  1222. " #:use-module (gnu packages tls))\n"
  1223. "\n"
  1224. #. type: lisp
  1225. #: guix-git/doc/guix-cookbook.texi:838
  1226. #, no-wrap
  1227. msgid ""
  1228. "(define-public my-libgit2\n"
  1229. " (let ((commit \"e98d0a37c93574d2c6107bf7f31140b548c6a7bf\")\n"
  1230. " (revision \"1\"))\n"
  1231. " (package\n"
  1232. " (name \"my-libgit2\")\n"
  1233. " (version (git-version \"0.26.6\" revision commit))\n"
  1234. " (source (origin\n"
  1235. " (method git-fetch)\n"
  1236. " (uri (git-reference\n"
  1237. " (url \"https://github.com/libgit2/libgit2/\")\n"
  1238. " (commit commit)))\n"
  1239. " (file-name (git-file-name name version))\n"
  1240. " (sha256\n"
  1241. " (base32\n"
  1242. " \"17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3\"))\n"
  1243. " (patches (search-patches \"libgit2-mtime-0.patch\"))\n"
  1244. " (modules '((guix build utils)))\n"
  1245. " (snippet '(begin\n"
  1246. " ;; Remove bundled software.\n"
  1247. " (delete-file-recursively \"deps\")\n"
  1248. " #true))))\n"
  1249. " (build-system cmake-build-system)\n"
  1250. " (outputs '(\"out\" \"debug\"))\n"
  1251. " (arguments\n"
  1252. " `(#:tests? #true ; Run the test suite (this is the default)\n"
  1253. " #:configure-flags '(\"-DUSE_SHA1DC=ON\") ; SHA-1 collision detection\n"
  1254. " #:phases\n"
  1255. " (modify-phases %standard-phases\n"
  1256. " (add-after 'unpack 'fix-hardcoded-paths\n"
  1257. " (lambda _\n"
  1258. " (substitute* \"tests/repo/init.c\"\n"
  1259. " ((\"#!/bin/sh\") (string-append \"#!\" (which \"sh\"))))\n"
  1260. " (substitute* \"tests/clar/fs.h\"\n"
  1261. " ((\"/bin/cp\") (which \"cp\"))\n"
  1262. " ((\"/bin/rm\") (which \"rm\")))\n"
  1263. " #true))\n"
  1264. " ;; Run checks more verbosely.\n"
  1265. " (replace 'check\n"
  1266. " (lambda _ (invoke \"./libgit2_clar\" \"-v\" \"-Q\")))\n"
  1267. " (add-after 'unpack 'make-files-writable-for-tests\n"
  1268. " (lambda _ (for-each make-file-writable (find-files \".\" \".*\")))))))\n"
  1269. " (inputs\n"
  1270. " `((\"libssh2\" ,libssh2)\n"
  1271. " (\"http-parser\" ,http-parser)\n"
  1272. " (\"python\" ,python-wrapper)))\n"
  1273. " (native-inputs\n"
  1274. " `((\"pkg-config\" ,pkg-config)))\n"
  1275. " (propagated-inputs\n"
  1276. " ;; These two libraries are in 'Requires.private' in libgit2.pc.\n"
  1277. " `((\"openssl\" ,openssl)\n"
  1278. " (\"zlib\" ,zlib)))\n"
  1279. " (home-page \"https://libgit2.github.com/\")\n"
  1280. " (synopsis \"Library providing Git core methods\")\n"
  1281. " (description\n"
  1282. " \"Libgit2 is a portable, pure C implementation of the Git core methods\n"
  1283. "provided as a re-entrant linkable library with a solid API, allowing you to\n"
  1284. "write native speed custom Git applications in any language with bindings.\")\n"
  1285. " ;; GPLv2 with linking exception\n"
  1286. " (license license:gpl2))))\n"
  1287. msgstr ""
  1288. "(define-public my-libgit2\n"
  1289. " (let ((commit \"e98d0a37c93574d2c6107bf7f31140b548c6a7bf\")\n"
  1290. " (revision \"1\"))\n"
  1291. " (package\n"
  1292. " (name \"my-libgit2\")\n"
  1293. " (version (git-version \"0.26.6\" revision commit))\n"
  1294. " (source (origin\n"
  1295. " (method git-fetch)\n"
  1296. " (uri (git-reference\n"
  1297. " (url \"https://github.com/libgit2/libgit2/\")\n"
  1298. " (commit commit)))\n"
  1299. " (file-name (git-file-name name version))\n"
  1300. " (sha256\n"
  1301. " (base32\n"
  1302. " \"17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3\"))\n"
  1303. " (patches (search-patches \"libgit2-mtime-0.patch\"))\n"
  1304. " (modules '((guix build utils)))\n"
  1305. " (snippet '(begin\n"
  1306. " ;; Remove bundled software.\n"
  1307. " (delete-file-recursively \"deps\")\n"
  1308. " #true))))\n"
  1309. " (build-system cmake-build-system)\n"
  1310. " (outputs '(\"out\" \"debug\"))\n"
  1311. " (arguments\n"
  1312. " `(#:tests? #true ; Run the test suite (this is the default)\n"
  1313. " #:configure-flags '(\"-DUSE_SHA1DC=ON\") ; SHA-1 collision detection\n"
  1314. " #:phases\n"
  1315. " (modify-phases %standard-phases\n"
  1316. " (add-after 'unpack 'fix-hardcoded-paths\n"
  1317. " (lambda _\n"
  1318. " (substitute* \"tests/repo/init.c\"\n"
  1319. " ((\"#!/bin/sh\") (string-append \"#!\" (which \"sh\"))))\n"
  1320. " (substitute* \"tests/clar/fs.h\"\n"
  1321. " ((\"/bin/cp\") (which \"cp\"))\n"
  1322. " ((\"/bin/rm\") (which \"rm\")))\n"
  1323. " #true))\n"
  1324. " ;; Run checks more verbosely.\n"
  1325. " (replace 'check\n"
  1326. " (lambda _ (invoke \"./libgit2_clar\" \"-v\" \"-Q\")))\n"
  1327. " (add-after 'unpack 'make-files-writable-for-tests\n"
  1328. " (lambda _ (for-each make-file-writable (find-files \".\" \".*\")))))))\n"
  1329. " (inputs\n"
  1330. " `((\"libssh2\" ,libssh2)\n"
  1331. " (\"http-parser\" ,http-parser)\n"
  1332. " (\"python\" ,python-wrapper)))\n"
  1333. " (native-inputs\n"
  1334. " `((\"pkg-config\" ,pkg-config)))\n"
  1335. " (propagated-inputs\n"
  1336. " ;; These two libraries are in 'Requires.private' in libgit2.pc.\n"
  1337. " `((\"openssl\" ,openssl)\n"
  1338. " (\"zlib\" ,zlib)))\n"
  1339. " (home-page \"https://libgit2.github.com/\")\n"
  1340. " (synopsis \"Library providing Git core methods\")\n"
  1341. " (description\n"
  1342. " \"Libgit2 is a portable, pure C implementation of the Git core methods\n"
  1343. "provided as a re-entrant linkable library with a solid API, allowing you to\n"
  1344. "write native speed custom Git applications in any language with bindings.\")\n"
  1345. " ;; GPLv2 with linking exception\n"
  1346. " (license license:gpl2))))\n"
  1347. #. type: Plain text
  1348. #: guix-git/doc/guix-cookbook.texi:843
  1349. msgid "(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.)"
  1350. msgstr "(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.)"
  1351. #. type: Plain text
  1352. #: guix-git/doc/guix-cookbook.texi:845
  1353. msgid "Let's discuss those fields in depth."
  1354. msgstr "Parlons maintenant de ces champs en détail."
  1355. #. type: subsubsection
  1356. #: guix-git/doc/guix-cookbook.texi:846
  1357. #, no-wrap
  1358. msgid "@code{git-fetch} method"
  1359. msgstr "La méthode @code{git-fetch}"
  1360. #. type: Plain text
  1361. #: guix-git/doc/guix-cookbook.texi:853
  1362. msgid "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))}."
  1363. msgstr "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))}."
  1364. #. type: Plain text
  1365. #: guix-git/doc/guix-cookbook.texi:857
  1366. msgid "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))}."
  1367. msgstr "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))}."
  1368. #. type: Plain text
  1369. #: guix-git/doc/guix-cookbook.texi:862
  1370. msgid "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})."
  1371. msgstr "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})."
  1372. #. type: Plain text
  1373. #: guix-git/doc/guix-cookbook.texi:866
  1374. msgid "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:"
  1375. msgstr "Comment obtenir le hash @code{sha256}, vous demandez-vous ? En invoquant @command{guix hash} sur un clone du commit voulu, de cette manière :"
  1376. #. type: example
  1377. #: guix-git/doc/guix-cookbook.texi:872
  1378. #, no-wrap
  1379. msgid ""
  1380. "git clone https://github.com/libgit2/libgit2/\n"
  1381. "cd libgit2\n"
  1382. "git checkout v0.26.6\n"
  1383. "guix hash -rx .\n"
  1384. msgstr ""
  1385. "git clone https://github.com/libgit2/libgit2/\n"
  1386. "cd libgit2\n"
  1387. "git checkout v0.26.6\n"
  1388. "guix hash -rx .\n"
  1389. #. type: Plain text
  1390. #: guix-git/doc/guix-cookbook.texi:877
  1391. msgid "@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})."
  1392. msgstr "@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})."
  1393. #. type: Plain text
  1394. #: guix-git/doc/guix-cookbook.texi:880
  1395. msgid "In the future, @command{guix download} will hopefully be able to do these steps for you, just like it does for regular downloads."
  1396. msgstr "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."
  1397. #. type: subsubsection
  1398. #: guix-git/doc/guix-cookbook.texi:881
  1399. #, no-wrap
  1400. msgid "Snippets"
  1401. msgstr "Les bouts de code"
  1402. #. type: Plain text
  1403. #: guix-git/doc/guix-cookbook.texi:887
  1404. msgid "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."
  1405. msgstr "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."
  1406. #. type: Plain text
  1407. #: guix-git/doc/guix-cookbook.texi:890
  1408. msgid "Snippets might need additional Guile modules which can be imported from the @code{modules} field."
  1409. msgstr "Les bouts de code on parfois besoin de modules Guile supplémentaires qui peuvent être importés dans le champ @code{modules}."
  1410. #. type: subsubsection
  1411. #: guix-git/doc/guix-cookbook.texi:891
  1412. #, no-wrap
  1413. msgid "Inputs"
  1414. msgstr "Entrées"
  1415. #. type: Plain text
  1416. #: guix-git/doc/guix-cookbook.texi:894
  1417. msgid "First, a syntactic comment: See the quasi-quote / comma syntax?"
  1418. msgstr "Tout d'abord, un commentaire sur la syntaxe : vous voyez la quasiquote (la virgule) ?"
  1419. #. type: lisp
  1420. #: guix-git/doc/guix-cookbook.texi:898
  1421. #, no-wrap
  1422. msgid ""
  1423. " (native-inputs\n"
  1424. " `((\"pkg-config\" ,pkg-config)))\n"
  1425. msgstr ""
  1426. " (native-inputs\n"
  1427. " `((\"pkg-config\" ,pkg-config)))\n"
  1428. #. type: Plain text
  1429. #: guix-git/doc/guix-cookbook.texi:901
  1430. msgid "is equivalent to"
  1431. msgstr "est équivalent à"
  1432. #. type: lisp
  1433. #: guix-git/doc/guix-cookbook.texi:905
  1434. #, no-wrap
  1435. msgid ""
  1436. " (native-inputs\n"
  1437. " (list (list \"pkg-config\" pkg-config)))\n"
  1438. msgstr ""
  1439. " (native-inputs\n"
  1440. " (list (list \"pkg-config\" pkg-config)))\n"
  1441. #. type: Plain text
  1442. #: guix-git/doc/guix-cookbook.texi:908
  1443. msgid "You'll mostly see the former because it's shorter."
  1444. msgstr "Vous verrez surtout la première forme car elle est plus courte."
  1445. #. type: Plain text
  1446. #: guix-git/doc/guix-cookbook.texi:910
  1447. msgid "There are 3 different input types. In short:"
  1448. msgstr "Il y a trois types d'entrées. En résumé :"
  1449. #. type: item
  1450. #: guix-git/doc/guix-cookbook.texi:912
  1451. #, no-wrap
  1452. msgid "native-inputs"
  1453. msgstr "native-inputs"
  1454. #. type: table
  1455. #: guix-git/doc/guix-cookbook.texi:915
  1456. msgid "Required for building but not runtime -- installing a package through a substitute won't install these inputs."
  1457. msgstr "Requis pour construire mais pas à l'exécution -- installer un paquet avec un substitut n'installera pas ces entrées."
  1458. #. type: item
  1459. #: guix-git/doc/guix-cookbook.texi:915
  1460. #, no-wrap
  1461. msgid "inputs"
  1462. msgstr "inputs"
  1463. #. type: table
  1464. #: guix-git/doc/guix-cookbook.texi:918
  1465. msgid "Installed in the store but not in the profile, as well as being present at build time."
  1466. msgstr "Installées dans le dépôt mais pas dans le profil, et présentes à la construction."
  1467. #. type: item
  1468. #: guix-git/doc/guix-cookbook.texi:918
  1469. #, no-wrap
  1470. msgid "propagated-inputs"
  1471. msgstr "propagated-inputs"
  1472. #. type: table
  1473. #: guix-git/doc/guix-cookbook.texi:921
  1474. msgid "Installed in the store and in the profile, as well as being present at build time."
  1475. msgstr "Installées dans le dépôt et dans le profil, et présentes à la construction."
  1476. #. type: Plain text
  1477. #: guix-git/doc/guix-cookbook.texi:924
  1478. msgid "@xref{Package Reference,,, guix, GNU Guix Reference Manual} for more details."
  1479. msgstr "@xref{Référence de package,,, guix.fr, le manuel de référence de GNU Guix} pour plus de détails."
  1480. #. type: Plain text
  1481. #: guix-git/doc/guix-cookbook.texi:928
  1482. msgid "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."
  1483. msgstr "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."
  1484. #. type: Plain text
  1485. #: guix-git/doc/guix-cookbook.texi:935
  1486. msgid "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."
  1487. msgstr "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."
  1488. #. type: Plain text
  1489. #: guix-git/doc/guix-cookbook.texi:941
  1490. msgid "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."
  1491. msgstr "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."
  1492. #. type: subsubsection
  1493. #: guix-git/doc/guix-cookbook.texi:942
  1494. #, no-wrap
  1495. msgid "Outputs"
  1496. msgstr "Sorties"
  1497. #. type: Plain text
  1498. #: guix-git/doc/guix-cookbook.texi:946
  1499. msgid "Just like how a package can have multiple inputs, it can also produce multiple outputs."
  1500. msgstr "De la même manière qu'un paquet peut avoir plusieurs entrées, il peut aussi avoir plusieurs sorties."
  1501. #. type: Plain text
  1502. #: guix-git/doc/guix-cookbook.texi:948
  1503. msgid "Each output corresponds to a separate directory in the store."
  1504. msgstr "Chaque sortie correspond à un répertoire différent dans le dépôt."
  1505. #. type: Plain text
  1506. #: guix-git/doc/guix-cookbook.texi:951
  1507. msgid "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."
  1508. msgstr "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."
  1509. #. type: Plain text
  1510. #: guix-git/doc/guix-cookbook.texi:954
  1511. msgid "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\"}."
  1512. msgstr "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\"}."
  1513. #. type: Plain text
  1514. #: guix-git/doc/guix-cookbook.texi:956
  1515. msgid "Typical separate output names include @code{debug} and @code{doc}."
  1516. msgstr "Les sorties séparées sont en général @code{debug} et @code{doc}."
  1517. #. type: Plain text
  1518. #: guix-git/doc/guix-cookbook.texi:960
  1519. msgid "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."
  1520. msgstr "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."
  1521. #. type: subsubsection
  1522. #: guix-git/doc/guix-cookbook.texi:961
  1523. #, no-wrap
  1524. msgid "Build system arguments"
  1525. msgstr "Arguments du système de construction"
  1526. #. type: Plain text
  1527. #: guix-git/doc/guix-cookbook.texi:964
  1528. msgid "The @code{arguments} is a keyword-value list used to configure the build process."
  1529. msgstr "Le champ @code{arguments} est une liste de mot-clés et de valeurs utilisés pour configurer le processus de construction."
  1530. #. type: Plain text
  1531. #: guix-git/doc/guix-cookbook.texi:969
  1532. msgid "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."
  1533. msgstr "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."
  1534. #. type: Plain text
  1535. #: guix-git/doc/guix-cookbook.texi:973
  1536. msgid "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"
  1537. msgstr "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"
  1538. #. type: lisp
  1539. #: guix-git/doc/guix-cookbook.texi:977
  1540. #, no-wrap
  1541. msgid ""
  1542. "#:make-flags (list (string-append \"prefix=\" (assoc-ref %outputs \"out\"))\n"
  1543. " \"CC=gcc\")\n"
  1544. msgstr ""
  1545. "#:make-flags (list (string-append \"prefix=\" (assoc-ref %outputs \"out\"))\n"
  1546. " \"CC=gcc\")\n"
  1547. #. type: Plain text
  1548. #: guix-git/doc/guix-cookbook.texi:980
  1549. msgid "translate into"
  1550. msgstr "se traduisent en"
  1551. #. type: example
  1552. #: guix-git/doc/guix-cookbook.texi:983
  1553. #, no-wrap
  1554. msgid "$ make CC=gcc prefix=/gnu/store/...-<out>\n"
  1555. msgstr "$ make CC=gcc prefix=/gnu/store/...-<out>\n"
  1556. #. type: Plain text
  1557. #: guix-git/doc/guix-cookbook.texi:989
  1558. msgid "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})."
  1559. msgstr "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})."
  1560. #. type: Plain text
  1561. #: guix-git/doc/guix-cookbook.texi:991
  1562. msgid "Similarly, it's possible to set the configure flags:"
  1563. msgstr "De manière identique, vous pouvez indiquer les drapeaux de configuration :"
  1564. #. type: lisp
  1565. #: guix-git/doc/guix-cookbook.texi:994
  1566. #, no-wrap
  1567. msgid "#:configure-flags '(\"-DUSE_SHA1DC=ON\")\n"
  1568. msgstr "#:configure-flags '(\"-DUSE_SHA1DC=ON\")\n"
  1569. #. type: Plain text
  1570. #: guix-git/doc/guix-cookbook.texi:998
  1571. msgid "The @code{%build-inputs} variable is also generated in scope. It's an association table that maps the input names to their store directories."
  1572. msgstr "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."
  1573. #. type: Plain text
  1574. #: guix-git/doc/guix-cookbook.texi:1003
  1575. msgid "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}:"
  1576. msgstr "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} :"
  1577. #. type: lisp
  1578. #: guix-git/doc/guix-cookbook.texi:1022
  1579. #, no-wrap
  1580. msgid ""
  1581. "(define %standard-phases\n"
  1582. " ;; Standard build phases, as a list of symbol/procedure pairs.\n"
  1583. " (let-syntax ((phases (syntax-rules ()\n"
  1584. " ((_ p ...) `((p . ,p) ...)))))\n"
  1585. " (phases set-SOURCE-DATE-EPOCH set-paths install-locale unpack\n"
  1586. " bootstrap\n"
  1587. " patch-usr-bin-file\n"
  1588. " patch-source-shebangs configure patch-generated-file-shebangs\n"
  1589. " build check install\n"
  1590. " patch-shebangs strip\n"
  1591. " validate-runpath\n"
  1592. " validate-documentation-location\n"
  1593. " delete-info-dir-file\n"
  1594. " patch-dot-desktop-files\n"
  1595. " install-license-files\n"
  1596. " reset-gzip-timestamps\n"
  1597. " compress-documentation)))\n"
  1598. msgstr ""
  1599. "(define %standard-phases\n"
  1600. " ;; Standard build phases, as a list of symbol/procedure pairs.\n"
  1601. " (let-syntax ((phases (syntax-rules ()\n"
  1602. " ((_ p ...) `((p . ,p) ...)))))\n"
  1603. " (phases set-SOURCE-DATE-EPOCH set-paths install-locale unpack\n"
  1604. " bootstrap\n"
  1605. " patch-usr-bin-file\n"
  1606. " patch-source-shebangs configure patch-generated-file-shebangs\n"
  1607. " build check install\n"
  1608. " patch-shebangs strip\n"
  1609. " validate-runpath\n"
  1610. " validate-documentation-location\n"
  1611. " delete-info-dir-file\n"
  1612. " patch-dot-desktop-files\n"
  1613. " install-license-files\n"
  1614. " reset-gzip-timestamps\n"
  1615. " compress-documentation)))\n"
  1616. #. type: Plain text
  1617. #: guix-git/doc/guix-cookbook.texi:1025
  1618. msgid "Or from the REPL:"
  1619. msgstr "Ou depuis la REPL :"
  1620. #. type: lisp
  1621. #: guix-git/doc/guix-cookbook.texi:1031
  1622. #, no-wrap
  1623. msgid ""
  1624. "(add-to-load-path \"/path/to/guix/checkout\")\n"
  1625. ",use (guix build gnu-build-system)\n"
  1626. "(map first %standard-phases)\n"
  1627. "@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"
  1628. msgstr ""
  1629. "(add-to-load-path \"/path/to/guix/checkout\")\n"
  1630. ",use (guix build gnu-build-system)\n"
  1631. "(map first %standard-phases)\n"
  1632. "@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"
  1633. #. type: Plain text
  1634. #: guix-git/doc/guix-cookbook.texi:1035
  1635. msgid "If you want to know more about what happens during those phases, consult the associated procedures."
  1636. msgstr "Si vous voulez en apprendre plus sur ce qui arrive pendant ces phases, consultez les procédures associées."
  1637. #. type: Plain text
  1638. #: guix-git/doc/guix-cookbook.texi:1038
  1639. msgid "For instance, as of this writing the definition of @code{unpack} for the GNU build system is:"
  1640. msgstr "Par exemple, au moment d'écrire ces lignes, la définition de @code{unpack} dans le système de construction de GNU est :"
  1641. #. type: lisp
  1642. #: guix-git/doc/guix-cookbook.texi:1048
  1643. #, no-wrap
  1644. msgid ""
  1645. "(define* (unpack #:key source #:allow-other-keys)\n"
  1646. " \"Unpack SOURCE in the working directory, and change directory within the\n"
  1647. "source. When SOURCE is a directory, copy it in a sub-directory of the current\n"
  1648. "working directory.\"\n"
  1649. " (if (file-is-directory? source)\n"
  1650. " (begin\n"
  1651. " (mkdir \"source\")\n"
  1652. " (chdir \"source\")\n"
  1653. "\n"
  1654. msgstr ""
  1655. "(define* (unpack #:key source #:allow-other-keys)\n"
  1656. " \"Unpack SOURCE in the working directory, and change directory within the\n"
  1657. "source. When SOURCE is a directory, copy it in a sub-directory of the current\n"
  1658. "working directory.\"\n"
  1659. " (if (file-is-directory? source)\n"
  1660. " (begin\n"
  1661. " (mkdir \"source\")\n"
  1662. " (chdir \"source\")\n"
  1663. "\n"
  1664. #. type: lisp
  1665. #: guix-git/doc/guix-cookbook.texi:1059
  1666. #, no-wrap
  1667. msgid ""
  1668. " ;; Preserve timestamps (set to the Epoch) on the copied tree so that\n"
  1669. " ;; things work deterministically.\n"
  1670. " (copy-recursively source \".\"\n"
  1671. " #:keep-mtime? #true))\n"
  1672. " (begin\n"
  1673. " (if (string-suffix? \".zip\" source)\n"
  1674. " (invoke \"unzip\" source)\n"
  1675. " (invoke \"tar\" \"xvf\" source))\n"
  1676. " (chdir (first-subdirectory \".\"))))\n"
  1677. " #true)\n"
  1678. msgstr ""
  1679. " ;; Preserve timestamps (set to the Epoch) on the copied tree so that\n"
  1680. " ;; things work deterministically.\n"
  1681. " (copy-recursively source \".\"\n"
  1682. " #:keep-mtime? #true))\n"
  1683. " (begin\n"
  1684. " (if (string-suffix? \".zip\" source)\n"
  1685. " (invoke \"unzip\" source)\n"
  1686. " (invoke \"tar\" \"xvf\" source))\n"
  1687. " (chdir (first-subdirectory \".\"))))\n"
  1688. " #true)\n"
  1689. #. type: Plain text
  1690. #: guix-git/doc/guix-cookbook.texi:1067
  1691. msgid "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."
  1692. msgstr "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."
  1693. #. type: Plain text
  1694. #: guix-git/doc/guix-cookbook.texi:1071
  1695. msgid "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:"
  1696. msgstr "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 :"
  1697. #. type: itemize
  1698. #: guix-git/doc/guix-cookbook.texi:1075
  1699. msgid "@code{(add-before @var{phase} @var{new-phase} @var{procedure})}: Run @var{procedure} named @var{new-phase} before @var{phase}."
  1700. msgstr "@code{(add-before @var{phase} @var{nouvelle-phase} @var{procédure})} : Lance une @var{procédure} nommée @var{nouvelle-phase} avant @var{phase}."
  1701. #. type: itemize
  1702. #: guix-git/doc/guix-cookbook.texi:1077
  1703. msgid "@code{(add-after @var{phase} @var{new-phase} @var{procedure})}: Same, but afterwards."
  1704. msgstr "@code{(add-after @var{phase} @var{nouvelle-phase} @var{procédure})} : Pareil, mais après la @var{phase}."
  1705. #. type: itemize
  1706. #: guix-git/doc/guix-cookbook.texi:1079
  1707. msgid "@code{(replace @var{phase} @var{procedure})}."
  1708. msgstr "@code{(replace @var{phase} @var{procédure})}."
  1709. #. type: itemize
  1710. #: guix-git/doc/guix-cookbook.texi:1081
  1711. msgid "@code{(delete @var{phase})}."
  1712. msgstr "@code{(delete @var{phase})}."
  1713. #. type: Plain text
  1714. #: guix-git/doc/guix-cookbook.texi:1088
  1715. msgid "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:"
  1716. msgstr "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 :"
  1717. #. type: lisp
  1718. #: guix-git/doc/guix-cookbook.texi:1096
  1719. #, no-wrap
  1720. msgid ""
  1721. "(lambda* (#:key inputs outputs #:allow-other-keys)\n"
  1722. " (let ((bash-directory (assoc-ref inputs \"bash\"))\n"
  1723. " (output-directory (assoc-ref outputs \"out\"))\n"
  1724. " (doc-directory (assoc-ref outputs \"doc\")))\n"
  1725. " ;; ...\n"
  1726. " #true))\n"
  1727. msgstr ""
  1728. "(lambda* (#:key inputs outputs #:allow-other-keys)\n"
  1729. " (let ((bash-directory (assoc-ref inputs \"bash\"))\n"
  1730. " (output-directory (assoc-ref outputs \"out\"))\n"
  1731. " (doc-directory (assoc-ref outputs \"doc\")))\n"
  1732. " ;; ...\n"
  1733. " #true))\n"
  1734. #. type: Plain text
  1735. #: guix-git/doc/guix-cookbook.texi:1102
  1736. msgid "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."
  1737. msgstr "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."
  1738. #. type: subsubsection
  1739. #: guix-git/doc/guix-cookbook.texi:1103
  1740. #, no-wrap
  1741. msgid "Code staging"
  1742. msgstr "Échelonnage de code"
  1743. #. type: Plain text
  1744. #: guix-git/doc/guix-cookbook.texi:1109
  1745. msgid "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}."
  1746. msgstr "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}."
  1747. #. type: subsubsection
  1748. #: guix-git/doc/guix-cookbook.texi:1110
  1749. #, no-wrap
  1750. msgid "Utility functions"
  1751. msgstr "Fonctions utilitaires"
  1752. #. type: Plain text
  1753. #: guix-git/doc/guix-cookbook.texi:1115
  1754. msgid "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."
  1755. msgstr "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."
  1756. #. type: Plain text
  1757. #: guix-git/doc/guix-cookbook.texi:1118
  1758. msgid "Some like @code{chmod} are native to Guile. @xref{,,, guile, Guile reference manual} for a complete list."
  1759. msgstr "Certaines comme @code{chmod} sont natives dans Guile. @xref{,,, guile, Guile reference manual} pour une liste complète."
  1760. #. type: Plain text
  1761. #: guix-git/doc/guix-cookbook.texi:1121
  1762. msgid "Guix provides additional helper functions which prove especially handy in the context of package management."
  1763. msgstr "Guix fournit des fonctions utilitaires supplémentaires qui sont particulièrement utiles pour la gestion des paquets."
  1764. #. type: Plain text
  1765. #: guix-git/doc/guix-cookbook.texi:1125
  1766. msgid "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:"
  1767. msgstr "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 :"
  1768. #. type: item
  1769. #: guix-git/doc/guix-cookbook.texi:1127
  1770. #, no-wrap
  1771. msgid "which"
  1772. msgstr "which"
  1773. #. type: table
  1774. #: guix-git/doc/guix-cookbook.texi:1129
  1775. msgid "Like the @samp{which} system command."
  1776. msgstr "Fonctionne comme la commande système @samp{which}."
  1777. #. type: item
  1778. #: guix-git/doc/guix-cookbook.texi:1129
  1779. #, no-wrap
  1780. msgid "find-files"
  1781. msgstr "find-files"
  1782. #. type: table
  1783. #: guix-git/doc/guix-cookbook.texi:1131
  1784. msgid "Akin to the @samp{find} system command."
  1785. msgstr "Fonctionne un peu comme la commande @samp{find}."
  1786. #. type: item
  1787. #: guix-git/doc/guix-cookbook.texi:1131
  1788. #, no-wrap
  1789. msgid "mkdir-p"
  1790. msgstr "mkdir-p"
  1791. #. type: table
  1792. #: guix-git/doc/guix-cookbook.texi:1133
  1793. msgid "Like @samp{mkdir -p}, which creates all parents as needed."
  1794. msgstr "Fonctionne comme @samp{mkdir -p}, qui crée tous les parents si besoin."
  1795. #. type: item
  1796. #: guix-git/doc/guix-cookbook.texi:1133
  1797. #, no-wrap
  1798. msgid "install-file"
  1799. msgstr "install-file"
  1800. #. type: table
  1801. #: guix-git/doc/guix-cookbook.texi:1137
  1802. msgid "Similar to @samp{install} when installing a file to a (possibly non-existing) directory. Guile has @code{copy-file} which works like @samp{cp}."
  1803. msgstr "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}."
  1804. #. type: item
  1805. #: guix-git/doc/guix-cookbook.texi:1137
  1806. #, no-wrap
  1807. msgid "copy-recursively"
  1808. msgstr "copy-recursively"
  1809. #. type: table
  1810. #: guix-git/doc/guix-cookbook.texi:1139
  1811. msgid "Like @samp{cp -r}."
  1812. msgstr "Fonctionne comme @samp{cp -r}."
  1813. #. type: item
  1814. #: guix-git/doc/guix-cookbook.texi:1139
  1815. #, no-wrap
  1816. msgid "delete-file-recursively"
  1817. msgstr "delete-file-recursively"
  1818. #. type: table
  1819. #: guix-git/doc/guix-cookbook.texi:1141
  1820. msgid "Like @samp{rm -rf}."
  1821. msgstr "Fonctionne comme @samp{rm -rf}."
  1822. #. type: item
  1823. #: guix-git/doc/guix-cookbook.texi:1141
  1824. #, no-wrap
  1825. msgid "invoke"
  1826. msgstr "invoke"
  1827. #. type: table
  1828. #: guix-git/doc/guix-cookbook.texi:1143
  1829. msgid "Run an executable. This should be used instead of @code{system*}."
  1830. msgstr "Lance un exécutable. Vous devriez utiliser cela à la place de @code{system*}."
  1831. #. type: item
  1832. #: guix-git/doc/guix-cookbook.texi:1143
  1833. #, no-wrap
  1834. msgid "with-directory-excursion"
  1835. msgstr "with-directory-excursion"
  1836. #. type: table
  1837. #: guix-git/doc/guix-cookbook.texi:1146
  1838. msgid "Run the body in a different working directory, then restore the previous working directory."
  1839. msgstr "Lance le corps dans un répertoire de travail différent, puis revient au répertoire de travail précédent."
  1840. #. type: item
  1841. #: guix-git/doc/guix-cookbook.texi:1146
  1842. #, no-wrap
  1843. msgid "substitute*"
  1844. msgstr "substitute*"
  1845. #. type: table
  1846. #: guix-git/doc/guix-cookbook.texi:1148
  1847. msgid "A ``@command{sed}-like'' function."
  1848. msgstr "Une fonction similaire à @command{sed}."
  1849. #. type: Plain text
  1850. #: guix-git/doc/guix-cookbook.texi:1152
  1851. msgid "@xref{Build Utilities,,, guix, GNU Guix Reference Manual}, for more information on these utilities."
  1852. msgstr "@xref{Utilitaires de construction,,, guix.fr, le manuel de référence de GNU Guix}, pour plus d'informations sur ces utilitaires."
  1853. #. type: subsubsection
  1854. #: guix-git/doc/guix-cookbook.texi:1153
  1855. #, no-wrap
  1856. msgid "Module prefix"
  1857. msgstr "Préfixe de module"
  1858. #. type: Plain text
  1859. #: guix-git/doc/guix-cookbook.texi:1163
  1860. msgid "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)."
  1861. msgstr "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})."
  1862. #. type: subsection
  1863. #: guix-git/doc/guix-cookbook.texi:1164 guix-git/doc/guix-cookbook.texi:1165
  1864. #, no-wrap
  1865. msgid "Other build systems"
  1866. msgstr "Autres systèmes de construction"
  1867. #. type: Plain text
  1868. #: guix-git/doc/guix-cookbook.texi:1172
  1869. msgid "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."
  1870. msgstr "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."
  1871. #. type: Plain text
  1872. #: guix-git/doc/guix-cookbook.texi:1176
  1873. msgid "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."
  1874. msgstr "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."
  1875. #. type: Plain text
  1876. #: guix-git/doc/guix-cookbook.texi:1181
  1877. msgid "@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."
  1878. msgstr "@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}."
  1879. #. type: subsection
  1880. #: guix-git/doc/guix-cookbook.texi:1182 guix-git/doc/guix-cookbook.texi:1183
  1881. #, no-wrap
  1882. msgid "Programmable and automated package definition"
  1883. msgstr "Définition programmable et automatisée"
  1884. #. type: Plain text
  1885. #: guix-git/doc/guix-cookbook.texi:1187
  1886. msgid "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."
  1887. msgstr "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."
  1888. #. type: Plain text
  1889. #: guix-git/doc/guix-cookbook.texi:1189
  1890. msgid "Let's illustrate this with some awesome features of Guix!"
  1891. msgstr "Illustrons cela avec certaines fonctionnalités géniales de Guix !"
  1892. #. type: subsubsection
  1893. #: guix-git/doc/guix-cookbook.texi:1190 guix-git/doc/guix-cookbook.texi:1191
  1894. #, no-wrap
  1895. msgid "Recursive importers"
  1896. msgstr "Les importateurs récursifs"
  1897. #. type: Plain text
  1898. #: guix-git/doc/guix-cookbook.texi:1198
  1899. msgid "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):"
  1900. msgstr "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) :"
  1901. #. type: example
  1902. #: guix-git/doc/guix-cookbook.texi:1201
  1903. #, no-wrap
  1904. msgid ""
  1905. "$ guix import cran --recursive walrus\n"
  1906. "\n"
  1907. msgstr ""
  1908. "$ guix import cran --recursive walrus\n"
  1909. "\n"
  1910. #. type: example
  1911. #: guix-git/doc/guix-cookbook.texi:1205
  1912. #, no-wrap
  1913. msgid ""
  1914. "(define-public r-mc2d\n"
  1915. " ; ...\n"
  1916. " (license gpl2+)))\n"
  1917. "\n"
  1918. msgstr ""
  1919. "(define-public r-mc2d\n"
  1920. " ; ...\n"
  1921. " (license gpl2+)))\n"
  1922. "\n"
  1923. #. type: example
  1924. #: guix-git/doc/guix-cookbook.texi:1209
  1925. #, no-wrap
  1926. msgid ""
  1927. "(define-public r-jmvcore\n"
  1928. " ; ...\n"
  1929. " (license gpl2+)))\n"
  1930. "\n"
  1931. msgstr ""
  1932. "(define-public r-jmvcore\n"
  1933. " ; ...\n"
  1934. " (license gpl2+)))\n"
  1935. "\n"
  1936. #. type: example
  1937. #: guix-git/doc/guix-cookbook.texi:1213
  1938. #, no-wrap
  1939. msgid ""
  1940. "(define-public r-wrs2\n"
  1941. " ; ...\n"
  1942. " (license gpl3)))\n"
  1943. "\n"
  1944. msgstr ""
  1945. "(define-public r-wrs2\n"
  1946. " ; ...\n"
  1947. " (license gpl3)))\n"
  1948. "\n"
  1949. #. type: example
  1950. #: guix-git/doc/guix-cookbook.texi:1242
  1951. #, no-wrap
  1952. msgid ""
  1953. "(define-public r-walrus\n"
  1954. " (package\n"
  1955. " (name \"r-walrus\")\n"
  1956. " (version \"1.0.3\")\n"
  1957. " (source\n"
  1958. " (origin\n"
  1959. " (method url-fetch)\n"
  1960. " (uri (cran-uri \"walrus\" version))\n"
  1961. " (sha256\n"
  1962. " (base32\n"
  1963. " \"1nk2glcvy4hyksl5ipq2mz8jy4fss90hx6cq98m3w96kzjni6jjj\"))))\n"
  1964. " (build-system r-build-system)\n"
  1965. " (propagated-inputs\n"
  1966. " `((\"r-ggplot2\" ,r-ggplot2)\n"
  1967. " (\"r-jmvcore\" ,r-jmvcore)\n"
  1968. " (\"r-r6\" ,r-r6)\n"
  1969. " (\"r-wrs2\" ,r-wrs2)))\n"
  1970. " (home-page \"https://github.com/jamovi/walrus\")\n"
  1971. " (synopsis \"Robust Statistical Methods\")\n"
  1972. " (description\n"
  1973. " \"This package provides a toolbox of common robust statistical\n"
  1974. "tests, including robust descriptives, robust t-tests, and robust ANOVA.\n"
  1975. "It is also available as a module for 'jamovi' (see\n"
  1976. "<https://www.jamovi.org> for more information). Walrus is based on the\n"
  1977. "WRS2 package by Patrick Mair, which is in turn based on the scripts and\n"
  1978. "work of Rand Wilcox. These analyses are described in depth in the book\n"
  1979. "'Introduction to Robust Estimation & Hypothesis Testing'.\")\n"
  1980. " (license gpl3)))\n"
  1981. msgstr ""
  1982. "(define-public r-walrus\n"
  1983. " (package\n"
  1984. " (name \"r-walrus\")\n"
  1985. " (version \"1.0.3\")\n"
  1986. " (source\n"
  1987. " (origin\n"
  1988. " (method url-fetch)\n"
  1989. " (uri (cran-uri \"walrus\" version))\n"
  1990. " (sha256\n"
  1991. " (base32\n"
  1992. " \"1nk2glcvy4hyksl5ipq2mz8jy4fss90hx6cq98m3w96kzjni6jjj\"))))\n"
  1993. " (build-system r-build-system)\n"
  1994. " (propagated-inputs\n"
  1995. " `((\"r-ggplot2\" ,r-ggplot2)\n"
  1996. " (\"r-jmvcore\" ,r-jmvcore)\n"
  1997. " (\"r-r6\" ,r-r6)\n"
  1998. " (\"r-wrs2\" ,r-wrs2)))\n"
  1999. " (home-page \"https://github.com/jamovi/walrus\")\n"
  2000. " (synopsis \"Robust Statistical Methods\")\n"
  2001. " (description\n"
  2002. " \"This package provides a toolbox of common robust statistical\n"
  2003. "tests, including robust descriptives, robust t-tests, and robust ANOVA.\n"
  2004. "It is also available as a module for 'jamovi' (see\n"
  2005. "<https://www.jamovi.org> for more information). Walrus is based on the\n"
  2006. "WRS2 package by Patrick Mair, which is in turn based on the scripts and\n"
  2007. "work of Rand Wilcox. These analyses are described in depth in the book\n"
  2008. "'Introduction to Robust Estimation & Hypothesis Testing'.\")\n"
  2009. " (license gpl3)))\n"
  2010. #. type: Plain text
  2011. #: guix-git/doc/guix-cookbook.texi:1246
  2012. msgid "The recursive importer won't import packages for which Guix already has package definitions, except for the very first."
  2013. msgstr "L'importateur récursif n'importera pas les paquets pour lesquels Guix a déjà une définition, sauf pour le tout premier."
  2014. #. type: Plain text
  2015. #: guix-git/doc/guix-cookbook.texi:1251
  2016. msgid "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})."
  2017. msgstr "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})."
  2018. #. type: subsubsection
  2019. #: guix-git/doc/guix-cookbook.texi:1252 guix-git/doc/guix-cookbook.texi:1253
  2020. #, no-wrap
  2021. msgid "Automatic update"
  2022. msgstr "Mise à jour automatique"
  2023. #. type: Plain text
  2024. #: guix-git/doc/guix-cookbook.texi:1257
  2025. msgid "Guix can be smart enough to check for updates on systems it knows. It can report outdated package definitions with"
  2026. msgstr "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"
  2027. #. type: example
  2028. #: guix-git/doc/guix-cookbook.texi:1260
  2029. #, no-wrap
  2030. msgid "$ guix refresh hello\n"
  2031. msgstr "$ guix refresh hello\n"
  2032. #. type: Plain text
  2033. #: guix-git/doc/guix-cookbook.texi:1265
  2034. msgid "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:"
  2035. msgstr "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 :"
  2036. #. type: example
  2037. #: guix-git/doc/guix-cookbook.texi:1268
  2038. #, no-wrap
  2039. msgid "$ guix refresh hello --update\n"
  2040. msgstr "$ guix refresh hello --update\n"
  2041. #. type: subsubsection
  2042. #: guix-git/doc/guix-cookbook.texi:1270 guix-git/doc/guix-cookbook.texi:1271
  2043. #, no-wrap
  2044. msgid "Inheritance"
  2045. msgstr "Héritage"
  2046. #. type: Plain text
  2047. #: guix-git/doc/guix-cookbook.texi:1275
  2048. msgid "If you've started browsing the existing package definitions, you might have noticed that a significant number of them have a @code{inherit} field:"
  2049. msgstr "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} :"
  2050. #. type: lisp
  2051. #: guix-git/doc/guix-cookbook.texi:1291
  2052. #, no-wrap
  2053. msgid ""
  2054. "(define-public adwaita-icon-theme\n"
  2055. " (package (inherit gnome-icon-theme)\n"
  2056. " (name \"adwaita-icon-theme\")\n"
  2057. " (version \"3.26.1\")\n"
  2058. " (source (origin\n"
  2059. " (method url-fetch)\n"
  2060. " (uri (string-append \"mirror://gnome/sources/\" name \"/\"\n"
  2061. " (version-major+minor version) \"/\"\n"
  2062. " name \"-\" version \".tar.xz\"))\n"
  2063. " (sha256\n"
  2064. " (base32\n"
  2065. " \"17fpahgh5dyckgz7rwqvzgnhx53cx9kr2xw0szprc6bnqy977fi8\"))))\n"
  2066. " (native-inputs\n"
  2067. " `((\"gtk-encode-symbolic-svg\" ,gtk+ \"bin\")))))\n"
  2068. msgstr ""
  2069. "(define-public adwaita-icon-theme\n"
  2070. " (package (inherit gnome-icon-theme)\n"
  2071. " (name \"adwaita-icon-theme\")\n"
  2072. " (version \"3.26.1\")\n"
  2073. " (source (origin\n"
  2074. " (method url-fetch)\n"
  2075. " (uri (string-append \"mirror://gnome/sources/\" name \"/\"\n"
  2076. " (version-major+minor version) \"/\"\n"
  2077. " name \"-\" version \".tar.xz\"))\n"
  2078. " (sha256\n"
  2079. " (base32\n"
  2080. " \"17fpahgh5dyckgz7rwqvzgnhx53cx9kr2xw0szprc6bnqy977fi8\"))))\n"
  2081. " (native-inputs\n"
  2082. " `((\"gtk-encode-symbolic-svg\" ,gtk+ \"bin\")))))\n"
  2083. #. type: Plain text
  2084. #: guix-git/doc/guix-cookbook.texi:1296
  2085. msgid "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."
  2086. msgstr "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."
  2087. #. type: subsection
  2088. #: guix-git/doc/guix-cookbook.texi:1297 guix-git/doc/guix-cookbook.texi:1298
  2089. #, no-wrap
  2090. msgid "Getting help"
  2091. msgstr "Se faire aider"
  2092. #. type: Plain text
  2093. #: guix-git/doc/guix-cookbook.texi:1304
  2094. msgid "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."
  2095. msgstr "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."
  2096. #. type: Plain text
  2097. #: guix-git/doc/guix-cookbook.texi:1307
  2098. msgid "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."
  2099. msgstr "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é."
  2100. #. type: Plain text
  2101. #: guix-git/doc/guix-cookbook.texi:1309
  2102. msgid "See the @uref{https://www.gnu.org/software/guix/contact/, Guix homepage} for information on the mailing lists, IRC, etc."
  2103. msgstr "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."
  2104. #. type: subsection
  2105. #: guix-git/doc/guix-cookbook.texi:1310 guix-git/doc/guix-cookbook.texi:1311
  2106. #, no-wrap
  2107. msgid "Conclusion"
  2108. msgstr "Conclusion"
  2109. #. type: Plain text
  2110. #: guix-git/doc/guix-cookbook.texi:1317
  2111. msgid "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."
  2112. msgstr "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."
  2113. #. type: Plain text
  2114. #: guix-git/doc/guix-cookbook.texi:1322
  2115. msgid "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."
  2116. msgstr "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."
  2117. #. type: Plain text
  2118. #: guix-git/doc/guix-cookbook.texi:1325
  2119. msgid "Other features worth exploring are the interactive editing and debugging capabilities of Guix provided by the Guile REPL@."
  2120. msgstr "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."
  2121. #. type: Plain text
  2122. #: guix-git/doc/guix-cookbook.texi:1330
  2123. msgid "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!"
  2124. msgstr "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 !"
  2125. #. type: subsection
  2126. #: guix-git/doc/guix-cookbook.texi:1331 guix-git/doc/guix-cookbook.texi:1332
  2127. #, no-wrap
  2128. msgid "References"
  2129. msgstr "Références"
  2130. #. type: itemize
  2131. #: guix-git/doc/guix-cookbook.texi:1337
  2132. msgid "The @uref{https://www.gnu.org/software/guix/manual/en/html_node/Defining-Packages.html, package reference in the manual}"
  2133. msgstr "La @uref{https://guix.gnu.org/manual/devel/fr/html_node/reference-de-package.html, référence des paquets dans le manuel}"
  2134. #. type: itemize
  2135. #: guix-git/doc/guix-cookbook.texi:1340
  2136. msgid "@uref{https://gitlab.com/pjotrp/guix-notes/blob/master/HACKING.org, Pjotr’s hacking guide to GNU Guix}"
  2137. msgstr "@uref{https://gitlab.com/pjotrp/guix-notes/blob/master/HACKING.org, le guide de bidouillage de GNU Guix de Pjotr}"
  2138. #. type: itemize
  2139. #: guix-git/doc/guix-cookbook.texi:1343
  2140. msgid "@uref{https://www.gnu.org/software/guix/guix-ghm-andreas-20130823.pdf, ``GNU Guix: Package without a scheme!''}, by Andreas Enge"
  2141. msgstr "@uref{https://www.gnu.org/software/guix/guix-ghm-andreas-20130823.pdf, « GNU Guix: Package without a scheme! »}, d'Andreas Enge"
  2142. #. type: Plain text
  2143. #: guix-git/doc/guix-cookbook.texi:1352
  2144. msgid "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."
  2145. msgstr "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."
  2146. #. type: Plain text
  2147. #: guix-git/doc/guix-cookbook.texi:1355
  2148. msgid "@pxref{System Configuration,,, guix, GNU Guix Reference Manual} for a complete reference."
  2149. msgstr "@pxref{Configuration du système,,, guix.fr, le manuel de référence de GNU Guix} pour une référence complète."
  2150. #. type: section
  2151. #: guix-git/doc/guix-cookbook.texi:1366 guix-git/doc/guix-cookbook.texi:1653
  2152. #: guix-git/doc/guix-cookbook.texi:1654
  2153. #, no-wrap
  2154. msgid "Guix System Image API"
  2155. msgstr "L'API de création d'images du système Guix"
  2156. #. type: menuentry
  2157. #: guix-git/doc/guix-cookbook.texi:1366
  2158. msgid "Customizing images to target specific platforms."
  2159. msgstr "Personnaliser des images pour des plateformes particulières."
  2160. #. type: section
  2161. #: guix-git/doc/guix-cookbook.texi:1366 guix-git/doc/guix-cookbook.texi:1864
  2162. #: guix-git/doc/guix-cookbook.texi:1865
  2163. #, no-wrap
  2164. msgid "Connecting to Wireguard VPN"
  2165. msgstr "Se connecter à un VPN Wireguard"
  2166. #. type: menuentry
  2167. #: guix-git/doc/guix-cookbook.texi:1366
  2168. msgid "Connecting to a Wireguard VPN."
  2169. msgstr "Se connecter à un VPN Wireguard."
  2170. #. type: section
  2171. #: guix-git/doc/guix-cookbook.texi:1366 guix-git/doc/guix-cookbook.texi:1941
  2172. #: guix-git/doc/guix-cookbook.texi:1942
  2173. #, no-wrap
  2174. msgid "Customizing a Window Manager"
  2175. msgstr "Personnaliser un gestionnaire de fenêtres"
  2176. #. type: menuentry
  2177. #: guix-git/doc/guix-cookbook.texi:1366
  2178. msgid "Handle customization of a Window manager on Guix System."
  2179. msgstr "Gérer la personnalisation d'un gestionnaire de fenêtres sur le système Guix."
  2180. #. type: section
  2181. #: guix-git/doc/guix-cookbook.texi:1366 guix-git/doc/guix-cookbook.texi:2032
  2182. #: guix-git/doc/guix-cookbook.texi:2033
  2183. #, no-wrap
  2184. msgid "Running Guix on a Linode Server"
  2185. msgstr "Lancer Guix sur un serveur Linode"
  2186. #. type: section
  2187. #: guix-git/doc/guix-cookbook.texi:1366 guix-git/doc/guix-cookbook.texi:2272
  2188. #: guix-git/doc/guix-cookbook.texi:2273
  2189. #, no-wrap
  2190. msgid "Setting up a bind mount"
  2191. msgstr "Mettre en place un montage dupliqué"
  2192. #. type: menuentry
  2193. #: guix-git/doc/guix-cookbook.texi:1366
  2194. msgid "Setting up a bind mount in the file-systems definition."
  2195. msgstr "Mettre en place un montage dupliqué dans une définition de système de fichiers."
  2196. #. type: section
  2197. #: guix-git/doc/guix-cookbook.texi:1366 guix-git/doc/guix-cookbook.texi:2321
  2198. #: guix-git/doc/guix-cookbook.texi:2322
  2199. #, no-wrap
  2200. msgid "Getting substitutes from Tor"
  2201. msgstr "Récupérer des substituts via Tor"
  2202. #. type: menuentry
  2203. #: guix-git/doc/guix-cookbook.texi:1366
  2204. msgid "Configuring Guix daemon to get substitutes through Tor."
  2205. msgstr "Configurer le démon Guix pour récupérer les substituts via Tor."
  2206. #. type: section
  2207. #: guix-git/doc/guix-cookbook.texi:1366 guix-git/doc/guix-cookbook.texi:2383
  2208. #: guix-git/doc/guix-cookbook.texi:2384
  2209. #, no-wrap
  2210. msgid "Setting up NGINX with Lua"
  2211. msgstr "Configurer NGINX avec Lua"
  2212. #. type: menuentry
  2213. #: guix-git/doc/guix-cookbook.texi:1366
  2214. msgid "Configuring NGINX web-server to load Lua modules."
  2215. msgstr "Configurer le serveur web NGINX pour qu'il charge des modules Lua."
  2216. #. type: Plain text
  2217. #: guix-git/doc/guix-cookbook.texi:1378
  2218. msgid "While the Guix manual explains auto-login one user to @emph{all} TTYs ( @pxref{auto-login to TTY,,, guix, GNU Guix Reference Manual}), some might prefer a situation, in which one user is logged into one TTY with the other TTYs either configured to login different users or no one at all. Note that one can auto-login one user to any TTY, but it is usually advisable to avoid @code{tty1}, which, by default, is used to log warnings and errors."
  2219. msgstr "Tandis que le manuel de Guix explique comment connecter automatiquement un utilisateur sur @emph{tous} les TTY (@pxref{connexion automatique à un TTY,,, guix.fr, le manuel de référence de Guix}), vous pourriez préférer avoir un utilisateur connecté sur un TTY et configurer les autres TTY pour connecter d'autres utilisateurs ou personne. Remarquez que vous pouvez connecter automatiquement un utilisateur sur n'importe quel TTY, mais il est recommandé d'éviter @code{tty1}, car par défaut, il est utilisé pour afficher les avertissements et les erreurs des journaux systèmes."
  2220. #. type: Plain text
  2221. #: guix-git/doc/guix-cookbook.texi:1380
  2222. msgid "Here is how one might set up auto login for one user to one tty:"
  2223. msgstr "Voici comment on peut configurer la connexion d'un utilisateur sur un tty :"
  2224. #. type: lisp
  2225. #: guix-git/doc/guix-cookbook.texi:1388
  2226. #, no-wrap
  2227. msgid ""
  2228. "(define (auto-login-to-tty config tty user)\n"
  2229. " (if (string=? tty (mingetty-configuration-tty config))\n"
  2230. " (mingetty-configuration\n"
  2231. " (inherit config)\n"
  2232. " (auto-login user))\n"
  2233. " config))\n"
  2234. "\n"
  2235. msgstr ""
  2236. "(define (auto-login-to-tty config tty user)\n"
  2237. " (if (string=? tty (mingetty-configuration-tty config))\n"
  2238. " (mingetty-configuration\n"
  2239. " (inherit config)\n"
  2240. " (auto-login user))\n"
  2241. " config))\n"
  2242. "\n"
  2243. #. type: lisp
  2244. #: guix-git/doc/guix-cookbook.texi:1395
  2245. #, no-wrap
  2246. msgid ""
  2247. "(define %my-services\n"
  2248. " (modify-services %base-services\n"
  2249. " ;; @dots{}\n"
  2250. " (mingetty-service-type config =>\n"
  2251. " (auto-login-to-tty\n"
  2252. " config \"tty3\" \"alice\"))))\n"
  2253. "\n"
  2254. msgstr ""
  2255. "(define %my-services\n"
  2256. " (modify-services %base-services\n"
  2257. " ;; @dots{}\n"
  2258. " (mingetty-service-type config =>\n"
  2259. " (auto-login-to-tty\n"
  2260. " config \"tty3\" \"alice\"))))\n"
  2261. "\n"
  2262. #. type: lisp
  2263. #: guix-git/doc/guix-cookbook.texi:1399
  2264. #, no-wrap
  2265. msgid ""
  2266. "(operating-system\n"
  2267. " ;; @dots{}\n"
  2268. " (services %my-services))\n"
  2269. msgstr ""
  2270. "(operating-system\n"
  2271. " ;; @dots{}\n"
  2272. " (services %my-services))\n"
  2273. #. type: Plain text
  2274. #: guix-git/doc/guix-cookbook.texi:1404
  2275. msgid "One could also @code{compose} (@pxref{Higher-Order Functions,,, guile, The Guile Reference Manual}) @code{auto-login-to-tty} to login multiple users to multiple ttys."
  2276. msgstr "On peut aussi utiliser @code{compose} (@pxref{Higher-Order Functions,,, guile, The Guile Reference Manual}) avec @code{auto-login-to-tty} pour connecter plusieurs utilisateurs sur différents ttys."
  2277. #. type: Plain text
  2278. #: guix-git/doc/guix-cookbook.texi:1411
  2279. msgid "Finally, here is a note of caution. Setting up auto login to a TTY, means that anyone can turn on your computer and run commands as your regular user. However, if you have an encrypted root partition, and thus already need to enter a passphrase when the system boots, auto-login might be a convenient option."
  2280. msgstr "Enfin, une mise en garde. Configurer la connexion automatique à un TTY signifie que n'importe qui peut allumer votre ordinateur et lancer des commandes avec votre utilisateur normal. Cependant, si vous avez une partition racine chiffrée, et donc qu'il faut déjà saisir une phrase de passe au démarrage du système, la connexion automatique peut être un choix pratique."
  2281. #. type: Plain text
  2282. #: guix-git/doc/guix-cookbook.texi:1423
  2283. msgid "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."
  2284. msgstr "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."
  2285. #. type: Plain text
  2286. #: guix-git/doc/guix-cookbook.texi:1429
  2287. msgid "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."
  2288. msgstr "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."
  2289. #. type: Plain text
  2290. #: guix-git/doc/guix-cookbook.texi:1434
  2291. msgid "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."
  2292. msgstr "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."
  2293. #. type: Plain text
  2294. #: guix-git/doc/guix-cookbook.texi:1437
  2295. msgid "The @code{linux-libre} kernel package definition is actually a procedure which creates a package."
  2296. msgstr "Le paquet du noyau @code{linux-libre} est en fait une procédure qui crée un paquet."
  2297. #. type: lisp
  2298. #: guix-git/doc/guix-cookbook.texi:1449
  2299. #, no-wrap
  2300. msgid ""
  2301. "(define* (make-linux-libre version hash supported-systems\n"
  2302. " #:key\n"
  2303. " ;; A function that takes an arch and a variant.\n"
  2304. " ;; See kernel-config for an example.\n"
  2305. " (extra-version #false)\n"
  2306. " (configuration-file #false)\n"
  2307. " (defconfig \"defconfig\")\n"
  2308. " (extra-options %default-extra-linux-options)\n"
  2309. " (patches (list %boot-logo-patch)))\n"
  2310. " ...)\n"
  2311. msgstr ""
  2312. "(define* (make-linux-libre version hash supported-systems\n"
  2313. " #:key\n"
  2314. " ;; A function that takes an arch and a variant.\n"
  2315. " ;; See kernel-config for an example.\n"
  2316. " (extra-version #false)\n"
  2317. " (configuration-file #false)\n"
  2318. " (defconfig \"defconfig\")\n"
  2319. " (extra-options %default-extra-linux-options)\n"
  2320. " (patches (list %boot-logo-patch)))\n"
  2321. " ...)\n"
  2322. #. type: Plain text
  2323. #: guix-git/doc/guix-cookbook.texi:1453
  2324. msgid "The current @code{linux-libre} package is for the 5.1.x series, and is declared like this:"
  2325. msgstr "Le paquet @code{linux-libre} actuel pour la série 5.1.x, est déclaré comme ceci :"
  2326. #. type: lisp
  2327. #: guix-git/doc/guix-cookbook.texi:1461
  2328. #, no-wrap
  2329. msgid ""
  2330. "(define-public linux-libre\n"
  2331. " (make-linux-libre %linux-libre-version\n"
  2332. " %linux-libre-hash\n"
  2333. " '(\"x86_64-linux\" \"i686-linux\" \"armhf-linux\" \"aarch64-linux\")\n"
  2334. " #:patches %linux-libre-5.1-patches\n"
  2335. " #:configuration-file kernel-config))\n"
  2336. msgstr ""
  2337. "(define-public linux-libre\n"
  2338. " (make-linux-libre %linux-libre-version\n"
  2339. " %linux-libre-hash\n"
  2340. " '(\"x86_64-linux\" \"i686-linux\" \"armhf-linux\" \"aarch64-linux\")\n"
  2341. " #:patches %linux-libre-5.1-patches\n"
  2342. " #:configuration-file kernel-config))\n"
  2343. #. type: Plain text
  2344. #: guix-git/doc/guix-cookbook.texi:1470
  2345. msgid "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."
  2346. msgstr "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."
  2347. #. type: Plain text
  2348. #: guix-git/doc/guix-cookbook.texi:1476
  2349. msgid "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:"
  2350. msgstr "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} :"
  2351. #. type: lisp
  2352. #: guix-git/doc/guix-cookbook.texi:1480
  2353. #, no-wrap
  2354. msgid ""
  2355. "(let ((build (assoc-ref %standard-phases 'build))\n"
  2356. " (config (assoc-ref (or native-inputs inputs) \"kconfig\")))\n"
  2357. "\n"
  2358. msgstr ""
  2359. "(let ((build (assoc-ref %standard-phases 'build))\n"
  2360. " (config (assoc-ref (or native-inputs inputs) \"kconfig\")))\n"
  2361. "\n"
  2362. #. type: lisp
  2363. #: guix-git/doc/guix-cookbook.texi:1488
  2364. #, no-wrap
  2365. msgid ""
  2366. " ;; Use a custom kernel configuration file or a default\n"
  2367. " ;; configuration file.\n"
  2368. " (if config\n"
  2369. " (begin\n"
  2370. " (copy-file config \".config\")\n"
  2371. " (chmod \".config\" #o666))\n"
  2372. " (invoke \"make\" ,defconfig)))\n"
  2373. msgstr ""
  2374. " ;; Use a custom kernel configuration file or a default\n"
  2375. " ;; configuration file.\n"
  2376. " (if config\n"
  2377. " (begin\n"
  2378. " (copy-file config \".config\")\n"
  2379. " (chmod \".config\" #o666))\n"
  2380. " (invoke \"make\" ,defconfig)))\n"
  2381. #. type: Plain text
  2382. #: guix-git/doc/guix-cookbook.texi:1493
  2383. msgid "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:"
  2384. msgstr "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 :"
  2385. #. type: lisp
  2386. #: guix-git/doc/guix-cookbook.texi:1502
  2387. #, no-wrap
  2388. msgid ""
  2389. "(define-public linux-libre/E2140\n"
  2390. " (package\n"
  2391. " (inherit linux-libre)\n"
  2392. " (native-inputs\n"
  2393. " `((\"kconfig\" ,(local-file \"E2140.config\"))\n"
  2394. " ,@@(alist-delete \"kconfig\"\n"
  2395. " (package-native-inputs linux-libre))))))\n"
  2396. msgstr ""
  2397. "(define-public linux-libre/E2140\n"
  2398. " (package\n"
  2399. " (inherit linux-libre)\n"
  2400. " (native-inputs\n"
  2401. " `((\"kconfig\" ,(local-file \"E2140.config\"))\n"
  2402. " ,@@(alist-delete \"kconfig\"\n"
  2403. " (package-native-inputs linux-libre))))))\n"
  2404. #. type: Plain text
  2405. #: guix-git/doc/guix-cookbook.texi:1509
  2406. msgid "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."
  2407. msgstr "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}."
  2408. #. type: Plain text
  2409. #: guix-git/doc/guix-cookbook.texi:1514
  2410. msgid "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:"
  2411. msgstr "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 :"
  2412. #. type: lisp
  2413. #: guix-git/doc/guix-cookbook.texi:1530
  2414. #, no-wrap
  2415. msgid ""
  2416. "(define %default-extra-linux-options\n"
  2417. " `(;; https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00039.html\n"
  2418. " (\"CONFIG_DEVPTS_MULTIPLE_INSTANCES\" . #true)\n"
  2419. " ;; Modules required for initrd:\n"
  2420. " (\"CONFIG_NET_9P\" . m)\n"
  2421. " (\"CONFIG_NET_9P_VIRTIO\" . m)\n"
  2422. " (\"CONFIG_VIRTIO_BLK\" . m)\n"
  2423. " (\"CONFIG_VIRTIO_NET\" . m)\n"
  2424. " (\"CONFIG_VIRTIO_PCI\" . m)\n"
  2425. " (\"CONFIG_VIRTIO_BALLOON\" . m)\n"
  2426. " (\"CONFIG_VIRTIO_MMIO\" . m)\n"
  2427. " (\"CONFIG_FUSE_FS\" . m)\n"
  2428. " (\"CONFIG_CIFS\" . m)\n"
  2429. " (\"CONFIG_9P_FS\" . m)))\n"
  2430. "\n"
  2431. msgstr ""
  2432. "(define %default-extra-linux-options\n"
  2433. " `(;; https://lists.gnu.org/archive/html/guix-devel/2014-04/msg00039.html\n"
  2434. " (\"CONFIG_DEVPTS_MULTIPLE_INSTANCES\" . #true)\n"
  2435. " ;; Modules required for initrd:\n"
  2436. " (\"CONFIG_NET_9P\" . m)\n"
  2437. " (\"CONFIG_NET_9P_VIRTIO\" . m)\n"
  2438. " (\"CONFIG_VIRTIO_BLK\" . m)\n"
  2439. " (\"CONFIG_VIRTIO_NET\" . m)\n"
  2440. " (\"CONFIG_VIRTIO_PCI\" . m)\n"
  2441. " (\"CONFIG_VIRTIO_BALLOON\" . m)\n"
  2442. " (\"CONFIG_VIRTIO_MMIO\" . m)\n"
  2443. " (\"CONFIG_FUSE_FS\" . m)\n"
  2444. " (\"CONFIG_CIFS\" . m)\n"
  2445. " (\"CONFIG_9P_FS\" . m)))\n"
  2446. "\n"
  2447. #. type: lisp
  2448. #: guix-git/doc/guix-cookbook.texi:1541
  2449. #, no-wrap
  2450. msgid ""
  2451. "(define (config->string options)\n"
  2452. " (string-join (map (match-lambda\n"
  2453. " ((option . 'm)\n"
  2454. " (string-append option \"=m\"))\n"
  2455. " ((option . #true)\n"
  2456. " (string-append option \"=y\"))\n"
  2457. " ((option . #false)\n"
  2458. " (string-append option \"=n\")))\n"
  2459. " options)\n"
  2460. " \"\\n\"))\n"
  2461. msgstr ""
  2462. "(define (config->string options)\n"
  2463. " (string-join (map (match-lambda\n"
  2464. " ((option . 'm)\n"
  2465. " (string-append option \"=m\"))\n"
  2466. " ((option . #true)\n"
  2467. " (string-append option \"=y\"))\n"
  2468. " ((option . #false)\n"
  2469. " (string-append option \"=n\")))\n"
  2470. " options)\n"
  2471. " \"\\n\"))\n"
  2472. #. type: Plain text
  2473. #: guix-git/doc/guix-cookbook.texi:1544
  2474. msgid "And in the custom configure script from the `make-linux-libre` package:"
  2475. msgstr "Et dans le script configure personnalisé du paquet « make-linux-libre » :"
  2476. #. type: lisp
  2477. #: guix-git/doc/guix-cookbook.texi:1552
  2478. #, no-wrap
  2479. msgid ""
  2480. ";; Appending works even when the option wasn't in the\n"
  2481. ";; file. The last one prevails if duplicated.\n"
  2482. "(let ((port (open-file \".config\" \"a\"))\n"
  2483. " (extra-configuration ,(config->string extra-options)))\n"
  2484. " (display extra-configuration port)\n"
  2485. " (close-port port))\n"
  2486. "\n"
  2487. msgstr ""
  2488. ";; Appending works even when the option wasn't in the\n"
  2489. ";; file. The last one prevails if duplicated.\n"
  2490. "(let ((port (open-file \".config\" \"a\"))\n"
  2491. " (extra-configuration ,(config->string extra-options)))\n"
  2492. " (display extra-configuration port)\n"
  2493. " (close-port port))\n"
  2494. "\n"
  2495. #. type: lisp
  2496. #: guix-git/doc/guix-cookbook.texi:1554
  2497. #, no-wrap
  2498. msgid "(invoke \"make\" \"oldconfig\")\n"
  2499. msgstr "(invoke \"make\" \"oldconfig\")\n"
  2500. #. type: Plain text
  2501. #: guix-git/doc/guix-cookbook.texi:1559
  2502. msgid "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:"
  2503. msgstr "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é :"
  2504. #. type: lisp
  2505. #: guix-git/doc/guix-cookbook.texi:1567
  2506. #, no-wrap
  2507. msgid ""
  2508. "(define %macbook41-full-config\n"
  2509. " (append %macbook41-config-options\n"
  2510. " %file-systems\n"
  2511. " %efi-support\n"
  2512. " %emulation\n"
  2513. " (@@@@ (gnu packages linux) %default-extra-linux-options)))\n"
  2514. "\n"
  2515. msgstr ""
  2516. "(define %macbook41-full-config\n"
  2517. " (append %macbook41-config-options\n"
  2518. " %file-systems\n"
  2519. " %efi-support\n"
  2520. " %emulation\n"
  2521. " (@@@@ (gnu packages linux) %default-extra-linux-options)))\n"
  2522. "\n"
  2523. #. type: lisp
  2524. #: guix-git/doc/guix-cookbook.texi:1577
  2525. #, no-wrap
  2526. msgid ""
  2527. "(define-public linux-libre-macbook41\n"
  2528. " ;; XXX: Access the internal 'make-linux-libre' procedure, which is\n"
  2529. " ;; private and unexported, and is liable to change in the future.\n"
  2530. " ((@@@@ (gnu packages linux) make-linux-libre) (@@@@ (gnu packages linux) %linux-libre-version)\n"
  2531. " (@@@@ (gnu packages linux) %linux-libre-hash)\n"
  2532. " '(\"x86_64-linux\")\n"
  2533. " #:extra-version \"macbook41\"\n"
  2534. " #:patches (@@@@ (gnu packages linux) %linux-libre-5.1-patches)\n"
  2535. " #:extra-options %macbook41-config-options))\n"
  2536. msgstr ""
  2537. "(define-public linux-libre-macbook41\n"
  2538. " ;; XXX: Access the internal 'make-linux-libre' procedure, which is\n"
  2539. " ;; private and unexported, and is liable to change in the future.\n"
  2540. " ((@@@@ (gnu packages linux) make-linux-libre) (@@@@ (gnu packages linux) %linux-libre-version)\n"
  2541. " (@@@@ (gnu packages linux) %linux-libre-hash)\n"
  2542. " '(\"x86_64-linux\")\n"
  2543. " #:extra-version \"macbook41\"\n"
  2544. " #:patches (@@@@ (gnu packages linux) %linux-libre-5.1-patches)\n"
  2545. " #:extra-options %macbook41-config-options))\n"
  2546. #. type: Plain text
  2547. #: guix-git/doc/guix-cookbook.texi:1584
  2548. msgid "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."
  2549. msgstr "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}."
  2550. #. type: Plain text
  2551. #: guix-git/doc/guix-cookbook.texi:1593
  2552. msgid "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."
  2553. msgstr "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."
  2554. #. type: Plain text
  2555. #: guix-git/doc/guix-cookbook.texi:1596
  2556. msgid "In order to actually run @code{make localmodconfig} we first need to get and unpack the kernel source code:"
  2557. msgstr "Pour lancer @code{make localmodconfig} on doit d'abord récupérer et décompresser le code source du noyau :"
  2558. #. type: example
  2559. #: guix-git/doc/guix-cookbook.texi:1599
  2560. #, no-wrap
  2561. msgid "tar xf $(guix build linux-libre --source)\n"
  2562. msgstr "tar xf $(guix build linux-libre --source)\n"
  2563. #. type: Plain text
  2564. #: guix-git/doc/guix-cookbook.texi:1606
  2565. msgid "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:"
  2566. msgstr "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 :"
  2567. #. type: example
  2568. #: guix-git/doc/guix-cookbook.texi:1609
  2569. #, no-wrap
  2570. msgid "guix environment linux-libre -- make localmodconfig\n"
  2571. msgstr "guix environment linux-libre -- make localmodconfig\n"
  2572. #. type: Plain text
  2573. #: guix-git/doc/guix-cookbook.texi:1614
  2574. msgid "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:"
  2575. msgstr "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 :"
  2576. #. type: example
  2577. #: guix-git/doc/guix-cookbook.texi:1617
  2578. #, no-wrap
  2579. msgid "module pcspkr did not have configs CONFIG_INPUT_PCSPKR\n"
  2580. msgstr "module pcspkr did not have configs CONFIG_INPUT_PCSPKR\n"
  2581. #. type: Plain text
  2582. #: guix-git/doc/guix-cookbook.texi:1622
  2583. msgid "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:"
  2584. msgstr "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 :"
  2585. #. type: example
  2586. #: guix-git/doc/guix-cookbook.texi:1626
  2587. #, no-wrap
  2588. msgid ""
  2589. "CONFIG_INPUT_PCSPKR=m\n"
  2590. "CONFIG_VIRTIO=m\n"
  2591. msgstr ""
  2592. "CONFIG_INPUT_PCSPKR=m\n"
  2593. "CONFIG_VIRTIO=m\n"
  2594. #. type: Plain text
  2595. #: guix-git/doc/guix-cookbook.texi:1635
  2596. msgid "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."
  2597. msgstr "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."
  2598. #. type: Plain text
  2599. #: guix-git/doc/guix-cookbook.texi:1639
  2600. msgid "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."
  2601. msgstr "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."
  2602. #. type: Plain text
  2603. #: guix-git/doc/guix-cookbook.texi:1647
  2604. msgid "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."
  2605. msgstr "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."
  2606. #. type: Plain text
  2607. #: guix-git/doc/guix-cookbook.texi:1652
  2608. msgid "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."
  2609. msgstr "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."
  2610. #. type: Plain text
  2611. #: guix-git/doc/guix-cookbook.texi:1659
  2612. msgid "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."
  2613. msgstr "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."
  2614. #. type: Plain text
  2615. #: guix-git/doc/guix-cookbook.texi:1665
  2616. msgid "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."
  2617. msgstr "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."
  2618. #. type: Plain text
  2619. #: guix-git/doc/guix-cookbook.texi:1670
  2620. msgid "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."
  2621. msgstr "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."
  2622. #. type: lisp
  2623. #: guix-git/doc/guix-cookbook.texi:1692
  2624. #, no-wrap
  2625. msgid ""
  2626. "(define-record-type* <image>\n"
  2627. " image make-image\n"
  2628. " image?\n"
  2629. " (name image-name ;symbol\n"
  2630. " (default #f))\n"
  2631. " (format image-format) ;symbol\n"
  2632. " (target image-target\n"
  2633. " (default #f))\n"
  2634. " (size image-size ;size in bytes as integer\n"
  2635. " (default 'guess))\n"
  2636. " (operating-system image-operating-system ;<operating-system>\n"
  2637. " (default #f))\n"
  2638. " (partitions image-partitions ;list of <partition>\n"
  2639. " (default '()))\n"
  2640. " (compression? image-compression? ;boolean\n"
  2641. " (default #t))\n"
  2642. " (volatile-root? image-volatile-root? ;boolean\n"
  2643. " (default #t))\n"
  2644. " (substitutable? image-substitutable? ;boolean\n"
  2645. " (default #t)))\n"
  2646. msgstr ""
  2647. "(define-record-type* <image>\n"
  2648. " image make-image\n"
  2649. " image?\n"
  2650. " (name image-name ;symbol\n"
  2651. " (default #f))\n"
  2652. " (format image-format) ;symbol\n"
  2653. " (target image-target\n"
  2654. " (default #f))\n"
  2655. " (size image-size ;size in bytes as integer\n"
  2656. " (default 'guess))\n"
  2657. " (operating-system image-operating-system ;<operating-system>\n"
  2658. " (default #f))\n"
  2659. " (partitions image-partitions ;list of <partition>\n"
  2660. " (default '()))\n"
  2661. " (compression? image-compression? ;boolean\n"
  2662. " (default #t))\n"
  2663. " (volatile-root? image-volatile-root? ;boolean\n"
  2664. " (default #t))\n"
  2665. " (substitutable? image-substitutable? ;boolean\n"
  2666. " (default #t)))\n"
  2667. #. type: Plain text
  2668. #: guix-git/doc/guix-cookbook.texi:1698
  2669. msgid "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."
  2670. msgstr "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."
  2671. #. type: Plain text
  2672. #: guix-git/doc/guix-cookbook.texi:1701
  2673. msgid "A new directory in the Guix sources is dedicated to images definition. For now there are four files:"
  2674. msgstr "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 :"
  2675. #. type: file{#1}
  2676. #: guix-git/doc/guix-cookbook.texi:1703
  2677. #, no-wrap
  2678. msgid "gnu/system/images/hurd.scm"
  2679. msgstr "gnu/system/images/hurd.scm"
  2680. #. type: file{#1}
  2681. #: guix-git/doc/guix-cookbook.texi:1704
  2682. #, no-wrap
  2683. msgid "gnu/system/images/pine64.scm"
  2684. msgstr "gnu/system/images/pine64.scm"
  2685. #. type: file{#1}
  2686. #: guix-git/doc/guix-cookbook.texi:1705
  2687. #, no-wrap
  2688. msgid "gnu/system/images/novena.scm"
  2689. msgstr "gnu/system/images/novena.scm"
  2690. #. type: file{#1}
  2691. #: guix-git/doc/guix-cookbook.texi:1706
  2692. #, no-wrap
  2693. msgid "gnu/system/images/pinebook-pro.scm"
  2694. msgstr "gnu/system/images/pinebook-pro.scm"
  2695. #. type: Plain text
  2696. #: guix-git/doc/guix-cookbook.texi:1712
  2697. msgid "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."
  2698. msgstr "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}."
  2699. #. type: lisp
  2700. #: guix-git/doc/guix-cookbook.texi:1736
  2701. #, no-wrap
  2702. msgid ""
  2703. "(define pine64-barebones-os\n"
  2704. " (operating-system\n"
  2705. " (host-name \"vignemale\")\n"
  2706. " (timezone \"Europe/Paris\")\n"
  2707. " (locale \"en_US.utf8\")\n"
  2708. " (bootloader (bootloader-configuration\n"
  2709. " (bootloader u-boot-pine64-lts-bootloader)\n"
  2710. " (target \"/dev/vda\")))\n"
  2711. " (initrd-modules '())\n"
  2712. " (kernel linux-libre-arm64-generic)\n"
  2713. " (file-systems (cons (file-system\n"
  2714. " (device (file-system-label \"my-root\"))\n"
  2715. " (mount-point \"/\")\n"
  2716. " (type \"ext4\"))\n"
  2717. " %base-file-systems))\n"
  2718. " (services (cons (service agetty-service-type\n"
  2719. " (agetty-configuration\n"
  2720. " (extra-options '(\"-L\")) ; no carrier detect\n"
  2721. " (baud-rate \"115200\")\n"
  2722. " (term \"vt100\")\n"
  2723. " (tty \"ttyS0\")))\n"
  2724. " %base-services))))\n"
  2725. msgstr ""
  2726. "(define pine64-barebones-os\n"
  2727. " (operating-system\n"
  2728. " (host-name \"vignemale\")\n"
  2729. " (timezone \"Europe/Paris\")\n"
  2730. " (locale \"en_US.utf8\")\n"
  2731. " (bootloader (bootloader-configuration\n"
  2732. " (bootloader u-boot-pine64-lts-bootloader)\n"
  2733. " (target \"/dev/vda\")))\n"
  2734. " (initrd-modules '())\n"
  2735. " (kernel linux-libre-arm64-generic)\n"
  2736. " (file-systems (cons (file-system\n"
  2737. " (device (file-system-label \"my-root\"))\n"
  2738. " (mount-point \"/\")\n"
  2739. " (type \"ext4\"))\n"
  2740. " %base-file-systems))\n"
  2741. " (services (cons (service agetty-service-type\n"
  2742. " (agetty-configuration\n"
  2743. " (extra-options '(\"-L\")) ; no carrier detect\n"
  2744. " (baud-rate \"115200\")\n"
  2745. " (term \"vt100\")\n"
  2746. " (tty \"ttyS0\")))\n"
  2747. " %base-services))))\n"
  2748. #. type: Plain text
  2749. #: guix-git/doc/guix-cookbook.texi:1740
  2750. msgid "The @code{kernel} and @code{bootloader} fields are pointing to packages dedicated to this board."
  2751. msgstr "Les champs @code{kernel} et @code{bootloader} pointent vers les paquets dédiés à cette carte."
  2752. #. type: Plain text
  2753. #: guix-git/doc/guix-cookbook.texi:1742
  2754. msgid "Right below, the @code{pine64-image-type} variable is also defined."
  2755. msgstr "Ci-dessous, la variable @code{pine64-image-type} est ainsi définie."
  2756. #. type: lisp
  2757. #: guix-git/doc/guix-cookbook.texi:1748
  2758. #, no-wrap
  2759. msgid ""
  2760. "(define pine64-image-type\n"
  2761. " (image-type\n"
  2762. " (name 'pine64-raw)\n"
  2763. " (constructor (cut image-with-os arm64-disk-image <>))))\n"
  2764. msgstr ""
  2765. "(define pine64-image-type\n"
  2766. " (image-type\n"
  2767. " (name 'pine64-raw)\n"
  2768. " (constructor (cut image-with-os arm64-disk-image <>))))\n"
  2769. #. type: Plain text
  2770. #: guix-git/doc/guix-cookbook.texi:1752
  2771. msgid "It's using a record we haven't talked about yet, the @code{image-type} record, defined this way:"
  2772. msgstr "Elle utilise un enregistrement dont nous n'avons pas encore parlé, l'enregistrement @code{image-type}, défini de cette façon :"
  2773. #. type: lisp
  2774. #: guix-git/doc/guix-cookbook.texi:1759
  2775. #, no-wrap
  2776. msgid ""
  2777. "(define-record-type* <image-type>\n"
  2778. " image-type make-image-type\n"
  2779. " image-type?\n"
  2780. " (name image-type-name) ;symbol\n"
  2781. " (constructor image-type-constructor)) ;<operating-system> -> <image>\n"
  2782. msgstr ""
  2783. "(define-record-type* <image-type>\n"
  2784. " image-type make-image-type\n"
  2785. " image-type?\n"
  2786. " (name image-type-name) ;symbol\n"
  2787. " (constructor image-type-constructor)) ;<operating-system> -> <image>\n"
  2788. #. type: Plain text
  2789. #: guix-git/doc/guix-cookbook.texi:1765
  2790. msgid "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:"
  2791. msgstr "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} :"
  2792. #. type: example
  2793. #: guix-git/doc/guix-cookbook.texi:1768
  2794. #, no-wrap
  2795. msgid "guix system image my-os.scm\n"
  2796. msgstr "guix system image my-os.scm\n"
  2797. #. type: Plain text
  2798. #: guix-git/doc/guix-cookbook.texi:1774
  2799. msgid "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:"
  2800. msgstr "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 :"
  2801. #. type: example
  2802. #: guix-git/doc/guix-cookbook.texi:1777
  2803. #, no-wrap
  2804. msgid "guix system image --image-type=pine64-raw my-os.scm\n"
  2805. msgstr "guix system image --image-type=pine64-raw my-os.scm\n"
  2806. #. type: Plain text
  2807. #: guix-git/doc/guix-cookbook.texi:1783
  2808. msgid "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."
  2809. msgstr "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."
  2810. #. type: Plain text
  2811. #: guix-git/doc/guix-cookbook.texi:1785
  2812. msgid "The resulting image looks like:"
  2813. msgstr "L'image qui en résulte ressemble à ceci :"
  2814. #. type: lisp
  2815. #: guix-git/doc/guix-cookbook.texi:1795
  2816. #, no-wrap
  2817. msgid ""
  2818. "(image\n"
  2819. " (format 'disk-image)\n"
  2820. " (target \"aarch64-linux-gnu\")\n"
  2821. " (operating-system my-os)\n"
  2822. " (partitions\n"
  2823. " (list (partition\n"
  2824. " (inherit root-partition)\n"
  2825. " (offset root-offset)))))\n"
  2826. msgstr ""
  2827. "(image\n"
  2828. " (format 'disk-image)\n"
  2829. " (target \"aarch64-linux-gnu\")\n"
  2830. " (operating-system my-os)\n"
  2831. " (partitions\n"
  2832. " (list (partition\n"
  2833. " (inherit root-partition)\n"
  2834. " (offset root-offset)))))\n"
  2835. #. type: Plain text
  2836. #: guix-git/doc/guix-cookbook.texi:1799
  2837. msgid "which is the aggregation of the @code{operating-system} defined in @code{my-os.scm} to the @code{arm64-disk-image} record."
  2838. msgstr "qui ajoute l'objet @code{operating-system} défini dans @code{my-os.scm} à l'enregistrement @code{arm64-disk-image}."
  2839. #. type: Plain text
  2840. #: guix-git/doc/guix-cookbook.texi:1801
  2841. msgid "But enough Scheme madness. What does this image API bring to the Guix user?"
  2842. msgstr "Mais assez de cette folie. Qu'est-ce que cette API pour les images apporte aux utilisateurs et utilisatrices ?"
  2843. #. type: Plain text
  2844. #: guix-git/doc/guix-cookbook.texi:1803
  2845. msgid "One can run:"
  2846. msgstr "On peut lancer :"
  2847. #. type: example
  2848. #: guix-git/doc/guix-cookbook.texi:1807
  2849. #, no-wrap
  2850. msgid ""
  2851. "mathieu@@cervin:~$ guix system --list-image-types\n"
  2852. "The available image types are:\n"
  2853. "\n"
  2854. msgstr ""
  2855. "mathieu@@cervin:~$ guix system --list-image-types\n"
  2856. "Les types d'image disponibles sont :\n"
  2857. "\n"
  2858. #. type: example
  2859. #: guix-git/doc/guix-cookbook.texi:1819
  2860. #, no-wrap
  2861. msgid ""
  2862. " - pinebook-pro-raw\n"
  2863. " - pine64-raw\n"
  2864. " - novena-raw\n"
  2865. " - hurd-raw\n"
  2866. " - hurd-qcow2\n"
  2867. " - qcow2\n"
  2868. " - uncompressed-iso9660\n"
  2869. " - efi-raw\n"
  2870. " - arm64-raw\n"
  2871. " - arm32-raw\n"
  2872. " - iso9660\n"
  2873. msgstr ""
  2874. " - pinebook-pro-raw\n"
  2875. " - pine64-raw\n"
  2876. " - novena-raw\n"
  2877. " - hurd-raw\n"
  2878. " - hurd-qcow2\n"
  2879. " - qcow2\n"
  2880. " - uncompressed-iso9660\n"
  2881. " - efi-raw\n"
  2882. " - arm64-raw\n"
  2883. " - arm32-raw\n"
  2884. " - iso9660\n"
  2885. #. type: Plain text
  2886. #: guix-git/doc/guix-cookbook.texi:1824
  2887. msgid "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:"
  2888. msgstr "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 :"
  2889. #. type: lisp
  2890. #: guix-git/doc/guix-cookbook.texi:1828
  2891. #, no-wrap
  2892. msgid ""
  2893. "(use-modules (gnu services linux)\n"
  2894. " (gnu system images pine64))\n"
  2895. "\n"
  2896. msgstr ""
  2897. "(use-modules (gnu services linux)\n"
  2898. " (gnu system images pine64))\n"
  2899. "\n"
  2900. #. type: lisp
  2901. #: guix-git/doc/guix-cookbook.texi:1839
  2902. #, no-wrap
  2903. msgid ""
  2904. "(let ((base-os pine64-barebones-os))\n"
  2905. " (operating-system\n"
  2906. " (inherit base-os)\n"
  2907. " (timezone \"America/Indiana/Indianapolis\")\n"
  2908. " (services\n"
  2909. " (cons\n"
  2910. " (service earlyoom-service-type\n"
  2911. " (earlyoom-configuration\n"
  2912. " (prefer-regexp \"icecat|chromium\")))\n"
  2913. " (operating-system-user-services base-os)))))\n"
  2914. msgstr ""
  2915. "(let ((base-os pine64-barebones-os))\n"
  2916. " (operating-system\n"
  2917. " (inherit base-os)\n"
  2918. " (timezone \"America/Indiana/Indianapolis\")\n"
  2919. " (services\n"
  2920. " (cons\n"
  2921. " (service earlyoom-service-type\n"
  2922. " (earlyoom-configuration\n"
  2923. " (prefer-regexp \"icecat|chromium\")))\n"
  2924. " (operating-system-user-services base-os)))))\n"
  2925. #. type: Plain text
  2926. #: guix-git/doc/guix-cookbook.texi:1842
  2927. msgid "run:"
  2928. msgstr "lancez :"
  2929. #. type: example
  2930. #: guix-git/doc/guix-cookbook.texi:1845
  2931. #, no-wrap
  2932. msgid "guix system image --image-type=pine64-raw my-pine-os.scm\n"
  2933. msgstr "guix system image --image-type=pine64-raw my-pine-os.scm\n"
  2934. #. type: Plain text
  2935. #: guix-git/doc/guix-cookbook.texi:1848
  2936. msgid "or,"
  2937. msgstr "ou bien,"
  2938. #. type: example
  2939. #: guix-git/doc/guix-cookbook.texi:1851
  2940. #, no-wrap
  2941. msgid "guix system image --image-type=hurd-raw my-hurd-os.scm\n"
  2942. msgstr "guix system image --image-type=hurd-raw my-hurd-os.scm\n"
  2943. #. type: Plain text
  2944. #: guix-git/doc/guix-cookbook.texi:1855
  2945. msgid "to get an image that can be written directly to a hard drive and booted from."
  2946. msgstr "pour récupérer une image que vous pouvez écrire sur un disque dur pour démarrer dessus."
  2947. #. type: Plain text
  2948. #: guix-git/doc/guix-cookbook.texi:1857
  2949. msgid "Without changing anything to @code{my-hurd-os.scm}, calling:"
  2950. msgstr "Sans rien changer à @code{my-hurd-os.scm}, en appelant :"
  2951. #. type: example
  2952. #: guix-git/doc/guix-cookbook.texi:1860
  2953. #, no-wrap
  2954. msgid "guix system image --image-type=hurd-qcow2 my-hurd-os.scm\n"
  2955. msgstr "guix system image --image-type=hurd-qcow2 my-hurd-os.scm\n"
  2956. #. type: Plain text
  2957. #: guix-git/doc/guix-cookbook.texi:1863
  2958. msgid "will instead produce a Hurd QEMU image."
  2959. msgstr "vous aurez une image QEMU pour le Hurd à la place."
  2960. #. type: Plain text
  2961. #: guix-git/doc/guix-cookbook.texi:1870
  2962. msgid "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})."
  2963. msgstr "Pour se connecter à un serveur VPN Wireguard, il faut que le module du noyau soit chargé en mémoire et qu'un paquet fournissant des outils de réseau le prenne en charge (par exemple, @code{wireguard-tools} ou @code{network-manager})."
  2964. #. type: Plain text
  2965. #: guix-git/doc/guix-cookbook.texi:1874
  2966. msgid "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:"
  2967. msgstr "Voici un exemple de configuration pour Linux-Libre < 5.6, où le module est hors de l'arborescence des sources et doit être chargé manuellement--les révisions suivantes du noyau l'ont intégré et n'ont donc pas besoin d'une telle configuration :"
  2968. #. type: lisp
  2969. #: guix-git/doc/guix-cookbook.texi:1879
  2970. #, no-wrap
  2971. msgid ""
  2972. "(use-modules (gnu))\n"
  2973. "(use-service-modules desktop)\n"
  2974. "(use-package-modules vpn)\n"
  2975. "\n"
  2976. msgstr ""
  2977. "(use-modules (gnu))\n"
  2978. "(use-service-modules desktop)\n"
  2979. "(use-package-modules vpn)\n"
  2980. "\n"
  2981. #. type: lisp
  2982. #: guix-git/doc/guix-cookbook.texi:1888
  2983. #, no-wrap
  2984. msgid ""
  2985. "(operating-system\n"
  2986. " ;; …\n"
  2987. " (services (cons (simple-service 'wireguard-module\n"
  2988. " kernel-module-loader-service-type\n"
  2989. " '(\"wireguard\"))\n"
  2990. " %desktop-services))\n"
  2991. " (packages (cons wireguard-tools %base-packages))\n"
  2992. " (kernel-loadable-modules (list wireguard-linux-compat)))\n"
  2993. msgstr ""
  2994. "(operating-system\n"
  2995. " ;; …\n"
  2996. " (services (cons (simple-service 'wireguard-module\n"
  2997. " kernel-module-loader-service-type\n"
  2998. " '(\"wireguard\"))\n"
  2999. " %desktop-services))\n"
  3000. " (packages (cons wireguard-tools %base-packages))\n"
  3001. " (kernel-loadable-modules (list wireguard-linux-compat)))\n"
  3002. #. type: Plain text
  3003. #: guix-git/doc/guix-cookbook.texi:1892
  3004. msgid "After reconfiguring and restarting your system you can either use Wireguard tools or NetworkManager to connect to a VPN server."
  3005. msgstr "Après avoir reconfiguré et redémarré votre système, vous pouvez utiliser les outils Wireguard ou NetworkManager pour vous connecter à un serveur VPN."
  3006. #. type: subsection
  3007. #: guix-git/doc/guix-cookbook.texi:1893
  3008. #, no-wrap
  3009. msgid "Using Wireguard tools"
  3010. msgstr "Utilisation des outils Wireguard"
  3011. #. type: Plain text
  3012. #: guix-git/doc/guix-cookbook.texi:1899
  3013. msgid "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."
  3014. msgstr "Pour tester votre configuration Wireguard, vous pouvez utiliser @command{wg-quick}. Donnez-lui simplement un fichier de configuration : @command{wg-quick up ./wg0.conf}, ou placez ce fichier dans @file{/etc/wireguard} et lancez @command{wg-quick up wg0} à la place."
  3015. #. type: quotation
  3016. #: guix-git/doc/guix-cookbook.texi:1900
  3017. #, no-wrap
  3018. msgid "Note"
  3019. msgstr "Remarque"
  3020. #. type: quotation
  3021. #: guix-git/doc/guix-cookbook.texi:1903
  3022. msgid "Be warned that the author described this command as a: “[…] very quick and dirty bash script […]”."
  3023. msgstr "Soyez averti que l'auteur a décrit cette commande comme un : « [...] script bash écrit à la va-vite [...] »."
  3024. #. type: subsection
  3025. #: guix-git/doc/guix-cookbook.texi:1905
  3026. #, no-wrap
  3027. msgid "Using NetworkManager"
  3028. msgstr "En utilisant NetworkManager"
  3029. #. type: Plain text
  3030. #: guix-git/doc/guix-cookbook.texi:1913
  3031. msgid "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."
  3032. msgstr "Grâce à la prise en charge de NetworkManager pour Wireguard, nous pouvons nous connecter à notre VPN en utilisant la commande @command{nmcli}. Jusqu'ici, ce guide suppose que vous utilisez le service Network Manager fourni par @code{%desktop-services}. Dans le cas contraire, vous devez ajuster votre liste de services pour charger @code{network-manager-service-type} et reconfigurer votre système Guix."
  3033. #. type: Plain text
  3034. #: guix-git/doc/guix-cookbook.texi:1915
  3035. msgid "To import your VPN configuration execute nmcli import command:"
  3036. msgstr "Pour importer votre configuration VPN, exécutez la commande d'import de nmcli :"
  3037. #. type: example
  3038. #: guix-git/doc/guix-cookbook.texi:1919
  3039. #, no-wrap
  3040. msgid ""
  3041. "# nmcli connection import type wireguard file wg0.conf\n"
  3042. "Connection 'wg0' (edbee261-aa5a-42db-b032-6c7757c60fde) successfully added\n"
  3043. msgstr ""
  3044. "# nmcli connection import type wireguard file wg0.conf\n"
  3045. "Connection 'wg0' (edbee261-aa5a-42db-b032-6c7757c60fde) successfully added\n"
  3046. #. type: Plain text
  3047. #: guix-git/doc/guix-cookbook.texi:1924
  3048. msgid "This will create a configuration file in @file{/etc/NetworkManager/wg0.nmconnection}. Next connect to the Wireguard server:"
  3049. msgstr "Cela va créer un fichier de configuration dans @file{/etc/NetworkManager/wg0.nmconnection}. Ensuite connectez-vous au serveur Wireguard :"
  3050. #. type: example
  3051. #: guix-git/doc/guix-cookbook.texi:1928
  3052. #, no-wrap
  3053. msgid ""
  3054. "$ nmcli connection up wg0\n"
  3055. "Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)\n"
  3056. msgstr ""
  3057. "$ nmcli connection up wg0\n"
  3058. "Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/6)\n"
  3059. #. type: Plain text
  3060. #: guix-git/doc/guix-cookbook.texi:1932
  3061. msgid "By default NetworkManager will connect automatically on system boot. To change that behaviour you need to edit your config:"
  3062. msgstr "Par défaut, NetworkManager se connectera automatiquement au démarrage du système. Pour changer ce comportement vous devez modifier votre configuration :"
  3063. #. type: example
  3064. #: guix-git/doc/guix-cookbook.texi:1935
  3065. #, no-wrap
  3066. msgid "# nmcli connection modify wg0 connection.autoconnect no\n"
  3067. msgstr "# nmcli connection modify wg0 connection.autoconnect no\n"
  3068. #. type: Plain text
  3069. #: guix-git/doc/guix-cookbook.texi:1940
  3070. msgid "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}."
  3071. msgstr "Pour des informations plus spécifiques sur NetworkManager et wireguard @uref{https://blogs.gnome.org/thaller/2019/03/15/wireguard-in-networkmanager/,voir ce billet par thaller}."
  3072. #. type: cindex
  3073. #: guix-git/doc/guix-cookbook.texi:1943
  3074. #, no-wrap
  3075. msgid "wm"
  3076. msgstr "wm"
  3077. #. type: subsection
  3078. #: guix-git/doc/guix-cookbook.texi:1945 guix-git/doc/guix-cookbook.texi:1946
  3079. #, no-wrap
  3080. msgid "StumpWM"
  3081. msgstr "StumpWM"
  3082. #. type: cindex
  3083. #: guix-git/doc/guix-cookbook.texi:1947
  3084. #, no-wrap
  3085. msgid "stumpwm"
  3086. msgstr "stumpwm"
  3087. #. type: Plain text
  3088. #: guix-git/doc/guix-cookbook.texi:1952
  3089. msgid "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}."
  3090. msgstr "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}."
  3091. #. type: Plain text
  3092. #: guix-git/doc/guix-cookbook.texi:1954
  3093. msgid "An example configuration can look like this:"
  3094. msgstr "Voici un exemple de configuration :"
  3095. #. type: lisp
  3096. #: guix-git/doc/guix-cookbook.texi:1958
  3097. #, no-wrap
  3098. msgid ""
  3099. "(use-modules (gnu))\n"
  3100. "(use-package-modules wm)\n"
  3101. "\n"
  3102. msgstr ""
  3103. "(use-modules (gnu))\n"
  3104. "(use-package-modules wm)\n"
  3105. "\n"
  3106. #. type: lisp
  3107. #: guix-git/doc/guix-cookbook.texi:1963
  3108. #, no-wrap
  3109. msgid ""
  3110. "(operating-system\n"
  3111. " ;; …\n"
  3112. " (packages (append (list sbcl stumpwm `(,stumpwm \"lib\"))\n"
  3113. " %base-packages)))\n"
  3114. msgstr ""
  3115. "(operating-system\n"
  3116. " ;; …\n"
  3117. " (packages (append (list sbcl stumpwm `(,stumpwm \"lib\"))\n"
  3118. " %base-packages)))\n"
  3119. #. type: cindex
  3120. #: guix-git/doc/guix-cookbook.texi:1965
  3121. #, no-wrap
  3122. msgid "stumpwm fonts"
  3123. msgstr "polices stumpwm"
  3124. #. type: Plain text
  3125. #: guix-git/doc/guix-cookbook.texi:1969
  3126. msgid "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:"
  3127. msgstr "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 :"
  3128. #. type: lisp
  3129. #: guix-git/doc/guix-cookbook.texi:1973
  3130. #, no-wrap
  3131. msgid ""
  3132. "(use-modules (gnu))\n"
  3133. "(use-package-modules fonts wm)\n"
  3134. "\n"
  3135. msgstr ""
  3136. "(use-modules (gnu))\n"
  3137. "(use-package-modules fonts wm)\n"
  3138. "\n"
  3139. #. type: lisp
  3140. #: guix-git/doc/guix-cookbook.texi:1978
  3141. #, no-wrap
  3142. msgid ""
  3143. "(operating-system\n"
  3144. " ;; …\n"
  3145. " (packages (append (list sbcl stumpwm `(,stumpwm \"lib\"))\n"
  3146. " sbcl-ttf-fonts font-dejavu %base-packages)))\n"
  3147. msgstr ""
  3148. "(operating-system\n"
  3149. " ;; …\n"
  3150. " (packages (append (list sbcl stumpwm `(,stumpwm \"lib\"))\n"
  3151. " sbcl-ttf-fonts font-dejavu %base-packages)))\n"
  3152. #. type: Plain text
  3153. #: guix-git/doc/guix-cookbook.texi:1982
  3154. msgid "Then you need to add the following code to a StumpWM configuration file @file{~/.stumpwm.d/init.lisp}:"
  3155. msgstr "Ensuite vous devrez ajouter le code suivant à au fichier de configuration de StumpWM @file{~/.stumpwm.d/init.lisp} :"
  3156. #. type: lisp
  3157. #: guix-git/doc/guix-cookbook.texi:1989
  3158. #, no-wrap
  3159. msgid ""
  3160. "(require :ttf-fonts)\n"
  3161. "(setf xft:*font-dirs* '(\"/run/current-system/profile/share/fonts/\"))\n"
  3162. "(setf clx-truetype:+font-cache-filename+ (concat (getenv \"HOME\") \"/.fonts/font-cache.sexp\"))\n"
  3163. "(xft:cache-fonts)\n"
  3164. "(set-font (make-instance 'xft:font :family \"DejaVu Sans Mono\" :subfamily \"Book\" :size 11))\n"
  3165. msgstr ""
  3166. "(require :ttf-fonts)\n"
  3167. "(setf xft:*font-dirs* '(\"/run/current-system/profile/share/fonts/\"))\n"
  3168. "(setf clx-truetype:+font-cache-filename+ (concat (getenv \"HOME\") \"/.fonts/font-cache.sexp\"))\n"
  3169. "(xft:cache-fonts)\n"
  3170. "(set-font (make-instance 'xft:font :family \"DejaVu Sans Mono\" :subfamily \"Book\" :size 11))\n"
  3171. #. type: subsection
  3172. #: guix-git/doc/guix-cookbook.texi:1991 guix-git/doc/guix-cookbook.texi:1992
  3173. #, no-wrap
  3174. msgid "Session lock"
  3175. msgstr "Verrouillage de session"
  3176. #. type: cindex
  3177. #: guix-git/doc/guix-cookbook.texi:1993
  3178. #, no-wrap
  3179. msgid "sessionlock"
  3180. msgstr "verrouillage de session"
  3181. #. type: Plain text
  3182. #: guix-git/doc/guix-cookbook.texi:1999
  3183. msgid "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."
  3184. msgstr "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."
  3185. #. type: subsubsection
  3186. #: guix-git/doc/guix-cookbook.texi:2000 guix-git/doc/guix-cookbook.texi:2001
  3187. #, no-wrap
  3188. msgid "Xorg"
  3189. msgstr "Xorg"
  3190. #. type: Plain text
  3191. #: guix-git/doc/guix-cookbook.texi:2007
  3192. msgid "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."
  3193. msgstr "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."
  3194. #. type: Plain text
  3195. #: guix-git/doc/guix-cookbook.texi:2010
  3196. msgid "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}:"
  3197. msgstr "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} :"
  3198. #. type: example
  3199. #: guix-git/doc/guix-cookbook.texi:2014
  3200. #, no-wrap
  3201. msgid ""
  3202. "xss-lock -- slock &\n"
  3203. "exec stumpwm\n"
  3204. msgstr ""
  3205. "xss-lock -- slock &\n"
  3206. "exec stumpwm\n"
  3207. #. type: Plain text
  3208. #: guix-git/doc/guix-cookbook.texi:2018
  3209. msgid "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."
  3210. msgstr "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."
  3211. #. type: Plain text
  3212. #: guix-git/doc/guix-cookbook.texi:2022
  3213. msgid "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}:"
  3214. msgstr "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} :"
  3215. #. type: lisp
  3216. #: guix-git/doc/guix-cookbook.texi:2025
  3217. #, no-wrap
  3218. msgid "(screen-locker-service slock)\n"
  3219. msgstr "(screen-locker-service slock)\n"
  3220. #. type: Plain text
  3221. #: guix-git/doc/guix-cookbook.texi:2031
  3222. msgid "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."
  3223. msgstr "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."
  3224. #. type: cindex
  3225. #: guix-git/doc/guix-cookbook.texi:2034
  3226. #, no-wrap
  3227. msgid "linode, Linode"
  3228. msgstr "linode, Linode"
  3229. #. type: Plain text
  3230. #: guix-git/doc/guix-cookbook.texi:2039
  3231. msgid "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."
  3232. msgstr "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."
  3233. #. type: example
  3234. #: guix-git/doc/guix-cookbook.texi:2042
  3235. #, no-wrap
  3236. msgid "ssh-keygen\n"
  3237. msgstr "ssh-keygen\n"
  3238. #. type: Plain text
  3239. #: guix-git/doc/guix-cookbook.texi:2048
  3240. msgid "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:"
  3241. msgstr "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 :"
  3242. #. type: example
  3243. #: guix-git/doc/guix-cookbook.texi:2051
  3244. #, no-wrap
  3245. msgid "cat ~/.ssh/<username>_rsa.pub\n"
  3246. msgstr "cat ~/.ssh/<username>_rsa.pub\n"
  3247. #. type: Plain text
  3248. #: guix-git/doc/guix-cookbook.texi:2055
  3249. msgid "Power the Linode down. In the Linode's Disks/Configurations tab, resize the Debian disk to be smaller. 30 GB is recommended."
  3250. msgstr "É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."
  3251. #. type: Plain text
  3252. #: guix-git/doc/guix-cookbook.texi:2057
  3253. msgid "In the Linode settings, \"Add a disk\", with the following:"
  3254. msgstr "Dans les paramètres de Linode, « Add a disk » avec ce qui suit :"
  3255. #. type: itemize
  3256. #: guix-git/doc/guix-cookbook.texi:2060
  3257. msgid "Label: \"Guix\""
  3258. msgstr "Label: \"Guix\""
  3259. #. type: itemize
  3260. #: guix-git/doc/guix-cookbook.texi:2063
  3261. msgid "Filesystem: ext4"
  3262. msgstr "Filesystem: ext4"
  3263. #. type: itemize
  3264. #: guix-git/doc/guix-cookbook.texi:2066
  3265. msgid "Set it to the remaining size"
  3266. msgstr "Donnez-lui la taille restante"
  3267. #. type: Plain text
  3268. #: guix-git/doc/guix-cookbook.texi:2071
  3269. msgid "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."
  3270. msgstr "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}."
  3271. #. type: Plain text
  3272. #: guix-git/doc/guix-cookbook.texi:2073
  3273. msgid "Now \"Add a Configuration\", with the following:"
  3274. msgstr "Maintenant « Add a Configuration », avec ce qui suit :"
  3275. #. type: itemize
  3276. #: guix-git/doc/guix-cookbook.texi:2076
  3277. msgid "Label: Guix"
  3278. msgstr "Label: Guix"
  3279. #. type: itemize
  3280. #: guix-git/doc/guix-cookbook.texi:2079
  3281. msgid "Kernel:GRUB 2 (it's at the bottom! This step is @b{IMPORTANT!})"
  3282. msgstr "Kernel: GRUB 2 (c'est à la toute fin ! Cette étape est @b{IMPORTANTE !})"
  3283. #. type: itemize
  3284. #: guix-git/doc/guix-cookbook.texi:2082
  3285. msgid "Block device assignment:"
  3286. msgstr "Périphériques blocs assignés :"
  3287. #. type: itemize
  3288. #: guix-git/doc/guix-cookbook.texi:2085
  3289. msgid "@file{/dev/sda}: Guix"
  3290. msgstr "@file{/dev/sda} : Guix"
  3291. #. type: itemize
  3292. #: guix-git/doc/guix-cookbook.texi:2088
  3293. msgid "@file{/dev/sdb}: swap"
  3294. msgstr "@file{/dev/sdb} : swap"
  3295. #. type: itemize
  3296. #: guix-git/doc/guix-cookbook.texi:2091
  3297. msgid "Root device: @file{/dev/sda}"
  3298. msgstr "Périphérique racine : @file{/dev/sda}"
  3299. #. type: itemize
  3300. #: guix-git/doc/guix-cookbook.texi:2094
  3301. msgid "Turn off all the filesystem/boot helpers"
  3302. msgstr "Désactivez tous les programmes d'aide pour les systèmes de fichiers et le démarrage"
  3303. #. type: Plain text
  3304. #: guix-git/doc/guix-cookbook.texi:2101
  3305. msgid "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:"
  3306. msgstr "Maintenant démarrez le serveur et choisissez la configuration Debian. Une fois démarré, connectez vous en ssh au serveur avec @code{ssh root@@@var{<IP-de-votre-serveur-ici>}}. (Vous pouvez trouver l'adresse IP de votre serveur dans la section résumé de Linode). Maintenant vous pouvez lancer les étapes d'installation de @pxref{Installation binaire,,, guix.fr, GNU Guix} :"
  3307. #. type: example
  3308. #: guix-git/doc/guix-cookbook.texi:2109
  3309. #, no-wrap
  3310. msgid ""
  3311. "sudo apt-get install gpg\n"
  3312. "wget https://sv.gnu.org/people/viewgpg.php?user_id=15145 -qO - | gpg --import -\n"
  3313. "wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh\n"
  3314. "chmod +x guix-install.sh\n"
  3315. "./guix-install.sh\n"
  3316. "guix pull\n"
  3317. msgstr ""
  3318. "sudo apt-get install gpg\n"
  3319. "wget https://sv.gnu.org/people/viewgpg.php?user_id=15145 -qO - | gpg --import -\n"
  3320. "wget https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh\n"
  3321. "chmod +x guix-install.sh\n"
  3322. "./guix-install.sh\n"
  3323. "guix pull\n"
  3324. #. type: Plain text
  3325. #: guix-git/doc/guix-cookbook.texi:2113
  3326. msgid "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}."
  3327. msgstr "Maintenant il est temps d'écrire une configuration pour le serveur. Voici ce que vous devrez obligatoirement écrire, en plus de vos propres configurations. Enregistrez le fichier avec le nom @file{guix-config.scm}."
  3328. #. type: lisp
  3329. #: guix-git/doc/guix-cookbook.texi:2124
  3330. #, no-wrap
  3331. msgid ""
  3332. "(use-modules (gnu)\n"
  3333. " (guix modules))\n"
  3334. "(use-service-modules networking\n"
  3335. " ssh)\n"
  3336. "(use-package-modules admin\n"
  3337. " certs\n"
  3338. " package-management\n"
  3339. " ssh\n"
  3340. " tls)\n"
  3341. "\n"
  3342. msgstr ""
  3343. "(use-modules (gnu)\n"
  3344. " (guix modules))\n"
  3345. "(use-service-modules networking\n"
  3346. " ssh)\n"
  3347. "(use-package-modules admin\n"
  3348. " certs\n"
  3349. " package-management\n"
  3350. " ssh\n"
  3351. " tls)\n"
  3352. "\n"
  3353. #. type: lisp
  3354. #: guix-git/doc/guix-cookbook.texi:2141
  3355. #, no-wrap
  3356. msgid ""
  3357. "(operating-system\n"
  3358. " (host-name \"my-server\")\n"
  3359. " (timezone \"America/New_York\")\n"
  3360. " (locale \"en_US.UTF-8\")\n"
  3361. " ;; This goofy code will generate the grub.cfg\n"
  3362. " ;; without installing the grub bootloader on disk.\n"
  3363. " (bootloader (bootloader-configuration\n"
  3364. " (bootloader\n"
  3365. " (bootloader\n"
  3366. " (inherit grub-bootloader)\n"
  3367. " (installer #~(const #true))))))\n"
  3368. " (file-systems (cons (file-system\n"
  3369. " (device \"/dev/sda\")\n"
  3370. " (mount-point \"/\")\n"
  3371. " (type \"ext4\"))\n"
  3372. " %base-file-systems))\n"
  3373. "\n"
  3374. msgstr ""
  3375. "(operating-system\n"
  3376. " (host-name \"my-server\")\n"
  3377. " (timezone \"America/New_York\")\n"
  3378. " (locale \"en_US.UTF-8\")\n"
  3379. " ;; Ce code va générer un grub.cfg\n"
  3380. " ;; sans installer le chargeur d'amorçage grub sur le disque.\n"
  3381. " (bootloader (bootloader-configuration\n"
  3382. " (bootloader\n"
  3383. " (bootloader\n"
  3384. " (inherit grub-bootloader)\n"
  3385. " (installer #~(const #true))))))\n"
  3386. " (file-systems (cons (file-system\n"
  3387. " (device \"/dev/sda\")\n"
  3388. " (mount-point \"/\")\n"
  3389. " (type \"ext4\"))\n"
  3390. " %base-file-systems))\n"
  3391. "\n"
  3392. #. type: lisp
  3393. #: guix-git/doc/guix-cookbook.texi:2144
  3394. #, no-wrap
  3395. msgid ""
  3396. " (swap-devices (list \"/dev/sdb\"))\n"
  3397. "\n"
  3398. msgstr ""
  3399. " (swap-devices (list \"/dev/sdb\"))\n"
  3400. "\n"
  3401. #. type: lisp
  3402. #: guix-git/doc/guix-cookbook.texi:2148
  3403. #, no-wrap
  3404. msgid ""
  3405. " (initrd-modules (cons \"virtio_scsi\" ; Needed to find the disk\n"
  3406. " %base-initrd-modules))\n"
  3407. "\n"
  3408. msgstr ""
  3409. " (initrd-modules (cons \"virtio_scsi\" ; Requis pour trouver le disque\n"
  3410. " %base-initrd-modules))\n"
  3411. "\n"
  3412. #. type: lisp
  3413. #: guix-git/doc/guix-cookbook.texi:2157
  3414. #, no-wrap
  3415. msgid ""
  3416. " (users (cons (user-account\n"
  3417. " (name \"janedoe\")\n"
  3418. " (group \"users\")\n"
  3419. " ;; Adding the account to the \"wheel\" group\n"
  3420. " ;; makes it a sudoer.\n"
  3421. " (supplementary-groups '(\"wheel\"))\n"
  3422. " (home-directory \"/home/janedoe\"))\n"
  3423. " %base-user-accounts))\n"
  3424. "\n"
  3425. msgstr ""
  3426. " (users (cons (user-account\n"
  3427. " (name \"janedoe\")\n"
  3428. " (group \"users\")\n"
  3429. " ;; Ajoute le compte au groupe « wheel »\n"
  3430. " ;; pour en faire un sudoer.\n"
  3431. " (supplementary-groups '(\"wheel\"))\n"
  3432. " (home-directory \"/home/janedoe\"))\n"
  3433. " %base-user-accounts))\n"
  3434. "\n"
  3435. #. type: lisp
  3436. #: guix-git/doc/guix-cookbook.texi:2161
  3437. #, no-wrap
  3438. msgid ""
  3439. " (packages (cons* nss-certs ;for HTTPS access\n"
  3440. " openssh-sans-x\n"
  3441. " %base-packages))\n"
  3442. "\n"
  3443. msgstr ""
  3444. " (packages (cons* nss-certs ; pour l'accès HTTPS\n"
  3445. " openssh-sans-x\n"
  3446. " %base-packages))\n"
  3447. "\n"
  3448. #. type: lisp
  3449. #: guix-git/doc/guix-cookbook.texi:2172
  3450. #, no-wrap
  3451. msgid ""
  3452. " (services (cons*\n"
  3453. " (service dhcp-client-service-type)\n"
  3454. " (service openssh-service-type\n"
  3455. " (openssh-configuration\n"
  3456. " (openssh openssh-sans-x)\n"
  3457. " (password-authentication? #false)\n"
  3458. " (authorized-keys\n"
  3459. " `((\"janedoe\" ,(local-file \"janedoe_rsa.pub\"))\n"
  3460. " (\"root\" ,(local-file \"janedoe_rsa.pub\"))))))\n"
  3461. " %base-services)))\n"
  3462. msgstr ""
  3463. " (services (cons*\n"
  3464. " (service dhcp-client-service-type)\n"
  3465. " (service openssh-service-type\n"
  3466. " (openssh-configuration\n"
  3467. " (openssh openssh-sans-x)\n"
  3468. " (password-authentication? #false)\n"
  3469. " (authorized-keys\n"
  3470. " `((\"janedoe\" ,(local-file \"janedoe_rsa.pub\"))\n"
  3471. " (\"root\" ,(local-file \"janedoe_rsa.pub\"))))))\n"
  3472. " %base-services)))\n"
  3473. #. type: Plain text
  3474. #: guix-git/doc/guix-cookbook.texi:2175
  3475. msgid "Replace the following fields in the above configuration:"
  3476. msgstr "Remplacez les champs suivants dans la configuration ci-dessus :"
  3477. #. type: lisp
  3478. #: guix-git/doc/guix-cookbook.texi:2183
  3479. #, no-wrap
  3480. msgid ""
  3481. "(host-name \"my-server\") ; replace with your server name\n"
  3482. "; if you chose a linode server outside the U.S., then\n"
  3483. "; use tzselect to find a correct timezone string\n"
  3484. "(timezone \"America/New_York\") ; if needed replace timezone\n"
  3485. "(name \"janedoe\") ; replace with your username\n"
  3486. "(\"janedoe\" ,(local-file \"janedoe_rsa.pub\")) ; replace with your ssh key\n"
  3487. "(\"root\" ,(local-file \"janedoe_rsa.pub\")) ; replace with your ssh key\n"
  3488. msgstr ""
  3489. "(host-name \"my-server\") ; remplacez avec le nom de votre serveur\n"
  3490. "; si vous avez choisi un serveur Linode en dehors des U.S.,\n"
  3491. "; utilisez tzselect pour trouver le bon fuseau horaire\n"
  3492. "(timezone \"America/New_York\") ; remplacez le fuseau horaire si besoin\n"
  3493. "(name \"janedoe\") ; remplacez avec votre nom d'utilisateur\n"
  3494. "(\"janedoe\" ,(local-file \"janedoe_rsa.pub\")) ; remplacez par votre clé ssh\n"
  3495. "(\"root\" ,(local-file \"janedoe_rsa.pub\")) ; remplacez par votre clé ssh\n"
  3496. #. type: Plain text
  3497. #: guix-git/doc/guix-cookbook.texi:2189
  3498. msgid "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."
  3499. msgstr "Cette dernière ligne vous permet de vous connecter au serveur en root et de créer le mot de passe initial. Après avoir fait cela, vous pouvez supprimer cette ligne de votre configuration et reconfigurer pour empêcher la connexion directe en root."
  3500. #. type: Plain text
  3501. #: guix-git/doc/guix-cookbook.texi:2194
  3502. msgid "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."
  3503. msgstr "Enregistrez votre clé ssh publique (ex : @file{~/.ssh/id_rsa.pub}) dans @file{@var{<votre-nom-d'utilisateur>}_rsa.pub} et votre @file{guix-config.scm} dans le même répertoire. Dans un nouveau terminal lancez ces commandes."
  3504. #. type: example
  3505. #: guix-git/doc/guix-cookbook.texi:2199
  3506. #, no-wrap
  3507. msgid ""
  3508. "sftp root@@<remote server ip address>\n"
  3509. "put /home/<username>/ssh/id_rsa.pub .\n"
  3510. "put /path/to/linode/guix-config.scm .\n"
  3511. msgstr ""
  3512. "sftp root@@<remote server ip address>\n"
  3513. "put /home/<username>/ssh/id_rsa.pub .\n"
  3514. "put /path/to/linode/guix-config.scm .\n"
  3515. #. type: Plain text
  3516. #: guix-git/doc/guix-cookbook.texi:2202
  3517. msgid "In your first terminal, mount the guix drive:"
  3518. msgstr "Dans votre premier terminal, montez le disque guix :"
  3519. #. type: example
  3520. #: guix-git/doc/guix-cookbook.texi:2206
  3521. #, no-wrap
  3522. msgid ""
  3523. "mkdir /mnt/guix\n"
  3524. "mount /dev/sdc /mnt/guix\n"
  3525. msgstr ""
  3526. "mkdir /mnt/guix\n"
  3527. "mount /dev/sdc /mnt/guix\n"
  3528. #. type: Plain text
  3529. #: guix-git/doc/guix-cookbook.texi:2211
  3530. msgid "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:"
  3531. msgstr "À cause de la manière dont nous avons paramétré les choses au-dessus, nous n'installons pas GRUB complètement. Au lieu de cela, nous installons seulement notre fichier de configuration grub. Donc on doit copier certains fichiers GRUB déjà présents :"
  3532. #. type: example
  3533. #: guix-git/doc/guix-cookbook.texi:2215
  3534. #, no-wrap
  3535. msgid ""
  3536. "mkdir -p /mnt/guix/boot/grub\n"
  3537. "cp -r /boot/grub/* /mnt/guix/boot/grub/\n"
  3538. msgstr ""
  3539. "mkdir -p /mnt/guix/boot/grub\n"
  3540. "cp -r /boot/grub/* /mnt/guix/boot/grub/\n"
  3541. #. type: Plain text
  3542. #: guix-git/doc/guix-cookbook.texi:2218
  3543. msgid "Now initialize the Guix installation:"
  3544. msgstr "Maintenant initialisez l'installation de Guix :"
  3545. #. type: example
  3546. #: guix-git/doc/guix-cookbook.texi:2221
  3547. #, no-wrap
  3548. msgid "guix system init guix-config.scm /mnt/guix\n"
  3549. msgstr "guix system init guix-config.scm /mnt/guix\n"
  3550. #. type: Plain text
  3551. #: guix-git/doc/guix-cookbook.texi:2225
  3552. msgid "Ok, power it down! Now from the Linode console, select boot and select \"Guix\"."
  3553. msgstr "Ok, éteignez maintenant le serveur ! Depuis la console Linode, démarrez et choisissez « Guix »."
  3554. #. type: Plain text
  3555. #: guix-git/doc/guix-cookbook.texi:2228
  3556. msgid "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:"
  3557. msgstr "Une fois démarré, vous devriez pouvoir vous connecter en SSH ! (La configuration du serveur aura cependant changé). Vous pouvez rencontrer une erreur de ce type :"
  3558. #. type: example
  3559. #: guix-git/doc/guix-cookbook.texi:2244
  3560. #, no-wrap
  3561. msgid ""
  3562. "$ ssh root@@<server ip address>\n"
  3563. "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
  3564. "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
  3565. "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
  3566. "IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
  3567. "Someone could be eavesdropping on you right now (man-in-the-middle attack)!\n"
  3568. "It is also possible that a host key has just been changed.\n"
  3569. "The fingerprint for the ECDSA key sent by the remote host is\n"
  3570. "SHA256:0B+wp33w57AnKQuHCvQP0+ZdKaqYrI/kyU7CfVbS7R4.\n"
  3571. "Please contact your system administrator.\n"
  3572. "Add correct host key in /home/joshua/.ssh/known_hosts to get rid of this message.\n"
  3573. "Offending ECDSA key in /home/joshua/.ssh/known_hosts:3\n"
  3574. "ECDSA host key for 198.58.98.76 has changed and you have requested strict checking.\n"
  3575. "Host key verification failed.\n"
  3576. msgstr ""
  3577. "$ ssh root@@<server ip address>\n"
  3578. "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
  3579. "@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @\n"
  3580. "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
  3581. "IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
  3582. "Someone could be eavesdropping on you right now (man-in-the-middle attack)!\n"
  3583. "It is also possible that a host key has just been changed.\n"
  3584. "The fingerprint for the ECDSA key sent by the remote host is\n"
  3585. "SHA256:0B+wp33w57AnKQuHCvQP0+ZdKaqYrI/kyU7CfVbS7R4.\n"
  3586. "Please contact your system administrator.\n"
  3587. "Add correct host key in /home/joshua/.ssh/known_hosts to get rid of this message.\n"
  3588. "Offending ECDSA key in /home/joshua/.ssh/known_hosts:3\n"
  3589. "ECDSA host key for 198.58.98.76 has changed and you have requested strict checking.\n"
  3590. "Host key verification failed.\n"
  3591. #. type: Plain text
  3592. #: guix-git/doc/guix-cookbook.texi:2248
  3593. msgid "Either delete @file{~/.ssh/known_hosts} file, or delete the offending line starting with your server IP address."
  3594. msgstr "Vous pouvez soit supprimer @file{~/.ssh/known_hosts}, soit supprimer la ligne qui pose problème, qui commence par l'adresse IP de votre serveur."
  3595. #. type: Plain text
  3596. #: guix-git/doc/guix-cookbook.texi:2250
  3597. msgid "Be sure to set your password and root's password."
  3598. msgstr "Assurez-vous de configurer votre mot de passe et celui de root."
  3599. #. type: example
  3600. #: guix-git/doc/guix-cookbook.texi:2255
  3601. #, no-wrap
  3602. msgid ""
  3603. "ssh root@@<remote ip address>\n"
  3604. "passwd ; for the root password\n"
  3605. "passwd <username> ; for the user password\n"
  3606. msgstr ""
  3607. "ssh root@@<remote ip address>\n"
  3608. "passwd ; pour le mot de passe root\n"
  3609. "passwd <username> ; pour le mot de passe utilisateur\n"
  3610. #. type: Plain text
  3611. #: guix-git/doc/guix-cookbook.texi:2262
  3612. msgid "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."
  3613. msgstr "Il se peut que vous ne puissiez pas lancer les commandes précédentes si vous n'arrivez pas à vous connecter à distance via SSH, auquel cas vous devrez peut-être configurer vos mot de passes utilisateurs et root en cliquant sur « Launch Console » dans votre espace Linode. Choisissez « Glish » au lieu de « Weblish ». Maintenant vous devriez pouvoir vous connecter en ssh à la machine."
  3614. #. type: Plain text
  3615. #: guix-git/doc/guix-cookbook.texi:2266
  3616. msgid "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!"
  3617. msgstr "Hourra ! Maintenant vous pouvez étendre le serveur, supprimer le disque Debian et redimensionner celui de Guix. Bravo !"
  3618. #. type: Plain text
  3619. #: guix-git/doc/guix-cookbook.texi:2271
  3620. msgid "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."
  3621. msgstr "Au fait, si vous sauvegardez le résultat dans une image disque maintenant, vous pourrez plus facilement démarrer de nouvelles images de guix ! Vous devrez peut-être réduire la taille de l'image Guix à 6144 Mo, pour la sauvegarder en tant qu'image. Ensuite vous pouvez redimensionner la partition à la taille maximum."
  3622. #. type: Plain text
  3623. #: guix-git/doc/guix-cookbook.texi:2280
  3624. msgid "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}."
  3625. msgstr "Pour dupliquer le montage d'un système de fichier (@i{bind mount}), on doit d'abord ajouter quelques définitions avant la section @code{operating-system} de la définition de système d'exploitation. Dans cet exemple nous allons dupliquer le montage d'un dossier d'un disque dur vers @file{/tmp}, pour éviter d'épuiser le SSD principal, sans dédier une partition entière à @file{/tmp}."
  3626. #. type: Plain text
  3627. #: guix-git/doc/guix-cookbook.texi:2283
  3628. msgid "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."
  3629. msgstr "Déjà, le disque source qui héberge de dossier dont nous voulons dupliquer le montage doit être défini, pour que le montage dupliqué puisse en dépendre."
  3630. #. type: lisp
  3631. #: guix-git/doc/guix-cookbook.texi:2290
  3632. #, no-wrap
  3633. msgid ""
  3634. "(define source-drive ;; \"source-drive\" can be named anything you want.\n"
  3635. " (file-system\n"
  3636. " (device (uuid \"UUID goes here\"))\n"
  3637. " (mount-point \"/path-to-spinning-disk-goes-here\")\n"
  3638. " (type \"ext4\"))) ;; Make sure to set this to the appropriate type for your drive.\n"
  3639. msgstr ""
  3640. "(define source-drive ;; vous pouvez nommer « source-drive » comme vous le souhaitez.\n"
  3641. " (file-system\n"
  3642. " (device (uuid \"indiquez l'UUID ici\"))\n"
  3643. " (mount-point \"/chemin-vers-le-disque-dur\")\n"
  3644. " (type \"ext4\"))) ;; Assurez-vous d'indiquer le bon type pour la partition\n"
  3645. #. type: Plain text
  3646. #: guix-git/doc/guix-cookbook.texi:2294
  3647. msgid "The source folder must also be defined, so that guix will know it's not a regular block device, but a folder."
  3648. msgstr "Le dossier source doit aussi être défini, pour que guix sache qu'il ne s'agit pas d'un périphérique bloc, mais d'un dossier."
  3649. #. type: lisp
  3650. #: guix-git/doc/guix-cookbook.texi:2296
  3651. #, no-wrap
  3652. msgid "(define (%source-directory) \"/path-to-spinning-disk-goes-here/tmp\") ;; \"source-directory\" can be named any valid variable name.\n"
  3653. msgstr "(define (%source-directory) \"/chemin-vers-le-disque-dur/tmp\") ;; vous pouvez nommer « source-directory » comme vous le souhaitez.\n"
  3654. #. type: Plain text
  3655. #: guix-git/doc/guix-cookbook.texi:2300
  3656. msgid "Finally, inside the @code{file-systems} definition, we must add the mount itself."
  3657. msgstr "Enfin, dans la définition @code{file-systems}, on doit ajouter le montage lui-même."
  3658. #. type: lisp
  3659. #: guix-git/doc/guix-cookbook.texi:2303
  3660. #, no-wrap
  3661. msgid ""
  3662. "(file-systems (cons*\n"
  3663. "\n"
  3664. msgstr ""
  3665. "(file-systems (cons*\n"
  3666. "\n"
  3667. #. type: lisp
  3668. #: guix-git/doc/guix-cookbook.texi:2305
  3669. #, no-wrap
  3670. msgid ""
  3671. " ...<other drives omitted for clarity>...\n"
  3672. "\n"
  3673. msgstr ""
  3674. " ...<d'autres montages omis pour rester concis>...\n"
  3675. "\n"
  3676. #. type: lisp
  3677. #: guix-git/doc/guix-cookbook.texi:2307
  3678. #, no-wrap
  3679. msgid ""
  3680. " source-drive ;; Must match the name you gave the source drive in the earlier definition.\n"
  3681. "\n"
  3682. msgstr ""
  3683. " source-drive ;; Doit correspondre au nom que vous avez donné au disque source dans la définition précédente.\n"
  3684. "\n"
  3685. #. type: lisp
  3686. #: guix-git/doc/guix-cookbook.texi:2315
  3687. #, no-wrap
  3688. msgid ""
  3689. " (file-system\n"
  3690. " (device (%source-directory)) ;; Make sure \"source-directory\" matches your earlier definition.\n"
  3691. " (mount-point \"/tmp\")\n"
  3692. " (type \"none\") ;; We are mounting a folder, not a partition, so this type needs to be \"none\"\n"
  3693. " (flags '(bind-mount))\n"
  3694. " (dependencies (list source-drive)) ;; Ensure \"source-drive\" matches what you've named the variable for the drive.\n"
  3695. " )\n"
  3696. "\n"
  3697. msgstr ""
  3698. " (file-system\n"
  3699. " (device (%source-directory)) ;; Assurez-vous que « source-directory » corresponde à la définition précédente.\n"
  3700. " (mount-point \"/tmp\")\n"
  3701. " (type \"none\") ;; On monte un dossier, pas une partition, donc le montage est de type « none »\n"
  3702. " (flags '(bind-mount))\n"
  3703. " (dependencies (list source-drive)) ;; Assurez-vous que « source-drive » corresponde au nom de la variable pour le disque.\n"
  3704. " )\n"
  3705. "\n"
  3706. #. type: lisp
  3707. #: guix-git/doc/guix-cookbook.texi:2317
  3708. #, no-wrap
  3709. msgid ""
  3710. " ...<other drives omitted for clarity>...\n"
  3711. "\n"
  3712. msgstr ""
  3713. " ...<d'autres montages omis pour rester concis>...\n"
  3714. "\n"
  3715. #. type: lisp
  3716. #: guix-git/doc/guix-cookbook.texi:2319
  3717. #, no-wrap
  3718. msgid " ))\n"
  3719. msgstr " ))\n"
  3720. #. type: Plain text
  3721. #: guix-git/doc/guix-cookbook.texi:2326
  3722. msgid "Guix daemon can use a HTTP proxy to get substitutes, here we are configuring it to get them via Tor."
  3723. msgstr "Le démon Guix peut utiliser un mandataire HTTP pour récupérer des substituts. Nous le configurons ici pour les récupérer par Tor."
  3724. #. type: quotation
  3725. #: guix-git/doc/guix-cookbook.texi:2327
  3726. #, no-wrap
  3727. msgid "Warning"
  3728. msgstr "Attention"
  3729. #. type: quotation
  3730. #: guix-git/doc/guix-cookbook.texi:2333
  3731. msgid "@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."
  3732. msgstr "@emph{Tout} le trafic du démon de passera @emph{pas} par Tor ! Seuls HTTP/HTTPS passer par le mandataire ; les connexions FTP, avec le protocol Git, SSH, etc, passeront toujours par le réseau en clair. De nouveau, cette configuration n'est pas parfaite et une partie de votre trafic ne sera pas routé par Tor du tout. Utilisez-la à vos risques et périls."
  3733. #. type: quotation
  3734. #: guix-git/doc/guix-cookbook.texi:2339
  3735. msgid "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."
  3736. msgstr "Remarquez aussi que la procédure décrite ici ne s'applique qu'à la substitution de paquets. Lorsque vous mettez à jour la distribution avec @command{guix pull}, vous aurez encore besoin de @command{torsocks} si vous voulez router la connexion vers les serveurs de dépôts git à travers Tor."
  3737. #. type: Plain text
  3738. #: guix-git/doc/guix-cookbook.texi:2344
  3739. msgid "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:"
  3740. msgstr "Le serveur de substitut de Guix est disponible sur un service Onion. Si vous voulez l'utiliser pour récupérer des substituts par Tor, configurez votre système de cette manière :"
  3741. #. type: lisp
  3742. #: guix-git/doc/guix-cookbook.texi:2348
  3743. #, no-wrap
  3744. msgid ""
  3745. "(use-modules (gnu))\n"
  3746. "(use-service-module base networking)\n"
  3747. "\n"
  3748. msgstr ""
  3749. "(use-modules (gnu))\n"
  3750. "(use-service-module base networking)\n"
  3751. "\n"
  3752. #. type: lisp
  3753. #: guix-git/doc/guix-cookbook.texi:2364
  3754. #, no-wrap
  3755. msgid ""
  3756. "(operating-system\n"
  3757. " …\n"
  3758. " (services\n"
  3759. " (cons\n"
  3760. " (service tor-service-type\n"
  3761. " (tor-configuration\n"
  3762. " (config-file (plain-file \"tor-config\"\n"
  3763. " \"HTTPTunnelPort 127.0.0.1:9250\"))))\n"
  3764. " (modify-services %base-services\n"
  3765. " (guix-service-type\n"
  3766. " config => (guix-configuration\n"
  3767. " (inherit config)\n"
  3768. " ;; ci.guix.gnu.org's Onion service\n"
  3769. " (substitute-urls \"https://bp7o7ckwlewr4slm.onion\")\n"
  3770. " (http-proxy \"http://localhost:9250\")))))))\n"
  3771. msgstr ""
  3772. "(operating-system\n"
  3773. " …\n"
  3774. " (services\n"
  3775. " (cons\n"
  3776. " (service tor-service-type\n"
  3777. " (tor-configuration\n"
  3778. " (config-file (plain-file \"tor-config\"\n"
  3779. " \"HTTPTunnelPort 127.0.0.1:9250\"))))\n"
  3780. " (modify-services %base-services\n"
  3781. " (guix-service-type\n"
  3782. " config => (guix-configuration\n"
  3783. " (inherit config)\n"
  3784. " ;; service Onion de ci.guix.gnu.org\n"
  3785. " (substitute-urls \"https://bp7o7ckwlewr4slm.onion\")\n"
  3786. " (http-proxy \"http://localhost:9250\")))))))\n"
  3787. #. type: Plain text
  3788. #: guix-git/doc/guix-cookbook.texi:2373
  3789. msgid "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."
  3790. msgstr "Cela fera tourner le processus tor et fournira un tunnel HTTP CONNECT qui sera utilisé par @command{guix-daemon}. Le démon peut utiliser d'autres protocoles que HTTP(S) pour récupérer des ressources distantes. Les requêtes utilisant ces protocoles ne passeront pas par Tor puisqu'il s'agit d'un tunnel HTTP uniquement. Remarquez que @code{substitutes-urls} doit utiliser HTTPS et non HTTP, sinon ça ne fonctionne pas. C'est une limite du tunnel de Tor ; vous voudrez peut-être utiliser @command{privoxy} à la place pour éviter ces limites."
  3791. #. type: Plain text
  3792. #: guix-git/doc/guix-cookbook.texi:2377
  3793. msgid "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:"
  3794. msgstr "Si vous ne voulez pas toute le temps récupérer des substituts à travers Tor mais l'utiliser seulement de temps en temps, alors ne modifiez pas l'objet @code{guix-configuration}. Lorsque vous voulez récupérer un substitut par le tunnel Tor, lancez :"
  3795. #. type: example
  3796. #: guix-git/doc/guix-cookbook.texi:2381
  3797. #, no-wrap
  3798. msgid ""
  3799. "sudo herd set-http-proxy guix-daemon http://localhost:9250\n"
  3800. "guix build --substitute-urls=https://bp7o7ckwlewr4slm.onion …\n"
  3801. msgstr ""
  3802. "sudo herd set-http-proxy guix-daemon http://localhost:9250\n"
  3803. "guix build --substitute-urls=https://bp7o7ckwlewr4slm.onion …\n"
  3804. #. type: cindex
  3805. #: guix-git/doc/guix-cookbook.texi:2385
  3806. #, no-wrap
  3807. msgid "nginx, lua, openresty, resty"
  3808. msgstr "nginx, lua, openresty, resty"
  3809. #. type: Plain text
  3810. #: guix-git/doc/guix-cookbook.texi:2388
  3811. msgid "NGINX could be extended with Lua scripts."
  3812. msgstr "Les fonctionnalités de NGINX peuvent être étendues avec des scripts Lua."
  3813. #. type: Plain text
  3814. #: guix-git/doc/guix-cookbook.texi:2391
  3815. msgid "Guix provides NGINX service with ability to load Lua module and specific Lua packages, and reply to requests by evaluating Lua scripts."
  3816. msgstr "Guix fournit un service NGINX qui est capable de charger des modules et des paquets Lua spécifiques, et de répondre aux requêtes en évaluant des scripts Lua."
  3817. #. type: Plain text
  3818. #: guix-git/doc/guix-cookbook.texi:2395
  3819. msgid "The following example demonstrates system definition with configuration to evaluate @file{index.lua} Lua script on HTTP request to @uref{http://localhost/hello} endpoint:"
  3820. msgstr "L'exemple suivant montre une définition de système avec une configuration qui évalue le script Lua @file{index.lua} lors d'une requête HTTP à @uref{http://localhost/hello} :"
  3821. #. type: example
  3822. #: guix-git/doc/guix-cookbook.texi:2398
  3823. #, no-wrap
  3824. msgid ""
  3825. "local shell = require \"resty.shell\"\n"
  3826. "\n"
  3827. msgstr ""
  3828. "local shell = require \"resty.shell\"\n"
  3829. "\n"
  3830. #. type: example
  3831. #: guix-git/doc/guix-cookbook.texi:2402
  3832. #, no-wrap
  3833. msgid ""
  3834. "local stdin = \"\"\n"
  3835. "local timeout = 1000 -- ms\n"
  3836. "local max_size = 4096 -- byte\n"
  3837. "\n"
  3838. msgstr ""
  3839. "local stdin = \"\"\n"
  3840. "local timeout = 1000 -- ms\n"
  3841. "local max_size = 4096 -- byte\n"
  3842. "\n"
  3843. #. type: example
  3844. #: guix-git/doc/guix-cookbook.texi:2405
  3845. #, no-wrap
  3846. msgid ""
  3847. "local ok, stdout, stderr, reason, status =\n"
  3848. " shell.run([[/run/current-system/profile/bin/ls /tmp]], stdin, timeout, max_size)\n"
  3849. "\n"
  3850. msgstr ""
  3851. "local ok, stdout, stderr, reason, status =\n"
  3852. " shell.run([[/run/current-system/profile/bin/ls /tmp]], stdin, timeout, max_size)\n"
  3853. "\n"
  3854. #. type: example
  3855. #: guix-git/doc/guix-cookbook.texi:2407
  3856. #, no-wrap
  3857. msgid "ngx.say(stdout)\n"
  3858. msgstr "ngx.say(stdout)\n"
  3859. #. type: lisp
  3860. #: guix-git/doc/guix-cookbook.texi:2438
  3861. #, no-wrap
  3862. msgid ""
  3863. "(use-modules (gnu))\n"
  3864. "(use-service-modules #;… web)\n"
  3865. "(use-package-modules #;… lua)\n"
  3866. "(operating-system\n"
  3867. " ;; …\n"
  3868. " (services\n"
  3869. " ;; …\n"
  3870. " (service nginx-service-type\n"
  3871. " (nginx-configuration\n"
  3872. " (modules\n"
  3873. " (list\n"
  3874. " (file-append nginx-lua-module \"/etc/nginx/modules/ngx_http_lua_module.so\")))\n"
  3875. " (lua-package-path (list lua-resty-core\n"
  3876. " lua-resty-lrucache\n"
  3877. " lua-resty-signal\n"
  3878. " lua-tablepool\n"
  3879. " lua-resty-shell))\n"
  3880. " (lua-package-cpath (list lua-resty-signal))\n"
  3881. " (server-blocks\n"
  3882. " (list (nginx-server-configuration\n"
  3883. " (server-name '(\"localhost\"))\n"
  3884. " (listen '(\"80\"))\n"
  3885. " (root \"/etc\")\n"
  3886. " (locations (list\n"
  3887. " (nginx-location-configuration\n"
  3888. " (uri \"/hello\")\n"
  3889. " (body (list #~(format #f \"content_by_lua_file ~s;\"\n"
  3890. " #$(local-file \"index.lua\"))))))))))))))\n"
  3891. msgstr ""
  3892. "(use-modules (gnu))\n"
  3893. "(use-service-modules #;… web)\n"
  3894. "(use-package-modules #;… lua)\n"
  3895. "(operating-system\n"
  3896. " ;; …\n"
  3897. " (services\n"
  3898. " ;; …\n"
  3899. " (service nginx-service-type\n"
  3900. " (nginx-configuration\n"
  3901. " (modules\n"
  3902. " (list\n"
  3903. " (file-append nginx-lua-module \"/etc/nginx/modules/ngx_http_lua_module.so\")))\n"
  3904. " (lua-package-path (list lua-resty-core\n"
  3905. " lua-resty-lrucache\n"
  3906. " lua-resty-signal\n"
  3907. " lua-tablepool\n"
  3908. " lua-resty-shell))\n"
  3909. " (lua-package-cpath (list lua-resty-signal))\n"
  3910. " (server-blocks\n"
  3911. " (list (nginx-server-configuration\n"
  3912. " (server-name '(\"localhost\"))\n"
  3913. " (listen '(\"80\"))\n"
  3914. " (root \"/etc\")\n"
  3915. " (locations (list\n"
  3916. " (nginx-location-configuration\n"
  3917. " (uri \"/hello\")\n"
  3918. " (body (list #~(format #f \"content_by_lua_file ~s;\"\n"
  3919. " #$(local-file \"index.lua\"))))))))))))))\n"
  3920. #. type: Plain text
  3921. #: guix-git/doc/guix-cookbook.texi:2449
  3922. msgid "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."
  3923. msgstr "Guix est un gestionnaire de paquets fonctionnel qui propose de nombreuses fonctionnalités en plus de ce que les gestionnaires de paquets traditionnels peuvent faire. Pour quelqu'un qui n'est pas initié, ces fonctionnalités peuvent ne pas paraître utiles au premier coup d'œil. Le but de ce chapitre est de vous montrer certains concepts avancés en gestion de paquets."
  3924. #. type: Plain text
  3925. #: guix-git/doc/guix-cookbook.texi:2452
  3926. msgid "@pxref{Package Management,,, guix, GNU Guix Reference Manual} for a complete reference."
  3927. msgstr "@pxref{Gestion des paquets,,, guix.fr, le manuel de référence de GNU Guix} pour une référence complète."
  3928. #. type: section
  3929. #: guix-git/doc/guix-cookbook.texi:2455 guix-git/doc/guix-cookbook.texi:2457
  3930. #: guix-git/doc/guix-cookbook.texi:2458
  3931. #, no-wrap
  3932. msgid "Guix Profiles in Practice"
  3933. msgstr "Les profils Guix en pratique"
  3934. #. type: menuentry
  3935. #: guix-git/doc/guix-cookbook.texi:2455
  3936. msgid "Strategies for multiple profiles and manifests."
  3937. msgstr "Stratégies pour gérer plusieurs profils et manifestes."
  3938. #. type: Plain text
  3939. #: guix-git/doc/guix-cookbook.texi:2463
  3940. msgid "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."
  3941. msgstr "Guix fournit une fonctionnalité utile que peut être plutôt étrange pour les débutants et débutantes : les @emph{profils}. C'est une manière de regrouper l'installation de paquets ensemble et chaque utilisateur ou utilisatrice du même système peuvent avoir autant de profils que souhaité."
  3942. #. type: Plain text
  3943. #: guix-git/doc/guix-cookbook.texi:2468
  3944. msgid "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."
  3945. msgstr "Que vous programmiez ou non, vous trouverez sans doute plus de flexibilité et de possibilité avec plusieurs profils. Bien qu'ils changent un peu du paradigme des @emph{gestionnaires de paquets traditionnels}, ils sont pratiques à utiliser une fois que vous avec saisi comment les configurer."
  3946. #. type: Plain text
  3947. #: guix-git/doc/guix-cookbook.texi:2474
  3948. msgid "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."
  3949. msgstr "Si vous connaissez @samp{virtualenv} de Python, vous pouvez conceptualiser un profil comme une sorte de @samp{virtualenv} universel qui peut contenir n'importe quel sorte de logiciel, pas seulement du code Python. En plus, les profils sont auto-suffisants : ils capturent toutes les dépendances à l'exécution qui garantissent que tous les programmes d'un profil fonctionneront toujours à tout instant."
  3950. #. type: Plain text
  3951. #: guix-git/doc/guix-cookbook.texi:2476
  3952. msgid "Multiple profiles have many benefits:"
  3953. msgstr "Avoir plusieurs profils présente de nombreux intérêts :"
  3954. #. type: itemize
  3955. #: guix-git/doc/guix-cookbook.texi:2480
  3956. msgid "Clean semantic separation of the various packages a user needs for different contexts."
  3957. msgstr "Une séparation sémantique claire des divers paquets dont vous avez besoin pour différents contextes."
  3958. #. type: itemize
  3959. #: guix-git/doc/guix-cookbook.texi:2484
  3960. msgid "Multiple profiles can be made available into the environment either on login or within a dedicated shell."
  3961. msgstr "On peut rendre plusieurs profils disponibles dans l'environnement soit à la connexion, soit dans un shell dédié."
  3962. #. type: itemize
  3963. #: guix-git/doc/guix-cookbook.texi:2488
  3964. msgid "Profiles can be loaded on demand. For instance, the user can use multiple shells, each of them running different profiles."
  3965. msgstr "Les profils peuvent être chargés à la demande. Par exemple, vous pouvez utiliser plusieurs shells, chacun dans un profil différent."
  3966. #. type: itemize
  3967. #: guix-git/doc/guix-cookbook.texi:2493
  3968. msgid "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."
  3969. msgstr "L'isolation : les programmes d'un profil n'utiliseront pas ceux d'un autre, et vous pouvez même installe plusieurs versions d'un même programme dans deux profils différents, sans conflit."
  3970. #. type: itemize
  3971. #: guix-git/doc/guix-cookbook.texi:2497
  3972. msgid "Deduplication: Profiles share dependencies that happens to be the exact same. This makes multiple profiles storage-efficient."
  3973. msgstr "Déduplication : les profils partagent les dépendances qui sont exactement les mêmes. Avoir plusieurs profils ne gâche donc pas d'espace."
  3974. #. type: itemize
  3975. #: guix-git/doc/guix-cookbook.texi:2505
  3976. msgid "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}."
  3977. msgstr "Reproductible : lorsque vous utilisez des manifestes déclaratifs, un profil peut être entièrement spécifié par le commit Guix qui a été utilisé pour le créer. Cela signifie que vous pouvez @uref{https://guix.gnu.org/blog/2018/multi-dimensional-transactions-and-rollbacks-oh-my/, recréer n'importe où et à n'importe quel moment} exactement le même profil, avec juste l'information du numéro de commit. Voir la section sur les @ref{Reproducible profiles}."
  3978. #. type: itemize
  3979. #: guix-git/doc/guix-cookbook.texi:2509
  3980. msgid "Easier upgrades and maintenance: Multiple profiles make it easy to keep package listings at hand and make upgrades completely frictionless."
  3981. msgstr "Des mises à jours et une maintenance plus faciles : avoir plusieurs profils facilite la gestion des listes de paquets à la main."
  3982. #. type: Plain text
  3983. #: guix-git/doc/guix-cookbook.texi:2512
  3984. msgid "Concretely, here follows some typical profiles:"
  3985. msgstr "Concrètement voici des profils courants :"
  3986. #. type: itemize
  3987. #: guix-git/doc/guix-cookbook.texi:2516
  3988. msgid "The dependencies of a project you are working on."
  3989. msgstr "Les dépendances d'un projet sur lequel vous travaillez."
  3990. #. type: itemize
  3991. #: guix-git/doc/guix-cookbook.texi:2519
  3992. msgid "Your favourite programming language libraries."
  3993. msgstr "Des bibliothèques de votre langage de programmation favori."
  3994. #. type: itemize
  3995. #: guix-git/doc/guix-cookbook.texi:2522
  3996. msgid "Laptop-specific programs (like @samp{powertop}) that you don't need on a desktop."
  3997. msgstr "Des programmes spécifiques pour les ordinateurs portables (comme @samp{powertop}) dont vous n'avez pas besoin sur un ordinateur de bureau."
  3998. #. type: itemize
  3999. #: guix-git/doc/guix-cookbook.texi:2526
  4000. msgid "@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)."
  4001. msgstr "@TeX{}live (il peut être bien pratique si vous avez besoin d'installer un seul paquet pour un document que vous avez reçu par courriel)."
  4002. #. type: itemize
  4003. #: guix-git/doc/guix-cookbook.texi:2529
  4004. msgid "Games."
  4005. msgstr "Jeux."
  4006. #. type: Plain text
  4007. #: guix-git/doc/guix-cookbook.texi:2532
  4008. msgid "Let's dive in the set up!"
  4009. msgstr "Voyons cela de plus près !"
  4010. #. type: subsection
  4011. #: guix-git/doc/guix-cookbook.texi:2533 guix-git/doc/guix-cookbook.texi:2534
  4012. #, no-wrap
  4013. msgid "Basic setup with manifests"
  4014. msgstr "Utilisation de base avec des manifestes"
  4015. #. type: Plain text
  4016. #: guix-git/doc/guix-cookbook.texi:2538
  4017. msgid "A Guix profile can be set up @emph{via} a so-called @emph{manifest specification} that looks like this:"
  4018. msgstr "On peut créer un profil Guix avec une @emph{spécification de manifeste} qui ressemble à ceci :"
  4019. #. type: lisp
  4020. #: guix-git/doc/guix-cookbook.texi:2548
  4021. #, no-wrap
  4022. msgid ""
  4023. "(specifications->manifest\n"
  4024. " '(\"package-1\"\n"
  4025. " ;; Version 1.3 of package-2.\n"
  4026. " \"package-2@@1.3\"\n"
  4027. " ;; The \"lib\" output of package-3.\n"
  4028. " \"package-3:lib\"\n"
  4029. " ; ...\n"
  4030. " \"package-N\"))\n"
  4031. msgstr ""
  4032. "(specifications->manifest\n"
  4033. " '(\"package-1\"\n"
  4034. " ;; Version 1.3 de package-2.\n"
  4035. " \"package-2@@1.3\"\n"
  4036. " ;; La sortie « lib » de package-3.\n"
  4037. " \"package-3:lib\"\n"
  4038. " ; ...\n"
  4039. " \"package-N\"))\n"
  4040. #. type: Plain text
  4041. #: guix-git/doc/guix-cookbook.texi:2552
  4042. msgid "@pxref{Invoking guix package,,, guix, GNU Guix Reference Manual}, for the syntax details."
  4043. msgstr "@pxref{Invoquer guix package,,, guix.fr, le manuel de référence de GNU Guix}, pour les détails sur la syntaxe."
  4044. #. type: Plain text
  4045. #: guix-git/doc/guix-cookbook.texi:2554
  4046. msgid "We can create a manifest specification per profile and install them this way:"
  4047. msgstr "On peut créer une spécification de manifeste par profil et les installer de cette manière :"
  4048. #. type: example
  4049. #: guix-git/doc/guix-cookbook.texi:2559
  4050. #, no-wrap
  4051. msgid ""
  4052. "GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles\n"
  4053. "mkdir -p \"$GUIX_EXTRA_PROFILES\"/my-project # if it does not exist yet\n"
  4054. "guix package --manifest=/path/to/guix-my-project-manifest.scm --profile=\"$GUIX_EXTRA_PROFILES\"/my-project/my-project\n"
  4055. msgstr ""
  4056. "GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles\n"
  4057. "mkdir -p \"$GUIX_EXTRA_PROFILES\"/my-project # s'il n'existe pas encore\n"
  4058. "guix package --manifest=/path/to/guix-my-project-manifest.scm --profile=\"$GUIX_EXTRA_PROFILES\"/my-project/my-project\n"
  4059. #. type: Plain text
  4060. #: guix-git/doc/guix-cookbook.texi:2563
  4061. msgid "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."
  4062. msgstr "On spécifie ici une variable arbitraire @samp{GUIX_EXTRA_PROFILES} pour pointer vers le répertoire où seront stockés nos profils dans le reste de cet article."
  4063. #. type: Plain text
  4064. #: guix-git/doc/guix-cookbook.texi:2569
  4065. msgid "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}."
  4066. msgstr "C'est un peu plus propre de placer tous vos profils dans un répertoire unique, où chaque profil a son propre sous-répertoire. De cette manière, chaque sous-répertoire contiendra tous les liens symboliques pour exactement un profil. En plus, il devient facile d'énumérer les profils depuis n'importe quel langage de programmation (p.@: ex.@: un script shell) en énumérant simplement les sous-répertoires de @samp{$GUIX_EXTRA_PROFILES}."
  4067. #. type: Plain text
  4068. #: guix-git/doc/guix-cookbook.texi:2571
  4069. msgid "Note that it's also possible to loop over the output of"
  4070. msgstr "Remarquez qu'il est aussi possible d'utiliser la sortie de"
  4071. #. type: example
  4072. #: guix-git/doc/guix-cookbook.texi:2574
  4073. #, no-wrap
  4074. msgid "guix package --list-profiles\n"
  4075. msgstr "guix package --list-profiles\n"
  4076. #. type: Plain text
  4077. #: guix-git/doc/guix-cookbook.texi:2577
  4078. msgid "although you'll probably have to filter out @file{~/.config/guix/current}."
  4079. msgstr "même si vous devrez sans doute enlever @file{~/.config/guix/current}."
  4080. #. type: Plain text
  4081. #: guix-git/doc/guix-cookbook.texi:2579
  4082. msgid "To enable all profiles on login, add this to your @file{~/.bash_profile} (or similar):"
  4083. msgstr "Pour activer tous les profils à la connexion, ajoutez cela à votre @file{~/.bash_profile} (ou similaire) :"
  4084. #. type: example
  4085. #: guix-git/doc/guix-cookbook.texi:2589
  4086. #, no-wrap
  4087. msgid ""
  4088. "for i in $GUIX_EXTRA_PROFILES/*; do\n"
  4089. " profile=$i/$(basename \"$i\")\n"
  4090. " if [ -f \"$profile\"/etc/profile ]; then\n"
  4091. " GUIX_PROFILE=\"$profile\"\n"
  4092. " . \"$GUIX_PROFILE\"/etc/profile\n"
  4093. " fi\n"
  4094. " unset profile\n"
  4095. "done\n"
  4096. msgstr ""
  4097. "for i in $GUIX_EXTRA_PROFILES/*; do\n"
  4098. " profile=$i/$(basename \"$i\")\n"
  4099. " if [ -f \"$profile\"/etc/profile ]; then\n"
  4100. " GUIX_PROFILE=\"$profile\"\n"
  4101. " . \"$GUIX_PROFILE\"/etc/profile\n"
  4102. " fi\n"
  4103. " unset profile\n"
  4104. "done\n"
  4105. #. type: Plain text
  4106. #: guix-git/doc/guix-cookbook.texi:2594
  4107. msgid "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."
  4108. msgstr "Remarque pour les utilisateurs du système Guix : ce qui précède ressemble à la manière dont votre profil par défaut @file{~/.guix-profile} est activé dans @file{/etc/profile}, ce dernier étant chargé par défaut par @file{~/.bashrc}."
  4109. #. type: Plain text
  4110. #: guix-git/doc/guix-cookbook.texi:2596
  4111. msgid "You can obviously choose to only enable a subset of them:"
  4112. msgstr "Vous pouvez évidemment choisir de n'en activer qu'une partie :"
  4113. #. type: example
  4114. #: guix-git/doc/guix-cookbook.texi:2606
  4115. #, no-wrap
  4116. msgid ""
  4117. "for i in \"$GUIX_EXTRA_PROFILES\"/my-project-1 \"$GUIX_EXTRA_PROFILES\"/my-project-2; do\n"
  4118. " profile=$i/$(basename \"$i\")\n"
  4119. " if [ -f \"$profile\"/etc/profile ]; then\n"
  4120. " GUIX_PROFILE=\"$profile\"\n"
  4121. " . \"$GUIX_PROFILE\"/etc/profile\n"
  4122. " fi\n"
  4123. " unset profile\n"
  4124. "done\n"
  4125. msgstr ""
  4126. "for i in \"$GUIX_EXTRA_PROFILES\"/my-project-1 \"$GUIX_EXTRA_PROFILES\"/my-project-2; do\n"
  4127. " profile=$i/$(basename \"$i\")\n"
  4128. " if [ -f \"$profile\"/etc/profile ]; then\n"
  4129. " GUIX_PROFILE=\"$profile\"\n"
  4130. " . \"$GUIX_PROFILE\"/etc/profile\n"
  4131. " fi\n"
  4132. " unset profile\n"
  4133. "done\n"
  4134. #. type: Plain text
  4135. #: guix-git/doc/guix-cookbook.texi:2610
  4136. msgid "When a profile is off, it's straightforward to enable it for an individual shell without \"polluting\" the rest of the user session:"
  4137. msgstr "Lorsqu'un profil est désactivé, il est facile de l'activer pour un shell individuel sans « polluer » le reste de la session :"
  4138. #. type: example
  4139. #: guix-git/doc/guix-cookbook.texi:2613
  4140. #, no-wrap
  4141. msgid "GUIX_PROFILE=\"path/to/my-project\" ; . \"$GUIX_PROFILE\"/etc/profile\n"
  4142. msgstr "GUIX_PROFILE=\"path/to/my-project\" ; . \"$GUIX_PROFILE\"/etc/profile\n"
  4143. #. type: Plain text
  4144. #: guix-git/doc/guix-cookbook.texi:2620
  4145. msgid "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:"
  4146. msgstr "Le secret pour activer un profil est de @emph{sourcer} son fichier @samp{etc/profile}. Ce fichier contient du code shell qui exporte les bonnes variables d'environnement nécessaires à activer les logiciels présents dans le profil. Il est créé automatiquement par Guix et doit être sourcé. Il contient les mêmes variables que ce que vous obtiendrez en lançant :"
  4147. #. type: example
  4148. #: guix-git/doc/guix-cookbook.texi:2623
  4149. #, no-wrap
  4150. msgid "guix package --search-paths=prefix --profile=$my_profile\"\n"
  4151. msgstr "guix package --search-paths=prefix --profile=$my_profile\"\n"
  4152. #. type: Plain text
  4153. #: guix-git/doc/guix-cookbook.texi:2627
  4154. msgid "Once again, see (@pxref{Invoking guix package,,, guix, GNU Guix Reference Manual}) for the command line options."
  4155. msgstr "Encore une fois, @xref{Invoquer guix package,,, guix.fr, le manuel de référence de GNU Guix} pour les options de la ligne de commande."
  4156. #. type: Plain text
  4157. #: guix-git/doc/guix-cookbook.texi:2629
  4158. msgid "To upgrade a profile, simply install the manifest again:"
  4159. msgstr "Pour mettre à jour un profil, installez de nouveau le manifeste :"
  4160. #. type: example
  4161. #: guix-git/doc/guix-cookbook.texi:2632
  4162. #, no-wrap
  4163. msgid "guix package -m /path/to/guix-my-project-manifest.scm -p \"$GUIX_EXTRA_PROFILES\"/my-project/my-project\n"
  4164. msgstr "guix package -m /path/to/guix-my-project-manifest.scm -p \"$GUIX_EXTRA_PROFILES\"/my-project/my-project\n"
  4165. #. type: Plain text
  4166. #: guix-git/doc/guix-cookbook.texi:2638
  4167. msgid "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:"
  4168. msgstr "Pour mettre à jour tous les profils, vous pouvez simplement les énumérer. Par exemple, en supposant que vous spécifications sont dans @file{~/.guix-manifests/guix-$profile-manifest.scm}, où @samp{$profile} est le nom du profil (p.@: ex@: « projet1 »), vous pouvez utiliser ce qui suit dans le shell :"
  4169. #. type: example
  4170. #: guix-git/doc/guix-cookbook.texi:2643
  4171. #, no-wrap
  4172. msgid ""
  4173. "for profile in \"$GUIX_EXTRA_PROFILES\"/*; do\n"
  4174. " guix package --profile=\"$profile\" --manifest=\"$HOME/.guix-manifests/guix-$profile-manifest.scm\"\n"
  4175. "done\n"
  4176. msgstr ""
  4177. "for profile in \"$GUIX_EXTRA_PROFILES\"/*; do\n"
  4178. " guix package --profile=\"$profile\" --manifest=\"$HOME/.guix-manifests/guix-$profile-manifest.scm\"\n"
  4179. "done\n"
  4180. #. type: Plain text
  4181. #: guix-git/doc/guix-cookbook.texi:2646
  4182. msgid "Each profile has its own generations:"
  4183. msgstr "Chaque profil a ses propres générations :"
  4184. #. type: example
  4185. #: guix-git/doc/guix-cookbook.texi:2649
  4186. #, no-wrap
  4187. msgid "guix package -p \"$GUIX_EXTRA_PROFILES\"/my-project/my-project --list-generations\n"
  4188. msgstr "guix package -p \"$GUIX_EXTRA_PROFILES\"/my-project/my-project --list-generations\n"
  4189. #. type: Plain text
  4190. #: guix-git/doc/guix-cookbook.texi:2652
  4191. msgid "You can roll-back to any generation of a given profile:"
  4192. msgstr "Vous pouvez revenir à n'importe quelle génération d'un profil donné :"
  4193. #. type: example
  4194. #: guix-git/doc/guix-cookbook.texi:2655
  4195. #, no-wrap
  4196. msgid "guix package -p \"$GUIX_EXTRA_PROFILES\"/my-project/my-project --switch-generations=17\n"
  4197. msgstr "guix package -p \"$GUIX_EXTRA_PROFILES\"/my-project/my-project --switch-generations=17\n"
  4198. #. type: Plain text
  4199. #: guix-git/doc/guix-cookbook.texi:2659
  4200. msgid "Finally, if you want to switch to a profile without inheriting from the current environment, you can activate it from an empty shell:"
  4201. msgstr "Enfin, si vous voulez passer à un profil sans hériter l'environnement actuel, vous pouvez l'activer dans un shell vide :"
  4202. #. type: example
  4203. #: guix-git/doc/guix-cookbook.texi:2663
  4204. #, no-wrap
  4205. msgid ""
  4206. "env -i $(which bash) --login --noprofile --norc\n"
  4207. ". my-project/etc/profile\n"
  4208. msgstr ""
  4209. "env -i $(which bash) --login --noprofile --norc\n"
  4210. ". my-project/etc/profile\n"
  4211. #. type: subsection
  4212. #: guix-git/doc/guix-cookbook.texi:2665 guix-git/doc/guix-cookbook.texi:2666
  4213. #, no-wrap
  4214. msgid "Required packages"
  4215. msgstr "Paquets requis"
  4216. #. type: Plain text
  4217. #: guix-git/doc/guix-cookbook.texi:2671
  4218. msgid "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."
  4219. msgstr "Activer un profil consiste en substance à exporter un ensemble de variables d'environnement. C'est le rôle de @samp{etc/profile} dans le profil."
  4220. #. type: emph{#1}
  4221. #: guix-git/doc/guix-cookbook.texi:2674
  4222. msgid "Note: Only the environmental variables of the packages that consume them will be set."
  4223. msgstr "Remarque : seules les variables d'environnement des paquets qui les utilisent seront modifiées."
  4224. #. type: Plain text
  4225. #: guix-git/doc/guix-cookbook.texi:2678
  4226. msgid "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:"
  4227. msgstr "Par exemple, @samp{MANPATH} ne sera pas modifié s'il n'y a pas d'application qui utilise les pages de manuel dans le profil. Donc si vous voulez pouvoir accéder aux pages de manuel facilement une fois le profil chargé, vous avez deux possibilités :"
  4228. #. type: itemize
  4229. #: guix-git/doc/guix-cookbook.texi:2682
  4230. msgid "Either export the variable manually, e.g."
  4231. msgstr "Exporter la variable manuellement, p.@: ex@:"
  4232. #. type: example
  4233. #: guix-git/doc/guix-cookbook.texi:2684
  4234. #, no-wrap
  4235. msgid "export MANPATH=/path/to/profile$@{MANPATH:+:@}$MANPATH\n"
  4236. msgstr "export MANPATH=/path/to/profile$@{MANPATH:+:@}$MANPATH\n"
  4237. #. type: itemize
  4238. #: guix-git/doc/guix-cookbook.texi:2688
  4239. msgid "Or include @samp{man-db} to the profile manifest."
  4240. msgstr "Inclure @samp{man-db} dans le manifeste du profil."
  4241. #. type: Plain text
  4242. #: guix-git/doc/guix-cookbook.texi:2692
  4243. msgid "The same is true for @samp{INFOPATH} (you can install @samp{info-reader}), @samp{PKG_CONFIG_PATH} (install @samp{pkg-config}), etc."
  4244. msgstr "Il en va de même pour @samp{INFOPATH} (vous pouvez installer @samp{info-reader}), @samp{PKG_CONFIG_PATH} (installer @samp{pkg-config}), etc."
  4245. #. type: subsection
  4246. #: guix-git/doc/guix-cookbook.texi:2693 guix-git/doc/guix-cookbook.texi:2694
  4247. #, no-wrap
  4248. msgid "Default profile"
  4249. msgstr "Profil par défaut"
  4250. #. type: Plain text
  4251. #: guix-git/doc/guix-cookbook.texi:2697
  4252. msgid "What about the default profile that Guix keeps in @file{~/.guix-profile}?"
  4253. msgstr "Que faire du profil par défaut que Guix garder dans @file{~/.guix-profile} ?"
  4254. #. type: Plain text
  4255. #: guix-git/doc/guix-cookbook.texi:2700
  4256. msgid "You can assign it the role you want. Typically you would install the manifest of the packages you want to use all the time."
  4257. msgstr "Vous pouvez lui assigner le rôle que vous souhaitez. Habituellement, vous y installerez un manifeste des paquets que vous voulez pouvoir utiliser dans toutes les situations."
  4258. #. type: Plain text
  4259. #: guix-git/doc/guix-cookbook.texi:2704
  4260. msgid "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"
  4261. msgstr "Autrement, vous pouvez en faire un profil sans manifeste pour des paquets sans importance que vous voulez juste garder quelques jours. C'est une manière de pouvoir facilement lancer"
  4262. #. type: example
  4263. #: guix-git/doc/guix-cookbook.texi:2708
  4264. #, no-wrap
  4265. msgid ""
  4266. "guix install package-foo\n"
  4267. "guix upgrade package-bar\n"
  4268. msgstr ""
  4269. "guix install package-foo\n"
  4270. "guix upgrade package-bar\n"
  4271. #. type: Plain text
  4272. #: guix-git/doc/guix-cookbook.texi:2711
  4273. msgid "without having to specify the path to a profile."
  4274. msgstr "sans avoir à spécifier un profil."
  4275. #. type: subsection
  4276. #: guix-git/doc/guix-cookbook.texi:2712 guix-git/doc/guix-cookbook.texi:2713
  4277. #, no-wrap
  4278. msgid "The benefits of manifests"
  4279. msgstr "Les avantages des manifestes"
  4280. #. type: Plain text
  4281. #: guix-git/doc/guix-cookbook.texi:2717
  4282. msgid "Manifests are a convenient way to keep your package lists around and, say, to synchronize them across multiple machines using a version control system."
  4283. msgstr "Les manifestes sont pratiques pour garder la liste des paquets et, par exemple, les synchroniser entre plusieurs machines avec un système de gestion de versions."
  4284. #. type: Plain text
  4285. #: guix-git/doc/guix-cookbook.texi:2721
  4286. msgid "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."
  4287. msgstr "Les gens se plaignent souvent que les manifestes sont lents à installer quand ils contiennent beaucoup de paquets. C'est particulièrement embêtant quand vous voulez juste mettre à jour un paquet dans un gros manifeste."
  4288. #. type: Plain text
  4289. #: guix-git/doc/guix-cookbook.texi:2726
  4290. msgid "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."
  4291. msgstr "C'est une raison de plus d'utiliser plusieurs profils, qui sont bien pratiques pour diviser les manifestes en plusieurs ensembles de paquets de même type. Plusieurs petits profils sont plus flexibles et plus maniables."
  4292. #. type: Plain text
  4293. #: guix-git/doc/guix-cookbook.texi:2728
  4294. msgid "Manifests come with multiple benefits. In particular, they ease maintenance:"
  4295. msgstr "Les manifestes ont de nombreux avantages. En particulier, ils facilitent la maintenance :"
  4296. #. type: itemize
  4297. #: guix-git/doc/guix-cookbook.texi:2736
  4298. msgid "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."
  4299. msgstr "Lorsqu'un profil est créé à partir d'un manifeste, le manifeste lui-même est suffisant pour garder la liste des paquets sous le coude et réinstaller le profil plus tard sur un autre système. Pour les profils ad-hoc, il faudrait générer une spécification de manifeste à la main et noter les versions de paquets pour les paquets qui n'utilisent pas la version par défaut."
  4300. #. type: itemize
  4301. #: guix-git/doc/guix-cookbook.texi:2741
  4302. msgid "@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."
  4303. msgstr "@code{guix package --upgrade} essaye toujours de mettre à jour les paquets qui ont des entrées propagées, même s'il n'y à rien à faire. Les manifestes de Guix résolvent ce problème."
  4304. #. type: itemize
  4305. #: guix-git/doc/guix-cookbook.texi:2747
  4306. msgid "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."
  4307. msgstr "Lorsque vous mettez partiellement à jour un profil, des conflits peuvent survenir (à cause des dépendances différentes entre les paquets à jour et ceux qui ne le sont pas) et ça peut être embêtant à corriger à la main. Les manifestes suppriment ce problème puisque tous les paquets sont toujours mis à jour en même temps."
  4308. #. type: itemize
  4309. #: guix-git/doc/guix-cookbook.texi:2753
  4310. msgid "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}."
  4311. msgstr "Comme on l'a mentionné plus haut, les manifestes permettent d'avoir des profils reproductibles, alors que les commandes impératives @code{guix install}, @code{guix upgrade}, etc, ne le peuvent pas, puisqu'elles produisent un profil différent à chaque fois qu'elles sont lancées, même avec les même paquets. Voir @uref{https://issues.guix.gnu.org/issue/33285, la discussion sur ce problème}."
  4312. #. type: itemize
  4313. #: guix-git/doc/guix-cookbook.texi:2761
  4314. msgid "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)."
  4315. msgstr "Les spécifications de manifestes sont utilisables par les autres commandes @samp{guix}. Par exemple, vous pouvez lancer @code{guix weather -m manifest} pour voir combien de substituts sont disponibles, ce qui peut vous aider à décider si vous voulez faire la mise à jour maintenant ou un peu plus tard. Un autre exemple : vous pouvez lancer @code{guix package -m manifest.scm} pour créer un lot contenant tous les paquets du manifeste (et leurs références transitives)."
  4316. #. type: itemize
  4317. #: guix-git/doc/guix-cookbook.texi:2765
  4318. msgid "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}."
  4319. msgstr "Enfin, les manifestes ont une représentation Scheme, le type d'enregistrement @samp{<manifest>}. Vous pouvez les manipuler en Scheme et les passer aux diverses @uref{https://fr.wikipedia.org/wiki/Api, API} de Guix."
  4320. #. type: Plain text
  4321. #: guix-git/doc/guix-cookbook.texi:2773
  4322. msgid "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."
  4323. msgstr "Vous devez bien comprendre que même si vous pouvez utiliser les manifestes pour déclarer des profils, les deux ne sont pas strictement équivalents : les profils pour l'effet de bord « d'épingler » les paquets dans le dépôt, ce qui évite qu'ils ne soient nettoyés (@pxref{Invoquer guix gc,,, guix.fr, le manuel de référence de GNU Guix}) et s'assure qu'ils seront toujours disponibles à n'importe quel moment dans le futur."
  4324. #. type: Plain text
  4325. #: guix-git/doc/guix-cookbook.texi:2775
  4326. msgid "Let's take an example:"
  4327. msgstr "Voyons un exemple :"
  4328. #. type: enumerate
  4329. #: guix-git/doc/guix-cookbook.texi:2781
  4330. msgid "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."
  4331. msgstr "Vous avez un environnement pour bidouiller un projet pour lequel il n'y a pas encore de paquet Guix. Vous construisez l'environnement avec un manifeste puis lancez @code{guix environment -m manifest.scm}. Jusqu'ici tout va bien."
  4332. #. type: enumerate
  4333. #: guix-git/doc/guix-cookbook.texi:2787
  4334. msgid "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."
  4335. msgstr "Plusieurs semaines plus tard vous avez lancé quelques @code{guix pull} entre temps. Plusieurs dépendances du manifeste ont été mises à jour ; ou bien vous avez lancé @code{guix gc} et certains paquets requis par le manifeste ont été nettoyés."
  4336. #. type: enumerate
  4337. #: guix-git/doc/guix-cookbook.texi:2792
  4338. msgid "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!"
  4339. msgstr "Finalement, vous vous remettez au travail sur ce projet, donc vous lancez @code{guix environment -m manifest.scm}. Mais maintenant vous devez attendre que Guix construise et installe des paquets !"
  4340. #. type: Plain text
  4341. #: guix-git/doc/guix-cookbook.texi:2798
  4342. msgid "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."
  4343. msgstr "Idéalement, vous voudriez éviter de perdre du temps à reconstruire. C'est en fait possible, tout ce dont on a besoin, c'est d'installer le manifeste dans un profil et d'utiliser @code{GUIX_PROFILE=/le/profil; . \"$GUIX_PROFILE\"/etc/profile} comme on l'a expliqué plus haut : cela garantie que l'environnement de bidouillage sera toujours disponible."
  4344. #. type: Plain text
  4345. #: guix-git/doc/guix-cookbook.texi:2801
  4346. msgid "@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."
  4347. msgstr "@emph{Avertissement de sécurité :} bien que garder d'anciens profils soit pratique, gardez à l'esprit que les anciens paquets n'ont pas forcément reçu les dernières corrections de sécurité."
  4348. #. type: subsection
  4349. #: guix-git/doc/guix-cookbook.texi:2802 guix-git/doc/guix-cookbook.texi:2803
  4350. #, no-wrap
  4351. msgid "Reproducible profiles"
  4352. msgstr "Profils reproductibles"
  4353. #. type: Plain text
  4354. #: guix-git/doc/guix-cookbook.texi:2806
  4355. msgid "To reproduce a profile bit-for-bit, we need two pieces of information:"
  4356. msgstr "Pour reproduire un profil bit-à-bit, on a besoin de deux informations :"
  4357. #. type: itemize
  4358. #: guix-git/doc/guix-cookbook.texi:2810
  4359. msgid "a manifest,"
  4360. msgstr "un manifeste,"
  4361. #. type: itemize
  4362. #: guix-git/doc/guix-cookbook.texi:2812
  4363. msgid "a Guix channel specification."
  4364. msgstr "et une spécification de canaux Guix."
  4365. #. type: Plain text
  4366. #: guix-git/doc/guix-cookbook.texi:2816
  4367. msgid "Indeed, manifests alone might not be enough: different Guix versions (or different channels) can produce different outputs for a given manifest."
  4368. msgstr "En effet, les manifestes seuls ne sont pas forcément suffisants : différentes versions de Guix (ou différents canaux) peuvent produire des sorties différentes avec le même manifeste."
  4369. #. type: Plain text
  4370. #: guix-git/doc/guix-cookbook.texi:2820
  4371. msgid "You can output the Guix channel specification with @samp{guix describe --format=channels}. Save this to a file, say @samp{channel-specs.scm}."
  4372. msgstr "Vous pouvez afficher la spécification de canaux Guix avec @samp{guix describe --format=channels}. Enregistrez-la dans un fichier, par exemple @samp{channel-specs.scm}."
  4373. #. type: Plain text
  4374. #: guix-git/doc/guix-cookbook.texi:2823
  4375. msgid "On another computer, you can use the channel specification file and the manifest to reproduce the exact same profile:"
  4376. msgstr "Sur un autre ordinateur, vous pouvez utiliser le fichier de spécification de canaux et le manifeste pour reproduire exactement le même profil :"
  4377. #. type: example
  4378. #: guix-git/doc/guix-cookbook.texi:2827
  4379. #, no-wrap
  4380. msgid ""
  4381. "GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles\n"
  4382. "GUIX_EXTRA=$HOME/.guix-extra\n"
  4383. "\n"
  4384. msgstr ""
  4385. "GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles\n"
  4386. "GUIX_EXTRA=$HOME/.guix-extra\n"
  4387. "\n"
  4388. #. type: example
  4389. #: guix-git/doc/guix-cookbook.texi:2830
  4390. #, no-wrap
  4391. msgid ""
  4392. "mkdir \"$GUIX_EXTRA\"/my-project\n"
  4393. "guix pull --channels=channel-specs.scm --profile \"$GUIX_EXTRA/my-project/guix\"\n"
  4394. "\n"
  4395. msgstr ""
  4396. "mkdir \"$GUIX_EXTRA\"/my-project\n"
  4397. "guix pull --channels=channel-specs.scm --profile \"$GUIX_EXTRA/my-project/guix\"\n"
  4398. "\n"
  4399. #. type: example
  4400. #: guix-git/doc/guix-cookbook.texi:2833
  4401. #, no-wrap
  4402. msgid ""
  4403. "mkdir -p \"$GUIX_EXTRA_PROFILES/my-project\"\n"
  4404. "\"$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"
  4405. msgstr ""
  4406. "mkdir -p \"$GUIX_EXTRA_PROFILES/my-project\"\n"
  4407. "\"$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"
  4408. #. type: Plain text
  4409. #: guix-git/doc/guix-cookbook.texi:2837
  4410. msgid "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."
  4411. msgstr "Vous pouvez supprimer le profil des canaux Guix que vous venez d'installer avec la spécification de canaux, le profil du projet n'en dépend pas."
  4412. #. type: Plain text
  4413. #: guix-git/doc/guix-cookbook.texi:2844
  4414. msgid "Guix provides multiple tools to manage environment. This chapter demonstrate such utilities."
  4415. msgstr "Guix fournit plusieurs outils pour gérer l'environnement. Ce chapitre vous montre ces outils."
  4416. #. type: section
  4417. #: guix-git/doc/guix-cookbook.texi:2847 guix-git/doc/guix-cookbook.texi:2849
  4418. #: guix-git/doc/guix-cookbook.texi:2850
  4419. #, no-wrap
  4420. msgid "Guix environment via direnv"
  4421. msgstr "Environnement Guix avec direnv"
  4422. #. type: menuentry
  4423. #: guix-git/doc/guix-cookbook.texi:2847
  4424. msgid "Setup Guix environment with direnv"
  4425. msgstr "Créer un environnement Guix avec direnv"
  4426. #. type: Plain text
  4427. #: guix-git/doc/guix-cookbook.texi:2855
  4428. msgid "Guix provides a @samp{direnv} package, which could extend shell after directory change. This tool could be used to prepare a pure Guix environment."
  4429. msgstr "Guix fournit un paquet @samp{direnv}, qui peut étendre le shell après avoir changé de répertoire de travail. Vous pouvez utiliser cet outil pour préparer un environnement Guix pur."
  4430. #. type: Plain text
  4431. #: guix-git/doc/guix-cookbook.texi:2861
  4432. msgid "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}."
  4433. msgstr "L'exemple suivant fournit une fonction shell dans @file{~/.direnvrc}, qui peut être utilisée dans le dépôt Git de Guix dans @file{~/src/guix/.envrc} pour créer un environnement de construction similaire à celui décrit dans @ref{Construire depuis Git,,, guix.fr, le manuel de référence de GNU Guix}."
  4434. #. type: Plain text
  4435. #: guix-git/doc/guix-cookbook.texi:2863
  4436. msgid "Create a @file{~/.direnvrc} with a Bash code:"
  4437. msgstr "Créez un fichier @file{~/.direnv} avec le code Bash suivant :"
  4438. #. type: example
  4439. #: guix-git/doc/guix-cookbook.texi:2881
  4440. #, no-wrap
  4441. msgid ""
  4442. "# Thanks <https://github.com/direnv/direnv/issues/73#issuecomment-152284914>\n"
  4443. "export_function()\n"
  4444. "@{\n"
  4445. " local name=$1\n"
  4446. " local alias_dir=$PWD/.direnv/aliases\n"
  4447. " mkdir -p \"$alias_dir\"\n"
  4448. " PATH_add \"$alias_dir\"\n"
  4449. " local target=\"$alias_dir/$name\"\n"
  4450. " if declare -f \"$name\" >/dev/null; then\n"
  4451. " echo \"#!$SHELL\" > \"$target\"\n"
  4452. " declare -f \"$name\" >> \"$target\" 2>/dev/null\n"
  4453. " # Notice that we add shell variables to the function trigger.\n"
  4454. " echo \"$name \\$*\" >> \"$target\"\n"
  4455. " chmod +x \"$target\"\n"
  4456. " fi\n"
  4457. "@}\n"
  4458. "\n"
  4459. msgstr ""
  4460. "# Grâce à <https://github.com/direnv/direnv/issues/73#issuecomment-152284914>\n"
  4461. "export_function()\n"
  4462. "@{\n"
  4463. " local name=$1\n"
  4464. " local alias_dir=$PWD/.direnv/aliases\n"
  4465. " mkdir -p \"$alias_dir\"\n"
  4466. " PATH_add \"$alias_dir\"\n"
  4467. " local target=\"$alias_dir/$name\"\n"
  4468. " if declare -f \"$name\" >/dev/null; then\n"
  4469. " echo \"#!$SHELL\" > \"$target\"\n"
  4470. " declare -f \"$name\" >> \"$target\" 2>/dev/null\n"
  4471. " # Remarquez qu'on ajoute des variables shells au déclencheur de la fonction.\n"
  4472. " echo \"$name \\$*\" >> \"$target\"\n"
  4473. " chmod +x \"$target\"\n"
  4474. " fi\n"
  4475. "@}\n"
  4476. "\n"
  4477. #. type: example
  4478. #: guix-git/doc/guix-cookbook.texi:2886
  4479. #, no-wrap
  4480. msgid ""
  4481. "use_guix()\n"
  4482. "@{\n"
  4483. " # Set GitHub token.\n"
  4484. " export GUIX_GITHUB_TOKEN=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n"
  4485. "\n"
  4486. msgstr ""
  4487. "use_guix()\n"
  4488. "@{\n"
  4489. " # indique un jeton Github.\n"
  4490. " export GUIX_GITHUB_TOKEN=\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n"
  4491. "\n"
  4492. #. type: example
  4493. #: guix-git/doc/guix-cookbook.texi:2889
  4494. #, no-wrap
  4495. msgid ""
  4496. " # Unset 'GUIX_PACKAGE_PATH'.\n"
  4497. " export GUIX_PACKAGE_PATH=\"\"\n"
  4498. "\n"
  4499. msgstr ""
  4500. " # Nettoie « GUIX_PACKAGE_PATH ».\n"
  4501. " export GUIX_PACKAGE_PATH=\"\"\n"
  4502. "\n"
  4503. #. type: example
  4504. #: guix-git/doc/guix-cookbook.texi:2898
  4505. #, no-wrap
  4506. msgid ""
  4507. " # Recreate a garbage collector root.\n"
  4508. " gcroots=\"$HOME/.config/guix/gcroots\"\n"
  4509. " mkdir -p \"$gcroots\"\n"
  4510. " gcroot=\"$gcroots/guix\"\n"
  4511. " if [ -L \"$gcroot\" ]\n"
  4512. " then\n"
  4513. " rm -v \"$gcroot\"\n"
  4514. " fi\n"
  4515. "\n"
  4516. msgstr ""
  4517. " # Recrée une racine du ramasse miettes.\n"
  4518. " gcroots=\"$HOME/.config/guix/gcroots\"\n"
  4519. " mkdir -p \"$gcroots\"\n"
  4520. " gcroot=\"$gcroots/guix\"\n"
  4521. " if [ -L \"$gcroot\" ]\n"
  4522. " then\n"
  4523. " rm -v \"$gcroot\"\n"
  4524. " fi\n"
  4525. "\n"
  4526. #. type: example
  4527. #: guix-git/doc/guix-cookbook.texi:2913
  4528. #, no-wrap
  4529. msgid ""
  4530. " # Miscellaneous packages.\n"
  4531. " PACKAGES_MAINTENANCE=(\n"
  4532. " direnv\n"
  4533. " git\n"
  4534. " git:send-email\n"
  4535. " git-cal\n"
  4536. " gnupg\n"
  4537. " guile-colorized\n"
  4538. " guile-readline\n"
  4539. " less\n"
  4540. " ncurses\n"
  4541. " openssh\n"
  4542. " xdot\n"
  4543. " )\n"
  4544. "\n"
  4545. msgstr ""
  4546. " # Divers paquets.\n"
  4547. " PACKAGES_MAINTENANCE=(\n"
  4548. " direnv\n"
  4549. " git\n"
  4550. " git:send-email\n"
  4551. " git-cal\n"
  4552. " gnupg\n"
  4553. " guile-colorized\n"
  4554. " guile-readline\n"
  4555. " less\n"
  4556. " ncurses\n"
  4557. " openssh\n"
  4558. " xdot\n"
  4559. " )\n"
  4560. "\n"
  4561. #. type: example
  4562. #: guix-git/doc/guix-cookbook.texi:2916
  4563. #, no-wrap
  4564. msgid ""
  4565. " # Environment packages.\n"
  4566. " PACKAGES=(help2man guile-sqlite3 guile-gcrypt)\n"
  4567. "\n"
  4568. msgstr ""
  4569. " # Paquets de l'environnement.\n"
  4570. " PACKAGES=(help2man guile-sqlite3 guile-gcrypt)\n"
  4571. "\n"
  4572. #. type: example
  4573. #: guix-git/doc/guix-cookbook.texi:2919
  4574. #, no-wrap
  4575. msgid ""
  4576. " # Thanks <https://lists.gnu.org/archive/html/guix-devel/2016-09/msg00859.html>\n"
  4577. " eval \"$(guix environment --search-paths --root=\"$gcroot\" --pure guix --ad-hoc $@{PACKAGES[@@]@} $@{PACKAGES_MAINTENANCE[@@]@} \"$@@\")\"\n"
  4578. "\n"
  4579. msgstr ""
  4580. " # Grâce à <https://lists.gnu.org/archive/html/guix-devel/2016-09/msg00859.html>\n"
  4581. " eval \"$(guix environment --search-paths --root=\"$gcroot\" --pure guix --ad-hoc $@{PACKAGES[@@]@} $@{PACKAGES_MAINTENANCE[@@]@} \"$@@\")\"\n"
  4582. "\n"
  4583. #. type: example
  4584. #: guix-git/doc/guix-cookbook.texi:2926
  4585. #, no-wrap
  4586. msgid ""
  4587. " # Predefine configure flags.\n"
  4588. " configure()\n"
  4589. " @{\n"
  4590. " ./configure --localstatedir=/var --prefix=\n"
  4591. " @}\n"
  4592. " export_function configure\n"
  4593. "\n"
  4594. msgstr ""
  4595. " # Défini les drapeaux configure à l'avance.\n"
  4596. " configure()\n"
  4597. " @{\n"
  4598. " ./configure --localstatedir=/var --prefix=\n"
  4599. " @}\n"
  4600. " export_function configure\n"
  4601. "\n"
  4602. #. type: example
  4603. #: guix-git/doc/guix-cookbook.texi:2937
  4604. #, no-wrap
  4605. msgid ""
  4606. " # Run make and optionally build something.\n"
  4607. " build()\n"
  4608. " @{\n"
  4609. " make -j 2\n"
  4610. " if [ $# -gt 0 ]\n"
  4611. " then\n"
  4612. " ./pre-inst-env guix build \"$@@\"\n"
  4613. " fi\n"
  4614. " @}\n"
  4615. " export_function build\n"
  4616. "\n"
  4617. msgstr ""
  4618. " # Lance make et construit éventuellement quelque chose.\n"
  4619. " build()\n"
  4620. " @{\n"
  4621. " make -j 2\n"
  4622. " if [ $# -gt 0 ]\n"
  4623. " then\n"
  4624. " ./pre-inst-env guix build \"$@@\"\n"
  4625. " fi\n"
  4626. " @}\n"
  4627. " export_function build\n"
  4628. "\n"
  4629. #. type: example
  4630. #: guix-git/doc/guix-cookbook.texi:2944
  4631. #, no-wrap
  4632. msgid ""
  4633. " # Predefine push Git command.\n"
  4634. " push()\n"
  4635. " @{\n"
  4636. " git push --set-upstream origin\n"
  4637. " @}\n"
  4638. " export_function push\n"
  4639. "\n"
  4640. msgstr ""
  4641. " # Défini une commande Git pour pousser.\n"
  4642. " push()\n"
  4643. " @{\n"
  4644. " git push --set-upstream origin\n"
  4645. " @}\n"
  4646. " export_function push\n"
  4647. "\n"
  4648. #. type: example
  4649. #: guix-git/doc/guix-cookbook.texi:2947
  4650. #, no-wrap
  4651. msgid ""
  4652. " clear # Clean up the screen.\n"
  4653. " git-cal --author='Your Name' # Show contributions calendar.\n"
  4654. "\n"
  4655. msgstr ""
  4656. " clear # Nettoie l'écran.\n"
  4657. " git-cal --author='Votre Nom' # Montre le calendrier des contributions.\n"
  4658. "\n"
  4659. #. type: example
  4660. #: guix-git/doc/guix-cookbook.texi:2955
  4661. #, no-wrap
  4662. msgid ""
  4663. " # Show commands help.\n"
  4664. " echo \"\n"
  4665. "build build a package or just a project if no argument provided\n"
  4666. "configure run ./configure with predefined parameters\n"
  4667. "push push to upstream Git repository\n"
  4668. "\"\n"
  4669. "@}\n"
  4670. msgstr ""
  4671. " # Montre l'aide des commandes.\n"
  4672. " echo \"\n"
  4673. "build construit un paquet ou juste un projet si aucun argument n'est fournit\n"
  4674. "configure lance ./configure avec les paramètres pré-définis\n"
  4675. "push pousse un dépôt Git\n"
  4676. "\"\n"
  4677. "@}\n"
  4678. #. type: Plain text
  4679. #: guix-git/doc/guix-cookbook.texi:2959
  4680. msgid "Every project containing @file{.envrc} with a string @code{use guix} will have predefined environment variables and procedures."
  4681. msgstr "Tous les projets contenant un @file{.envrc} avec une chaine @code{use guix} aura des variables d'environnement et des procédures prédéfinies."
  4682. #. type: Plain text
  4683. #: guix-git/doc/guix-cookbook.texi:2961
  4684. msgid "Run @command{direnv allow} to setup the environment for the first time."
  4685. msgstr "Lancez @command{direnv allow} pour mettre en place l'environnement pour la première fois."
  4686. #. type: Plain text
  4687. #: guix-git/doc/guix-cookbook.texi:2973
  4688. msgid "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."
  4689. msgstr "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."
  4690. #. type: Plain text
  4691. #: guix-git/doc/guix-cookbook.texi:2976
  4692. msgid "The Nix-based software distributions, Nixpkgs and NixOS, have also been an inspiration for Guix."
  4693. msgstr "Les distributions logicielles basées sur Nix, Nixpkgs et NixOS, ont aussi été une inspiration pour Guix."
  4694. #. type: Plain text
  4695. #: guix-git/doc/guix-cookbook.texi:2982
  4696. msgid "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!"
  4697. msgstr "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 !"
  4698. #. type: Plain text
  4699. #: guix-git/doc/guix-cookbook.texi:2985
  4700. msgid "This document includes adapted sections from articles that have previously been published on the Guix blog at @uref{https://guix.gnu.org/blog}."
  4701. msgstr "Ce document contient des sections adaptées d'articles précédemment publiés sur le blog de Guix sur @uref{https://guix.gnu.org/blog}."
  4702. #. type: cindex
  4703. #: guix-git/doc/guix-cookbook.texi:2990
  4704. #, no-wrap
  4705. msgid "license, GNU Free Documentation License"
  4706. msgstr "licence, GNU Free Documentation License"
  4707. #. type: include
  4708. #: guix-git/doc/guix-cookbook.texi:2991
  4709. #, no-wrap
  4710. msgid "fdl-1.3.texi"
  4711. msgstr "fdl-1.3.texi"
  4712. #~ msgid "Creating and using a custom Linux kernel"
  4713. #~ msgstr "Créer et utiliser un noyau Linux personnalisé"