guile-xyz.scm 190 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org>
  3. ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
  4. ;;; Copyright © 2015, 2017 Christine Lemmer-Webber <cwebber@dustycloud.org>
  5. ;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
  6. ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Ricardo Wurmus <rekado@elephly.net>
  7. ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
  8. ;;; Copyright © 2016, 2019, 2020, 2021 Eraim Flashner <efraim@flashner.co.il>
  9. ;;; Copyright © 2016, 2017 Alex Kost <alezost@gmail.com>
  10. ;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
  11. ;;; Copyright © 2016, 2021 Amirouche <amirouche@hypermove.net>
  12. ;;; Copyright © 2016, 2019, 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
  13. ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
  14. ;;; Copyright © 2017 David Thompson <davet@gnu.org>
  15. ;;; Copyright © 2017, 2018, 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
  16. ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
  17. ;;; Copyright © 2017 Nikita <nikita@n0.is>
  18. ;;; Copyright © 2017, 2018, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
  19. ;;; Copyright © 2018, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
  20. ;;; Copyright © 2018, 2019, 2020, 2021 Arun Isaac <arunisaac@systemreboot.net>
  21. ;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
  22. ;;; Copyright © 2018 Eric Bavier <bavier@member.fsf.org>
  23. ;;; Copyright © 2019 swedebugia <swedebugia@riseup.net>
  24. ;;; Copyright © 2019, 2020 Amar Singh <nly@disroot.org>
  25. ;;; Copyright © 2019, 2021 Timothy Sample <samplet@ngyro.com>
  26. ;;; Copyright © 2019, 2020 Martin Becze <mjbecze@riseup.net>
  27. ;;; Copyright © 2020 Evan Straw <evan.straw99@gmail.com>
  28. ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
  29. ;;; Copyright © 2020 Julien Lepiler <julien@lepiller.eu>
  30. ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
  31. ;;; Copyright © 2020, 2021 Masaya Tojo <masaya@tojo.tokyo>
  32. ;;; Copyright © 2020 Jesse Gibbons <jgibbons2357@gmail.com>
  33. ;;; Copyright © 2020 Mike Rosset <mike.rosset@gmail.com>
  34. ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
  35. ;;; Copyright © 2020, 2021 pukkamustard <pukkamustard@posteo.net>
  36. ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
  37. ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
  38. ;;; Copyright © 2021 Leo Le Bouter <lle-bout@zaclys.net>
  39. ;;; Copyright © 2021 Zelphir Kaltstahl <zelphirkaltstahl@posteo.de>
  40. ;;; Copyright © 2021 Oleg Pykhalov <go.wigust@gmail.com>
  41. ;;;
  42. ;;; This file is part of GNU Guix.
  43. ;;;
  44. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  45. ;;; under the terms of the GNU General Public License as published by
  46. ;;; the Free Software Foundation; either version 3 of the License, or (at
  47. ;;; your option) any later version.
  48. ;;;
  49. ;;; GNU Guix is distributed in the hope that it will be useful, but
  50. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  51. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  52. ;;; GNU General Public License for more details.
  53. ;;;
  54. ;;; You should have received a copy of the GNU General Public License
  55. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  56. (define-module (gnu packages guile-xyz)
  57. #:use-module ((guix licenses) #:prefix license:)
  58. #:use-module (gnu packages)
  59. #:use-module (gnu packages algebra)
  60. #:use-module (gnu packages aspell)
  61. #:use-module (gnu packages autotools)
  62. #:use-module (gnu packages avahi)
  63. #:use-module (gnu packages base)
  64. #:use-module (gnu packages bash)
  65. #:use-module (gnu packages compression)
  66. #:use-module (gnu packages crypto)
  67. #:use-module (gnu packages databases)
  68. #:use-module (gnu packages disk)
  69. #:use-module (gnu packages emacs)
  70. #:use-module (gnu packages emacs-xyz)
  71. #:use-module (gnu packages gawk)
  72. #:use-module (gnu packages gettext)
  73. #:use-module (gnu packages gl)
  74. #:use-module (gnu packages glib)
  75. #:use-module (gnu packages gnome)
  76. #:use-module (gnu packages gnupg)
  77. #:use-module (gnu packages gperf)
  78. #:use-module (gnu packages gstreamer)
  79. #:use-module (gnu packages gtk)
  80. #:use-module (gnu packages guile)
  81. #:use-module (gnu packages hurd)
  82. #:use-module (gnu packages image)
  83. #:use-module (gnu packages imagemagick)
  84. #:use-module (gnu packages libffi)
  85. #:use-module (gnu packages libunistring)
  86. #:use-module (gnu packages linux)
  87. #:use-module (gnu packages man)
  88. #:use-module (gnu packages maths)
  89. #:use-module (gnu packages mes)
  90. #:use-module (gnu packages multiprecision)
  91. #:use-module (gnu packages ncurses)
  92. #:use-module (gnu packages networking)
  93. #:use-module (gnu packages noweb)
  94. #:use-module (gnu packages nss)
  95. #:use-module (gnu packages package-management)
  96. #:use-module (gnu packages password-utils)
  97. #:use-module (gnu packages perl)
  98. #:use-module (gnu packages pkg-config)
  99. #:use-module (gnu packages python)
  100. #:use-module (gnu packages readline)
  101. #:use-module (gnu packages sdl)
  102. #:use-module (gnu packages search)
  103. #:use-module (gnu packages serialization)
  104. #:use-module (gnu packages slang)
  105. #:use-module (gnu packages sqlite)
  106. #:use-module (gnu packages swig)
  107. #:use-module (gnu packages tex)
  108. #:use-module (gnu packages texinfo)
  109. #:use-module (gnu packages tls)
  110. #:use-module (gnu packages version-control)
  111. #:use-module (gnu packages webkit)
  112. #:use-module (gnu packages xdisorg)
  113. #:use-module (gnu packages xorg)
  114. #:use-module (guix packages)
  115. #:use-module (guix download)
  116. #:use-module (guix git-download)
  117. #:use-module (guix hg-download)
  118. #:use-module (guix build-system cmake)
  119. #:use-module (guix build-system glib-or-gtk)
  120. #:use-module (guix build-system gnu)
  121. #:use-module (guix build-system guile)
  122. #:use-module (guix utils)
  123. #:use-module ((guix build utils) #:select (alist-replace))
  124. #:use-module (ice-9 match)
  125. #:use-module ((srfi srfi-1) #:select (alist-delete)))
  126. (define-public artanis
  127. (package
  128. (name "artanis")
  129. (version "0.5")
  130. (source (origin
  131. (method url-fetch)
  132. (uri (string-append "mirror://gnu/artanis/artanis-"
  133. version ".tar.gz"))
  134. (sha256
  135. (base32
  136. "1vk1kp2xhz35xa5n27cxlq9c88wk6qm7fqaac8rb0pb6k9pvsv7v"))
  137. (modules '((guix build utils)))
  138. (snippet
  139. '(begin
  140. ;; Unbundle guile-redis and guile-json
  141. (delete-file-recursively "artanis/third-party/json.scm")
  142. (delete-file-recursively "artanis/third-party/json")
  143. (delete-file-recursively "artanis/third-party/redis.scm")
  144. (delete-file-recursively "artanis/third-party/redis")
  145. (substitute* '("artanis/artanis.scm"
  146. "artanis/lpc.scm"
  147. "artanis/oht.scm")
  148. (("(#:use-module \\()artanis third-party (json\\))" _
  149. use-module json)
  150. (string-append use-module json)))
  151. (substitute* '("artanis/lpc.scm"
  152. "artanis/session.scm")
  153. (("(#:use-module \\()artanis third-party (redis\\))" _
  154. use-module redis)
  155. (string-append use-module redis)))
  156. (substitute* "artanis/oht.scm"
  157. (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
  158. _ pre json-string post)
  159. (string-append pre
  160. "scm" json-string
  161. post)))
  162. (substitute* "artanis/artanis.scm"
  163. (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
  164. ""))
  165. #t))))
  166. (build-system gnu-build-system)
  167. (inputs
  168. `(("guile" ,guile-3.0)
  169. ("nspr" ,nspr)
  170. ("nss" ,nss)))
  171. ;; FIXME the bundled csv contains one more exported procedure
  172. ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
  173. ;; projects.
  174. ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
  175. (propagated-inputs
  176. `(("guile-json" ,guile-json-3)
  177. ("guile-readline" ,guile-readline)
  178. ("guile-redis" ,guile-redis)))
  179. (native-inputs
  180. `(("bash" ,bash) ;for the `source' builtin
  181. ("pkgconfig" ,pkg-config)
  182. ("util-linux" ,util-linux))) ;for the `script' command
  183. (arguments
  184. `(#:modules (((guix build guile-build-system)
  185. #:select (target-guile-effective-version))
  186. ,@%gnu-build-system-modules)
  187. #:imported-modules ((guix build guile-build-system)
  188. ,@%gnu-build-system-modules)
  189. #:make-flags
  190. ;; TODO: The documentation must be built with the `docs' target.
  191. (let* ((out (assoc-ref %outputs "out"))
  192. ;; We pass guile explicitly here since this executes before the
  193. ;; set-paths phase and therefore guile is not yet in PATH.
  194. (effective-version (target-guile-effective-version
  195. (assoc-ref %build-inputs "guile")))
  196. (scm (string-append out "/share/guile/site/" effective-version))
  197. (go (string-append out "/lib/guile/" effective-version "/site-ccache")))
  198. ;; Don't use (%site-dir) for site paths.
  199. (list (string-append "MOD_PATH=" scm)
  200. (string-append "MOD_COMPILED_PATH=" go)))
  201. #:test-target "test"
  202. #:phases
  203. (modify-phases %standard-phases
  204. (add-after 'unpack 'patch-site-dir
  205. (lambda* (#:key outputs #:allow-other-keys)
  206. (substitute* "artanis/commands/help.scm"
  207. (("\\(%site-dir\\)")
  208. (string-append "\""
  209. (assoc-ref outputs "out")
  210. "/share/guile/site/"
  211. (target-guile-effective-version)
  212. "\"")))))
  213. (add-after 'unpack 'patch-reference-to-libnss
  214. (lambda* (#:key inputs #:allow-other-keys)
  215. (substitute* "artanis/security/nss.scm"
  216. (("ffi-binding \"libnss3\"")
  217. (string-append
  218. "ffi-binding \""
  219. (assoc-ref inputs "nss") "/lib/nss/libnss3.so"
  220. "\""))
  221. (("ffi-binding \"libssl3\"")
  222. (string-append
  223. "ffi-binding \"" (assoc-ref inputs "nss") "/lib/nss/libssl3.so\"")))))
  224. (add-before 'install 'substitute-root-dir
  225. (lambda* (#:key outputs #:allow-other-keys)
  226. (let ((out (assoc-ref outputs "out")))
  227. (substitute* "Makefile" ;ignore the execution of bash.bashrc
  228. ((" /etc/bash.bashrc") " /dev/null"))
  229. (substitute* "Makefile" ;set the root of config files to OUT
  230. ((" /etc") (string-append " " out "/etc")))
  231. (mkdir-p (string-append out "/bin")) )))
  232. (add-after 'install 'wrap-art
  233. (lambda* (#:key inputs outputs #:allow-other-keys)
  234. (let* ((out (assoc-ref outputs "out"))
  235. (effective-version (target-guile-effective-version))
  236. (bin (string-append out "/bin"))
  237. (scm (string-append out "/share/guile/site/" effective-version))
  238. (go (string-append out "/lib/guile/" effective-version
  239. "/site-ccache")))
  240. (wrap-program (string-append bin "/art")
  241. `("GUILE_LOAD_PATH" ":" prefix
  242. (,scm ,(getenv "GUILE_LOAD_PATH")))
  243. `("GUILE_LOAD_COMPILED_PATH" ":" prefix
  244. (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))))))))
  245. (synopsis "Web application framework written in Guile")
  246. (description "GNU Artanis is a web application framework written in Guile
  247. Scheme. A web application framework (WAF) is a software framework that is
  248. designed to support the development of dynamic websites, web applications, web
  249. services and web resources. The framework aims to alleviate the overhead
  250. associated with common activities performed in web development. Artanis
  251. provides several tools for web development: database access, templating
  252. frameworks, session management, URL-remapping for RESTful, page caching, and
  253. more.")
  254. (home-page "https://www.gnu.org/software/artanis/")
  255. (license (list license:gpl3+ license:lgpl3+)))) ;dual license
  256. (define-public guile-f-scm
  257. (package
  258. (name "guile-f-scm")
  259. (version "0.2.0")
  260. (source
  261. (origin
  262. (method git-fetch)
  263. (uri (git-reference
  264. (url "https://git.sr.ht/~brown121407/f.scm")
  265. (commit version)))
  266. (file-name (git-file-name name version))
  267. (sha256
  268. (base32 "14wyrs3m1649l3km4pl2175dmap1372j5h8nkhykrbxg5xqp6ivd"))))
  269. (build-system guile-build-system)
  270. (native-inputs
  271. `(("guile" ,guile-3.0)))
  272. (home-page "https://git.sr.ht/~brown121407/f.scm")
  273. (synopsis "Library for working with files and directories")
  274. (description
  275. "f.scm is a library intended to facilitate working with files and
  276. directories (the file system in general). It was initially inspired by the
  277. f library for Emacs.")
  278. (license license:gpl3+)))
  279. ;; There has not been any release yet.
  280. (define-public guildhall
  281. (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
  282. (revision "1"))
  283. (package
  284. (name "guildhall")
  285. (version (string-append "0-" revision "." (string-take commit 9)))
  286. (source (origin
  287. (method git-fetch)
  288. (uri (git-reference
  289. (url "https://github.com/ijp/guildhall")
  290. (commit commit)))
  291. (file-name (string-append name "-" version "-checkout"))
  292. (sha256
  293. (base32
  294. "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
  295. (build-system gnu-build-system)
  296. (arguments
  297. `(#:phases
  298. (modify-phases %standard-phases
  299. ;; Tests fail without this fix because they try to load the bash
  300. ;; executable as a Scheme file. See bug report at
  301. ;; https://github.com/ijp/guildhall/issues/22
  302. (add-after 'unpack 'fix-bug-22
  303. (lambda _
  304. (substitute* "Makefile.am"
  305. (("TESTS_ENVIRONMENT=.*")
  306. "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
  307. TEST_EXTENSIONS = .scm
  308. SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
  309. AM_SCM_LOG_FLAGS = --no-auto-compile -s")
  310. ;; FIXME: one of the database tests fails for unknown
  311. ;; reasons. It does not fail when run outside of Guix.
  312. (("tests/database.scm") ""))
  313. #t)))))
  314. (inputs
  315. `(("guile" ,guile-2.0)))
  316. (native-inputs
  317. `(("zip" ,zip) ; for tests
  318. ("autoconf" ,autoconf)
  319. ("automake" ,automake)
  320. ("texinfo" ,texinfo)))
  321. (synopsis "Package manager for Guile")
  322. (description
  323. "Guildhall is a package manager written for Guile Scheme. A guild is
  324. an association of independent craftspeople. A guildhall is where they meet.
  325. This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
  326. to share code.
  327. On a practical level, Guildhall lets you share Scheme modules and programs
  328. over the internet, and install code that has been shared by others. Guildhall
  329. can handle dependencies, so when a program requires several libraries, and
  330. each of those has further dependencies, all of the prerequisites for the
  331. program can be installed in one go.")
  332. (home-page "https://github.com/ijp/guildhall")
  333. (license license:gpl3+))))
  334. (define-public guile-aspell
  335. (package
  336. (name "guile-aspell")
  337. (version "0.4")
  338. (source (origin
  339. (method url-fetch)
  340. (uri (string-append
  341. "http://lonelycactus.com/tarball/guile_aspell-"
  342. version ".tar.gz"))
  343. (sha256
  344. (base32
  345. "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
  346. (build-system gnu-build-system)
  347. (arguments
  348. '(#:phases (modify-phases %standard-phases
  349. (add-before 'configure 'set-guilesitedir
  350. (lambda _
  351. (substitute* "Makefile.in"
  352. (("^guilesitedir =.*$")
  353. "guilesitedir = \
  354. $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
  355. #t))
  356. (add-before 'build 'set-libaspell-file-name
  357. (lambda* (#:key inputs #:allow-other-keys)
  358. (let ((aspell (assoc-ref inputs "aspell")))
  359. (substitute* "aspell.scm"
  360. (("\"libaspell\\.so\"")
  361. (string-append "\"" aspell
  362. "/lib/libaspell\"")))
  363. #t))))))
  364. (native-inputs `(("pkg-config" ,pkg-config)))
  365. (inputs `(("guile" ,guile-2.2)
  366. ("aspell" ,aspell)))
  367. (home-page "https://github.com/spk121/guile-aspell")
  368. (synopsis "Spell-checking from Guile")
  369. (description
  370. "guile-aspell is a Guile Scheme library for comparing a string against a
  371. dictionary and suggesting spelling corrections.")
  372. (license license:gpl3+)))
  373. (define-public guile2.0-bash
  374. ;; This project is currently retired. It was initially announced here:
  375. ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
  376. (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
  377. (revision "0"))
  378. (package
  379. (name "guile2.0-bash")
  380. (version (string-append "0.1.6-" revision "." (string-take commit 7)))
  381. (home-page
  382. "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
  383. (source (origin
  384. (method git-fetch)
  385. (uri (git-reference
  386. (commit commit)
  387. (url home-page)))
  388. (sha256
  389. (base32
  390. "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
  391. (file-name (string-append name "-" version "-checkout"))))
  392. (build-system gnu-build-system)
  393. (arguments
  394. '(#:configure-flags
  395. ;; Add -I to match 'bash.pc' of Bash 4.4.
  396. (list (string-append "CPPFLAGS=-I"
  397. (assoc-ref %build-inputs "bash:include")
  398. "/include/bash/include")
  399. ;; The '.a' file is useless.
  400. "--disable-static"
  401. ;; Install 'lib/bash' as Bash 4.4 expects.
  402. (string-append "--libdir=" (assoc-ref %outputs "out")
  403. "/lib/bash"))))
  404. (native-inputs `(("pkg-config" ,pkg-config)
  405. ("autoconf" ,autoconf)
  406. ("automake" ,automake)
  407. ("libtool" ,libtool)
  408. ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
  409. ("gettext" ,gettext-minimal)
  410. ;; Bash with loadable module support, for the test
  411. ;; suite.
  412. ("bash-full" ,bash)))
  413. (inputs `(("guile" ,guile-2.0)
  414. ("bash:include" ,bash "include")))
  415. (synopsis "Extend Bash using Guile")
  416. (description
  417. "Guile-Bash provides a shared library and set of Guile modules,
  418. allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
  419. the following aspects of Bash:
  420. @itemize
  421. @item aliases;
  422. @item setting and getting Bash variables;
  423. @item creating dynamic variables;
  424. @item creating Bash functions with a Scheme implementation;
  425. @item reader macro for output capturing;
  426. @item reader macro for evaluating raw Bash commands.
  427. @end itemize
  428. To enable it, run:
  429. @example
  430. enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
  431. @end example
  432. and then run @command{scm example.scm}.")
  433. (license license:gpl3+))))
  434. (define-public guile-bash
  435. (package
  436. (inherit guile2.0-bash)
  437. (name "guile-bash")
  438. (inputs
  439. `(("guile" ,guile-3.0-latest)
  440. ,@(assoc-remove! (package-inputs guile2.0-bash) "guile")))
  441. (arguments
  442. `(#:tests? #f
  443. #:phases (modify-phases %standard-phases
  444. (add-after 'install 'install-guile
  445. (lambda* (#:key inputs outputs #:allow-other-keys)
  446. (copy-recursively
  447. (string-append (assoc-ref outputs "out")
  448. (assoc-ref inputs "guile") "/share")
  449. (string-append (assoc-ref outputs "out") "/share"))
  450. #t)))
  451. ,@(package-arguments guile2.0-bash)))))
  452. (define-public guile-8sync
  453. (package
  454. (name "guile-8sync")
  455. (version "0.4.2")
  456. (source (origin
  457. (method url-fetch)
  458. (uri (string-append "mirror://gnu/8sync/8sync-" version
  459. ".tar.gz"))
  460. (sha256
  461. (base32
  462. "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
  463. (build-system gnu-build-system)
  464. (native-inputs `(("autoconf" ,autoconf)
  465. ("automake" ,automake)
  466. ("guile" ,guile-2.2)
  467. ("pkg-config" ,pkg-config)
  468. ("texinfo" ,texinfo)))
  469. (arguments
  470. `(#:phases (modify-phases %standard-phases
  471. (add-before 'configure 'setenv
  472. (lambda _
  473. ;; quiet warnings
  474. (setenv "GUILE_AUTO_COMPILE" "0")
  475. #t)))))
  476. (home-page "https://gnu.org/s/8sync/")
  477. (synopsis "Asynchronous actor model library for Guile")
  478. (description
  479. "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
  480. library for GNU Guile based on the actor model.
  481. Note that 8sync is only available for Guile 2.2.")
  482. (properties '((upstream-name . "8sync")))
  483. (license license:lgpl3+)))
  484. (define-public guile-daemon
  485. (package
  486. (name "guile-daemon")
  487. (version "0.1.3")
  488. (source (origin
  489. (method url-fetch)
  490. (uri (string-append "https://github.com/alezost/" name
  491. "/releases/download/v" version
  492. "/" name "-" version ".tar.gz"))
  493. (sha256
  494. (base32
  495. "08gaqrgjlly9k5si72vvpbr4xhq5v52l5ma5y6a7spid5dd057cy"))))
  496. (build-system gnu-build-system)
  497. (native-inputs
  498. `(("pkg-config" ,pkg-config)))
  499. (inputs
  500. `(("guile" ,guile-2.2)))
  501. (home-page "https://github.com/alezost/guile-daemon")
  502. (synopsis "Evaluate code in a running Guile process")
  503. (description
  504. "Guile-Daemon is a small Guile program that loads your initial
  505. configuration file, and then reads and evaluates Guile expressions that
  506. you send to a FIFO file.")
  507. (license license:gpl3+)))
  508. (define-public guile-dsv
  509. (package
  510. (name "guile-dsv")
  511. (version "0.4.0")
  512. (source (origin
  513. (method git-fetch)
  514. (uri (git-reference
  515. (url "https://github.com/artyom-poptsov/guile-dsv")
  516. (commit (string-append "v" version))))
  517. (file-name (string-append name "-" version "-checkout"))
  518. (sha256
  519. (base32
  520. "1mvyc8i38j56frjh3p6vwziv8lrzlyqndz30663h5nwcp0044sdn"))))
  521. (build-system gnu-build-system)
  522. (native-inputs
  523. `(("autoconf" ,autoconf)
  524. ("automake" ,automake)
  525. ("pkg-config" ,pkg-config)
  526. ("texinfo" ,texinfo)))
  527. (inputs `(("guile" ,guile-3.0)))
  528. (propagated-inputs `(("guile-lib" ,guile-lib)))
  529. (arguments
  530. `(#:modules (((guix build guile-build-system)
  531. #:select (target-guile-effective-version))
  532. ,@%gnu-build-system-modules)
  533. #:imported-modules ((guix build guile-build-system)
  534. ,@%gnu-build-system-modules)
  535. #:phases (modify-phases %standard-phases
  536. (add-before 'configure 'set-guilesitedir
  537. (lambda _
  538. (substitute* "Makefile.in"
  539. (("^guilesitedir =.*$")
  540. "guilesitedir = \
  541. $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
  542. (substitute* "modules/Makefile.in"
  543. (("^guilesitedir =.*$")
  544. "guilesitedir = \
  545. $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
  546. (substitute* "modules/dsv/Makefile.in"
  547. (("^guilesitedir =.*$")
  548. "guilesitedir = \
  549. $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
  550. #t))
  551. (add-after 'install 'wrap-program
  552. (lambda* (#:key inputs outputs #:allow-other-keys)
  553. (let* ((out (assoc-ref outputs "out"))
  554. (bin (string-append out "/bin"))
  555. (guile-lib (assoc-ref inputs "guile-lib"))
  556. (version (target-guile-effective-version))
  557. (scm (string-append "/share/guile/site/"
  558. version))
  559. (go (string-append "/lib/guile/"
  560. version "/site-ccache")))
  561. (wrap-program (string-append bin "/dsv")
  562. `("GUILE_LOAD_PATH" prefix
  563. (,(string-append out scm)
  564. ,(string-append guile-lib scm)))
  565. `("GUILE_LOAD_COMPILED_PATH" prefix
  566. (,(string-append out go)
  567. ,(string-append guile-lib go)))))
  568. #t)))))
  569. (home-page "https://github.com/artyom-poptsov/guile-dsv")
  570. (synopsis "DSV module for Guile")
  571. (description
  572. "Guile-DSV is a GNU Guile module for working with the
  573. delimiter-separated values (DSV) data format. Guile-DSV supports the
  574. Unix-style DSV format and RFC 4180 format.")
  575. (license license:gpl3+)))
  576. (define-public guile2.2-dsv
  577. (package
  578. (inherit guile-dsv)
  579. (name "guile2.2-dsv")
  580. (inputs `(("guile" ,guile-2.2)))
  581. (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
  582. (define-public guile-fibers
  583. (package
  584. (name "guile-fibers")
  585. (version "1.0.0")
  586. (source (origin
  587. (method url-fetch)
  588. (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
  589. version ".tar.gz"))
  590. (sha256
  591. (base32
  592. "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))
  593. (modules '((guix build utils)))
  594. (snippet
  595. '(begin
  596. ;; Allow builds with Guile 3.0.
  597. (substitute* "configure"
  598. (("search=\"2\\.2\"")
  599. "search=\"3.0 2.2\""))
  600. ;; Explicitly include system headers rather than relying on
  601. ;; <libguile.h> to do it for us.
  602. (substitute* "epoll.c"
  603. (("#include.*libguile\\.h.*$" all)
  604. (string-append "#include <unistd.h>\n"
  605. "#include <string.h>\n"
  606. all "\n")))
  607. ;; Import (ice-9 threads) for 'current-processor-count'.
  608. (substitute* "tests/channels.scm"
  609. (("#:use-module \\(fibers\\)")
  610. (string-append "#:use-module (fibers)\n"
  611. "#:use-module (ice-9 threads)\n")))
  612. #t))
  613. (patches
  614. ;; fixes a resource leak that causes crashes in the tests
  615. (search-patches "guile-fibers-destroy-peer-schedulers.patch"))))
  616. (build-system gnu-build-system)
  617. (arguments
  618. '(;; The code uses 'scm_t_uint64' et al., which are deprecated in 3.0.
  619. #:configure-flags '("CFLAGS=-Wno-error=deprecated-declarations")
  620. #:phases (modify-phases %standard-phases
  621. (add-after 'install 'mode-guile-objects
  622. (lambda* (#:key outputs #:allow-other-keys)
  623. ;; .go files are installed to "lib/guile/X.Y/cache".
  624. ;; This phase moves them to "…/site-ccache".
  625. (let* ((out (assoc-ref outputs "out"))
  626. (lib (string-append out "/lib/guile"))
  627. (old (car (find-files lib "^ccache$"
  628. #:directories? #t)))
  629. (new (string-append (dirname old)
  630. "/site-ccache")))
  631. (rename-file old new)
  632. #t))))))
  633. (native-inputs
  634. `(("texinfo" ,texinfo)
  635. ("pkg-config" ,pkg-config)))
  636. (inputs
  637. `(("guile" ,guile-3.0)))
  638. (synopsis "Lightweight concurrency facility for Guile")
  639. (description
  640. "Fibers is a Guile library that implements a a lightweight concurrency
  641. facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
  642. like a \"goroutine\" from the Go language: a lightweight thread-like
  643. abstraction. Systems built with Fibers can scale up to millions of concurrent
  644. fibers, tens of thousands of concurrent socket connections, and many parallel
  645. cores. The Fibers library also provides Concurrent ML-like channels for
  646. communication between fibers.
  647. Note that Fibers makes use of some Guile 2.1/2.2-specific features and
  648. is not available for Guile 2.0.")
  649. (home-page "https://github.com/wingo/fibers")
  650. (license license:lgpl3+)))
  651. (define-public guile2.0-fibers
  652. (package
  653. (inherit guile-fibers)
  654. (name "guile2.2-fibers")
  655. (inputs `(("guile" ,guile-2.2)))))
  656. (define-public guile3.0-fibers
  657. (deprecated-package "guile3.0-fibers" guile-fibers))
  658. (define-public guile-filesystem
  659. (package
  660. (name "guile-filesystem")
  661. (version "0.1.0")
  662. (source (origin
  663. (method git-fetch)
  664. (uri (git-reference
  665. (url "https://gitlab.com/leoprikler/guile-filesystem.git")
  666. (commit version)))
  667. (file-name (git-file-name name version))
  668. (sha256
  669. (base32
  670. "1shmkc0y9r2sj3kw7hrsnamnp7y8xifkhf3m3rnfxczqg63k67vy"))))
  671. (build-system gnu-build-system)
  672. (native-inputs
  673. `(("autoconf" ,autoconf)
  674. ("automake" ,automake)
  675. ("pkg-config" ,pkg-config)
  676. ("texinfo" ,texinfo)))
  677. (inputs
  678. `(("guile" ,guile-3.0)))
  679. (home-page "https://gitlab.com/leoprikler/guile-filesystem")
  680. (synopsis "Complementary library to Guile's built-in file system procedures")
  681. (description "@code{guile-filesystem} provides a set of utility functions,
  682. that augment Guile's support for handling files and their names.")
  683. (license license:lgpl3+)))
  684. (define-public guile2.0-filesystem
  685. (package
  686. (inherit guile-filesystem)
  687. (name "guile2.0-filesystem")
  688. (inputs `(("guile" ,guile-2.0)))))
  689. (define-public guile2.2-filesystem
  690. (package
  691. (inherit guile-filesystem)
  692. (name "guile2.2-filesystem")
  693. (inputs `(("guile" ,guile-2.2)))))
  694. (define-public guile-syntax-highlight
  695. (package
  696. (name "guile-syntax-highlight")
  697. (version "0.1")
  698. (source (origin
  699. (method url-fetch)
  700. (uri (string-append "https://files.dthompson.us/"
  701. "guile-syntax-highlight/"
  702. "guile-syntax-highlight-"
  703. version ".tar.gz"))
  704. (sha256
  705. (base32
  706. "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))
  707. (modules '((guix build utils)))
  708. (snippet
  709. '(begin
  710. ;; Allow builds with Guile 3.0.
  711. (substitute* "configure"
  712. (("2\\.2 2\\.0")
  713. "3.0 2.2 2.0"))
  714. #t))))
  715. (build-system gnu-build-system)
  716. (native-inputs
  717. `(("pkg-config" ,pkg-config)))
  718. (inputs
  719. `(("guile" ,guile-3.0)))
  720. (synopsis "General-purpose syntax highlighter for GNU Guile")
  721. (description "Guile-syntax-highlight is a general-purpose syntax
  722. highlighting library for GNU Guile. It can parse code written in various
  723. programming languages into a simple s-expression that can be converted to
  724. HTML (via SXML) or any other format for rendering.")
  725. (home-page "https://dthompson.us/projects/guile-syntax-highlight.html")
  726. (license license:lgpl3+)))
  727. ;; gitile requires a more recent version than the latest release.
  728. (define-public guile-syntax-highlight-for-gitile
  729. (let ((commit "897fa5156ff41588e0d281eb00e4e94de63ccd8a")
  730. (revision "0"))
  731. (package
  732. (inherit guile-syntax-highlight)
  733. (version (git-version "0.1" revision commit))
  734. (source (origin
  735. (method git-fetch)
  736. (uri (git-reference
  737. (url "https://git.dthompson.us/guile-syntax-highlight.git")
  738. (commit commit)))
  739. (file-name (git-file-name "guile-syntax-highlight" version))
  740. (sha256
  741. (base32
  742. "18zlg4mkgd3swgv2ggfz91ivnnzc0zhvc9ybgrxg1y762va9hyvj"))))
  743. (native-inputs
  744. `(("autoconf" ,autoconf)
  745. ("automake" ,automake)
  746. ("texinfo" ,texinfo)
  747. ,@(package-native-inputs guile-syntax-highlight)))
  748. (properties '((hidden? . #t))))))
  749. (define-public guile2.2-syntax-highlight
  750. (package
  751. (inherit guile-syntax-highlight)
  752. (name "guile2.2-syntax-highlight")
  753. (inputs `(("guile" ,guile-2.2)))))
  754. (define-public guile3.0-syntax-highlight
  755. (deprecated-package "guile3.0-syntax-highlight" guile-syntax-highlight))
  756. (define-public guile-sjson
  757. (package
  758. (name "guile-sjson")
  759. (version "0.2.1")
  760. (source (origin
  761. (method url-fetch)
  762. (uri (string-append "https://dustycloud.org/misc/sjson-" version
  763. ".tar.gz"))
  764. (sha256
  765. (base32
  766. "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))
  767. (modules '((guix build utils)))
  768. (snippet
  769. '(begin
  770. ;; Allow builds with Guile 3.0.
  771. (substitute* "configure"
  772. (("2\\.2 2\\.0")
  773. "3.0 2.2 2.0"))
  774. #t))))
  775. (build-system gnu-build-system)
  776. (native-inputs
  777. `(("autoconf" ,autoconf)
  778. ("automake" ,automake)
  779. ("pkg-config" ,pkg-config)))
  780. (inputs
  781. `(("guile" ,guile-3.0)))
  782. (home-page "https://gitlab.com/dustyweb/guile-sjson")
  783. (synopsis "S-expression based json reader/writer for Guile")
  784. (description "guile-sjson is a json reader/writer for Guile.
  785. It has a nice, simple s-expression based syntax.")
  786. (license license:lgpl3+)))
  787. (define-public guile2.2-sjson
  788. (package
  789. (inherit guile-sjson)
  790. (name "guile2.2-sjson")
  791. (inputs `(("guile" ,guile-2.2)))))
  792. (define-public guile-squee
  793. (let ((commit "c1497a216e881cfde39d6aa7c73d0bf6b497c89b")
  794. (revision "2"))
  795. (package
  796. (name "guile-squee")
  797. (version (string-append "0-" revision "." (string-take commit 7)))
  798. (source (origin
  799. (method git-fetch)
  800. (uri (git-reference
  801. (url "https://notabug.org/cwebber/guile-squee.git")
  802. (commit commit)))
  803. (file-name (git-file-name name version))
  804. (sha256
  805. (base32
  806. "1alskrplnyl1n5wb39drn72cwplp47a8cpdd1n9cdnw3jhk5p12p"))))
  807. (build-system guile-build-system)
  808. (arguments
  809. '(#:phases
  810. (modify-phases %standard-phases
  811. (add-after 'unpack 'patch
  812. (lambda* (#:key inputs #:allow-other-keys)
  813. (substitute* "squee.scm"
  814. (("dynamic-link \"libpq\"")
  815. (string-append
  816. "dynamic-link \""
  817. (assoc-ref inputs "postgresql") "/lib/libpq.so"
  818. "\"")))
  819. #t)))))
  820. (inputs
  821. `(("postgresql" ,postgresql)))
  822. (native-inputs
  823. `(("guile" ,guile-3.0)))
  824. (home-page "https://notabug.org/cwebber/guile-squee")
  825. (synopsis "Connect to PostgreSQL using Guile")
  826. (description
  827. "@code{squee} is a Guile library for connecting to PostgreSQL databases
  828. using Guile's foreign function interface.")
  829. (license license:lgpl3+))))
  830. (define-public guile2.2-squee
  831. (package
  832. (inherit guile-squee)
  833. (name "guile2.2-squee")
  834. (native-inputs `(("guile" ,guile-2.2)
  835. ,@(alist-delete "guile"
  836. (package-native-inputs guile-squee))))))
  837. (define-public guile3.0-squee
  838. (deprecated-package "guile3.0-squee" guile-squee))
  839. (define-public guile-colorized
  840. (package
  841. (name "guile-colorized")
  842. (version "0.1")
  843. (source
  844. (origin
  845. (method git-fetch)
  846. (uri (git-reference
  847. (url "https://gitlab.com/NalaGinrut/guile-colorized.git")
  848. (commit (string-append "v" version))))
  849. (file-name (git-file-name name version))
  850. (sha256
  851. (base32 "10mv8c63159r3qvwwdvsgnsvdg7nc2ghak85zapwqpv4ywrqp9zc"))))
  852. (build-system guile-build-system)
  853. (native-inputs
  854. `(("guile" ,guile-3.0)))
  855. (home-page "https://gitlab.com/NalaGinrut/guile-colorized")
  856. (synopsis "Colorized REPL for Guile")
  857. (description
  858. "Guile-colorized provides you with a colorized REPL for GNU Guile.")
  859. (license license:gpl3+)))
  860. (define-public guile2.2-colorized
  861. (package
  862. (inherit guile-colorized)
  863. (name "guile2.2-colorized")
  864. (native-inputs `(("guile" ,guile-2.2)))))
  865. (define-public guile3.0-colorized
  866. (deprecated-package "guile3.0-colorized" guile-colorized))
  867. (define-public guile-pfds
  868. (package
  869. (name "guile-pfds")
  870. (version "0.3")
  871. (home-page "https://github.com/ijp/pfds")
  872. (source (origin
  873. (method git-fetch)
  874. (uri (git-reference
  875. (url home-page)
  876. (commit (string-append "v" version))))
  877. (sha256
  878. (base32
  879. "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
  880. (file-name (string-append name "-" version "-checkout"))))
  881. (build-system guile-build-system)
  882. (arguments
  883. '(#:source-directory "src"
  884. #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
  885. #:phases (modify-phases %standard-phases
  886. (add-after 'unpack 'patch-sources
  887. ;; Initially reported here:
  888. ;; https://github.com/ijp/pfds/pull/6, and merged into
  889. ;; other projects such as IronScheme (see:
  890. ;; https://github.com/IronScheme/pfds/pull/1).
  891. (lambda _
  892. (substitute* "hamts.sls"
  893. (("subtrie-vector vector")
  894. "subtrie-vector trie"))))
  895. (add-after 'patch-sources 'move-files-around
  896. (lambda _
  897. ;; Move files under a pfds/ directory to reflect the
  898. ;; module hierarchy.
  899. (mkdir-p "src/pfds")
  900. (for-each (lambda (file)
  901. (rename-file
  902. file (string-append "src/pfds/" file)))
  903. '("bbtrees.sls"
  904. "deques"
  905. "deques.sls"
  906. "dlists.sls"
  907. "fingertrees.sls"
  908. "hamts.sls"
  909. "heaps.sls"
  910. "private"
  911. "psqs.sls"
  912. "queues"
  913. "queues.sls"
  914. "sequences.sls"
  915. "sets.sls")))))))
  916. (native-inputs
  917. `(("guile" ,guile-3.0)))
  918. (synopsis "Purely functional data structures for Guile")
  919. (description
  920. "This package provides purely functional data structures written in R6RS
  921. Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
  922. Vicare Scheme and IronScheme. Right now it contains:
  923. @itemize
  924. @item queues
  925. @item deques
  926. @item bbtrees
  927. @item sets
  928. @item dlists
  929. @item priority search queues (PSQs)
  930. @item finger trees
  931. @item sequences
  932. @item heaps
  933. @item hash array mapped tries (HAMTs).
  934. @end itemize\n")
  935. (license license:bsd-3)))
  936. (define-public guile2.0-pg
  937. (package
  938. (name "guile2.0-pg")
  939. (version "0.49")
  940. (source (origin
  941. (method url-fetch)
  942. (uri (string-append "mirror://savannah/guile-pg/guile-pg-"
  943. version ".tar.xz"))
  944. (sha256
  945. (base32
  946. "1fizcqga96p9n2jjhi9nprhry20hg9wvcl5b8gya4vhzwz6qhysp"))))
  947. (build-system gnu-build-system)
  948. (arguments
  949. '(#:phases
  950. (modify-phases %standard-phases
  951. (add-before 'install 'patch-src/Makefile
  952. (lambda* (#:key outputs #:allow-other-keys)
  953. (substitute* "src/Makefile"
  954. (("\\/share\\/guile\\/site") "/share/guile/site/2.0"))
  955. #t)))))
  956. (native-inputs
  957. `(("procps" ,procps) ; fake-cluster-control uses ps
  958. ("guile" ,guile-2.0)
  959. ("postgresql" ,postgresql)))
  960. (inputs
  961. `(("guile" ,guile-2.0)
  962. ("postgresql" ,postgresql)))
  963. (home-page "https://www.nongnu.org/guile-pg/")
  964. (synopsis "Guile modules for accessing PostgreSQL")
  965. (description
  966. "Guile-PG is a collection of modules for Guile allowing access to the
  967. PostgreSQL RDBMS from Scheme programs.
  968. This has been tested against PostgreSQL 10 through 13, but currently only
  969. works with Guile 1.4.x to 2.0.x.")
  970. (license license:gpl3+)))
  971. (define-public guile-prometheus
  972. (let ((commit "35dc26c0ea44c3d70f1819f240d84e2cbb4b7b4c")
  973. (revision "5"))
  974. (package
  975. (name "guile-prometheus")
  976. (version (git-version "0" revision commit))
  977. (source (origin
  978. (method git-fetch)
  979. (uri (git-reference
  980. (url "https://git.cbaines.net/git/guile/prometheus")
  981. (commit commit)))
  982. (sha256
  983. (base32
  984. "07822jj4appw37lf444kc4xlgl7nm64mgldag56072l55kwashgb"))
  985. (file-name (string-append name "-" version "-checkout"))))
  986. (build-system gnu-build-system)
  987. (native-inputs
  988. `(("pkg-config" ,pkg-config)
  989. ("autoconf" ,autoconf)
  990. ("automake" ,automake)
  991. ("guile" ,guile-3.0)))
  992. (inputs
  993. `(("guile" ,guile-3.0)))
  994. (home-page "https://git.cbaines.net/guile/prometheus")
  995. (synopsis "Prometheus client library for Guile")
  996. (description
  997. "This Guile library provides instrumentation code intended to be used
  998. with the Prometheus time series service. Counter, gauge and histogram metric
  999. types are supported.")
  1000. (license license:gpl3+))))
  1001. (define-public guile2.2-pfds
  1002. (package
  1003. (inherit guile-pfds)
  1004. (name "guile2.2-pfds")
  1005. (native-inputs `(("guile" ,guile-2.2)))
  1006. (arguments
  1007. (substitute-keyword-arguments (package-arguments guile-pfds)
  1008. ((#:phases phases)
  1009. `(modify-phases ,phases
  1010. (delete 'work-around-guile-bug)
  1011. (add-after 'move-files-around 'sls->scm
  1012. (lambda _
  1013. ;; In Guile <= 2.2.4, there's no way to tell 'guild
  1014. ;; compile' to accept the ".sls" extension. So...
  1015. (for-each (lambda (file)
  1016. (rename-file file
  1017. (string-append
  1018. (string-drop-right file 4)
  1019. ".scm")))
  1020. (find-files "." "\\.sls$"))
  1021. #t))))))))
  1022. (define-public guile3.0-pfds
  1023. (deprecated-package "guile3.0-pfds" guile-pfds))
  1024. (define-public guile-aa-tree
  1025. (package
  1026. (name "guile-aa-tree")
  1027. (version "3.1.1")
  1028. (source (origin
  1029. (method url-fetch)
  1030. (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
  1031. version ".tar.gz"))
  1032. (sha256
  1033. (base32
  1034. "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
  1035. (build-system guile-build-system)
  1036. (native-inputs `(("guile" ,guile-2.2)))
  1037. ;; https://savannah.nongnu.org/projects/guile-aa-tree
  1038. (home-page "https://qlfiles.net/guile-aa-tree/")
  1039. (synopsis "AA tree data structure for Guile")
  1040. (description
  1041. "This package provides an implementation of @dfn{AA trees}, a
  1042. self-balancing binary tree data structure, for Guile. It ensure @math{O(log
  1043. n)} worst case performance for core operations. The module provides
  1044. non-mutating insert, delete, and search operations, with support for
  1045. convenient nested tree operations.")
  1046. (license license:gpl3+)))
  1047. (define-public guile-simple-zmq
  1048. (let ((commit "b2ea97e5a0e7417ce718b27b6fd55a3146364b82")
  1049. (revision "9"))
  1050. (package
  1051. (name "guile-simple-zmq")
  1052. (version (git-version "0.0.0" revision commit))
  1053. (source
  1054. (origin
  1055. (method git-fetch)
  1056. (uri (git-reference
  1057. (url "https://github.com/jerry40/guile-simple-zmq")
  1058. (commit commit)))
  1059. (sha256
  1060. (base32
  1061. "08qvcxx0njz9545xa0lq3wpf55v9cl9nbb640ry1lig11wpymqxb"))
  1062. (file-name (git-file-name name version))))
  1063. (build-system gnu-build-system)
  1064. (arguments
  1065. '(#:make-flags
  1066. '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
  1067. (native-inputs
  1068. `(("guile" ,guile-3.0)))
  1069. (inputs
  1070. `(("autoconf" ,autoconf)
  1071. ("automake" ,automake)
  1072. ("pkg-config" ,pkg-config)
  1073. ("zeromq" ,zeromq)))
  1074. (home-page "https://github.com/jerry40/guile-simple-zmq")
  1075. (synopsis "Guile wrapper over ZeroMQ library")
  1076. (description
  1077. "This package provides a Guile programming interface to the ZeroMQ
  1078. messaging library.")
  1079. (license license:gpl3+))))
  1080. (define-public guile2.2-simple-zmq
  1081. (package
  1082. (inherit guile-simple-zmq)
  1083. (name "guile2.2-simple-zmq")
  1084. (native-inputs `(("guile" ,guile-2.2)))))
  1085. (define-public guile3.0-simple-zmq
  1086. (deprecated-package "guile3.0-simple-zmq" guile-simple-zmq))
  1087. (define-public jupyter-guile-kernel
  1088. (let ((commit "f25fb90b95529b17a006a807bd04e6aee12ea304")
  1089. (revision "2"))
  1090. (package
  1091. (name "jupyter-guile-kernel")
  1092. (version (git-version "0.0.0" revision commit))
  1093. (source
  1094. (origin
  1095. (method git-fetch)
  1096. (uri (git-reference
  1097. (url "https://github.com/jerry40/guile-kernel")
  1098. (commit commit)))
  1099. (file-name (git-file-name name version))
  1100. (sha256
  1101. (base32
  1102. "0zr1fasdb2yv9kn21yll993y9higqss4jnfs030ndhjb93raa9sr"))))
  1103. (build-system guile-build-system)
  1104. (arguments
  1105. '(#:phases (modify-phases %standard-phases
  1106. (add-after 'unpack 'set-openssl-file-name
  1107. (lambda* (#:key inputs #:allow-other-keys)
  1108. ;; Record the absolute file name of the 'openssl'
  1109. ;; command.
  1110. (substitute* "src/hmac.scm"
  1111. (("openssl")
  1112. (search-input-file inputs "/bin/openssl")))))
  1113. ;; XXX: The code uses 'include' to include its own source
  1114. ;; files, and "-L src" isn't enough in this case.
  1115. (add-before 'build 'chdir
  1116. (lambda _ (chdir "src") #t))
  1117. (add-after 'build 'chdir-back
  1118. (lambda _ (chdir "..") #t))
  1119. (add-after 'install 'install-kernel
  1120. (lambda* (#:key inputs outputs #:allow-other-keys)
  1121. (let* ((out (assoc-ref outputs "out"))
  1122. (json (assoc-ref inputs "guile-json"))
  1123. (zmq (assoc-ref inputs "guile-simple-zmq"))
  1124. (deps (list json zmq))
  1125. (dir (string-append
  1126. out "/share/jupyter/kernels/guile"))
  1127. (effective (target-guile-effective-version)))
  1128. ;; Install kernel.
  1129. (install-file "src/kernel.json" dir)
  1130. ;; Fix hard-coded file name in the kernel.
  1131. (substitute* (string-append dir "/kernel.json")
  1132. (("/usr/local/.*/guile-jupyter-kernel.scm")
  1133. (string-append out "/share/guile/site/"
  1134. (target-guile-effective-version)
  1135. "/guile-jupyter-kernel.scm"))
  1136. (("\"guile\"")
  1137. (string-append "\"" (assoc-ref inputs "guile")
  1138. "/bin/guile\""))
  1139. (("-s")
  1140. ;; Add '-L' and '-C' flags so that the kernel
  1141. ;; finds its dependencies.
  1142. (let ((-L (map (lambda (item)
  1143. (string-append "\"" item
  1144. "/share/guile/site/"
  1145. effective "\""))
  1146. deps))
  1147. (-C (map (lambda (item)
  1148. (string-append "\"" item
  1149. "/lib/guile/"
  1150. effective
  1151. "/site-ccache\""))
  1152. deps)))
  1153. (string-append "--no-auto-compile\""
  1154. (string-join -L ", \"-L\", "
  1155. 'prefix)
  1156. (string-join -C ", \"-C\", "
  1157. 'prefix)
  1158. ", \"-s"))))
  1159. #t))))))
  1160. (inputs
  1161. `(("openssl" ,openssl)
  1162. ("guile" ,guile-3.0)
  1163. ("guile-json" ,guile-json-3)
  1164. ("guile-simple-zmq" ,guile-simple-zmq)))
  1165. (synopsis "Guile kernel for the Jupyter Notebook")
  1166. (description
  1167. "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
  1168. allows users to interact with the Guile REPL through Jupyter.")
  1169. (home-page "https://github.com/jerry40/guile-kernel")
  1170. (license license:gpl3+))))
  1171. (define-public guile-sparql
  1172. (package
  1173. (name "guile-sparql")
  1174. (version "0.0.8")
  1175. (source (origin
  1176. (method url-fetch)
  1177. (uri (string-append
  1178. "https://github.com/roelj/guile-sparql/releases/download/"
  1179. version "/guile-sparql-" version ".tar.gz"))
  1180. (sha256
  1181. (base32 "1jf4972f9fpm0rd865xpnc9mzl3xv6vhfnp0iygadydy905z9nln"))))
  1182. (build-system gnu-build-system)
  1183. (native-inputs
  1184. `(("pkg-config" ,pkg-config)))
  1185. (inputs
  1186. `(("guile" ,guile-3.0)))
  1187. (home-page "https://github.com/roelj/guile-sparql")
  1188. (synopsis "SPARQL module for Guile")
  1189. (description "This package provides the functionality to query a SPARQL
  1190. endpoint. Additionally, it provides an interface to write SPARQL queries
  1191. using S-expressions.")
  1192. (license license:gpl3+)))
  1193. (define-public guile-debbugs
  1194. (package
  1195. (name "guile-debbugs")
  1196. (version "0.0.3")
  1197. (source (origin
  1198. (method url-fetch)
  1199. (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
  1200. version ".tar.gz"))
  1201. (sha256
  1202. (base32
  1203. "1cc63nw3xdfjrfk8c58r6d5lidmfq5cpqcy32yd5xp81yccprvn9"))))
  1204. (build-system gnu-build-system)
  1205. (propagated-inputs
  1206. `(("guile-email" ,guile-email)))
  1207. (native-inputs
  1208. `(("guile" ,guile-3.0)
  1209. ("pkg-config" ,pkg-config)))
  1210. (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
  1211. (synopsis "Guile interface to the Debbugs bug tracking service")
  1212. (description
  1213. "This package provides a Guile library to communicate with a Debbugs bug
  1214. tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
  1215. (license license:gpl3+)))
  1216. (define-public guile-email
  1217. (package
  1218. (name "guile-email")
  1219. (version "0.2.2")
  1220. (source
  1221. (origin
  1222. (method url-fetch)
  1223. (uri (string-append
  1224. "https://guile-email.systemreboot.net/releases/guile-email-"
  1225. version ".tar.lz"))
  1226. (sha256
  1227. (base32
  1228. "1rc8r0fgvflnyq5ckl7ii8sghpsgpkzxa8vskjr1ak2kyar6m35k"))
  1229. (patches
  1230. (search-patches "guile-email-fix-tests.patch"))))
  1231. (build-system gnu-build-system)
  1232. (native-inputs
  1233. `(("pkg-config" ,pkg-config)
  1234. ("lzip" ,lzip)))
  1235. (inputs
  1236. `(("guile" ,guile-3.0)))
  1237. (arguments
  1238. '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
  1239. (home-page "https://guile-email.systemreboot.net")
  1240. (synopsis "Guile email parser")
  1241. (description "guile-email is a collection of email utilities implemented
  1242. in pure guile. It supports parsing MIME (Multipurpose Internet Mail
  1243. Extensions) compliant email messages and reading emails from the mbox
  1244. format.")
  1245. (license license:agpl3+)))
  1246. (define-public guile-email-latest
  1247. (let ((commit "ca0520a33c9042a68691d85c6849f88412ca8357")
  1248. (revision "1"))
  1249. (package
  1250. (inherit guile-email)
  1251. (name "guile-email-latest")
  1252. (version (git-version "0.2.2" revision commit))
  1253. (source
  1254. (origin
  1255. (method git-fetch)
  1256. (uri (git-reference
  1257. (url "https://git.systemreboot.net/guile-email")
  1258. (commit commit)))
  1259. (file-name (git-file-name name version))
  1260. (sha256
  1261. (base32
  1262. "1l5mikalawq83786rnb9zky908ncsd5dna9vyz6bx6kc2frrl7xv"))))
  1263. (native-inputs
  1264. `(("pkg-config" ,pkg-config)
  1265. ("autoconf" ,autoconf)
  1266. ("automake" ,automake)
  1267. ("texinfo" ,texinfo))))))
  1268. (define-public guile2.2-email
  1269. (package
  1270. (inherit guile-email)
  1271. (name "guile2.2-email")
  1272. (inputs `(("guile" ,guile-2.2)
  1273. ,@(alist-delete "guile" (package-inputs guile-email))))))
  1274. (define-public guile3.0-email
  1275. (deprecated-package "guile3.0-email" guile-email))
  1276. (define-public guile-newt
  1277. (package
  1278. (name "guile-newt")
  1279. (version "0.0.2")
  1280. (source (origin
  1281. (method git-fetch)
  1282. (uri (git-reference
  1283. (url "https://gitlab.com/mothacehe/guile-newt")
  1284. (commit version)))
  1285. (file-name (git-file-name name version))
  1286. (sha256
  1287. (base32
  1288. "1gksd1lzgjjh1p9vczghg8jw995d22hm34kbsiv8rcryirv2xy09"))))
  1289. (build-system gnu-build-system)
  1290. (arguments
  1291. '(#:make-flags
  1292. '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
  1293. (inputs
  1294. `(("guile" ,guile-3.0)
  1295. ("newt" ,newt)))
  1296. (native-inputs
  1297. `(("autoconf" ,autoconf)
  1298. ("automake" ,automake)
  1299. ("pkg-config" ,pkg-config)))
  1300. (synopsis "Guile bindings to Newt")
  1301. (description
  1302. "This package provides bindings for Newt, a programming library for
  1303. color text mode, widget based user interfaces. The bindings are written in pure
  1304. Scheme by using Guile’s foreign function interface.")
  1305. (home-page "https://gitlab.com/mothacehe/guile-newt")
  1306. (license license:gpl3+)))
  1307. (define-public guile2.2-newt
  1308. (package
  1309. (inherit guile-newt)
  1310. (name "guile2.2-newt")
  1311. (inputs `(("guile" ,guile-2.2)
  1312. ,@(alist-delete "guile" (package-inputs guile-newt))))))
  1313. (define-public guile3.0-newt
  1314. (deprecated-package "guile3.0-newt" guile-newt))
  1315. (define-public guile-mastodon
  1316. (let ((commit "74b75bcf547df92acee1e0466ecd7ec07f775392")
  1317. (revision "1"))
  1318. (package
  1319. (name "guile-mastodon")
  1320. (version (git-version "0.0.1" revision commit))
  1321. (source (origin
  1322. (method git-fetch)
  1323. (uri (git-reference
  1324. (url "https://framagit.org/prouby/guile-mastodon.git")
  1325. (commit commit)))
  1326. (file-name (string-append name "-" version "-checkout"))
  1327. (sha256
  1328. (base32
  1329. "1wx5h6wa9c0na8mrnr2nv1nzjvq68zyrly8yyp11dsskhaw4y33h"))))
  1330. (build-system gnu-build-system)
  1331. (native-inputs
  1332. `(("autoconf" ,autoconf)
  1333. ("automake" ,automake)
  1334. ("emacs" ,emacs-minimal)
  1335. ("pkg-config" ,pkg-config)
  1336. ("texinfo" ,texinfo)))
  1337. (inputs
  1338. `(("guile" ,guile-3.0)
  1339. ("gnutls" ,gnutls)
  1340. ("guile-json" ,guile-json-4)))
  1341. (home-page "https://framagit.org/prouby/guile-mastodon")
  1342. (synopsis "Guile Mastodon REST API module")
  1343. (description "This package provides Guile modules to access the
  1344. @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
  1345. microblogging service.")
  1346. (license license:gpl3+))))
  1347. (define-public guile-parted
  1348. (package
  1349. (name "guile-parted")
  1350. (version "0.0.5")
  1351. (source (origin
  1352. (method git-fetch)
  1353. (uri (git-reference
  1354. (url "https://gitlab.com/mothacehe/guile-parted")
  1355. (commit version)))
  1356. (file-name (git-file-name name version))
  1357. (sha256
  1358. (base32
  1359. "1ar6n38br3h1jm54yy6d54rpqdgsy7pmnj3nqdzqrfk8z0kx0rm9"))
  1360. (modules '((guix build utils)))))
  1361. (build-system gnu-build-system)
  1362. (arguments
  1363. '(#:make-flags
  1364. '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
  1365. (inputs
  1366. `(("guile" ,guile-3.0)
  1367. ("parted" ,parted)))
  1368. (propagated-inputs
  1369. `(("guile-bytestructures" ,guile-bytestructures)))
  1370. (native-inputs
  1371. `(("autoconf" ,autoconf)
  1372. ("automake" ,automake)
  1373. ("pkg-config" ,pkg-config)))
  1374. (synopsis "Guile bindings to GNU Parted")
  1375. (description
  1376. "This package provides bindings for GNU Parted library, a C library
  1377. allowing disk partition tables creation and manipulation. The bindings are
  1378. written in pure Scheme by using Guile's foreign function interface.")
  1379. (home-page "https://gitlab.com/mothacehe/guile-parted")
  1380. (license license:gpl3+)))
  1381. (define-public guile2.2-parted
  1382. (package
  1383. (inherit guile-parted)
  1384. (name "guile2.2-parted")
  1385. (inputs `(("guile" ,guile-2.2)
  1386. ,@(alist-delete "guile" (package-inputs guile-parted))))
  1387. (propagated-inputs
  1388. `(("guile-bytestructures" ,guile2.2-bytestructures)))))
  1389. (define-public guile3.0-parted
  1390. (deprecated-package "guile3.0-parted" guile-parted))
  1391. (define-public guile-xosd
  1392. (package
  1393. (name "guile-xosd")
  1394. (version "0.2.1")
  1395. (source (origin
  1396. (method url-fetch)
  1397. (uri (string-append "https://github.com/alezost/" name
  1398. "/releases/download/v" version
  1399. "/" name "-" version ".tar.gz"))
  1400. (sha256
  1401. (base32
  1402. "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
  1403. (build-system gnu-build-system)
  1404. (native-inputs
  1405. `(("pkg-config" ,pkg-config)))
  1406. (inputs
  1407. `(("guile" ,guile-2.2)
  1408. ("libx11" ,libx11)
  1409. ("libxext" ,libxext)
  1410. ("libxinerama" ,libxinerama)
  1411. ("xosd" ,xosd)))
  1412. (home-page "https://github.com/alezost/guile-xosd")
  1413. (synopsis "XOSD bindings for Guile")
  1414. (description
  1415. "Guile-XOSD provides Guile bindings for @code{libxosd},
  1416. @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
  1417. library}.")
  1418. (license license:gpl3+)))
  1419. (define-public guile-dbi
  1420. (package
  1421. (name "guile-dbi")
  1422. (version "2.1.6")
  1423. (source (origin
  1424. (method git-fetch)
  1425. (uri (git-reference
  1426. (url "https://example.org") ;only hosted on Software Heritage
  1427. (commit "e19b019e9683faf66c3f385b20fcc112e65f8c6e")))
  1428. (file-name (git-file-name name version))
  1429. (sha256
  1430. (base32
  1431. "09ys5hj7gnj5w1iv1m194j06jk6b8sdhc8j6hcv3bprq1428kyxw"))))
  1432. (build-system gnu-build-system)
  1433. (arguments
  1434. '(#:configure-flags
  1435. (list (string-append
  1436. "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
  1437. #:make-flags
  1438. (list (string-append
  1439. "LDFLAGS=-Wl,-rpath=" %output "/lib:"
  1440. (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":"
  1441. (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib"))
  1442. #:phases
  1443. (modify-phases %standard-phases
  1444. (add-after 'install 'patch-extension-path
  1445. (lambda* (#:key outputs #:allow-other-keys)
  1446. (let* ((out (assoc-ref outputs "out"))
  1447. (dbi.scm (string-append
  1448. out "/share/guile/site/2.2/dbi/dbi.scm"))
  1449. (ext (string-append out "/lib/libguile-dbi")))
  1450. (substitute* dbi.scm (("libguile-dbi") ext))
  1451. #t))))))
  1452. (inputs
  1453. `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3)
  1454. ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files
  1455. (propagated-inputs
  1456. `(("guile" ,guile-2.2)))
  1457. (synopsis "Guile database abstraction layer")
  1458. (home-page "https://web.archive.org/web/20160328232717/http://home.gna.org/guile-dbi/guile-dbi.html")
  1459. (description
  1460. "guile-dbi is a library for Guile that provides a convenient interface to
  1461. SQL databases. Database programming with guile-dbi is generic in that the same
  1462. programming interface is presented regardless of which database system is used.
  1463. It currently supports MySQL, Postgres and SQLite3.")
  1464. (license license:gpl2+)))
  1465. (define guile-dbi-bootstrap
  1466. (package
  1467. (inherit guile-dbi)
  1468. (name "guile-dbi-bootstrap")
  1469. (inputs '())
  1470. (arguments
  1471. (substitute-keyword-arguments (package-arguments guile-dbi)
  1472. ((#:make-flags _) '(list))))))
  1473. (define-public guile-dbd-sqlite3
  1474. (package
  1475. (name "guile-dbd-sqlite3")
  1476. (version "2.1.6")
  1477. (source (origin
  1478. (method git-fetch)
  1479. (uri (git-reference
  1480. (url "https://example.org") ;only hosted on Software Heritage
  1481. (commit "0758c615e9e85ad76d153d5dc6179881f1f50089")))
  1482. (file-name (git-file-name name version))
  1483. (sha256
  1484. (base32
  1485. "1rwf3z6ib6nkhfnk2nw8p6fqirdx2pparcrlmsm0i2ii62plpqhb"))))
  1486. (build-system gnu-build-system)
  1487. (native-inputs
  1488. `(("pkg-config" ,pkg-config)
  1489. ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
  1490. (inputs
  1491. `(("sqlite" ,sqlite)
  1492. ("zlib" ,(@ (gnu packages compression) zlib))))
  1493. (synopsis "Guile DBI driver for SQLite")
  1494. ;; Unofficial home-page.
  1495. ;; Added by b9cbfa52f71505de8447fefabd97f16d0a9cbde6 (2016-06)
  1496. (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
  1497. (description
  1498. "guile-dbi is a library for Guile that provides a convenient interface to
  1499. SQL databases. This package implements the interface for SQLite.")
  1500. (license license:gpl2+)))
  1501. (define-public guile-dbd-postgresql
  1502. (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
  1503. (revision 0))
  1504. (package
  1505. (name "guile-dbd-postgresql")
  1506. (version (string-append
  1507. "2.1.6-" (number->string revision) "." (string-take commit 7)))
  1508. (source
  1509. (origin
  1510. (method git-fetch)
  1511. (uri (git-reference
  1512. (url "https://github.com/opencog/guile-dbi")
  1513. (commit commit)))
  1514. (file-name (git-file-name name version))
  1515. (sha256
  1516. (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"))))
  1517. (build-system gnu-build-system)
  1518. (arguments
  1519. '(#:phases
  1520. (modify-phases %standard-phases
  1521. (add-after 'unpack 'chdir
  1522. (lambda _
  1523. ;; The upstream Git repository contains all the code, so change
  1524. ;; to the relevant directory.
  1525. (chdir "guile-dbd-postgresql")
  1526. #t))
  1527. (add-after 'chdir 'patch-src/Makefile.am
  1528. (lambda* (#:key inputs #:allow-other-keys)
  1529. (substitute* "src/Makefile.am"
  1530. (("/usr/include")
  1531. (string-append (assoc-ref inputs "postgresql") "/include")))
  1532. #t))
  1533. (add-after 'patch-src/Makefile.am 'patch-src
  1534. (lambda _
  1535. (substitute* "src/guile-dbd-postgresql.c"
  1536. (("postgresql/libpq-fe\\.h") "libpq-fe.h"))
  1537. #t)))))
  1538. (native-inputs
  1539. `(("pkg-config" ,pkg-config)
  1540. ("automake" ,automake)
  1541. ("autoconf" ,autoconf)
  1542. ("perl" ,perl)
  1543. ("libtool" ,libtool)
  1544. ("guile-dbi-bootstrap" ,guile-dbi-bootstrap)))
  1545. (inputs
  1546. `(("postgresql" ,postgresql)
  1547. ("zlib" ,zlib)))
  1548. (synopsis "Guile DBI driver for PostgreSQL")
  1549. (home-page
  1550. "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql")
  1551. (description
  1552. "@code{guile-dbi} is a library for Guile that provides a convenient
  1553. interface to SQL databases. This package implements the interface for
  1554. PostgreSQL.")
  1555. (license license:gpl2+))))
  1556. (define-public guile-config
  1557. (package
  1558. (name "guile-config")
  1559. (version "0.4.2")
  1560. (source
  1561. (origin
  1562. (method git-fetch)
  1563. (uri (git-reference
  1564. (url "https://gitlab.com/a-sassmannshausen/guile-config")
  1565. (commit version)))
  1566. (file-name (git-file-name name version))
  1567. (sha256 (base32
  1568. "09028ylbddjdp3d67zdjz3pnsjqz6zs2bfck5rr3dfaa0qjap40n"))))
  1569. (build-system gnu-build-system)
  1570. (native-inputs
  1571. `(("autoconf" ,autoconf)
  1572. ("automake" ,automake)
  1573. ("pkg-config" ,pkg-config)
  1574. ("texinfo" ,texinfo)))
  1575. (inputs `(("guile" ,guile-3.0)))
  1576. (synopsis
  1577. "Guile application configuration parsing library.")
  1578. (description
  1579. "Guile Config is a library providing a declarative approach to
  1580. application configuration specification. The library provides clean
  1581. configuration declaration forms, and processors that take care of:
  1582. configuration file creation; configuration file parsing; command-line
  1583. parameter parsing using getopt-long; basic GNU command-line parameter
  1584. generation (--help, --usage, --version); automatic output generation for the
  1585. above command-line parameters.")
  1586. (home-page
  1587. "https://gitlab.com/a-sassmannshausen/guile-config")
  1588. (license license:gpl3+)))
  1589. (define-public guile2.2-config
  1590. (package
  1591. (inherit guile-config)
  1592. (name "guile2.2-config")
  1593. (inputs `(("guile" ,guile-2.2)
  1594. ,@(alist-delete "guile" (package-inputs guile-config))))))
  1595. (define-public guile3.0-config
  1596. (deprecated-package "guile3.0-config" guile-config))
  1597. (define-public guile-hall
  1598. (package
  1599. (name "guile-hall")
  1600. (version "0.3.1")
  1601. (source
  1602. (origin
  1603. (method git-fetch)
  1604. (uri (git-reference
  1605. (url "https://gitlab.com/a-sassmannshausen/guile-hall")
  1606. (commit version)))
  1607. (file-name "guile-hall-0.3.1-checkout")
  1608. (sha256
  1609. (base32 "1s24nigdra6rvclvy15l2aw00c3aq9vv8qwxylzs60darbl36206"))))
  1610. (build-system gnu-build-system)
  1611. (arguments
  1612. `(#:modules
  1613. ((ice-9 match)
  1614. (ice-9 ftw)
  1615. ,@%gnu-build-system-modules)
  1616. #:phases
  1617. (modify-phases
  1618. %standard-phases
  1619. (add-after 'install 'hall-wrap-binaries
  1620. (lambda* (#:key inputs outputs #:allow-other-keys)
  1621. (let* ((compiled-dir
  1622. (lambda (out version)
  1623. (string-append
  1624. out "/lib/guile/" version "/site-ccache")))
  1625. (uncompiled-dir
  1626. (lambda (out version)
  1627. (string-append
  1628. out "/share/guile/site"
  1629. (if (string-null? version) "" "/") version)))
  1630. (dep-path
  1631. (lambda (env modules path)
  1632. (list env ":" 'prefix
  1633. (cons modules
  1634. (map (lambda (input)
  1635. (string-append
  1636. (assoc-ref inputs input)
  1637. path))
  1638. ,''("guile-config"))))))
  1639. (out (assoc-ref outputs "out"))
  1640. (bin (string-append out "/bin/"))
  1641. (site (uncompiled-dir out "")))
  1642. (match (scandir site)
  1643. (("." ".." version)
  1644. (for-each
  1645. (lambda (file)
  1646. (wrap-program
  1647. (string-append bin file)
  1648. (dep-path
  1649. "GUILE_LOAD_PATH"
  1650. (uncompiled-dir out version)
  1651. (uncompiled-dir "" version))
  1652. (dep-path
  1653. "GUILE_LOAD_COMPILED_PATH"
  1654. (compiled-dir out version)
  1655. (compiled-dir "" version))))
  1656. ,''("hall"))
  1657. #t))))))))
  1658. (native-inputs
  1659. `(("autoconf" ,autoconf)
  1660. ("automake" ,automake)
  1661. ("pkg-config" ,pkg-config)
  1662. ("texinfo" ,texinfo)))
  1663. (inputs `(("guile" ,guile-3.0)))
  1664. (propagated-inputs
  1665. `(("guile-config" ,guile-config)))
  1666. (synopsis "Guile project tooling")
  1667. (description
  1668. "Hall is a command-line application and a set of Guile libraries that
  1669. allow you to quickly create and publish Guile projects. It allows you to
  1670. transparently support the GNU build system, manage a project hierarchy &
  1671. provides tight coupling to Guix.")
  1672. (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
  1673. (license license:gpl3+)))
  1674. (define-public guile2.2-hall
  1675. (package
  1676. (inherit guile-hall)
  1677. (name "guile2.2-hall")
  1678. (inputs `(("guile" ,guile-2.2)
  1679. ,@(alist-delete "guile" (package-inputs guile-hall))))
  1680. (propagated-inputs
  1681. `(("guile-config" ,guile2.2-config)
  1682. ,@(alist-delete "guile-config"
  1683. (package-propagated-inputs guile-hall))))))
  1684. (define-public guile3.0-hall
  1685. (deprecated-package "guile3.0-hall" guile-hall))
  1686. (define-public guile-ics
  1687. (package
  1688. (name "guile-ics")
  1689. (version "0.2.0")
  1690. (source (origin
  1691. (method git-fetch)
  1692. (uri (git-reference
  1693. (url "https://github.com/artyom-poptsov/guile-ics")
  1694. (commit (string-append "v" version))))
  1695. (file-name (string-append name "-" version "-checkout"))
  1696. (sha256
  1697. (base32
  1698. "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))
  1699. (modules '((guix build utils)))
  1700. (snippet
  1701. '(begin
  1702. ;; Allow builds with Guile 3.0.
  1703. (substitute* "configure.ac"
  1704. (("^GUILE_PKG.*")
  1705. "GUILE_PKG([3.0 2.2 2.0])\n"))
  1706. #t))))
  1707. (build-system gnu-build-system)
  1708. (native-inputs
  1709. `(("autoconf" ,autoconf)
  1710. ("automake" ,automake)
  1711. ("texinfo" ,texinfo)
  1712. ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
  1713. ("gettext" ,gettext-minimal)
  1714. ("pkg-config" ,pkg-config)))
  1715. (inputs `(("guile" ,guile-3.0) ("which" ,which)))
  1716. (propagated-inputs `(("guile-lib" ,guile-lib)))
  1717. (home-page "https://github.com/artyom-poptsov/guile-ics")
  1718. (synopsis "Guile parser library for the iCalendar format")
  1719. (description
  1720. "Guile-ICS is an iCalendar (RFC5545) format parser library written in
  1721. pure Scheme. The library can be used to read and write iCalendar data.
  1722. The library is shipped with documentation in Info format and usage examples.")
  1723. (license license:gpl3+)))
  1724. (define-public guile2.2-ics
  1725. (package
  1726. (inherit guile-ics)
  1727. (name "guile2.2-ics")
  1728. (inputs `(("guile" ,guile-2.2)
  1729. ,@(alist-delete "guile" (package-inputs guile-ics))))
  1730. (propagated-inputs `(("guile-lib" ,guile2.2-lib)))))
  1731. (define-public guile3.0-ics
  1732. (deprecated-package "guile3.0-ics" guile-ics))
  1733. (define-public guile-imanifest
  1734. (let ((commit "ccd5a2111b008d778106f5595a3a585954d95d0")
  1735. (revision "0"))
  1736. (package
  1737. (name "guile-imanifest")
  1738. (version (git-version "0.0.0" revision commit))
  1739. (source (origin
  1740. (method git-fetch)
  1741. (uri (git-reference
  1742. (url "https://git.sr.ht/~brown121407/guile-imanifest")
  1743. (commit commit)))
  1744. (file-name (git-file-name name version))
  1745. (sha256
  1746. (base32
  1747. "0i5qllcrhdjhspyj7j9h4dc9y37d3cfbpackmybm3030qgfxqirf"))))
  1748. (build-system guile-build-system)
  1749. (native-inputs
  1750. `(("guile" ,guile-3.0)))
  1751. (propagated-inputs
  1752. `(("guile-readline" ,guile-readline)
  1753. ("guile-colorized" ,guile-colorized)
  1754. ("guix" ,guix)))
  1755. (home-page "https://sr.ht/~brown121407/guile-imanifest")
  1756. (synopsis "Interactive Guix manifests")
  1757. (description "This package provides functions to generate Guix manifests
  1758. interactively. It works by scanning an alist of package categories, to ask the
  1759. user which package sets would they like to install from it.")
  1760. (license license:gpl3+))))
  1761. (define-public guile-wisp
  1762. (package
  1763. (name "guile-wisp")
  1764. (version "1.0.5")
  1765. (source (origin
  1766. (method hg-fetch)
  1767. (uri (hg-reference
  1768. (url "https://hg.sr.ht/~arnebab/wisp")
  1769. (changeset (string-append "v" version))))
  1770. (file-name (git-file-name name version))
  1771. (sha256
  1772. (base32
  1773. "00iknn03gf421gg3061g35fbraqrkcqypkrfn10rhlgg6j0lgk67"))))
  1774. (build-system gnu-build-system)
  1775. (arguments
  1776. `(#:modules ((guix build gnu-build-system)
  1777. ((guix build emacs-build-system) #:prefix emacs:)
  1778. (guix build utils)
  1779. (guix build emacs-utils)
  1780. (ice-9 rdelim)
  1781. (ice-9 popen))
  1782. #:imported-modules (,@%gnu-build-system-modules
  1783. (guix build emacs-build-system)
  1784. (guix build emacs-utils))
  1785. #:phases
  1786. (modify-phases %standard-phases
  1787. (replace 'bootstrap
  1788. (lambda _
  1789. (invoke "autoreconf" "-vif")
  1790. #t))
  1791. (add-before 'configure 'patch-/usr/bin/env
  1792. (lambda _
  1793. (substitute* "Makefile.in"
  1794. (("/usr/bin/env bash") (which "bash")))
  1795. #t))
  1796. ;; auto compilation breaks, but if we set HOME to /tmp,
  1797. ;; that works ok
  1798. (add-before 'check 'auto-compile-hacky-workaround
  1799. (lambda _ (setenv "HOME" "/tmp") #t))
  1800. (add-after 'install 'install-go-files
  1801. (lambda* (#:key outputs inputs #:allow-other-keys)
  1802. (let* ((out (assoc-ref outputs "out"))
  1803. (effective (read-line
  1804. (open-pipe* OPEN_READ
  1805. "guile" "-c"
  1806. "(display (effective-version))")))
  1807. (module-dir (string-append out "/share/guile/site/"
  1808. effective))
  1809. (object-dir (string-append out "/lib/guile/" effective
  1810. "/site-ccache"))
  1811. (prefix (string-length module-dir)))
  1812. ;; compile to the destination
  1813. (for-each (lambda (file)
  1814. (let* ((base (string-drop (string-drop-right file 4)
  1815. prefix))
  1816. (go (string-append object-dir base ".go")))
  1817. (invoke "guild" "compile" "-L" module-dir
  1818. file "-o" go)))
  1819. (find-files module-dir "\\.scm$"))
  1820. #t)))
  1821. (add-after 'install 'install-emacs-files
  1822. (assoc-ref emacs:%standard-phases 'install))
  1823. (add-after 'install-emacs-files 'compile-emacs-files
  1824. (assoc-ref emacs:%standard-phases 'build))
  1825. (add-after 'compile-emacs-files 'make-autoloads
  1826. (assoc-ref emacs:%standard-phases 'make-autoloads)))))
  1827. (home-page "https://www.draketo.de/english/wisp")
  1828. (inputs
  1829. `(("guile" ,guile-3.0)))
  1830. (native-inputs
  1831. `(("autoconf" ,autoconf)
  1832. ("automake" ,automake)
  1833. ("emacs" ,emacs-minimal)
  1834. ("python" ,python)
  1835. ("pkg-config" ,pkg-config)))
  1836. (synopsis "Whitespace to lisp syntax for Guile")
  1837. (description "Wisp is a syntax for Guile which provides a Python-like
  1838. whitespace-significant language. It may be easier on the eyes for some
  1839. users and in some situations.")
  1840. (license (list license:gpl3+ ; the project as a whole
  1841. license:expat)))) ; the language spec (see also SRFI 119)
  1842. (define-public guile2.2-wisp
  1843. (package
  1844. (inherit guile-wisp)
  1845. (name "guile2.2-wisp")
  1846. (inputs `(("guile" ,guile-2.2)))))
  1847. (define-public guile3.0-wisp
  1848. (deprecated-package "guile3.0-wisp" guile-wisp))
  1849. (define-public guile-udev
  1850. (package
  1851. (name "guile-udev")
  1852. (version "0.1.0")
  1853. (source (origin
  1854. (method git-fetch)
  1855. (uri (git-reference
  1856. (url "https://github.com/artyom-poptsov/guile-udev")
  1857. (commit (string-append "v" version))))
  1858. (file-name (git-file-name name version))
  1859. (sha256
  1860. (base32
  1861. "1l6csncjqnx58c6c3wdl7rshnhk4pzhjq2q8lnkg483564s9w5py"))))
  1862. (build-system gnu-build-system)
  1863. (native-inputs
  1864. `(("autoconf" ,autoconf)
  1865. ("automake" ,automake)
  1866. ("gettext" ,gettext-minimal)
  1867. ("libtool" ,libtool)
  1868. ("texinfo" ,texinfo)
  1869. ("pkg-config" ,pkg-config)
  1870. ("which" ,which)))
  1871. (inputs
  1872. `(("guile" ,guile-3.0)
  1873. ("eudev" ,eudev)))
  1874. (home-page "https://github.com/artyom-poptsov/guile-udev")
  1875. (synopsis "Guile bindings to libudev")
  1876. (description
  1877. "Guile-Udev provides GNU Guile bindings to libudev.")
  1878. (license license:gpl3+)))
  1879. (define-public guile-sly
  1880. (package
  1881. (name "guile-sly")
  1882. (version "0.1")
  1883. (source (origin
  1884. (method url-fetch)
  1885. (uri (string-append "https://files.dthompson.us/sly/sly-"
  1886. version ".tar.gz"))
  1887. (sha256
  1888. (base32
  1889. "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
  1890. (modules '((guix build utils)))
  1891. (snippet
  1892. '(begin
  1893. (substitute* "configure"
  1894. (("_guile_required_version=\"2.0.11\"")
  1895. "_guile_required_version=\"2\"")
  1896. (("ac_subst_vars='")
  1897. "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
  1898. (substitute* (find-files "." "Makefile.in")
  1899. (("moddir = .*$")
  1900. (string-append
  1901. "moddir = "
  1902. "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
  1903. (("godir = .*$")
  1904. (string-append
  1905. "godir = "
  1906. "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
  1907. #t))))
  1908. (build-system gnu-build-system)
  1909. (arguments
  1910. '(#:configure-flags
  1911. (list (string-append "--with-libfreeimage-prefix="
  1912. (assoc-ref %build-inputs "freeimage"))
  1913. (string-append "--with-libgslcblas-prefix="
  1914. (assoc-ref %build-inputs "gsl")))))
  1915. (native-inputs
  1916. `(("pkg-config" ,pkg-config)))
  1917. (propagated-inputs
  1918. `(("guile-sdl" ,guile-sdl)
  1919. ("guile-opengl" ,guile-opengl)))
  1920. (inputs
  1921. `(("guile" ,guile-2.2)
  1922. ("gsl" ,gsl)
  1923. ("freeimage" ,freeimage)
  1924. ("mesa" ,mesa)))
  1925. (synopsis "2D/3D game engine for GNU Guile")
  1926. (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
  1927. features a functional reactive programming interface and live coding
  1928. capabilities.")
  1929. (home-page "https://dthompson.us/projects/sly.html")
  1930. (license license:gpl3+)))
  1931. (define-public g-golf
  1932. (let ((commit "ef830107b9765bd6a2da848d0cbe45e11374c0b5")
  1933. (revision "839"))
  1934. (package
  1935. (name "g-golf")
  1936. (version (git-version "0.1.0" revision commit))
  1937. (source
  1938. (origin
  1939. (method git-fetch)
  1940. (uri (git-reference
  1941. (url "https://git.savannah.gnu.org/git/g-golf.git")
  1942. (commit commit)))
  1943. (file-name (git-file-name name version))
  1944. (sha256
  1945. (base32 "0r472hvmf447kqvkahp1wy4irb5gy8y793hm8r9rc511smdx66cw"))))
  1946. (build-system gnu-build-system)
  1947. (native-inputs
  1948. `(("autoconf" ,autoconf)
  1949. ("automake" ,automake)
  1950. ("texinfo" ,texinfo)
  1951. ("gettext" ,gettext-minimal)
  1952. ("libtool" ,libtool)
  1953. ("pkg-config" ,pkg-config)
  1954. ("xorg-server" ,xorg-server)))
  1955. (inputs
  1956. `(("guile" ,guile-2.2)
  1957. ("guile-lib" ,guile2.2-lib)
  1958. ("clutter" ,clutter)
  1959. ("gtk" ,gtk+)
  1960. ("glib" ,glib)))
  1961. (propagated-inputs
  1962. `(("gobject-introspection" ,gobject-introspection)))
  1963. (arguments
  1964. `(#:phases
  1965. (modify-phases %standard-phases
  1966. (add-before 'configure 'tests-work-arounds
  1967. (lambda* (#:key inputs #:allow-other-keys)
  1968. ;; In build environment, There is no /dev/tty
  1969. (substitute*
  1970. "test-suite/tests/gobject.scm"
  1971. (("/dev/tty") "/dev/null"))))
  1972. (add-before 'configure 'substitute-libs
  1973. (lambda* (#:key inputs outputs #:allow-other-keys)
  1974. (let* ((get (lambda (key lib)
  1975. (string-append (assoc-ref inputs key) "/lib/" lib)))
  1976. (libgi (get "gobject-introspection" "libgirepository-1.0"))
  1977. (libglib (get "glib" "libglib-2.0"))
  1978. (libgobject (get "glib" "libgobject-2.0"))
  1979. (libgdk (get "gtk" "libgdk-3")))
  1980. (substitute* "configure"
  1981. (("SITEDIR=\"\\$datadir/g-golf\"")
  1982. "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
  1983. (("SITECCACHEDIR=\"\\$libdir/g-golf/")
  1984. "SITECCACHEDIR=\"$libdir/"))
  1985. (substitute* "g-golf/init.scm"
  1986. (("libgirepository-1.0") libgi)
  1987. (("libglib-2.0") libglib)
  1988. (("libgdk-3") libgdk)
  1989. (("libgobject-2.0") libgobject)
  1990. (("\\(dynamic-link \"libg-golf\"\\)")
  1991. (format #f "~s"
  1992. `(dynamic-link
  1993. (format #f "~alibg-golf"
  1994. (if (getenv "GUILE_GGOLF_UNINSTALLED")
  1995. ""
  1996. ,(format #f "~a/lib/"
  1997. (assoc-ref outputs "out"))))))))
  1998. (setenv "GUILE_AUTO_COMPILE" "0")
  1999. (setenv "GUILE_GGOLF_UNINSTALLED" "1")
  2000. #t)))
  2001. (add-before 'check 'start-xorg-server
  2002. (lambda* (#:key inputs #:allow-other-keys)
  2003. ;; The test suite requires a running X server.
  2004. (system (format #f "~a/bin/Xvfb :1 &"
  2005. (assoc-ref inputs "xorg-server")))
  2006. (setenv "DISPLAY" ":1")
  2007. #t)))))
  2008. (home-page "https://www.gnu.org/software/g-golf/")
  2009. (synopsis "Guile bindings for GObject Introspection")
  2010. (description
  2011. "G-Golf (Gnome: (Guile Object Library for)) is a library for developing
  2012. modern applications in Guile Scheme. It comprises a direct binding to the
  2013. GObject Introspection API and higher-level functionality for importing Gnome
  2014. libraries and making GObject classes (and methods) available in Guile's
  2015. object-oriented programming system, GOOPS.")
  2016. (license license:lgpl3+))))
  2017. (define-public g-wrap
  2018. (package
  2019. (name "g-wrap")
  2020. (version "1.9.15")
  2021. (source (origin
  2022. (method url-fetch)
  2023. (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
  2024. version ".tar.gz"))
  2025. (sha256
  2026. (base32
  2027. "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
  2028. (build-system gnu-build-system)
  2029. (native-inputs
  2030. `(("pkg-config" ,pkg-config)))
  2031. (propagated-inputs
  2032. `(("guile" ,guile-2.2)
  2033. ("guile-lib" ,guile-lib)))
  2034. (inputs
  2035. `(("libffi" ,libffi)))
  2036. (arguments
  2037. `(#:configure-flags '("--disable-Werror")
  2038. #:phases
  2039. (modify-phases %standard-phases
  2040. (add-before 'configure 'pre-configure
  2041. (lambda* (#:key outputs #:allow-other-keys)
  2042. (let ((out (assoc-ref outputs "out")))
  2043. (substitute* (find-files "." "^Makefile.in$")
  2044. (("guilemoduledir =.*guile/site" all)
  2045. (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
  2046. #t))))))
  2047. (synopsis "Generate C bindings for Guile")
  2048. (description "G-Wrap is a tool and Guile library for generating function
  2049. wrappers for inter-language calls. It currently only supports generating Guile
  2050. wrappers for C functions. Given a definition of the types and prototypes for
  2051. a given C interface, G-Wrap will automatically generate the C code that
  2052. provides access to that interface and its types from the Scheme level.")
  2053. (home-page "https://www.nongnu.org/g-wrap/index.html")
  2054. (license license:lgpl2.1+)))
  2055. (define-public guile-miniadapton
  2056. (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
  2057. (revision "1"))
  2058. (package
  2059. (name "guile-miniadapton")
  2060. (version (string-append "0-" revision "." (string-take commit 9)))
  2061. (source (origin
  2062. (method git-fetch)
  2063. (uri (git-reference
  2064. (url "https://github.com/fisherdj/miniAdapton")
  2065. (commit commit)))
  2066. (file-name (string-append name "-" version "-checkout"))
  2067. (sha256
  2068. (base32
  2069. "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
  2070. (build-system guile-build-system)
  2071. (native-inputs
  2072. `(("guile" ,guile-2.2)))
  2073. (home-page "https://github.com/fisherdj/miniAdapton")
  2074. (synopsis "Minimal implementation of incremental computation in Guile
  2075. Scheme")
  2076. (description "This package provides a complete Scheme implementation of
  2077. miniAdapton, which implements the core functionality of the Adapton system for
  2078. incremental computation (also known as self-adjusting computation). Like
  2079. Adapton, miniAdapton allows programmers to safely combine mutation and
  2080. memoization. miniAdapton is built on top of an even simpler system,
  2081. microAdapton. Both miniAdapton and microAdapton are designed to be easy to
  2082. understand, extend, and port to host languages other than Scheme.")
  2083. (license license:expat))))
  2084. (define-public guile-raw-strings
  2085. (let ((commit "aa1cf783f2542811b473f797e12490920b779baa")
  2086. (revision "0"))
  2087. (package
  2088. (name "guile-raw-strings")
  2089. (version (git-version "0.0.0" revision commit))
  2090. (source (origin
  2091. (method git-fetch)
  2092. (uri (git-reference
  2093. (url "https://github.com/lloda/guile-raw-strings")
  2094. (commit commit)))
  2095. (file-name (git-file-name name version))
  2096. (sha256
  2097. (base32
  2098. "1r2gx86zw5hb6byllra3nap3fw9p7q7rvdmg6qn9myrdxyjpns3l"))))
  2099. (build-system guile-build-system)
  2100. (arguments
  2101. `(#:phases
  2102. (modify-phases %standard-phases
  2103. (add-after 'build 'check
  2104. (lambda* (#:key tests? #:allow-other-keys)
  2105. (when tests?
  2106. (invoke "guile" "-L" "." "-s" "test.scm")))))))
  2107. (native-inputs
  2108. `(("guile" ,guile-3.0)))
  2109. (home-page "https://github.com/lloda/guile-raw-strings")
  2110. (synopsis "Guile reader extension for `raw strings'")
  2111. (description "This package provides A Guile reader extension for `raw
  2112. strings', it lets you write verbatim strings without having to escape double
  2113. quotes. ")
  2114. (license license:public-domain))))
  2115. (define-public guile-reader
  2116. (package
  2117. (name "guile-reader")
  2118. (version "0.6.3")
  2119. (source (origin
  2120. (method url-fetch)
  2121. (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
  2122. version ".tar.gz"))
  2123. (sha256
  2124. (base32
  2125. "1fyjckmygkhq22lq8nqc86yl5zzbqd7a944dnz5c1f6vx92b9hiq"))))
  2126. (build-system gnu-build-system)
  2127. (native-inputs `(("pkgconfig" ,pkg-config)
  2128. ("gperf" ,gperf)))
  2129. (inputs `(("guile" ,guile-3.0)))
  2130. (synopsis "Framework for building readers for GNU Guile")
  2131. (description
  2132. "Guile-Reader is a simple framework for building readers for GNU Guile.
  2133. The idea is to make it easy to build procedures that extend Guile’s read
  2134. procedure. Readers supporting various syntax variants can easily be written,
  2135. possibly by re-using existing “token readers” of a standard Scheme
  2136. readers. For example, it is used to implement Skribilo’s R5RS-derived
  2137. document syntax.
  2138. Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
  2139. hopefully more powerful and flexible (for instance, one may instantiate as
  2140. many readers as needed).")
  2141. (home-page "https://www.nongnu.org/guile-reader/")
  2142. (license license:gpl3+)))
  2143. (define-public guile2.2-reader
  2144. (package
  2145. (inherit guile-reader)
  2146. (name "guile2.2-reader")
  2147. (inputs `(("guile" ,guile-2.2)))))
  2148. (define-public guile-ncurses
  2149. (package
  2150. (name "guile-ncurses")
  2151. (version "3.0")
  2152. (source (origin
  2153. (method url-fetch)
  2154. (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
  2155. version ".tar.gz"))
  2156. (sha256
  2157. (base32
  2158. "038xbffalhymg26lvmzgf7ljilxz2f2zmqg5r5nfzbipfbprwjhf"))))
  2159. (build-system gnu-build-system)
  2160. (inputs `(("ncurses" ,ncurses)
  2161. ("guile" ,guile-3.0)))
  2162. (native-inputs `(("pkg-config" ,pkg-config)))
  2163. (arguments
  2164. `(#:modules ((guix build gnu-build-system)
  2165. ((guix build guile-build-system)
  2166. #:select (target-guile-effective-version))
  2167. (guix build utils))
  2168. #:imported-modules ((guix build guile-build-system)
  2169. ,@%gnu-build-system-modules)
  2170. #:configure-flags (list "--with-ncursesw" ; Unicode support
  2171. "--with-gnu-filesystem-hierarchy")
  2172. #:phases
  2173. (modify-phases %standard-phases
  2174. (add-before 'build 'fix-libguile-ncurses-file-name
  2175. (lambda* (#:key outputs #:allow-other-keys)
  2176. (invoke "make" "install"
  2177. "-C" "src/ncurses"
  2178. "-j" (number->string
  2179. (parallel-job-count)))
  2180. (let* ((out (assoc-ref outputs "out"))
  2181. (dir "src/ncurses")
  2182. (files (find-files dir ".scm")))
  2183. (substitute* files
  2184. (("\"libguile-ncurses\"")
  2185. (format #f "\"~a/lib/guile/~a/libguile-ncurses\""
  2186. out (target-guile-effective-version))))
  2187. #t))))))
  2188. (home-page "https://www.gnu.org/software/guile-ncurses/")
  2189. (synopsis "Guile bindings to ncurses")
  2190. (description
  2191. "guile-ncurses provides Guile language bindings for the ncurses
  2192. library.")
  2193. (license license:lgpl3+)))
  2194. (define-public guile2.2-ncurses
  2195. (package
  2196. (inherit guile-ncurses)
  2197. (name "guile2.2-ncurses")
  2198. (inputs `(("ncurses" ,ncurses)
  2199. ("guile" ,guile-2.2)))))
  2200. (define-public guile3.0-ncurses
  2201. (deprecated-package "guile3.0-ncurses" guile-ncurses))
  2202. (define-public guile-ncurses/gpm
  2203. (package
  2204. (inherit guile-ncurses)
  2205. (name "guile-ncurses-with-gpm")
  2206. (inputs `(("ncurses" ,ncurses/gpm)
  2207. ("guile" ,guile-3.0)))))
  2208. (define-public guile3.0-ncurses/gpm
  2209. (package
  2210. (inherit guile3.0-ncurses)
  2211. (name "guile3.0-ncurses-with-gpm")
  2212. (inputs `(("ncurses" ,ncurses/gpm)
  2213. ("guile" ,guile-3.0)))))
  2214. (define-public guile-lib
  2215. (package
  2216. (name "guile-lib")
  2217. (version "0.2.7")
  2218. (source (origin
  2219. (method url-fetch)
  2220. (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
  2221. version ".tar.gz"))
  2222. (sha256
  2223. (base32
  2224. "1ph4z4a64m75in36pdb4dw63dzdq3hdgh16gq33q460jby23pvz4"))))
  2225. (build-system gnu-build-system)
  2226. (arguments
  2227. '(#:make-flags '("GUILE_AUTO_COMPILE=0") ;placate guild warnings
  2228. #:phases
  2229. (modify-phases %standard-phases
  2230. (add-before 'configure 'patch-module-dir
  2231. (lambda _
  2232. (substitute* "src/Makefile.in"
  2233. (("^moddir = ([[:graph:]]+)")
  2234. "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
  2235. (("^godir = ([[:graph:]]+)")
  2236. "godir = \
  2237. $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))))))
  2238. (native-inputs
  2239. `(("autoconf" ,autoconf)
  2240. ("automake" ,automake)
  2241. ("gettext" ,gettext-minimal)
  2242. ("guile" ,guile-3.0)
  2243. ("pkg-config" ,pkg-config)))
  2244. (inputs
  2245. `(("guile" ,guile-3.0))) ;for cross-compilation
  2246. (home-page "https://www.nongnu.org/guile-lib/")
  2247. (synopsis "Collection of useful Guile Scheme modules")
  2248. (description
  2249. "Guile-Lib is intended as an accumulation place for pure-scheme Guile
  2250. modules, allowing for people to cooperate integrating their generic Guile
  2251. modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
  2252. for Guile\". It provides the following modules:
  2253. +@itemize
  2254. +@item (apicheck) Describe and verify library programming interfaces.
  2255. +@item (config load) Loading configuration files.
  2256. +@item (container async-queue) A thread-safe message queue.
  2257. +@item (container nodal-tree) A tree consisting of nodes with attributes.
  2258. +@item (container delay-tree) A nodal tree with lazily evaluated fields.
  2259. +@item (debugging assert) Helpful assert macro.
  2260. +@item (debugging time) A simple macro to time the execution of an expression.
  2261. +@item (graph topological-sort) Routines to perform topological sorts.
  2262. +@item (htmlprag) Neil Van Dyke's permissive (\"pragmatic\") HTML parser.
  2263. +@item (io string) SLIB's IO routines dealing with strings.
  2264. +@item (logging logger) A flexible logging system.
  2265. +@item (logging port-log) A logger that outputs to a port.
  2266. +@item (logging rotating-log) A logger that rotates its output files.
  2267. +@item (match-bind) Nifty and concise regular expression routines.
  2268. +@item (math minima) A golden-section minimum finder.
  2269. +@item (math primes) Functions related to prime numbers and factorization.
  2270. +@item (os process) Spawning processes and capturing their output.
  2271. +@item (scheme documentation) Macros to define different kinds of variables
  2272. +with documentation.
  2273. +@item (scheme kwargs) Defining functions with flexible keyword arguments.
  2274. +@item (search basic) Classic search functions.
  2275. +@item (string completion) Building blocks for tab completion.
  2276. +@item (string soundex) The SOUNDEX string categorization algorithm.
  2277. +@item (string transform) Beyond SRFI-13.
  2278. +@item (string wrap) A versatile string formatter.
  2279. +@item (term ansi-color) Generate ANSI color escape sequences.
  2280. +@item (unit-test) A JUnit-style unit testing framework.
  2281. +@end itemize")
  2282. ;; The whole is under GPLv3+, but some modules are under laxer
  2283. ;; distribution terms such as LGPL and public domain. See `COPYING' for
  2284. ;; details.
  2285. (license license:gpl3+)))
  2286. (define-public guile2.0-lib
  2287. (package
  2288. (inherit guile-lib)
  2289. (name "guile2.0-lib")
  2290. (native-inputs
  2291. (alist-replace "guile" (list guile-2.0)
  2292. (package-native-inputs guile-lib)))
  2293. (inputs
  2294. (alist-replace "guile" (list guile-2.0)
  2295. (package-inputs guile-lib)))))
  2296. (define-public guile2.2-lib
  2297. (package
  2298. (inherit guile-lib)
  2299. (name "guile2.2-lib")
  2300. (native-inputs
  2301. (alist-replace "guile" (list guile-2.2)
  2302. (package-native-inputs guile-lib)))
  2303. (inputs
  2304. (alist-replace "guile" (list guile-2.2)
  2305. (package-inputs guile-lib)))))
  2306. (define-public guile3.0-lib
  2307. (deprecated-package "guile3.0-lib" guile-lib))
  2308. (define-public guile-minikanren
  2309. (package
  2310. (name "guile-minikanren")
  2311. (version "20150424.e844d85")
  2312. (source (origin
  2313. (method git-fetch)
  2314. (uri (git-reference
  2315. (url "https://github.com/ijp/minikanren")
  2316. (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
  2317. (file-name (string-append name "-" version "-checkout"))
  2318. (sha256
  2319. (base32
  2320. "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
  2321. (build-system guile-build-system)
  2322. (native-inputs
  2323. `(("guile" ,guile-3.0)))
  2324. (home-page "https://github.com/ijp/minikanren")
  2325. (synopsis "MiniKanren declarative logic system, packaged for Guile")
  2326. (description
  2327. "MiniKanren is a relational programming extension to the Scheme
  2328. programming Language, written as a smaller version of Kanren suitable for
  2329. pedagogical purposes. It is featured in the book, The Reasoned Schemer,
  2330. written by Dan Friedman, William Byrd, and Oleg Kiselyov.
  2331. This is Ian Price's r6rs packaged version of miniKanren, which deviates
  2332. slightly from miniKanren mainline.
  2333. See http://minikanren.org/ for more on miniKanren generally.")
  2334. (license license:expat)))
  2335. (define-public guile2.0-minikanren
  2336. (package
  2337. (inherit guile-minikanren)
  2338. (name "guile2.0-minikanren")
  2339. (native-inputs `(("guile" ,guile-2.0)))))
  2340. (define-public guile2.2-minikanren
  2341. (package
  2342. (inherit guile-minikanren)
  2343. (name "guile2.2-minikanren")
  2344. (native-inputs `(("guile" ,guile-2.2)))))
  2345. (define-public guile3.0-minikanren
  2346. (deprecated-package "guile3.0-minikanren" guile-minikanren))
  2347. (define-public guile-irregex
  2348. (package
  2349. (name "guile-irregex")
  2350. (version "0.9.6")
  2351. (source (origin
  2352. (method url-fetch)
  2353. (uri (string-append
  2354. "http://synthcode.com/scheme/irregex/irregex-"
  2355. version ".tar.gz"))
  2356. (sha256
  2357. (base32
  2358. "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
  2359. (build-system guile-build-system)
  2360. (arguments
  2361. '(#:phases (modify-phases %standard-phases
  2362. (add-after 'unpack 'move-files-around
  2363. (lambda _
  2364. ;; Move the relevant source files to src/ and create the
  2365. ;; rx/ directory to match the expected module hierarchy.
  2366. (mkdir-p "src/rx/source")
  2367. (rename-file "irregex-guile.scm"
  2368. "src/rx/irregex.scm")
  2369. (rename-file "irregex.scm"
  2370. "src/rx/source/irregex.scm")
  2371. ;; Not really reachable via guile's packaging system,
  2372. ;; but nice to have around.
  2373. (rename-file "irregex-utils.scm"
  2374. "src/rx/source/irregex-utils.scm")
  2375. #t)))
  2376. #:source-directory "src"))
  2377. (native-inputs
  2378. `(("guile" ,guile-3.0)))
  2379. (home-page "http://synthcode.com/scheme/irregex")
  2380. (synopsis "S-expression based regular expressions")
  2381. (description
  2382. "Irregex is an s-expression based alternative to your classic
  2383. string-based regular expressions. It implements SRFI 115 and is deeply
  2384. inspired by the SCSH regular expression system.")
  2385. (license license:bsd-3)))
  2386. (define-public guile2.0-irregex
  2387. (package
  2388. (inherit guile-irregex)
  2389. (name "guile2.0-irregex")
  2390. (native-inputs `(("guile" ,guile-2.0)))))
  2391. (define-public guile2.2-irregex
  2392. (package
  2393. (inherit guile-irregex)
  2394. (name "guile2.2-irregex")
  2395. (native-inputs `(("guile" ,guile-2.2)))))
  2396. (define-public guile3.0-irregex
  2397. (deprecated-package "guile3.0-irregex" guile-irregex))
  2398. (define-public haunt
  2399. (package
  2400. (name "haunt")
  2401. (version "0.2.5")
  2402. (source (origin
  2403. (method url-fetch)
  2404. (uri (string-append "https://files.dthompson.us/haunt/haunt-"
  2405. version ".tar.gz"))
  2406. (sha256
  2407. (base32
  2408. "1gy45l6m91b3wpdbpd9bpisp00zl8610zs0a2nwmbjlpd2cbf90k"))))
  2409. (build-system gnu-build-system)
  2410. (arguments
  2411. `(#:modules ((ice-9 match) (ice-9 ftw)
  2412. ,@%gnu-build-system-modules)
  2413. #:tests? #f ; test suite is non-deterministic :(
  2414. #:phases (modify-phases %standard-phases
  2415. (add-after 'install 'wrap-haunt
  2416. (lambda* (#:key inputs outputs #:allow-other-keys)
  2417. ;; Wrap the 'haunt' command to refer to the right
  2418. ;; modules.
  2419. (let* ((out (assoc-ref outputs "out"))
  2420. (bin (string-append out "/bin"))
  2421. (site (string-append
  2422. out "/share/guile/site"))
  2423. (guile-reader (assoc-ref inputs "guile-reader"))
  2424. (deps `(,@(if guile-reader
  2425. (list guile-reader)
  2426. '())
  2427. ,(assoc-ref inputs "guile-commonmark"))))
  2428. (match (scandir site)
  2429. (("." ".." version)
  2430. (let ((modules (string-append site "/" version))
  2431. (compiled-modules (string-append
  2432. out "/lib/guile/" version
  2433. "/site-ccache")))
  2434. (wrap-program (string-append bin "/haunt")
  2435. `("GUILE_LOAD_PATH" ":" prefix
  2436. (,modules
  2437. ,@(map (lambda (dep)
  2438. (string-append dep
  2439. "/share/guile/site/"
  2440. version))
  2441. deps)))
  2442. `("GUILE_LOAD_COMPILED_PATH" ":" prefix
  2443. (,compiled-modules
  2444. ,@(map (lambda (dep)
  2445. (string-append dep "/lib/guile/"
  2446. version
  2447. "/site-ccache"))
  2448. deps))))
  2449. #t)))))))))
  2450. (native-inputs
  2451. `(("pkg-config" ,pkg-config)
  2452. ("texinfo" ,texinfo)))
  2453. (inputs
  2454. ;; Depend on the latest Guile to avoid bytecode compatibility issues when
  2455. ;; using modules built against the latest version.
  2456. `(("guile" ,guile-3.0-latest)))
  2457. (propagated-inputs
  2458. `(("guile-reader" ,guile-reader)
  2459. ("guile-commonmark" ,guile-commonmark)))
  2460. (synopsis "Functional static site generator")
  2461. (description "Haunt is a static site generator written in Guile
  2462. Scheme. Haunt features a functional build system and an extensible
  2463. interface for reading articles in any format.")
  2464. (home-page "https://dthompson.us/projects/haunt.html")
  2465. (license license:gpl3+)))
  2466. (define-public guile2.2-haunt
  2467. (package
  2468. (inherit haunt)
  2469. (name "guile2.2-haunt")
  2470. (inputs `(("guile" ,guile-2.2)))
  2471. (propagated-inputs
  2472. `(("guile-reader" ,guile2.2-reader)
  2473. ("guile-commonmark" ,guile2.2-commonmark)))))
  2474. (define-public guile2.0-haunt
  2475. (package
  2476. (inherit haunt)
  2477. (name "guile2.0-haunt")
  2478. (inputs `(("guile" ,guile-2.0)))))
  2479. (define-public guile3.0-haunt
  2480. (deprecated-package "guile3.0-haunt" haunt))
  2481. (define-public guile-redis
  2482. (package
  2483. (name "guile-redis")
  2484. (version "2.1.1")
  2485. (home-page "https://github.com/aconchillo/guile-redis")
  2486. (source (origin
  2487. (method git-fetch)
  2488. (uri (git-reference
  2489. (url home-page)
  2490. (commit version)))
  2491. (file-name (git-file-name name version))
  2492. (sha256
  2493. (base32
  2494. "0pvk4yadgx64wk81cpisdc7zqhk6ww58xi5fs5fs6s28wb6l5bfj"))))
  2495. (build-system gnu-build-system)
  2496. (arguments
  2497. '(#:make-flags '("GUILE_AUTO_COMPILE=0")))
  2498. (native-inputs
  2499. `(("autoconf" ,autoconf)
  2500. ("automake" ,automake)
  2501. ("pkg-config" ,pkg-config)
  2502. ("guile" ,guile-3.0)))
  2503. (synopsis "Redis client library for Guile")
  2504. (description "Guile-redis provides a Scheme interface to the Redis
  2505. key-value cache and store.")
  2506. (license license:lgpl3+)))
  2507. (define-public guile2.2-redis
  2508. (package
  2509. (inherit guile-redis)
  2510. (name "guile2.2-redis")
  2511. (native-inputs `(("guile" ,guile-2.2)
  2512. ,@(alist-delete "guile"
  2513. (package-native-inputs guile-redis))))))
  2514. (define-public guile2.0-redis
  2515. (package
  2516. (inherit guile-redis)
  2517. (name "guile2.0-redis")
  2518. (arguments
  2519. `(#:phases
  2520. (modify-phases %standard-phases
  2521. (add-after 'unpack 'patch-source
  2522. (lambda _
  2523. ;; put-string is in (rnrs io ports) in guile2.0,
  2524. ;; not in (ice-9 textual-ports)
  2525. (substitute* "redis/utils.scm"
  2526. (("\\(ice-9 textual-ports\\)")
  2527. "(rnrs io ports)"))
  2528. #t)))
  2529. ,@(package-arguments guile-redis)))
  2530. (native-inputs `(("guile" ,guile-2.0)
  2531. ,@(alist-delete "guile"
  2532. (package-native-inputs guile-redis))))))
  2533. (define-public guile-commonmark
  2534. (package
  2535. (name "guile-commonmark")
  2536. (version "0.1.2")
  2537. (source (origin
  2538. (method url-fetch)
  2539. (uri (string-append "https://github.com/OrangeShark/" name
  2540. "/releases/download/v" version
  2541. "/" name "-" version ".tar.gz"))
  2542. (sha256
  2543. (base32
  2544. "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))
  2545. (modules '((guix build utils)))
  2546. (snippet
  2547. '(begin
  2548. ;; Allow builds with Guile 3.0.
  2549. (substitute* "configure"
  2550. (("2\\.2 2\\.0")
  2551. "3.0 2.2 2.0"))
  2552. #t))))
  2553. (build-system gnu-build-system)
  2554. ;; The tests throw exceptions with Guile 3.0.5, because they evaluate
  2555. ;; (exit ...).
  2556. ;;
  2557. ;; This has been fixed upstream, but there has not been a new release
  2558. ;; containing this change.
  2559. (arguments
  2560. '(#:phases
  2561. (modify-phases %standard-phases
  2562. (add-after 'unpack 'fix-tests-when-building-with-guile-3.0.5
  2563. (lambda _
  2564. (substitute* (find-files "tests" "\\.scm$")
  2565. (("\\(exit.*") ""))
  2566. #t)))))
  2567. (inputs
  2568. `(("guile" ,guile-3.0)))
  2569. (native-inputs
  2570. `(("pkg-config" ,pkg-config)))
  2571. (synopsis "CommonMark parser for Guile")
  2572. (description
  2573. "guile-commonmark is a library for parsing CommonMark, a fully specified
  2574. variant of Markdown. The library is written in Guile Scheme and is designed
  2575. to transform a CommonMark document to SXML. guile-commonmark tries to closely
  2576. follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
  2577. is no support for parsing block and inline level HTML.")
  2578. (home-page "https://github.com/OrangeShark/guile-commonmark")
  2579. (license license:lgpl3+)))
  2580. (define-public guile2.2-commonmark
  2581. (package
  2582. (inherit guile-commonmark)
  2583. (name "guile2.2-commonmark")
  2584. (inputs `(("guile" ,guile-2.2)))))
  2585. (define-public guile2.0-commonmark
  2586. (package
  2587. (inherit guile-commonmark)
  2588. (name "guile2.0-commonmark")
  2589. (inputs `(("guile" ,guile-2.0)))))
  2590. (define-public guile3.0-commonmark
  2591. (deprecated-package "guile3.0-commonmark" guile-commonmark))
  2592. (define-public mcron
  2593. (package
  2594. (name "mcron")
  2595. (version "1.2.1")
  2596. (source (origin
  2597. (method url-fetch)
  2598. (uri (string-append "mirror://gnu/mcron/mcron-"
  2599. version ".tar.gz"))
  2600. (sha256
  2601. (base32
  2602. "0bkn235g2ia4f7ispr9d55c7bc18282r3qd8ldhh5q2kiin75zi0"))))
  2603. (build-system gnu-build-system)
  2604. (arguments
  2605. '(#:phases (modify-phases %standard-phases
  2606. (add-before 'check 'adjust-tests
  2607. (lambda _
  2608. (substitute* "tests/job-specifier.scm"
  2609. ;; (getpw) fails with "entry not found" in the build
  2610. ;; environment, so pass an argument.
  2611. (("\\(getpw\\)")
  2612. "(getpwnam (getuid))")
  2613. ;; The build environment lacks an entry for root in
  2614. ;; /etc/passwd.
  2615. (("\\(getpw 0\\)")
  2616. "(getpwnam \"nobody\")")
  2617. ;; FIXME: Skip the 4 faulty tests (see above).
  2618. (("\\(test-equal \"next-year\"" all)
  2619. (string-append "(test-skip 4)\n" all)))
  2620. #t)))))
  2621. (native-inputs `(("pkg-config" ,pkg-config)
  2622. ("tzdata" ,tzdata-for-tests)
  2623. ("guile-native" ;for 'guild compile'
  2624. ,@(assoc-ref (package-inputs this-package) "guile"))))
  2625. (inputs `(("guile" ,guile-3.0)))
  2626. (home-page "https://www.gnu.org/software/mcron/")
  2627. (synopsis "Run jobs at scheduled times")
  2628. (description
  2629. "GNU Mcron is a complete replacement for Vixie cron. It is used to run
  2630. tasks on a schedule, such as every hour or every Monday. Mcron is written in
  2631. Guile, so its configuration can be written in Scheme; the original cron
  2632. format is also supported.")
  2633. (license license:gpl3+)))
  2634. (define-public guile2.2-mcron
  2635. (package
  2636. (inherit mcron)
  2637. (name "guile2.2-mcron")
  2638. (inputs `(("guile" ,guile-2.2)))))
  2639. (define-public guile3.0-mcron
  2640. (deprecated-package "guile3.0-mcron" mcron))
  2641. (define-public guile-picture-language
  2642. (let ((commit "a1322bf11945465241ca5b742a70893f24156d12")
  2643. (revision "5"))
  2644. (package
  2645. (name "guile-picture-language")
  2646. (version (git-version "0.0.1" revision commit))
  2647. (source (origin
  2648. (method git-fetch)
  2649. (uri (git-reference
  2650. (url "https://git.elephly.net/software/guile-picture-language.git")
  2651. (commit commit)))
  2652. (file-name (git-file-name name version))
  2653. (sha256
  2654. (base32
  2655. "03i528z92ainccgm28shg4haxiav5x4cyhyi5dggq1rm027vbm99"))))
  2656. (build-system gnu-build-system)
  2657. (inputs
  2658. `(("guile" ,guile-3.0)))
  2659. (propagated-inputs
  2660. `(("guile-cairo" ,guile-cairo)
  2661. ("guile-rsvg" ,guile-rsvg)))
  2662. (native-inputs
  2663. `(("autoconf" ,autoconf)
  2664. ("automake" ,automake)
  2665. ("librsvg" ,librsvg)
  2666. ("pkg-config" ,pkg-config)
  2667. ("texinfo" ,texinfo)))
  2668. (home-page "https://git.elephly.net/software/guile-picture-language.git")
  2669. (synopsis "Picture language for Guile")
  2670. (description
  2671. "This package provides a simple SVG-based picture language for Guile.
  2672. The picture values can directly be displayed in Geiser.")
  2673. ;; (pict base64) is under GPLv3+, the rest is under LGPLv3+
  2674. (license (list license:lgpl3+
  2675. license:gpl3+)))))
  2676. (define-public guile2.2-picture-language
  2677. (package
  2678. (inherit guile-picture-language)
  2679. (name "guile2.2-picture-language")
  2680. (inputs `(("guile" ,guile-2.2)))
  2681. (propagated-inputs
  2682. `(("guile-cairo" ,guile2.2-cairo)
  2683. ("guile-rsvg" ,guile2.2-rsvg)))))
  2684. (define-public guile3.0-picture-language
  2685. (deprecated-package "guile3.0-picture-language"
  2686. guile-picture-language))
  2687. (define-public guile-studio
  2688. (let ((commit "dd0ad42e51feafebda7cc29afe7c8bc7a182a842")
  2689. (revision "1"))
  2690. (package
  2691. (name "guile-studio")
  2692. (version (git-version "0.1.1" revision commit))
  2693. (source (origin
  2694. (method git-fetch)
  2695. (uri (git-reference
  2696. (url "https://git.elephly.net/software/guile-studio.git")
  2697. (commit commit)))
  2698. (file-name (git-file-name name version))
  2699. (sha256
  2700. (base32
  2701. "1cpqilly8dqmai1qsgjxy99zs34sfz95zwxhzx979wryqb69vi0q"))))
  2702. (build-system gnu-build-system)
  2703. (arguments
  2704. `(#:modules
  2705. ((ice-9 match)
  2706. (srfi srfi-1)
  2707. ,@%gnu-build-system-modules)
  2708. #:tests? #f ; there are none
  2709. #:make-flags
  2710. (list (string-append "PICT_DIR="
  2711. (assoc-ref %build-inputs "guile-picture-language"))
  2712. (string-append "EMACS_DIR="
  2713. (assoc-ref %build-inputs "emacs"))
  2714. (string-append "GUILE_DIR="
  2715. (assoc-ref %build-inputs "guile"))
  2716. (string-join (cons "INPUTS="
  2717. (filter-map
  2718. (lambda (input)
  2719. (match input
  2720. ((label . pkg)
  2721. (and (string-prefix? "emacs" label) pkg))))
  2722. %build-inputs)))
  2723. (string-append "PREFIX=" (assoc-ref %outputs "out")))
  2724. #:phases
  2725. (modify-phases %standard-phases
  2726. (delete 'configure)
  2727. (delete 'install))))
  2728. (inputs
  2729. `(("guile" ,guile-3.0)
  2730. ("guile-picture-language" ,guile-picture-language)
  2731. ("emacs" ,emacs)
  2732. ("emacs-f" ,emacs-f) ; needed by doom-modeline
  2733. ("emacs-memoize" ,emacs-memoize) ; needed by all-the-icons
  2734. ("emacs-all-the-icons" ,emacs-all-the-icons) ; needed by doom-modeline
  2735. ("emacs-all-the-icons-dired" ,emacs-all-the-icons-dired)
  2736. ("emacs-dired-sidebar" ,emacs-dired-sidebar)
  2737. ("emacs-doom-modeline" ,emacs-doom-modeline)
  2738. ("emacs-modus-themes" ,emacs-modus-themes)
  2739. ("emacs-geiser" ,emacs-geiser)
  2740. ("emacs-geiser-guile" ,emacs-geiser-guile)
  2741. ("emacs-company" ,emacs-company)
  2742. ("emacs-ivy" ,emacs-ivy)
  2743. ("emacs-flycheck" ,emacs-flycheck)
  2744. ("emacs-flycheck-guile" ,emacs-flycheck-guile)
  2745. ("emacs-paren-face" ,emacs-paren-face)))
  2746. (native-inputs
  2747. `(("texinfo" ,texinfo)))
  2748. (home-page "https://gnu.org/software/guile")
  2749. (synopsis "IDE for Guile")
  2750. (description
  2751. "This is Emacs with a few settings that make working with Guile easier
  2752. for people new to Emacs. Features include: CUA mode, Geiser, tool bar icons
  2753. to evaluate Guile buffers, support for Guile's very own picture language, code
  2754. completion, a simple mode line, etc.")
  2755. (license license:gpl3+))))
  2756. (define-public guile-stis-parser
  2757. (package
  2758. (name "guile-stis-parser")
  2759. (version "1.2.4.1")
  2760. (source (origin
  2761. (method git-fetch)
  2762. (uri (git-reference
  2763. (url "https://gitlab.com/tampe/stis-parser")
  2764. (commit (string-append "v" version))))
  2765. (file-name (git-file-name name version))
  2766. (sha256
  2767. (base32
  2768. "1fvxdfvc80zqhwzq5x3kxyr6j8p4b51yx85fx1gr3d4gy2ddpx5w"))))
  2769. (build-system gnu-build-system)
  2770. (arguments
  2771. `(#:parallel-build? #f ; not supported
  2772. #:phases
  2773. (modify-phases %standard-phases
  2774. (add-after 'unpack 'chdir
  2775. (lambda _ (chdir "modules") #t))
  2776. (add-after 'chdir 'delete-broken-symlink
  2777. (lambda _
  2778. (delete-file "parser/stis-parser/lang/.#calc.scm")
  2779. #t)))))
  2780. (inputs
  2781. `(("guile" ,guile-3.0)))
  2782. (native-inputs
  2783. `(("autoconf" ,autoconf)
  2784. ("automake" ,automake)
  2785. ("pkg-config" ,pkg-config)))
  2786. (home-page "https://gitlab.com/tampe/stis-parser")
  2787. (synopsis "Parser combinator framework")
  2788. (description
  2789. "This package provides a functional parser combinator library that
  2790. supports backtracking and a small logical framework. The idea is to build up
  2791. chunks that are memoized and there is no clear scanner/parser separation,
  2792. chunks can be expressions as well as simple tokens.")
  2793. (license license:lgpl2.0+)))
  2794. (define-public guile-persist
  2795. (package
  2796. (name "guile-persist")
  2797. (version "1.2.3")
  2798. (source (origin
  2799. (method git-fetch)
  2800. (uri (git-reference
  2801. (url "https://gitlab.com/tampe/guile-persist")
  2802. (commit (string-append "v" version))))
  2803. (file-name (git-file-name name version))
  2804. (sha256
  2805. (base32
  2806. "19f8hqcax4v40858kx2j8fy1cvzc2djj99r0n17dy1xxmwa097qi"))))
  2807. (build-system gnu-build-system)
  2808. (arguments
  2809. `(#:phases
  2810. (modify-phases %standard-phases
  2811. (add-after 'unpack 'patch-prefix
  2812. (lambda* (#:key inputs outputs #:allow-other-keys)
  2813. (substitute* "src/Makefile.am"
  2814. (("/usr/local/lib/guile")
  2815. (string-append (assoc-ref outputs "out") "/lib/guile"))
  2816. (("/usr/local/include/guile")
  2817. (search-input-directory inputs "/include/guile"))
  2818. (("-L/usr/local/lib")
  2819. (string-append "-L" (assoc-ref inputs "guile") "/lib")))
  2820. #t))
  2821. (add-after 'unpack 'patch-library-reference
  2822. (lambda* (#:key outputs #:allow-other-keys)
  2823. (let ((out (assoc-ref outputs "out")))
  2824. (substitute* "persist/persistance.scm"
  2825. (("\"libguile-persist\"")
  2826. (format #f "\"~a/lib/guile/3.0/extensions/libguile-persist\"" out)))
  2827. #t))))))
  2828. (inputs
  2829. `(("guile" ,guile-3.0)))
  2830. (native-inputs
  2831. `(("autoconf" ,autoconf)
  2832. ("automake" ,automake)
  2833. ("libtool" ,libtool)
  2834. ("pkg-config" ,pkg-config)))
  2835. (home-page "https://gitlab.com/tampe/guile-persist")
  2836. (synopsis "Persistence programming framework for Guile")
  2837. (description
  2838. "This is a serialization library for serializing objects like classes
  2839. and objects, closures and structs. This currently does not support
  2840. serializing continuations or delimited continuations.")
  2841. (license license:lgpl2.0+)))
  2842. (define-public python-on-guile
  2843. (package
  2844. (name "python-on-guile")
  2845. (version "1.2.3.5")
  2846. (home-page "https://gitlab.com/python-on-guile/python-on-guile")
  2847. (source (origin
  2848. (method git-fetch)
  2849. (uri (git-reference (url home-page)
  2850. (commit (string-append "v" version))))
  2851. (file-name (git-file-name name version))
  2852. (sha256
  2853. (base32
  2854. "05xrvcj6a4gzq1ybyin270qz8wamgc7w2skyi9iy6hkpgdhxy8vf"))))
  2855. (build-system gnu-build-system)
  2856. (arguments
  2857. `(#:parallel-build? #f ;not supported
  2858. #:make-flags '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
  2859. #:phases
  2860. (modify-phases %standard-phases
  2861. (add-after 'unpack 'chdir
  2862. (lambda _ (chdir "modules") #t))
  2863. (add-after 'chdir 'augment-GUILE_LOAD_PATH
  2864. (lambda _
  2865. ;; TODO: It would be better to patch the Makefile.
  2866. (setenv "GUILE_LOAD_PATH"
  2867. (string-append ".:"
  2868. (getenv "GUILE_LOAD_PATH")))
  2869. #t))
  2870. (add-after 'install 'wrap
  2871. (lambda* (#:key outputs #:allow-other-keys)
  2872. ;; Wrap the 'python' executable so it can find its
  2873. ;; dependencies and own modules.
  2874. (let* ((out (assoc-ref outputs "out"))
  2875. (guile-version ,(version-major+minor
  2876. (package-version guile-3.0)))
  2877. (scm (string-append out "/share/guile/site/"
  2878. guile-version))
  2879. (ccache (string-append out "/lib/guile/" guile-version
  2880. "/site-ccache"))
  2881. (load-path (string-join
  2882. (cons scm
  2883. ;; XXX: cdr because we augment it above.
  2884. (cdr (string-split
  2885. (getenv "GUILE_LOAD_PATH") #\:)))
  2886. ":"))
  2887. (compiled-path (string-append
  2888. ccache ":"
  2889. (getenv "GUILE_LOAD_COMPILED_PATH"))))
  2890. (wrap-program (string-append out "/bin/python")
  2891. `("GUILE_LOAD_PATH" ":" prefix
  2892. (,load-path))
  2893. `("GUILE_LOAD_COMPILED_PATH" ":" prefix
  2894. (,compiled-path)))
  2895. #t))))))
  2896. (inputs
  2897. `(("guile" ,guile-3.0)
  2898. ("guile-persist" ,guile-persist)
  2899. ("guile-readline" ,guile-readline)
  2900. ("guile-stis-parser" ,guile-stis-parser)))
  2901. (native-inputs
  2902. `(("autoconf" ,autoconf)
  2903. ("automake" ,automake)
  2904. ("libtool" ,libtool)
  2905. ("pkg-config" ,pkg-config)))
  2906. (synopsis "Python implementation in Guile")
  2907. (description
  2908. "This package allows you to compile a Guile Python file to any target
  2909. from @code{tree-il}.")
  2910. (license license:lgpl2.0+)))
  2911. (define-public guile-file-names
  2912. (package
  2913. (name "guile-file-names")
  2914. (version "0.3")
  2915. (source (origin
  2916. (method url-fetch)
  2917. (uri (string-append "http://brandon.invergo.net/software/download/"
  2918. "guile-file-names/guile-file-names-"
  2919. version ".tar.gz"))
  2920. (sha256
  2921. (base32
  2922. "01chizdxkhw6aqv629vxka9f5x3534ij7r0jqndawsg2vxm1r9sz"))))
  2923. (build-system gnu-build-system)
  2924. (arguments
  2925. `(#:phases
  2926. (modify-phases %standard-phases
  2927. (add-after 'unpack 'fix-target-directory
  2928. (lambda _
  2929. (substitute* "src/Makefile.in"
  2930. (("guilemoddir = \\$\\(GUILE_SITE\\)")
  2931. "guilemoddir = $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
  2932. #t)))))
  2933. (inputs
  2934. `(("guile" ,guile-2.2)))
  2935. (native-inputs
  2936. `(("pkg-config" ,pkg-config)))
  2937. (home-page "https://gitlab.com/brandoninvergo/guile-file-names")
  2938. (synopsis "Manipulate file names")
  2939. (description
  2940. "The @code{(file-names)} module provides tools for manipulating file
  2941. names. The module was built on the idea that doing anything more than a
  2942. non-trivial modification of a file name string is a pain (making sure all
  2943. slashes are present and accounted for, resolving @code{.} and @code{..}, etc).
  2944. Inevitably, you have to break the string up into chunks and operate on that
  2945. list of components. This module takes care of that for you.")
  2946. (license license:lgpl3+)))
  2947. (define-public guile-gi
  2948. (package
  2949. (name "guile-gi")
  2950. (version "0.3.1")
  2951. (source (origin
  2952. (method url-fetch)
  2953. (uri (string-append "http://lonelycactus.com/tarball/guile_gi-"
  2954. version ".tar.gz"))
  2955. (sha256
  2956. (base32
  2957. "1ljcfyar1nb6h4jskxnnzrcxcsblawc50qqfdn8cax3zqfskmvzj"))))
  2958. (build-system glib-or-gtk-build-system)
  2959. (arguments
  2960. `(#:configure-flags '("--with-gnu-filesystem-hierarchy")
  2961. #:modules ((guix build glib-or-gtk-build-system)
  2962. (guix build utils)
  2963. (ice-9 popen)
  2964. (ice-9 rdelim))
  2965. #:phases
  2966. (modify-phases %standard-phases
  2967. (add-after 'unpack 'patch-references-to-extension
  2968. (lambda* (#:key outputs #:allow-other-keys)
  2969. (let ((effective (read-line
  2970. (open-pipe* OPEN_READ
  2971. "guile" "-c"
  2972. "(display (effective-version))"))))
  2973. (substitute* (find-files "module" ".*\\.scm")
  2974. (("\\(load-extension \"libguile-gi\" \"(.*)\"\\)" m arg)
  2975. (format #f "~s"
  2976. `(load-extension
  2977. (format #f "~alibguile-gi"
  2978. (if (getenv "GUILE_GI_UNINSTALLED")
  2979. ""
  2980. ,(format #f "~a/lib/guile/~a/extensions/"
  2981. (assoc-ref outputs "out")
  2982. effective)))
  2983. ,arg)))))
  2984. (setenv "GUILE_GI_UNINSTALLED" "1")
  2985. #t))
  2986. (add-before 'check 'start-xorg-server
  2987. (lambda* (#:key inputs #:allow-other-keys)
  2988. ;; The init_check test requires a running X server.
  2989. (system (format #f "~a/bin/Xvfb :1 &"
  2990. (assoc-ref inputs "xorg-server")))
  2991. (setenv "DISPLAY" ":1")
  2992. #t)))))
  2993. (native-inputs
  2994. `(("gettext" ,gettext-minimal)
  2995. ("glib:bin" ,glib "bin") ; for glib-compile-resources
  2996. ("libtool" ,libtool)
  2997. ("pkg-config" ,pkg-config)
  2998. ("xorg-server" ,xorg-server)))
  2999. (propagated-inputs
  3000. `(("glib" ,glib)
  3001. ("gobject-introspection" ,gobject-introspection)
  3002. ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)
  3003. ("gtk+" ,gtk+)
  3004. ("guile-lib" ,guile-lib)
  3005. ("webkitgtk" ,webkitgtk)))
  3006. (inputs `(("guile" ,guile-3.0)))
  3007. (home-page "https://github.com/spk121/guile-gi")
  3008. (synopsis "GObject bindings for Guile")
  3009. (description
  3010. "Guile-GI is a library for Guile that allows using GObject-based
  3011. libraries, such as GTK+3. Its README comes with the disclaimer: This is
  3012. pre-alpha code.")
  3013. (license license:gpl3+)))
  3014. (define-public guile2.2-gi
  3015. (package
  3016. (inherit guile-gi)
  3017. (name "guile2.2-gi")
  3018. (inputs
  3019. `(("guile" ,guile-2.2)
  3020. ,@(alist-delete "guile" (package-inputs guile-gi))))))
  3021. (define-public guile3.0-gi
  3022. (deprecated-package "guile3.0-gi" guile-gi))
  3023. (define-public guile-srfi-89
  3024. (package
  3025. (name "guile-srfi-89")
  3026. (version "0.0.1")
  3027. (source
  3028. (origin
  3029. (method git-fetch)
  3030. (uri (git-reference
  3031. (url "https://gitlab.com/mjbecze/guile-srfi-89.git")
  3032. (commit version)))
  3033. (sha256
  3034. (base32
  3035. "1981c0rrzxqx3md9jx8ir7j3m2mzg9m72b33p5jvw36zirbzpl20"))
  3036. (file-name (git-file-name name version))))
  3037. (build-system guile-build-system)
  3038. (native-inputs
  3039. `(("guile" ,guile-3.0)))
  3040. (home-page "https://gitlab.com/mjbecze/guile-srfi-89")
  3041. (synopsis "Hygienic implementation of SRFI-89 for Guile")
  3042. (description
  3043. "This package provides SRFI-89 optional positional and named
  3044. parameters, which define* and lambda* special forms")
  3045. (license license:gpl3+)))
  3046. (define-public guile-srfi-145
  3047. (package
  3048. (name "guile-srfi-145")
  3049. (version "0.0.1")
  3050. (source
  3051. (origin
  3052. (method git-fetch)
  3053. (uri (git-reference
  3054. (url "https://gitlab.com/mjbecze/guile-srfi-145.git")
  3055. (commit version)))
  3056. (sha256
  3057. (base32
  3058. "1gssa8cmcp8640fil9z8dpil8v5l279wlalqjcx3fls5jwv13q1b"))
  3059. (file-name (git-file-name name version))))
  3060. (build-system guile-build-system)
  3061. (native-inputs
  3062. `(("guile" ,guile-3.0)))
  3063. (home-page "https://gitlab.com/mjbecze/guile-srfi-145")
  3064. (synopsis "SRFI-145 port for Guile")
  3065. (description
  3066. "This package provides SRFI-145. This provides the means to
  3067. denote the invalidity of certain code paths in a Scheme program.")
  3068. (license license:gpl3+)))
  3069. (define-public guile-srfi-158
  3070. (package
  3071. (name "guile-srfi-158")
  3072. (version "0.0.1")
  3073. (source
  3074. (origin
  3075. (method git-fetch)
  3076. (uri (git-reference
  3077. (url "https://gitlab.com/mjbecze/guile-srfi-158.git")
  3078. (commit version)))
  3079. (sha256
  3080. (base32
  3081. "0b8hlv1bldbcwkcxi9y8mm6xp5gbgpg7b15bwqxv70iynl9d9a7c"))
  3082. (file-name (git-file-name name version))))
  3083. (build-system gnu-build-system)
  3084. (native-inputs
  3085. `(("autoconf" ,autoconf)
  3086. ("automake" ,automake)
  3087. ("pkg-config" ,pkg-config)))
  3088. (inputs
  3089. `(("guile" ,guile-3.0)))
  3090. (home-page "https://gitlab.com/samplet/guile-srfi-158")
  3091. (synopsis "SRFI 158 (Generators and Accumulators) for Guile")
  3092. (description "This package provides an implementation of SRFI 158
  3093. for Guile. SRFI 158 defines utility procedures that create,
  3094. transform, and consume generators. It also defines procedures that
  3095. return accumulators. It is implemented by wrapping the sample
  3096. implementation in a thin Guile compatibility layer.")
  3097. (license license:gpl3+)))
  3098. (define-public guile-srfi-159
  3099. (let ((commit "1bd98abda2ae4ef8f36761a167903e55c6bda7bb")
  3100. (revision "0"))
  3101. (package
  3102. (name "guile-srfi-159")
  3103. (version (git-version "0" revision commit))
  3104. (home-page "https://bitbucket.org/bjoli/guile-srfi-159")
  3105. (source (origin
  3106. (method hg-fetch)
  3107. (uri (hg-reference (changeset commit)
  3108. (url home-page)))
  3109. (sha256
  3110. (base32
  3111. "1zw6cmcy7xdbfiz3nz9arqnn7l2daidaps6ixkcrc9b6k51fdv3p"))
  3112. (file-name (git-file-name name version))))
  3113. (build-system guile-build-system)
  3114. (arguments
  3115. ;; The *-impl.scm files are actually included from module files; they
  3116. ;; should not be compiled separately, but they must be installed.
  3117. '(#:not-compiled-file-regexp "-impl\\.scm$"))
  3118. (inputs
  3119. `(("guile" ,guile-2.2)))
  3120. (synopsis "Formatting combinators for Guile")
  3121. (description
  3122. "The @code{(srfi-159)} module and its sub-modules implement the
  3123. formatting combinators specified by
  3124. @uref{https://srfi.schemers.org/srfi-159/srfi-159.html, SRFI-159}. These are
  3125. more expressive and flexible than the traditional @code{format} procedure.")
  3126. (license license:bsd-3))))
  3127. (define-public guile-srfi-180
  3128. (let ((commit "9188bf9724c6d320ef804579d222e855b007b193")
  3129. (revision "0"))
  3130. (package
  3131. (name "guile-srfi-180")
  3132. (version (git-version "0" revision commit))
  3133. (source
  3134. (origin
  3135. (method git-fetch)
  3136. (uri (git-reference
  3137. (url "https://github.com/scheme-requests-for-implementation/srfi-180")
  3138. (commit commit)))
  3139. (sha256
  3140. (base32
  3141. "08lf70rsak8mwfij55xc37pg9zg7c87fizmhz7ln46skzj68sl3y"))
  3142. (modules '((guix build utils)))
  3143. (snippet
  3144. '(begin
  3145. (delete-file-recursively "srfi/files")
  3146. (delete-file "srfi/run-r7rs-checks.guile.scm")
  3147. (delete-file "srfi/run-r7rs-checks.scm")
  3148. (delete-file "srfi/check.scm")
  3149. #t))
  3150. (file-name (git-file-name name version))))
  3151. (build-system guile-build-system)
  3152. (arguments
  3153. '(#:not-compiled-file-regexp "body\\.scm$"))
  3154. (native-inputs
  3155. `(("guile" ,guile-3.0)))
  3156. (propagated-inputs
  3157. `(("guile-srfi-145" ,guile-srfi-145)))
  3158. (home-page "https://srfi.schemers.org/srfi-180/")
  3159. (synopsis "JSON parser and printer for Guile")
  3160. (description
  3161. "This library implements a JavaScript Object Notation (JSON) parser and printer.
  3162. It also supports parsing JSON objects that may be bigger than memory with a streaming
  3163. API.")
  3164. (license license:expat))))
  3165. (define-public emacsy
  3166. (package
  3167. (name "emacsy")
  3168. (version "0.4.1")
  3169. (source (origin
  3170. (method url-fetch)
  3171. (uri (string-append "mirror://savannah/emacsy/emacsy-"
  3172. version ".tar.gz"))
  3173. (sha256
  3174. (base32
  3175. "1cpb85dl1nibd34c2x2h7vfmjpkgh353p5b1w20v6cs6gmvgg4np"))
  3176. (modules '((guix build utils)))
  3177. (snippet
  3178. '(begin
  3179. (substitute* "configure"
  3180. ;; Allow builds with Guile 3.0.
  3181. (("2\\.2 2\\.0")
  3182. "3.0 2.2 2.0")
  3183. ;; Freeglut 3.2 provides 'glut.pc', not 'freeglut.pc'.
  3184. (("freeglut >= ")
  3185. "glut >= "))
  3186. (substitute* '("emacsy/emacsy.c"
  3187. "example/hello-emacsy.c")
  3188. (("#include <libguile\\.h>")
  3189. (string-append "#include <stdlib.h>\n"
  3190. "#include <stdio.h>\n"
  3191. "#include <string.h>\n"
  3192. "#include <unistd.h>\n"
  3193. "#include <libguile.h>\n")))))))
  3194. (build-system gnu-build-system)
  3195. (native-inputs
  3196. `(("bzip2" ,bzip2)
  3197. ("guile" ,guile-3.0)
  3198. ("gettext" ,gettext-minimal)
  3199. ("libtool" ,libtool)
  3200. ("perl" ,perl)
  3201. ("pkg-config" ,pkg-config)
  3202. ("texinfo" ,texinfo)
  3203. ("texlive" ,(texlive-updmap.cfg (list texlive-epsf)))))
  3204. (inputs
  3205. `(("dbus-glib" ,dbus-glib)
  3206. ("guile" ,guile-3.0)
  3207. ("guile-lib" ,guile-lib)
  3208. ("guile-readline" ,guile-readline)
  3209. ("freeglut" ,freeglut)
  3210. ("webkitgtk" ,webkitgtk)))
  3211. (propagated-inputs
  3212. `(("glib-networking" ,glib-networking)
  3213. ("gssettings-desktop-schemas" ,gsettings-desktop-schemas)))
  3214. (arguments
  3215. `(#:modules ((guix build gnu-build-system)
  3216. (guix build utils)
  3217. (ice-9 popen)
  3218. (ice-9 rdelim)
  3219. (ice-9 regex)
  3220. (ice-9 ftw)
  3221. (srfi srfi-26))
  3222. #:phases
  3223. (modify-phases %standard-phases
  3224. (add-before 'configure 'setenv
  3225. (lambda _
  3226. (setenv "GUILE_AUTO_COMPILE" "0")
  3227. #t))
  3228. (add-after 'install 'wrap-binaries
  3229. (lambda* (#:key inputs outputs #:allow-other-keys)
  3230. (let* ((out (assoc-ref outputs "out"))
  3231. (effective (read-line
  3232. (open-pipe* OPEN_READ
  3233. "guile" "-c"
  3234. "(display (effective-version))")))
  3235. (deps (map (cut assoc-ref inputs <>)
  3236. '("guile-lib" "guile-readline")))
  3237. (scm-path (map (cut string-append <> "/share/guile/site/"
  3238. effective) `(,out ,@deps)))
  3239. (go-path (map (cut string-append <> "/lib/guile/" effective
  3240. "/site-ccache/") `(,out ,@deps)))
  3241. (examples (filter (cut string-match "emacsy" <>)
  3242. (scandir (string-append out "/bin/"))))
  3243. (progs (map (cut string-append out "/bin/" <>)
  3244. examples)))
  3245. (map (cut wrap-program <>
  3246. `("GUILE_LOAD_PATH" ":" prefix ,scm-path)
  3247. `("GUILE_LOAD_COMPILED_PATH" ":" prefix ,go-path))
  3248. progs)
  3249. #t))))))
  3250. (home-page "https://savannah.nongnu.org/projects/emacsy")
  3251. (synopsis "Embeddable GNU Emacs-like library using Guile")
  3252. (description
  3253. "Emacsy is an embeddable Emacs-like library that uses GNU Guile
  3254. as extension language. Emacsy can give a C program an Emacsy feel with
  3255. keymaps, minibuffer, recordable macros, history, tab completion, major
  3256. and minor modes, etc., and can also be used as a pure Guile library. It
  3257. comes with a simple counter example using FreeGLUT and browser examples
  3258. in C using Gtk+-3 and WebKitGtk.")
  3259. (license license:gpl3+)))
  3260. (define-public emacsy-minimal
  3261. (let ((commit "v0.4.1-37-g5f91ee6"))
  3262. (package
  3263. (inherit emacsy)
  3264. (name "emacsy-minimal")
  3265. (version (string-drop commit 1))
  3266. (source
  3267. (origin
  3268. (method git-fetch)
  3269. (uri (git-reference
  3270. (url "https://git.savannah.gnu.org/git/emacsy.git")
  3271. (commit commit)))
  3272. (file-name (git-file-name name version))
  3273. (sha256
  3274. (base32 "03ym14g9qhjqmryr5z065kynqm8yhmvnbs2djl6vp3i9cmqln8cl"))))
  3275. (build-system gnu-build-system)
  3276. (native-inputs
  3277. `(("autoconf" ,autoconf)
  3278. ("automake" ,automake)
  3279. ("gettext" ,gettext-minimal)
  3280. ("libtool" ,libtool)
  3281. ("makeinfo" ,texinfo)
  3282. ("pkg-config" ,pkg-config)))
  3283. (inputs
  3284. `(("guile" ,guile-2.2)
  3285. ("guile-lib" ,guile2.2-lib)
  3286. ("guile-readline" ,guile2.2-readline)))
  3287. (propagated-inputs '())
  3288. (arguments
  3289. `(#:configure-flags '("--without-examples")
  3290. #:phases
  3291. (modify-phases %standard-phases
  3292. (add-before 'configure 'setenv
  3293. (lambda _
  3294. (setenv "GUILE_AUTO_COMPILE" "0")
  3295. #t))))))))
  3296. (define-public guile-jpeg
  3297. (let ((commit "6a1673578b297c2c1b28e44a76bd5c49e76a5046")
  3298. (revision "0"))
  3299. (package
  3300. (name "guile-jpeg")
  3301. (version (git-version "0.0" revision commit))
  3302. (home-page "https://gitlab.com/wingo/guile-jpeg")
  3303. (source (origin
  3304. (method git-fetch)
  3305. (uri (git-reference (url home-page)
  3306. (commit commit)))
  3307. (sha256
  3308. (base32
  3309. "05z9m408w3h6aqb5k3r3qa7khir0k10rxwvsrzhkcq1hr5vbmr4m"))
  3310. (file-name (git-file-name name version))
  3311. (modules '((guix build utils)))
  3312. (snippet
  3313. '(begin
  3314. ;; Install .go files in the right place.
  3315. (substitute* "Makefile.am"
  3316. (("/ccache") "/site-ccache"))
  3317. #t))))
  3318. (build-system gnu-build-system)
  3319. (native-inputs
  3320. `(("autoconf" ,autoconf)
  3321. ("automake" ,automake)
  3322. ("pkg-config" ,pkg-config)
  3323. ("guile" ,guile-2.2)))
  3324. (synopsis "JPEG file parsing library for Guile")
  3325. (description
  3326. "Guile-JPEG is a Scheme library to parse JPEG image files and to
  3327. perform geometrical transforms on JPEG images.")
  3328. (license license:gpl3+))))
  3329. (define-public nomad
  3330. (package
  3331. (name "nomad")
  3332. (version "0.2.0-alpha-199-g3e7a475")
  3333. (source (origin
  3334. (method git-fetch)
  3335. (uri (git-reference
  3336. (url "https://git.savannah.gnu.org/git/nomad.git/")
  3337. (commit version)))
  3338. (file-name (git-file-name name version))
  3339. (sha256
  3340. (base32
  3341. "0p0ha6prp7pyadp61clbhc6b55023vxzfwy14j2qygb2mkq7fhic"))))
  3342. (build-system gnu-build-system)
  3343. (native-inputs
  3344. `(("autoconf" ,autoconf)
  3345. ("automake" ,automake)
  3346. ("bash" ,bash)
  3347. ("pkg-config" ,pkg-config)
  3348. ("libtool" ,libtool)
  3349. ("guile" ,guile-2.2)
  3350. ("glib:bin" ,glib "bin")
  3351. ("texinfo" ,texinfo)
  3352. ("gettext" ,gettext-minimal)
  3353. ("perl" ,perl)))
  3354. (inputs
  3355. `(;; Guile
  3356. ("guile" ,guile-2.2)
  3357. ("guile-lib" ,guile2.2-lib)
  3358. ("guile-readline" ,guile2.2-readline)
  3359. ("guile-gcrypt" ,guile2.2-gcrypt)
  3360. ("gnutls" ,gnutls)
  3361. ("g-golf" ,g-golf)
  3362. ("shroud" ,shroud)
  3363. ("emacsy" ,emacsy-minimal)
  3364. ;; Gtk
  3365. ("glib" ,glib)
  3366. ("dbus-glib" ,dbus-glib)
  3367. ("glib-networking" ,glib-networking)
  3368. ("gtk+" ,gtk+)
  3369. ("gtk+:bin" ,gtk+ "bin")
  3370. ("webkitgtk" ,webkitgtk)
  3371. ("gtksourceview" ,gtksourceview)
  3372. ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
  3373. ("vte" ,vte)
  3374. ;; Gstreamer
  3375. ("gstreamer" ,gstreamer)
  3376. ("gst-plugins-base" ,gst-plugins-base)
  3377. ("gst-plugins-good" ,gst-plugins-good)
  3378. ("gst-plugins-bad" ,gst-plugins-bad)
  3379. ("gst-plugins-ugly" ,gst-plugins-ugly)
  3380. ;; Util
  3381. ("xorg-server" ,xorg-server)))
  3382. (arguments
  3383. `(#:modules ((guix build gnu-build-system)
  3384. (guix build utils)
  3385. (ice-9 popen)
  3386. (ice-9 rdelim)
  3387. (srfi srfi-26))
  3388. #:phases
  3389. (modify-phases %standard-phases
  3390. (add-before 'check 'start-xorg-server
  3391. (lambda* (#:key inputs #:allow-other-keys)
  3392. ;; The test suite requires a running X server.
  3393. (system (format #f "~a/bin/Xvfb :1 &"
  3394. (assoc-ref inputs "xorg-server")))
  3395. (setenv "DISPLAY" ":1")
  3396. #t))
  3397. (add-after 'install 'wrap-binaries
  3398. (lambda* (#:key inputs outputs #:allow-other-keys)
  3399. (let* ((out (assoc-ref outputs "out"))
  3400. (effective (read-line (open-pipe*
  3401. OPEN_READ
  3402. "guile" "-c"
  3403. "(display (effective-version))")))
  3404. (gst-plugins (map (lambda (i)
  3405. (string-append (assoc-ref inputs i)
  3406. "/lib/gstreamer-1.0"))
  3407. `("gstreamer"
  3408. "gst-plugins-base"
  3409. "gst-plugins-good"
  3410. "gst-plugins-bad"
  3411. "gst-plugins-ugly")))
  3412. (out-append (lambda (. args)
  3413. (apply string-append out args)))
  3414. (gi-path (out-append "/lib/girepository-1.0"))
  3415. (load-path (out-append "/share/guile/site/" effective))
  3416. (comp-path (out-append "/lib/guile/"
  3417. effective "/site-ccache"))
  3418. (ext-path (out-append "/libexec/nomad")))
  3419. (wrap-program (string-append out "/bin/nomad")
  3420. `("GUILE_LOAD_PATH" ":" prefix
  3421. (,load-path
  3422. ,(getenv "GUILE_LOAD_PATH")))
  3423. `("GUILE_LOAD_COMPILED_PATH" ":" prefix
  3424. (,comp-path
  3425. ,(getenv "GUILE_LOAD_COMPILED_PATH")))
  3426. `("GI_TYPELIB_PATH" ":" prefix
  3427. (,gi-path ,(getenv "GI_TYPELIB_PATH")))
  3428. `("GIO_EXTRA_MODULES" ":" prefix
  3429. (,(getenv "GIO_EXTRA_MODULES")))
  3430. `("GST_PLUGIN_SYSTEM_PATH" ":" prefix ,gst-plugins)
  3431. `("NOMAD_WEB_EXTENSION_DIR" ":" prefix (,ext-path)))
  3432. #t))))))
  3433. (home-page "https://savannah.nongnu.org/projects/nomad/")
  3434. (synopsis "Extensible Web Browser in Guile Scheme")
  3435. (description "Nomad is a Emacs-like web browser that consists of a modular
  3436. feature-set, fully programmable in Guile Scheme.")
  3437. (license license:gpl3+)))
  3438. (define-public guile-cv
  3439. (package
  3440. (name "guile-cv")
  3441. (version "0.2.1")
  3442. (source (origin
  3443. (method url-fetch)
  3444. (uri (string-append "mirror://gnu/guile-cv/guile-cv-"
  3445. version ".tar.gz"))
  3446. (sha256
  3447. (base32
  3448. "0qdf0s2h1xj5lbhnc1pfw69i3zg08pqy2y6869b92ydfis8r82j9"))))
  3449. (build-system gnu-build-system)
  3450. (arguments
  3451. `(#:phases
  3452. (modify-phases %standard-phases
  3453. (add-after 'unpack 'prepare-build
  3454. (lambda* (#:key inputs outputs #:allow-other-keys)
  3455. (substitute* "configure"
  3456. (("SITEDIR=\"\\$datadir/guile-cv\"")
  3457. "SITEDIR=\"$datadir/guile/site/$GUILE_EFFECTIVE_VERSION\"")
  3458. (("SITECCACHEDIR=\"\\$libdir/guile-cv/")
  3459. "SITECCACHEDIR=\"$libdir/"))
  3460. (substitute* "cv/init.scm"
  3461. (("\\(dynamic-link \"libvigra_c\"\\)")
  3462. (string-append "(dynamic-link \""
  3463. (assoc-ref inputs "vigra-c")
  3464. "/lib/libvigra_c\")"))
  3465. (("\\(dynamic-link \"libguile-cv\"\\)")
  3466. (format #f "~s"
  3467. `(dynamic-link
  3468. (format #f "~alibguile-cv"
  3469. (if (getenv "GUILE_CV_UNINSTALLED")
  3470. ""
  3471. ,(format #f "~a/lib/"
  3472. (assoc-ref outputs "out"))))))))
  3473. (setenv "GUILE_CV_UNINSTALLED" "1")
  3474. ;; Only needed to satisfy the configure script.
  3475. (setenv "LD_LIBRARY_PATH"
  3476. (string-append (assoc-ref inputs "vigra-c") "/lib"))
  3477. #t)))))
  3478. (inputs
  3479. `(("vigra" ,vigra)
  3480. ("vigra-c" ,vigra-c)
  3481. ("guile" ,guile-2.2)))
  3482. (native-inputs
  3483. `(("texlive" ,(texlive-updmap.cfg (list texlive-booktabs
  3484. texlive-lm
  3485. texlive-siunitx
  3486. texlive-standalone
  3487. texlive-xcolor
  3488. texlive-fonts-iwona)))
  3489. ("pkg-config" ,pkg-config)))
  3490. (propagated-inputs
  3491. `(("guile-lib" ,guile2.2-lib)))
  3492. (home-page "https://www.gnu.org/software/guile-cv/")
  3493. (synopsis "Computer vision library for Guile")
  3494. (description "Guile-CV is a Computer Vision functional programming library
  3495. for the Guile Scheme language. It is based on Vigra (Vision with Generic
  3496. Algorithms), a C++ image processing and analysis library. Guile-CV contains
  3497. bindings to Vigra C (a C wrapper to most of the Vigra functionality) and is
  3498. enriched with pure Guile Scheme algorithms, all accessible through a nice,
  3499. clean and easy to use high level API.")
  3500. (license license:gpl3+)))
  3501. (define-public guile-ffi-fftw
  3502. (let ((commit "294ad9e7491dcb40026d2fec9be2af05263be1c0")
  3503. (revision "2"))
  3504. (package
  3505. (name "guile-ffi-fftw")
  3506. (version (git-version "0" revision commit))
  3507. (source (origin
  3508. (method git-fetch)
  3509. (uri (git-reference
  3510. (url "https://github.com/lloda/guile-ffi-fftw")
  3511. (commit commit)))
  3512. (file-name (git-file-name "guile-ffi-fftw" version))
  3513. (sha256
  3514. (base32
  3515. "08j40a5p6a8pgvhffmzb5rfdnrav2mksy3gfjkdqy93jfj1z5afg"))))
  3516. (build-system guile-build-system)
  3517. (arguments
  3518. `(#:source-directory "mod"
  3519. #:phases
  3520. (modify-phases %standard-phases
  3521. (add-after 'unpack 'prepare-build
  3522. (lambda* (#:key inputs #:allow-other-keys)
  3523. (substitute* "mod/ffi/fftw.scm"
  3524. (("\\(getenv \"GUILE_FFI_FFTW_LIBFFTW3_PATH\"\\)")
  3525. (format #f "\"~a/lib\"" (assoc-ref inputs "fftw"))))
  3526. #t))
  3527. (add-after 'build 'check
  3528. (lambda _
  3529. (invoke "guile" "-L" "mod"
  3530. "-s" "test/test-ffi-fftw.scm"))))))
  3531. (inputs
  3532. `(("fftw" ,fftw)
  3533. ("guile" ,guile-2.2)))
  3534. (home-page "https://github.com/lloda/guile-ffi-fftw/")
  3535. (synopsis "Access FFTW through Guile's FFI")
  3536. (description "This is a minimal set of Guile FFI bindings for the FFTW
  3537. library's ‘guru interface’. It provides two functions: @code{fftw-dft! rank
  3538. sign in out} and @code{fftw-dft rank sign in}. These bindings being minimal,
  3539. there is no support for computing & reusing plans, or split r/i transforms, or
  3540. anything other than straight complex DFTs.")
  3541. (license license:lgpl3+))))
  3542. (define-public srfi-64-driver
  3543. (package
  3544. (name "srfi-64-driver")
  3545. (version "0.1")
  3546. (source (origin
  3547. (method url-fetch)
  3548. (uri (string-append "https://files.ngyro.com/srfi-64-driver/"
  3549. "srfi-64-driver-" version ".tar.gz"))
  3550. (sha256
  3551. (base32
  3552. "188b6mb7sjjg0a8zldikinglf40ky8mg8rwh5768gjmch6gkk3ph"))))
  3553. (build-system gnu-build-system)
  3554. (arguments
  3555. `(#:tests? #f
  3556. #:phases
  3557. (modify-phases %standard-phases
  3558. (delete 'build))))
  3559. (native-inputs
  3560. `(("pkg-config" ,pkg-config)))
  3561. (inputs
  3562. `(("guile" ,guile-2.2)))
  3563. (home-page "https://ngyro.com/software/srfi-64-driver.html")
  3564. (synopsis "Automake test driver for SRFI 64 test suites")
  3565. (description "This package provides an Automake test driver that can
  3566. run SRFI 64 test suites. It gives Automake insight into the individual
  3567. tests being run, resulting clearer and more specific output.")
  3568. (license license:gpl3+)))
  3569. (define-public guile-semver
  3570. (package
  3571. (name "guile-semver")
  3572. (version "0.1.1")
  3573. (source (origin
  3574. (method url-fetch)
  3575. (uri (string-append "https://files.ngyro.com/guile-semver/"
  3576. "guile-semver-" version ".tar.gz"))
  3577. (sha256
  3578. (base32
  3579. "109p4n39ln44cxvwdccf9kgb96qx54makvd2ir521ssz6wchjyag"))))
  3580. (build-system gnu-build-system)
  3581. (native-inputs
  3582. `(("pkg-config" ,pkg-config)))
  3583. (inputs
  3584. `(("guile" ,guile-3.0)))
  3585. (home-page "https://ngyro.com/software/guile-semver.html")
  3586. (synopsis "Semantic Versioning (SemVer) for Guile")
  3587. (description "This Guile library provides tools for reading,
  3588. comparing, and writing Semantic Versions. It also includes ranges in
  3589. the style of the Node Package Manager (NPM).")
  3590. (license license:gpl3+)))
  3591. (define-public guile3.0-semver
  3592. (deprecated-package "guile3.0-semver" guile-semver))
  3593. (define-public guile2.2-semver
  3594. (package
  3595. (inherit guile-semver)
  3596. (name "guile2.2-semver")
  3597. (inputs
  3598. `(("guile" ,guile-2.2)))))
  3599. (define-public guile-hashing
  3600. (package
  3601. (name "guile-hashing")
  3602. (version "1.2.0")
  3603. (home-page "https://github.com/weinholt/hashing")
  3604. (source (origin
  3605. (method git-fetch)
  3606. (uri (git-reference
  3607. (url home-page)
  3608. (commit (string-append "v" version))))
  3609. (file-name (git-file-name name version))
  3610. (sha256
  3611. (base32
  3612. "1362d3lmpv7slmv1zmr9wy8panq9sjr9787gc2hagd646mpsfpkl"))))
  3613. (build-system guile-build-system)
  3614. (arguments
  3615. `(#:modules ((guix build guile-build-system)
  3616. (guix build utils)
  3617. (srfi srfi-26)
  3618. (ice-9 ftw))
  3619. #:implicit-inputs? #f ;needs nothing but Guile
  3620. #:phases (modify-phases %standard-phases
  3621. (add-before 'build 'move-sls-files
  3622. (lambda _
  3623. ;; Move the source under hashing/ in order to match
  3624. ;; module names, and rename .sls files to .scm.
  3625. (define (target file)
  3626. (string-append "hashing/" file))
  3627. (define (sls->scm sls)
  3628. (string-append (string-drop-right sls 4)
  3629. ".scm"))
  3630. (mkdir "hashing")
  3631. (for-each (lambda (file)
  3632. (rename-file file (sls->scm file)))
  3633. (find-files "." "\\.sls$"))
  3634. (for-each (lambda (file)
  3635. (rename-file file (target file)))
  3636. (scandir "." (cut string-suffix? ".scm" <>)))
  3637. (rename-file "private" "hashing/private")
  3638. #t)))))
  3639. (native-inputs
  3640. `(("guile" ,guile-3.0)))
  3641. (synopsis "Cryprographic hash functions implemented in Scheme")
  3642. (description
  3643. "The @code{(hashing @dots{})} modules implement cryptographic hash
  3644. functions in pure R6RS Scheme: CRC, HMAC, MD5, SHA-1, and SHA-2 (SHA-256,
  3645. SHA-512).")
  3646. (license license:expat)))
  3647. (define-public guile2.2-hashing
  3648. (package
  3649. (inherit guile-hashing)
  3650. (name "guile2.2-hashing")
  3651. (native-inputs
  3652. `(("guile" ,guile-2.2)))))
  3653. (define-public guile3.0-hashing
  3654. (deprecated-package "guile3.0-hashing" guile-hashing))
  3655. (define-public guile-packrat
  3656. (package
  3657. (name "guile-packrat")
  3658. (version "0.1.1")
  3659. (home-page "https://github.com/weinholt/packrat")
  3660. (source (origin
  3661. (method git-fetch)
  3662. (uri (git-reference
  3663. (url home-page)
  3664. (commit (string-append "v" version))))
  3665. (file-name (git-file-name name version))
  3666. (sha256
  3667. (base32
  3668. "1aga17164fkhbgllqc7ni6fk5zl8mkmgkl5zcsy67x7ngpyalbby"))))
  3669. (build-system guile-build-system)
  3670. (arguments
  3671. `(#:implicit-inputs? #f ;needs nothing but Guile
  3672. #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
  3673. #:not-compiled-file-regexp "/extensible\\.scm$"
  3674. #:phases (modify-phases %standard-phases
  3675. (add-before 'build 'no-srfi-23
  3676. (lambda _
  3677. (substitute* "packrat.sls"
  3678. (("\\(srfi :23 error\\)")
  3679. (object->string '(only (guile) error))))
  3680. #t)))))
  3681. (native-inputs
  3682. `(("guile" ,guile-3.0)))
  3683. (synopsis "Packrat parser library in R6RS Scheme")
  3684. (description
  3685. "This is an R6RS Scheme adaptation of the
  3686. @uref{https://bford.info/packrat/, packrat parsing}. Packrat parsing is a
  3687. memoizing, backtracking, recursive-descent parsing technique that runs in time
  3688. and space linear in the size of the input text.")
  3689. (license license:expat)))
  3690. (define-public guile-ac-d-bus
  3691. (package
  3692. (name "guile-ac-d-bus")
  3693. (version "1.0.0-beta.0")
  3694. (home-page "https://gitlab.com/weinholt/ac-d-bus/")
  3695. (source (origin
  3696. (method git-fetch)
  3697. (uri (git-reference
  3698. (url home-page)
  3699. (commit (string-append "v" version))))
  3700. (file-name (git-file-name name version))
  3701. (sha256
  3702. (base32
  3703. "0rl809qimhgz6b0rixakb42r2l4g53jr09a2g0s1hxgab0blz0kb"))))
  3704. (build-system guile-build-system)
  3705. (arguments
  3706. `(#:implicit-inputs? #f ;needs nothing but Guile
  3707. #:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
  3708. #:phases (modify-phases %standard-phases
  3709. (add-before 'build 'adjust-for-guile
  3710. (lambda _
  3711. ;; Adjust source file names for Guile.
  3712. (define (guile-sls->sls file)
  3713. (string-append (string-drop-right
  3714. file (string-length ".guile.sls"))
  3715. ".sls"))
  3716. ;; Remove files targeting other implementations:
  3717. ;; *.mosh.sls, etc.
  3718. (for-each delete-file
  3719. (find-files
  3720. "compat"
  3721. (lambda (file stat)
  3722. (not (string-contains file ".guile.")))))
  3723. ;; Rename *.guile.sls to *.sls so the ".guile" bit does
  3724. ;; not appear in .go file names.
  3725. (for-each (lambda (file)
  3726. (rename-file file (guile-sls->sls file)))
  3727. (find-files "compat" "\\.guile\\.sls"))
  3728. ;; Move directories under d-bus/ to match module names.
  3729. (mkdir "d-bus")
  3730. (for-each (lambda (directory)
  3731. (rename-file directory
  3732. (string-append "d-bus/"
  3733. directory)))
  3734. '("compat" "protocol"))
  3735. #t)))))
  3736. (native-inputs
  3737. `(("guile" ,guile-3.0)))
  3738. (propagated-inputs
  3739. `(("guile-packrat" ,guile-packrat)))
  3740. (synopsis "D-Bus protocol implementation in R6RS Scheme")
  3741. (description
  3742. "AC/D-Bus is an implementation of the D-Bus wire protocol. D-Bus is an
  3743. interprocess communication protocol popular on GNU/Linux systems to
  3744. communicate with a variety of services. Originally designed for desktop
  3745. environments, it is now used by programs like VLC media player, BlueZ,
  3746. NetworkManager, Pulseaudio, systemd (including logind and resolved), Polkit,
  3747. gnome-keyring, and many more.")
  3748. (license license:expat)))
  3749. (define-public guile-webutils
  3750. (let ((commit "8541904f761066dc9c27b1153e9a838be9a55299")
  3751. (revision "0"))
  3752. (package
  3753. (name "guile-webutils")
  3754. (version (git-version "0.1" revision commit))
  3755. (source (origin
  3756. (method git-fetch)
  3757. (uri (git-reference
  3758. (url "https://notabug.org/cwebber/guile-webutils.git")
  3759. (commit commit)))
  3760. (file-name (git-file-name name version))
  3761. (sha256
  3762. (base32
  3763. "1s9n3hbxd7lfpdi0x8wr0cfvlsf6g62ird9gbspxdrp5p05rbi64"))
  3764. (modules '((guix build utils)))
  3765. (snippet
  3766. '(begin
  3767. ;; Allow builds with Guile 3.0.
  3768. (substitute* "configure.ac"
  3769. (("2\\.2 2\\.0")
  3770. "3.0 2.2 2.0"))
  3771. #t))))
  3772. (build-system gnu-build-system)
  3773. (native-inputs
  3774. `(("autoconf" ,autoconf)
  3775. ("automake" ,automake)
  3776. ("pkg-config" ,pkg-config)
  3777. ("texinfo" ,texinfo)))
  3778. (inputs
  3779. `(("guile" ,guile-3.0)))
  3780. (propagated-inputs
  3781. `(("guile-irregex" ,guile-irregex)
  3782. ("guile-gcrypt" ,guile-gcrypt)))
  3783. (home-page "https://notabug.org/cwebber/guile-webutils")
  3784. (synopsis "Web application authoring utilities for Guile")
  3785. (description
  3786. "This package provides tooling to write web applications in Guile, such
  3787. as signed sessions, multipart message support, etc.")
  3788. (license license:gpl3+))))
  3789. (define-public guile2.2-webutils
  3790. (package
  3791. (inherit guile-webutils)
  3792. (name "guile2.2-webutils")
  3793. (inputs
  3794. `(("guile" ,guile-2.2)))
  3795. (propagated-inputs
  3796. `(("guile-irregex" ,guile2.2-irregex)
  3797. ("guile-gcrypt" ,guile2.2-gcrypt)))))
  3798. (define-public guile-lens
  3799. (let ((commit "14b15d07255f9d3f55d40a3b750d13c9ee3a154f")
  3800. (revision "0"))
  3801. (package
  3802. (name "guile-lens")
  3803. (version (git-version "0.1" revision commit))
  3804. (source (origin
  3805. (method git-fetch)
  3806. (uri (git-reference
  3807. (url "https://gitlab.com/a-sassmannshausen/guile-lens.git")
  3808. (commit commit)))
  3809. (file-name (git-file-name name version))
  3810. (sha256
  3811. (base32
  3812. "0w8jzqyla56yrgj7acsgd4nspyir6zgp3vgxid4xmwhg9wmf1ida"))))
  3813. (build-system gnu-build-system)
  3814. (arguments
  3815. '(#:phases
  3816. (modify-phases %standard-phases
  3817. (add-after 'unpack 'run-hall
  3818. (lambda _
  3819. (setenv "HOME" "/tmp") ; for ~/.hall
  3820. (invoke "hall" "dist" "-x"))))))
  3821. (native-inputs
  3822. `(("autoconf" ,autoconf)
  3823. ("automake" ,automake)
  3824. ("guile" ,guile-3.0)
  3825. ("guile-hall" ,guile-hall)
  3826. ("pkg-config" ,pkg-config)
  3827. ("texinfo" ,texinfo)))
  3828. (home-page "https://gitlab.com/a-sassmannshausen/guile-lens.git")
  3829. (synopsis "Composable lenses for data structures in Guile")
  3830. (description
  3831. "Guile-Lens is a library implementing lenses in Guile. The library is
  3832. currently a re-implementation of the lentes library for Clojure. Lenses
  3833. provide composable procedures, which can be used to focus, apply functions
  3834. over, or update a value in arbitrary data structures.")
  3835. (license license:gpl3+))))
  3836. (define-public guile2.2-lens
  3837. (package
  3838. (inherit guile-lens)
  3839. (name "guile2.2-lens")
  3840. (native-inputs
  3841. `(("guile" ,guile-2.2)
  3842. ,@(alist-delete "guile" (package-native-inputs guile-lens))))))
  3843. (define-public guile-xapian
  3844. (package
  3845. (name "guile-xapian")
  3846. (version "0.1.0")
  3847. (home-page "https://git.systemreboot.net/guile-xapian")
  3848. (source
  3849. (origin
  3850. (method git-fetch)
  3851. (uri (git-reference (url home-page)
  3852. (commit (string-append "v" version))))
  3853. (file-name (git-file-name name version))
  3854. (sha256
  3855. (base32
  3856. "16k61f1jn3g48jaf3730b9l0izr5j933jzyri73nmcnjd09gm35i"))
  3857. (modules '((guix build utils)))
  3858. (snippet
  3859. ;; Guile >= 3.0.7 no longer uses libltdl so we need to explicitly add
  3860. ;; ".libs" so that 'load-extension' finds the '.so' file.
  3861. '(substitute* "pre-inst-env.in"
  3862. (("^LD_LIBRARY_PATH=.*$")
  3863. "LD_LIBRARY_PATH=\"$abs_top_builddir/.libs\"\n")))))
  3864. (build-system gnu-build-system)
  3865. (arguments
  3866. '(#:make-flags '("GUILE_AUTO_COMPILE=0"))) ; to prevent guild warnings
  3867. (inputs
  3868. `(("guile" ,guile-3.0)
  3869. ("xapian" ,xapian)
  3870. ("zlib" ,zlib)))
  3871. (native-inputs
  3872. `(("autoconf" ,autoconf)
  3873. ("autoconf-archive" ,autoconf-archive)
  3874. ("automake" ,automake)
  3875. ("libtool" ,libtool)
  3876. ("pkg-config" ,pkg-config)
  3877. ("swig" ,swig)))
  3878. (synopsis "Guile bindings for Xapian")
  3879. (description "@code{guile-xapian} provides Guile bindings for Xapian, a
  3880. search engine library. Xapian is a highly adaptable toolkit which allows
  3881. developers to easily add advanced indexing and search facilities to their own
  3882. applications. It has built-in support for several families of weighting
  3883. models and also supports a rich set of boolean query operators.")
  3884. (license license:gpl2+)))
  3885. (define-public guile2.2-xapian
  3886. (package
  3887. (inherit guile-xapian)
  3888. (name "guile2.2-xapian")
  3889. (inputs
  3890. `(("guile" ,guile-2.2)
  3891. ,@(alist-delete "guile" (package-inputs guile-xapian))))))
  3892. (define-public guile3.0-xapian
  3893. (deprecated-package "guile3.0-xapian" guile-xapian))
  3894. (define-public guile-torrent
  3895. (package
  3896. (name "guile-torrent")
  3897. (version "0.1.3")
  3898. (source (origin (method git-fetch)
  3899. (uri (git-reference
  3900. (url
  3901. "https://github.com/o-nly/torrent")
  3902. (commit version)))
  3903. (file-name (git-file-name name version))
  3904. (sha256
  3905. (base32
  3906. "1yiagi55ncq1x7s9n7salzywjm4l96y3n7y3s47a9anvz87mrmim"))))
  3907. (build-system gnu-build-system)
  3908. (native-inputs
  3909. `(("autoconf" ,autoconf)
  3910. ("automake" ,automake)
  3911. ("guile" ,guile-2.2)
  3912. ("texinfo" ,texinfo)
  3913. ("perl" ,perl)
  3914. ("pkg-config" ,pkg-config)))
  3915. (propagated-inputs
  3916. `(("guile-gcrypt" ,guile-gcrypt)))
  3917. (home-page "https://github.com/o-nly/torrent")
  3918. (synopsis "Torrent library for GNU Guile")
  3919. (description "This package provides facilities for working with
  3920. @code{.torrent} or metainfo files. Implements a bencode reader and writer
  3921. according to Bitorrent BEP003.")
  3922. (license license:gpl3+)))
  3923. (define-public guile-irc
  3924. (let ((commit "375d3bde9c6ae7ccc9d7cc65817966b6fda8f26a")
  3925. (revision "0"))
  3926. (package
  3927. (name "guile-irc")
  3928. (version (git-version "0.3.0" revision commit))
  3929. (source (origin
  3930. (method git-fetch)
  3931. (uri (git-reference
  3932. (url "https://github.com/rekado/guile-irc")
  3933. (commit commit)))
  3934. (file-name (git-file-name name version))
  3935. (sha256
  3936. (base32
  3937. "113lcckcywrz9060w1c3fnvr8d7crdsjgsv4h47hgmr1slgadl4y"))))
  3938. (build-system gnu-build-system)
  3939. (arguments
  3940. `(#:configure-flags '("--enable-gnutls=yes")))
  3941. (native-inputs
  3942. `(("autoconf" ,autoconf)
  3943. ("automake" ,automake)
  3944. ("texinfo" ,texinfo)))
  3945. (inputs
  3946. `(("gnutls" ,gnutls)
  3947. ("guile" ,guile-3.0)))
  3948. (home-page "https://github.com/rekado/guile-irc")
  3949. (synopsis "IRC library for Guile")
  3950. (description "This package provides a Guile library for @dfn{Internet
  3951. Relay Chat} (IRC).")
  3952. ;; Some file headers incorrectly say LGPLv2+.
  3953. (license license:lgpl2.1+))))
  3954. (define-public guile-websocket
  3955. (let ((commit "d17878f6c12c10a49196bb08f737f36b11e61c31")
  3956. (revision "1"))
  3957. (package
  3958. (name "guile-websocket")
  3959. (version (git-version "0.1" revision commit))
  3960. (source
  3961. (origin
  3962. (method git-fetch)
  3963. (uri (git-reference
  3964. (url "https://git.dthompson.us/guile-websocket.git")
  3965. (commit commit)))
  3966. (file-name (git-file-name name version))
  3967. (sha256
  3968. (base32
  3969. "0kcmhjyb6amm4b9k4ng0r5s38m041mvh5jgmjbz6ichz39k255v7"))))
  3970. (build-system gnu-build-system)
  3971. (arguments
  3972. '(#:make-flags
  3973. '("GUILE_AUTO_COMPILE=0")))
  3974. (native-inputs
  3975. `(("autoconf" ,autoconf)
  3976. ("automake" ,automake)
  3977. ("pkg-config" ,pkg-config)))
  3978. (inputs
  3979. `(("guile" ,guile-3.0)))
  3980. (synopsis "Websocket server/client for Guile")
  3981. (description "Guile-websocket provides an implementation of the
  3982. WebSocket protocol as defined by RFC 6455.")
  3983. (home-page "https://git.dthompson.us/guile-websocket.git")
  3984. (license license:lgpl3+))))
  3985. (define-public guile3.0-websocket
  3986. (deprecated-package "guile3.0-websocket" guile-websocket))
  3987. (define-public guile-rdf
  3988. (package
  3989. (name "guile-rdf")
  3990. (version "1.0")
  3991. (source
  3992. (origin
  3993. (method git-fetch)
  3994. (uri (git-reference
  3995. (url "https://framagit.org/tyreunom/guile-rdf")
  3996. (commit version)))
  3997. (file-name (git-file-name name version))
  3998. (sha256
  3999. (base32
  4000. "0dwn3app1fscbpmpgvjs5jy1y0gwy3j5gdx8br79af6a88zjlnqf"))))
  4001. (build-system gnu-build-system)
  4002. (arguments
  4003. `(#:tests? #f)); tests require network
  4004. (inputs
  4005. `(("guile" ,guile-3.0)))
  4006. (native-inputs
  4007. `(("automake" ,automake)
  4008. ("autoconf" ,autoconf)
  4009. ("pkg-config" ,pkg-config)
  4010. ("texinfo" ,texinfo)))
  4011. (home-page "https://framagit.org/tyreunom/guile-rdf")
  4012. (synopsis "Guile implementation of the RDF abstract and concrete syntaxes")
  4013. (description "Guile RDF is an implementation of the RDF (Resource Description
  4014. Framework) format defined by the W3C for GNU Guile. RDF structures include
  4015. triples (facts with a subject, a predicate and an object), graphs which are
  4016. sets of triples, and datasets, which are collections of graphs.
  4017. RDF specifications include the specification of concrete syntaxes and of
  4018. operations on graphs. This library implements some basic functionalities,
  4019. such as parsing and producing turtle and nquads syntax, as well as
  4020. manipulating graphs and datasets.")
  4021. (license license:gpl3+)))
  4022. (define-public guile-jsonld
  4023. (package
  4024. (name "guile-jsonld")
  4025. (version "1.0.2")
  4026. (source
  4027. (origin
  4028. (method git-fetch)
  4029. (uri (git-reference
  4030. (url "https://framagit.org/tyreunom/guile-jsonld")
  4031. (commit version)))
  4032. (file-name (git-file-name name version))
  4033. (sha256
  4034. (base32
  4035. "1ryyvh71899z2inivqglb8d78zzp1sd0wv9a56kvcmrxf1966z6r"))))
  4036. (build-system gnu-build-system)
  4037. (arguments
  4038. `(#:tests? #f)); require network
  4039. (propagated-inputs
  4040. `(("guile-gnutls" ,gnutls)
  4041. ("guile-json" ,guile-json-4)
  4042. ("guile-rdf" ,guile-rdf)))
  4043. (inputs
  4044. `(("guile" ,guile-3.0)))
  4045. (native-inputs
  4046. `(("automake" ,automake)
  4047. ("autoconf" ,autoconf)
  4048. ("pkg-config" ,pkg-config)
  4049. ("texinfo" ,texinfo)))
  4050. (home-page "https://framagit.org/tyreunom/guile-jsonld")
  4051. (synopsis "Guile implementation of the JsonLD API specification")
  4052. (description "Guile JsonLD is an implementation of the JsonLD (Json for
  4053. Linked Data) API defined by the W3C for GNU Guile. It allows you to express links
  4054. between data, in a way that is very similar to WikiData or RDF for instance.
  4055. An object can have relations (in the form of an IRI) that relates it to one or
  4056. more objects or strings, represented by a Json object or an IRI.")
  4057. (license license:gpl3+)))
  4058. (define-public guile-struct-pack
  4059. (package
  4060. (name "guile-struct-pack")
  4061. (version "1.1.1")
  4062. (source
  4063. (origin
  4064. (method git-fetch)
  4065. (uri (git-reference
  4066. (url "https://github.com/weinholt/struct-pack")
  4067. (commit (string-append "v" version))))
  4068. (file-name (git-file-name name version))
  4069. (sha256
  4070. (base32 "0hd72m821pahjphzyjn26i55542v8makr55xzjll2cycja4wsbc1"))))
  4071. (build-system guile-build-system)
  4072. (arguments
  4073. `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
  4074. #:modules ((guix build guile-build-system)
  4075. (guix build utils)
  4076. (srfi srfi-26)
  4077. (ice-9 ftw))
  4078. #:phases (modify-phases %standard-phases
  4079. (add-before 'build 'move-sls-files
  4080. (lambda _
  4081. ;; Move files under a struct/ directory to reflect the
  4082. ;; module hierarchy.
  4083. (define dst-folder "struct")
  4084. (define (target file)
  4085. (string-append dst-folder "/" file))
  4086. (define files
  4087. (scandir "." (negate (cut member <> '("." "..")))))
  4088. (mkdir dst-folder)
  4089. (for-each (lambda (file)
  4090. (rename-file file (target file)))
  4091. files)
  4092. #t)))))
  4093. (native-inputs
  4094. `(("guile" ,guile-3.0)))
  4095. (home-page "https://github.com/weinholt/struct-pack")
  4096. (synopsis "R6RS library for working with packed byte structures")
  4097. (description
  4098. "This is an R6RS library for working with packed byte structures. It is
  4099. similar to struct in Python or pack and unpack in Perl.")
  4100. (license license:expat)))
  4101. (define-public guile-machine-code
  4102. (package
  4103. (name "guile-machine-code")
  4104. (version "2.1.0")
  4105. (source
  4106. (origin
  4107. (method git-fetch)
  4108. (uri (git-reference
  4109. (url "https://github.com/weinholt/machine-code")
  4110. (commit (string-append "v" version))))
  4111. (file-name (git-file-name name version))
  4112. (sha256
  4113. (base32 "0wzj3caj2jypzyjqfkfqkvr3kkbjabsnhldv9kvnx9w9qnria5yd"))))
  4114. (build-system guile-build-system)
  4115. (arguments
  4116. `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
  4117. #:modules ((guix build guile-build-system)
  4118. (guix build utils)
  4119. (srfi srfi-26)
  4120. (ice-9 ftw))
  4121. #:phases (modify-phases %standard-phases
  4122. (add-before 'build 'move-sls-files
  4123. (lambda _
  4124. ;; Move files under a struct/ directory to reflect the
  4125. ;; module hierarchy.
  4126. (define dst-folder "machine-code")
  4127. (define (target file)
  4128. (string-append dst-folder "/" file))
  4129. (define files
  4130. (scandir "." (negate (cut member <> '("." "..")))))
  4131. (mkdir dst-folder)
  4132. (for-each (lambda (file)
  4133. (rename-file file (target file)))
  4134. files)
  4135. #t)))))
  4136. (native-inputs
  4137. `(("guile" ,guile-3.0)))
  4138. (propagated-inputs
  4139. `(("guile-struct-pack" ,guile-struct-pack)))
  4140. (home-page "https://github.com/weinholt/machine-code")
  4141. (synopsis "Tools that relate to machine code and object formats")
  4142. (description
  4143. "This project is about the development of tools that relate to machine
  4144. code and object formats; for all architectures. Here you'll find libraries
  4145. for working with binary code: assembly, disassembly, instruction tables,
  4146. object formats and related areas.")
  4147. (license license:expat)))
  4148. (define-public guile-laesare
  4149. (package
  4150. (name "guile-laesare")
  4151. (version "1.0.0")
  4152. (source
  4153. (origin
  4154. (method git-fetch)
  4155. (uri (git-reference
  4156. (url "https://github.com/weinholt/laesare")
  4157. (commit (string-append "v" version))))
  4158. (file-name (git-file-name name version))
  4159. (sha256
  4160. (base32 "15q619gzw717r8r1ql23zfdaibpnp9qqs96032vdc3rj74msxc92"))))
  4161. (build-system guile-build-system)
  4162. (arguments
  4163. `(#:compile-flags '("--r6rs" "-Wunbound-variable" "-Warity-mismatch")
  4164. #:modules ((guix build guile-build-system)
  4165. (guix build utils)
  4166. (srfi srfi-26)
  4167. (ice-9 ftw))
  4168. #:phases (modify-phases %standard-phases
  4169. (add-before 'build 'move-sls-files
  4170. (lambda _
  4171. ;; Move files under a laesare directory to reflect
  4172. ;; the module hierarchy.
  4173. (define dst-folder "laesare")
  4174. (define (target file)
  4175. (string-append dst-folder "/" file))
  4176. (define files
  4177. (scandir "." (negate (cut member <> '("." "..")))))
  4178. (mkdir dst-folder)
  4179. (for-each (lambda (file)
  4180. (rename-file file (target file)))
  4181. files)
  4182. #t)))))
  4183. (native-inputs
  4184. `(("guile" ,guile-3.0)))
  4185. (home-page "https://github.com/weinholt/laesare")
  4186. (synopsis "R6RS Scheme library that provides a reader")
  4187. (description
  4188. "This is an R6RS Scheme library that provides a reader with some extra
  4189. features not found in the standard read procedure such as a compatible mode
  4190. with support for other RnRS standards and a tolerant mode that continues on
  4191. errors.")
  4192. (license license:expat)))
  4193. (define-public guile-avahi
  4194. (let ((commit "6d43caf64f672a9694bf6c98bbf7a734f17a51e8")
  4195. (revision "1"))
  4196. (package
  4197. (name "guile-avahi")
  4198. (version (git-version "0.4.0" revision commit))
  4199. (source (origin
  4200. (method git-fetch)
  4201. (uri (git-reference
  4202. (url "git://git.sv.gnu.org/guile-avahi.git")
  4203. (commit commit)))
  4204. (file-name (git-file-name name version))
  4205. (sha256
  4206. (base32
  4207. "0fvrf8x22yvc71180hd3xkhspg9yvadi0pbv8shzlsaxqncwy1m9"))
  4208. (modules '((guix build utils)))))
  4209. (build-system gnu-build-system)
  4210. (arguments
  4211. `(#:modules (((guix build guile-build-system)
  4212. #:select (target-guile-effective-version))
  4213. ,@%gnu-build-system-modules)
  4214. #:imported-modules ((guix build guile-build-system)
  4215. ,@%gnu-build-system-modules)
  4216. #:make-flags
  4217. '("GUILE_AUTO_COMPILE=0") ;to prevent guild warnings
  4218. ;; Parallel builds fail on powerpc64le-linux.
  4219. ;; See https://lists.nongnu.org/archive/html/guile-avahi-bugs/2021-01/msg00000.html
  4220. #:parallel-build? #f
  4221. #:phases
  4222. (modify-phases %standard-phases
  4223. (add-before 'check 'fix-guile-avahi-file-name
  4224. (lambda* (#:key outputs #:allow-other-keys)
  4225. (with-directory-excursion "src"
  4226. (invoke "make" "install"
  4227. "-j" (number->string
  4228. (parallel-job-count))))
  4229. (let* ((out (assoc-ref outputs "out"))
  4230. (files (find-files "modules" ".scm")))
  4231. (substitute* files
  4232. (("\"guile-avahi-v-0\"")
  4233. (format #f "\"~a/lib/guile/~a/extensions/guile-avahi-v-0\""
  4234. out (target-guile-effective-version))))
  4235. #t))))))
  4236. (inputs
  4237. `(("guile" ,guile-3.0)
  4238. ("avahi" ,avahi)))
  4239. (native-inputs
  4240. `(("autoconf" ,autoconf)
  4241. ("automake" ,automake)
  4242. ("libtool" ,libtool)
  4243. ("pkg-config" ,pkg-config)
  4244. ("texinfo" ,texinfo)))
  4245. (synopsis "Guile bindings to Avahi")
  4246. (description
  4247. "This package provides bindings for Avahi. It allows programmers to
  4248. use functionalities of the Avahi client library from Guile Scheme programs.
  4249. Avahi itself is an implementation of multicast DNS (mDNS) and DNS Service
  4250. Discovery (DNS-SD).")
  4251. (home-page "https://www.nongnu.org/guile-avahi/")
  4252. (license license:lgpl3+))))
  4253. (define-public guile-mkdir-p
  4254. (package
  4255. (name "guile-mkdir-p")
  4256. (version "1.0.1")
  4257. (source
  4258. (origin
  4259. (method git-fetch)
  4260. (uri (git-reference
  4261. (url "https://code.divoplade.fr/mkdir-p.git")
  4262. (commit (string-append "v" version))))
  4263. (sha256
  4264. (base32 "01k20rjcv6p0spmw8ls776aar6bfw0jxw46d2n12w0cb2p79xjv8"))
  4265. (file-name (git-file-name name version))
  4266. (snippet
  4267. `(begin
  4268. (with-output-to-file ".tarball-version"
  4269. (lambda _ (format #t "~a~%" ,version)))
  4270. #t))))
  4271. (build-system gnu-build-system)
  4272. (arguments `())
  4273. (native-inputs
  4274. `(("guile" ,guile-3.0)
  4275. ("texinfo" ,texinfo)
  4276. ("autoconf" ,autoconf)
  4277. ("autoconf-archive" ,autoconf-archive)
  4278. ("automake" ,automake)
  4279. ("pkg-config" ,pkg-config)
  4280. ("gettext" ,gettext-minimal)))
  4281. (inputs `(("guile" ,guile-3.0)))
  4282. (synopsis "Implementation of a recursive @code{mkdir} for Guile")
  4283. (description
  4284. "This package provides within the @code{(mkdir-p)} module the
  4285. @code{mkdir-p} function that tries to create the chain of directories
  4286. recursively. It also provides new versions of @code{open-output-file},
  4287. @code{call-with-output-file} and @code{with-output-to-file} to create the
  4288. directory of its argument if it does not exist.")
  4289. (home-page "https://mkdir-p.divoplade.fr")
  4290. (license license:asl2.0)))
  4291. (define-public guile-jwt
  4292. (package
  4293. (name "guile-jwt")
  4294. (version "0.2.0")
  4295. (source
  4296. (origin
  4297. (method git-fetch)
  4298. (uri (git-reference
  4299. (url "https://github.com/aconchillo/guile-jwt")
  4300. (commit version)))
  4301. (file-name (git-file-name name version))
  4302. (sha256
  4303. (base32
  4304. "1p8sapiv5im18rjnzc8xnw6y7dr661rycf9g10z5ww0dl4rfz3z1"))))
  4305. (build-system gnu-build-system)
  4306. (native-inputs
  4307. `(("autoconf" ,autoconf)
  4308. ("automake" ,automake)
  4309. ("pkg-config" ,pkg-config)))
  4310. (propagated-inputs
  4311. `(("guile-json" ,guile-json-4)))
  4312. (inputs
  4313. `(("guile" ,guile-3.0)))
  4314. (home-page "https://github.com/aconchillo/guile-jwt")
  4315. (synopsis "JSON Web Token library for Guile")
  4316. (description
  4317. "guile-jwt is a JSON Web Token module for Guile. JSON Web Tokens are an
  4318. open, industry standard (RFC 7519) method for representing claims securely
  4319. between two parties. guile-jwt allows you to decode, verify and generate
  4320. JWT. Supported algorithms: HS256, HS384, HS512.")
  4321. (license license:gpl3+)))
  4322. (define-public guile-sodium
  4323. (package
  4324. (name "guile-sodium")
  4325. (version "0.1.0")
  4326. (source
  4327. (origin
  4328. (method git-fetch)
  4329. (uri (git-reference
  4330. (url "https://inqlab.net/git/guile-sodium.git")
  4331. (commit (string-append "v" version))))
  4332. (file-name (git-file-name name version))
  4333. (sha256 (base32 "189jsj87hycs57a54x0b9lifwvhr63nypb9vfxdrq7rwrpcvi5f8"))))
  4334. (build-system gnu-build-system)
  4335. (arguments `())
  4336. (native-inputs
  4337. `(("autoconf" ,autoconf)
  4338. ("automake" ,automake)
  4339. ("pkg-config" ,pkg-config)
  4340. ("texinfo" ,texinfo)))
  4341. (inputs `(("guile" ,guile-3.0)))
  4342. (propagated-inputs `(("libsodium" ,libsodium)))
  4343. (synopsis "Guile bindings to the libsodium cryptographic library")
  4344. (description
  4345. "This package provides Guile bindings to the libsodium cryptographic library
  4346. which provides core cryptographic primitives needed to build higher-level
  4347. tools.")
  4348. (home-page "https://inqlab.net/git/guile-sodium.git")
  4349. (license license:gpl3+)))
  4350. (define-public guile-eris
  4351. (package
  4352. (name "guile-eris")
  4353. (version "0.2.0")
  4354. (source
  4355. (origin
  4356. (method git-fetch)
  4357. (uri (git-reference
  4358. (url "https://inqlab.net/git/eris.git")
  4359. (commit (string-append "v" version))))
  4360. (file-name (git-file-name name version))
  4361. (sha256 (base32 "1ijglmwkdy1l87gj429qfjis0v8b1zlxhbyfhx5za8664h68nqka"))))
  4362. (build-system gnu-build-system)
  4363. (arguments '())
  4364. (native-inputs
  4365. `(("autoconf" ,autoconf)
  4366. ("automake" ,automake)
  4367. ("pkg-config" ,pkg-config)
  4368. ("texinfo" ,texinfo)
  4369. ;; test dependency
  4370. ("guile-srfi-180" ,guile-srfi-180)))
  4371. (inputs `(("guile" ,guile-3.0)))
  4372. (propagated-inputs
  4373. `(("guile-sodium" ,guile-sodium)))
  4374. (synopsis "Guile implementation of the Encoding for Robust Immutable Storage (ERIS)")
  4375. (description
  4376. "Guile-ERIS is the reference implementation of the Encoding for Robust
  4377. Immutable Storage (ERIS). ERIS allows arbitrary content to be encoded into
  4378. uniformly sized, encrypted blocks that can be reassembled using a short
  4379. read-capability.")
  4380. (home-page "https://inqlab.net/git/eris.git")
  4381. (license license:gpl3+)))
  4382. (define-public guile-r6rs-protobuf
  4383. (package
  4384. (name "guile-r6rs-protobuf")
  4385. (version "0.9")
  4386. (source
  4387. (origin
  4388. (method git-fetch)
  4389. (uri (git-reference
  4390. (url "https://gitlab.com/joolean/r6rs-protobuf")
  4391. (commit (string-append "v" version))))
  4392. (file-name (git-file-name name version))
  4393. (sha256
  4394. (base32
  4395. "1xmn7jlr1xiqgd35klq910p1bnil1iwdvqxkjr3zzml3spy8p2aa"))))
  4396. (build-system guile-build-system)
  4397. (arguments
  4398. `(#:compile-flags '("--r6rs")))
  4399. (inputs
  4400. `(("guile" ,guile-3.0)))
  4401. (home-page "https://gitlab.com/joolean/r6rs-protobuf/")
  4402. (synopsis "Scheme implementation of Protocol Buffers")
  4403. (description
  4404. "This project provides a pure Scheme implementation of Protocol Buffers,
  4405. including parsing and code generation.")
  4406. (license license:gpl3+)))
  4407. (define-public guile-shapefile
  4408. (package
  4409. (name "guile-shapefile")
  4410. (version "0.1.2")
  4411. (source
  4412. (origin
  4413. (method git-fetch)
  4414. (uri (git-reference
  4415. (url "https://github.com/HugoNikanor/guile-shapefile")
  4416. (commit (string-append "v" version))))
  4417. (file-name (git-file-name name version))
  4418. (sha256
  4419. (base32
  4420. "1zvrpc8bshw9w0vhdpmhv00j07mzsdyg2f9hfabr83v08zhfi8ml"))))
  4421. (build-system guile-build-system)
  4422. (arguments
  4423. `(#:phases
  4424. (modify-phases %standard-phases
  4425. (add-after 'unpack 'delete-pre-generated-docs
  4426. (lambda _
  4427. (delete-file-recursively "docs")
  4428. #t))
  4429. (add-after 'install 'install-info-documentation
  4430. (lambda* (#:key outputs #:allow-other-keys)
  4431. (let* ((share (string-append (assoc-ref outputs "out") "/share"))
  4432. (doc (string-append share "/doc/" ,name "-" ,version))
  4433. (info (string-append share "/info/"))
  4434. (makeinfo (string-append (assoc-ref %build-inputs "texinfo")
  4435. "/bin/makeinfo")))
  4436. (invoke makeinfo "guile-shapefile.texi" "-o" info)
  4437. #t))))))
  4438. (inputs
  4439. `(("guile" ,guile-3.0)))
  4440. (native-inputs
  4441. `(("texinfo" ,texinfo)))
  4442. (home-page "https://github.com/HugoNikanor/guile-shapefile")
  4443. (synopsis "Parse shapefiles in Guile")
  4444. (description
  4445. "Guile Shapefile is a Guile library for reading shapefiles.")
  4446. (license license:expat)))
  4447. (define-public guile-drmaa
  4448. (package
  4449. (name "guile-drmaa")
  4450. (version "0.1.0")
  4451. (source
  4452. (origin
  4453. (method git-fetch)
  4454. (uri (git-reference
  4455. (url "https://git.elephly.net/software/guile-drmaa.git")
  4456. (commit version)))
  4457. (file-name (git-file-name name version))
  4458. (sha256
  4459. (base32
  4460. "1m2x62n3x5hi5vnsvv2zgqhgpzrfq7r5095fzzjd1aaybi9i9igg"))))
  4461. (build-system gnu-build-system)
  4462. (native-inputs
  4463. `(("autoconf" ,autoconf)
  4464. ("automake" ,automake)
  4465. ("pkg-config" ,pkg-config)
  4466. ("texinfo" ,texinfo)
  4467. ("sed" ,sed)))
  4468. (inputs
  4469. `(("guile" ,guile-3.0)))
  4470. (propagated-inputs
  4471. `(("guile-bytestructures" ,guile-bytestructures)
  4472. ("nyacc" ,nyacc)))
  4473. (home-page "https://git.elephly.net/software/guile-drmaa.git")
  4474. (synopsis "Guile bindings to DRMAA")
  4475. (description "This project provides Guile bindings to the DRMAA library
  4476. version 1. DRMAA is a resource management library implemented by HPC cluster
  4477. schedulers.")
  4478. (license license:gpl3+)))
  4479. (define-public guile-libyaml
  4480. (let ((commit "f5d33a6880e96571d3cb079ed7755ffc156cac46")
  4481. (revision "1"))
  4482. (package
  4483. (name "guile-libyaml")
  4484. (version (git-version "0" revision commit))
  4485. (source
  4486. (origin
  4487. (method git-fetch)
  4488. (uri (git-reference
  4489. (url "https://github.com/mwette/guile-libyaml")
  4490. (commit commit)))
  4491. (file-name (git-file-name name version))
  4492. (sha256
  4493. (base32
  4494. "12x91983fh1j39zy7kbk19acc1rqdh8515ddx1mh7l26j04k9wgq"))))
  4495. (build-system gnu-build-system)
  4496. (arguments
  4497. `(#:modules (((guix build guile-build-system)
  4498. #:prefix guile:)
  4499. ,@%gnu-build-system-modules)
  4500. #:imported-modules ((guix build guile-build-system)
  4501. ,@%gnu-build-system-modules)
  4502. #:tests? #false ; there are none
  4503. #:phases
  4504. (modify-phases %standard-phases
  4505. (delete 'configure)
  4506. (add-after 'unpack 'remove-unused-files
  4507. (lambda* (#:key inputs #:allow-other-keys)
  4508. (for-each delete-file
  4509. '("guix.scm" "demo1.yml" "demo1.scm"
  4510. "yaml/libyaml.scm"
  4511. ;; This file is mismatched with the generated FFI code.
  4512. "yaml/ffi-help-rt.scm"))
  4513. (copy-file (search-input-file
  4514. inputs "/share/guile/site/3.0/system/ffi-help-rt.scm")
  4515. "yaml/ffi-help-rt.scm")
  4516. (substitute* "yaml/ffi-help-rt.scm"
  4517. (("system ffi-help-rt") "yaml ffi-help-rt"))
  4518. #true))
  4519. (add-before 'build 'build-ffi
  4520. (lambda* (#:key inputs #:allow-other-keys)
  4521. (invoke "guild" "compile-ffi"
  4522. "--no-exec" ; allow us to patch the generated file
  4523. "yaml/libyaml.ffi")
  4524. (substitute* "yaml/libyaml.scm"
  4525. (("system ffi-help-rt") "yaml ffi-help-rt")
  4526. (("dynamic-link \"libyaml\"")
  4527. (format #false "dynamic-link \"~a/lib/libyaml\""
  4528. (assoc-ref inputs "libyaml"))))
  4529. #true))
  4530. (replace 'build
  4531. (assoc-ref guile:%standard-phases 'build))
  4532. (delete 'install))))
  4533. (inputs
  4534. `(("guile" ,guile-3.0)
  4535. ("libyaml" ,libyaml)))
  4536. (propagated-inputs
  4537. `(("guile-bytestructures" ,guile-bytestructures)))
  4538. (native-inputs
  4539. `(("nyacc" ,nyacc)))
  4540. (home-page "https://github.com/mwette/guile-libyaml")
  4541. (synopsis "Guile wrapper for libyaml")
  4542. (description
  4543. "This package provides a simple yaml module for Guile using the
  4544. ffi-helper from nyacc.")
  4545. (license license:lgpl3+))))
  4546. (define-public schmutz
  4547. (let ((commit "add24588c59552537b8f1316df99a0cdd62c221e")
  4548. (revision "1"))
  4549. (package
  4550. (name "schmutz")
  4551. (version (git-version "0" revision commit))
  4552. (source (origin
  4553. (method git-fetch)
  4554. (uri (git-reference
  4555. (url "https://github.com/arximboldi/schmutz")
  4556. (commit commit)))
  4557. (file-name (git-file-name name version))
  4558. (sha256
  4559. (base32
  4560. "1z3n61sj62lnn15mandvyrpjzli07rp9r62ypvgg3a8bvh37yc89"))))
  4561. (build-system cmake-build-system)
  4562. (arguments `(#:tests? #f))
  4563. (native-inputs
  4564. `(("pkg-config" ,pkg-config)))
  4565. (inputs
  4566. `(("guile" ,guile-2.2)))
  4567. (home-page "https://github.com/arximboldi/schmutz")
  4568. (synopsis "Bind C++ code to Scheme")
  4569. (description "Schmutz is a header-only library to declare Scheme bindings
  4570. for C++ code using a simple embedded DSL. Think of it as @code{Boost.Python}
  4571. or @code{LuaBind} but for Scheme.")
  4572. (license license:boost1.0))))
  4573. (define-public guile-cbor
  4574. (package
  4575. (name "guile-cbor")
  4576. (version "0.1.0")
  4577. (source
  4578. (origin
  4579. (method git-fetch)
  4580. (uri (git-reference
  4581. (url "https://inqlab.net/git/guile-cbor.git")
  4582. (commit (string-append "v" version))))
  4583. (file-name (git-file-name name version))
  4584. (sha256 (base32 "0bdqg3ifayf7m2j09lqrgdfprbdaa67azf09bcq9b4k71inxfnxl"))))
  4585. (build-system gnu-build-system)
  4586. (arguments `())
  4587. (native-inputs
  4588. `(("autoconf" ,autoconf)
  4589. ("automake" ,automake)
  4590. ("pkg-config" ,pkg-config)
  4591. ("texinfo" ,texinfo)))
  4592. (inputs `(("guile" ,guile-3.0)))
  4593. (synopsis "Guile implementation of CBOR")
  4594. (description
  4595. "The Concise Binary Object Representation (CBOR), as specified by RFC 8949, is
  4596. a binary data serialization format. CBOR is similar to JSON but serializes to
  4597. binary which is smaller and faster to generate and parse. This package provides
  4598. a Guile implementation of CBOR.")
  4599. (home-page "https://inqlab.net/git/guile-cbor.git")
  4600. (license license:gpl3+)))
  4601. (define-public guile-quickcheck
  4602. (package
  4603. (name "guile-quickcheck")
  4604. (version "0.1.0")
  4605. (source (origin
  4606. (method url-fetch)
  4607. (uri (string-append "https://files.ngyro.com/"
  4608. "guile-quickcheck/guile-quickcheck-"
  4609. version ".tar.gz"))
  4610. (sha256
  4611. (base32
  4612. "03mwi1l3354x52nar0zwhcm0x29yai9xjln4p4gbchwvx5dsr6fb"))))
  4613. (build-system gnu-build-system)
  4614. (native-inputs
  4615. `(("pkg-config" ,pkg-config)))
  4616. (inputs
  4617. `(("guile" ,guile-3.0)))
  4618. (home-page "https://ngyro.com/software/guile-quickcheck.html")
  4619. (synopsis "Randomized property-based testing for Guile")
  4620. (description "Guile-Quickcheck is a library for random testing of program
  4621. properties inspired by ghc-quickcheck. You can use it to express properties,
  4622. which functions should satisfy, as Scheme code and then check whether they hold
  4623. in a large number of randomly generated test cases.")
  4624. (license license:gpl3+)))
  4625. (define-public guile-fslib
  4626. (package
  4627. (name "guile-fslib")
  4628. (version "0.2.0")
  4629. (source
  4630. (origin
  4631. (method git-fetch)
  4632. (uri (git-reference
  4633. (url "https://notabug.org/ZelphirKaltstahl/guile-fslib/")
  4634. (commit version)))
  4635. (file-name (git-file-name name version))
  4636. (sha256
  4637. (base32
  4638. "118d84p443w7hrslv8hjyhgws631ia08mggiyklkmk0b9plfdsvz"))))
  4639. (build-system guile-build-system)
  4640. (inputs
  4641. `(("guile" ,guile-3.0)))
  4642. (home-page "https://notabug.org/ZelphirKaltstahl/guile-fslib")
  4643. (synopsis "Helper functions for working with locations in file systems")
  4644. (description
  4645. "This package contains helper functions for working with file system
  4646. locations.")
  4647. (license license:agpl3+)))
  4648. (define-public guile-netlink
  4649. (package
  4650. (name "guile-netlink")
  4651. (version "1.0.1")
  4652. (source
  4653. (origin
  4654. (method git-fetch)
  4655. (uri (git-reference
  4656. (url "https://git.lepiller.eu/git/guile-netlink")
  4657. (commit version)))
  4658. (file-name (git-file-name name version))
  4659. (sha256
  4660. (base32
  4661. "03zmsha2d7whlwb52gna83jdas9bqi18rq3sss7kkicv814qb35g"))))
  4662. (build-system gnu-build-system)
  4663. (arguments
  4664. `(#:tests? #f)); no tests
  4665. (inputs
  4666. `(("guile" ,guile-3.0)))
  4667. (native-inputs
  4668. `(("automake" ,automake)
  4669. ("autoconf" ,autoconf)
  4670. ("pkg-config" ,pkg-config)
  4671. ("texinfo" ,texinfo)))
  4672. (home-page "https://git.lepiller.eu/guile-netlink")
  4673. (synopsis "Netlink protocol implementation for Guile")
  4674. (description "Guile Netlink is a GNU Guile library providing an implementation
  4675. of the netlink protocol.
  4676. It provides a generic library for writing implementations of a netlink
  4677. protocol, a low-level rtnetlink implementation that uses that library and a
  4678. high-level API for network management that uses rtnetlink.")
  4679. (license license:gpl3+)))