guile-xyz.scm 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
  3. ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
  4. ;;; Copyright © 2015, 2017 Christopher Allan Webber <cwebber@dustycloud.org>
  5. ;;; Copyright © 2016 Alex Sassmannshausen <alex@pompo.co>
  6. ;;; Copyright © 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
  7. ;;; Copyright © 2016 Erik Edrosa <erik.edrosa@gmail.com>
  8. ;;; Copyright © 2016 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 Amirouche <amirouche@hypermove.net>
  12. ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
  13. ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
  14. ;;; Copyright © 2017 David Thompson <davet@gnu.org>
  15. ;;; Copyright © 2017, 2018 Mathieu Othacehe <m.othacehe@gmail.com>
  16. ;;; Copyright © 2017 Theodoros Foradis <theodoros@foradis.org>
  17. ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
  18. ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
  19. ;;; Copyright © 2018 Maxim Cournoyer <maxim.cournoyer@gmail.com>
  20. ;;; Copyright © 2018 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. ;;;
  25. ;;; This file is part of GNU Guix.
  26. ;;;
  27. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  28. ;;; under the terms of the GNU General Public License as published by
  29. ;;; the Free Software Foundation; either version 3 of the License, or (at
  30. ;;; your option) any later version.
  31. ;;;
  32. ;;; GNU Guix is distributed in the hope that it will be useful, but
  33. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  34. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  35. ;;; GNU General Public License for more details.
  36. ;;;
  37. ;;; You should have received a copy of the GNU General Public License
  38. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  39. (define-module (gnu packages guile-xyz)
  40. #:use-module ((guix licenses) #:prefix license:)
  41. #:use-module (gnu packages)
  42. #:use-module (gnu packages aspell)
  43. #:use-module (gnu packages autotools)
  44. #:use-module (gnu packages base)
  45. #:use-module (gnu packages bash)
  46. #:use-module (gnu packages compression)
  47. #:use-module (gnu packages databases)
  48. #:use-module (gnu packages disk)
  49. #:use-module (gnu packages ed)
  50. #:use-module (gnu packages emacs)
  51. #:use-module (gnu packages gawk)
  52. #:use-module (gnu packages gettext)
  53. #:use-module (gnu packages gl)
  54. #:use-module (gnu packages gperf)
  55. #:use-module (gnu packages guile)
  56. #:use-module (gnu packages hurd)
  57. #:use-module (gnu packages image)
  58. #:use-module (gnu packages libffi)
  59. #:use-module (gnu packages libunistring)
  60. #:use-module (gnu packages linux)
  61. #:use-module (gnu packages man)
  62. #:use-module (gnu packages maths)
  63. #:use-module (gnu packages multiprecision)
  64. #:use-module (gnu packages ncurses)
  65. #:use-module (gnu packages networking)
  66. #:use-module (gnu packages perl)
  67. #:use-module (gnu packages pkg-config)
  68. #:use-module (gnu packages python)
  69. #:use-module (gnu packages readline)
  70. #:use-module (gnu packages sdl)
  71. #:use-module (gnu packages slang)
  72. #:use-module (gnu packages sqlite)
  73. #:use-module (gnu packages texinfo)
  74. #:use-module (gnu packages tls)
  75. #:use-module (gnu packages version-control)
  76. #:use-module (gnu packages xdisorg)
  77. #:use-module (gnu packages xorg)
  78. #:use-module (guix packages)
  79. #:use-module (guix download)
  80. #:use-module (guix git-download)
  81. #:use-module (guix build-system gnu)
  82. #:use-module (guix build-system guile)
  83. #:use-module (guix utils)
  84. #:use-module (ice-9 match)
  85. #:use-module ((srfi srfi-1) #:select (alist-delete)))
  86. (define-public artanis
  87. (let ((release "0.3.1")
  88. (revision 0))
  89. (package
  90. (name "artanis")
  91. (version (if (zero? revision)
  92. release
  93. (string-append release "-"
  94. (number->string revision))))
  95. (source (origin
  96. (method url-fetch)
  97. (uri (string-append "mirror://gnu/artanis/artanis-"
  98. release ".tar.gz"))
  99. (file-name (string-append name "-" version ".tar.gz"))
  100. (sha256
  101. (base32
  102. "0hqr5m3mb558bdhkc2sadmd9cbrhp3y525wx7cwirgy6i0zmay68"))
  103. (modules '((guix build utils)))
  104. (snippet
  105. '(begin
  106. ;; Unbundle guile-redis and guile-json
  107. (delete-file-recursively "artanis/third-party/json.scm")
  108. (delete-file-recursively "artanis/third-party/json")
  109. (delete-file-recursively "artanis/third-party/redis.scm")
  110. (delete-file-recursively "artanis/third-party/redis")
  111. (substitute* '("artanis/artanis.scm"
  112. "artanis/lpc.scm"
  113. "artanis/oht.scm")
  114. (("(#:use-module \\()artanis third-party (json\\))" _
  115. use-module json)
  116. (string-append use-module json)))
  117. (substitute* '("artanis/lpc.scm"
  118. "artanis/session.scm")
  119. (("(#:use-module \\()artanis third-party (redis\\))" _
  120. use-module redis)
  121. (string-append use-module redis)))
  122. (substitute* "artanis/oht.scm"
  123. (("([[:punct:][:space:]]+)(->json-string)([[:punct:][:space:]]+)"
  124. _ pre json-string post)
  125. (string-append pre
  126. "scm" json-string
  127. post)))
  128. (substitute* "artanis/artanis.scm"
  129. (("[[:punct:][:space:]]+->json-string[[:punct:][:space:]]+")
  130. ""))
  131. #t))))
  132. (build-system gnu-build-system)
  133. ;; FIXME the bundled csv contains one more exported procedure
  134. ;; (sxml->csv-string) than guile-csv. The author is maintainer of both
  135. ;; projects.
  136. ;; TODO: Add guile-dbi and guile-dbd optional dependencies.
  137. (inputs `(("guile" ,guile-2.2)
  138. ("guile-json" ,guile-json)
  139. ("guile-redis" ,guile-redis)))
  140. (native-inputs `(("bash" ,bash) ;for the `source' builtin
  141. ("pkgconfig" ,pkg-config)
  142. ("util-linux" ,util-linux))) ;for the `script' command
  143. (arguments
  144. '(#:make-flags
  145. ;; TODO: The documentation must be built with the `docs' target.
  146. (let* ((out (assoc-ref %outputs "out"))
  147. (scm (string-append out "/share/guile/site/2.2"))
  148. (go (string-append out "/lib/guile/2.2/site-ccache")))
  149. ;; Don't use (%site-dir) for site paths.
  150. (list (string-append "MOD_PATH=" scm)
  151. (string-append "MOD_COMPILED_PATH=" go)))
  152. #:test-target "test"
  153. #:phases
  154. (modify-phases %standard-phases
  155. (add-after 'unpack 'patch-site-dir
  156. (lambda* (#:key outputs #:allow-other-keys)
  157. (substitute* "artanis/commands/help.scm"
  158. (("\\(%site-dir\\)")
  159. (string-append "\""
  160. (assoc-ref outputs "out")
  161. "/share/guile/site/2.2\"")))))
  162. (add-before 'install 'substitute-root-dir
  163. (lambda* (#:key outputs #:allow-other-keys)
  164. (let ((out (assoc-ref outputs "out")))
  165. (substitute* "Makefile" ;ignore the execution of bash.bashrc
  166. ((" /etc/bash.bashrc") " /dev/null"))
  167. (substitute* "Makefile" ;set the root of config files to OUT
  168. ((" /etc") (string-append " " out "/etc")))
  169. (mkdir-p (string-append out "/bin")) ;for the `art' executable
  170. #t)))
  171. (add-after 'install 'wrap-art
  172. (lambda* (#:key inputs outputs #:allow-other-keys)
  173. (let* ((out (assoc-ref outputs "out"))
  174. (bin (string-append out "/bin"))
  175. (scm (string-append out "/share/guile/site/2.2"))
  176. (go (string-append out "/lib/guile/2.2/site-ccache")))
  177. (wrap-program (string-append bin "/art")
  178. `("GUILE_LOAD_PATH" ":" prefix
  179. (,scm ,(getenv "GUILE_LOAD_PATH")))
  180. `("GUILE_LOAD_COMPILED_PATH" ":" prefix
  181. (,go ,(getenv "GUILE_LOAD_COMPILED_PATH"))))
  182. #t))))))
  183. (synopsis "Web application framework written in Guile")
  184. (description "GNU Artanis is a web application framework written in Guile
  185. Scheme. A web application framework (WAF) is a software framework that is
  186. designed to support the development of dynamic websites, web applications, web
  187. services and web resources. The framework aims to alleviate the overhead
  188. associated with common activities performed in web development. Artanis
  189. provides several tools for web development: database access, templating
  190. frameworks, session management, URL-remapping for RESTful, page caching, and
  191. more.")
  192. (home-page "https://www.gnu.org/software/artanis/")
  193. (license (list license:gpl3+ license:lgpl3+))))) ;dual license
  194. ;; There has not been any release yet.
  195. (define-public guildhall
  196. (let ((commit "2fe2cc539f4b811bbcd69e58738db03eb5a2b778")
  197. (revision "1"))
  198. (package
  199. (name "guildhall")
  200. (version (string-append "0-" revision "." (string-take commit 9)))
  201. (source (origin
  202. (method git-fetch)
  203. (uri (git-reference
  204. (url "https://github.com/ijp/guildhall.git")
  205. (commit commit)))
  206. (file-name (string-append name "-" version "-checkout"))
  207. (sha256
  208. (base32
  209. "115bym7bg66h3gs399yb2vkzc2ygriaqsn4zbrg8f054mgy8wzn1"))))
  210. (build-system gnu-build-system)
  211. (arguments
  212. `(#:phases
  213. (modify-phases %standard-phases
  214. ;; Tests fail without this fix because they try to load the bash
  215. ;; executable as a Scheme file. See bug report at
  216. ;; https://github.com/ijp/guildhall/issues/22
  217. (add-after 'unpack 'fix-bug-22
  218. (lambda _
  219. (substitute* "Makefile.am"
  220. (("TESTS_ENVIRONMENT=.*")
  221. "AM_TESTS_ENVIRONMENT=srcdir=$(abs_top_srcdir)/tests/
  222. TEST_EXTENSIONS = .scm
  223. SCM_LOG_COMPILER= $(top_builddir)/env $(GUILE)
  224. AM_SCM_LOG_FLAGS = --no-auto-compile -s")
  225. ;; FIXME: one of the database tests fails for unknown
  226. ;; reasons. It does not fail when run outside of Guix.
  227. (("tests/database.scm") ""))
  228. #t)))))
  229. (inputs
  230. `(("guile" ,guile-2.0)))
  231. (native-inputs
  232. `(("zip" ,zip) ; for tests
  233. ("autoconf" ,autoconf)
  234. ("automake" ,automake)
  235. ("texinfo" ,texinfo)))
  236. (synopsis "Package manager for Guile")
  237. (description
  238. "Guildhall is a package manager written for Guile Scheme. A guild is
  239. an association of independent craftspeople. A guildhall is where they meet.
  240. This Guildhall aims to make a virtual space for Guile wizards and journeyfolk
  241. to share code.
  242. On a practical level, Guildhall lets you share Scheme modules and programs
  243. over the internet, and install code that has been shared by others. Guildhall
  244. can handle dependencies, so when a program requires several libraries, and
  245. each of those has further dependencies, all of the prerequisites for the
  246. program can be installed in one go.")
  247. (home-page "https://github.com/ijp/guildhall")
  248. (license license:gpl3+))))
  249. (define-public guile-aspell
  250. (package
  251. (name "guile-aspell")
  252. (version "0.4")
  253. (source (origin
  254. (method url-fetch)
  255. (uri (string-append
  256. "http://lonelycactus.com/tarball/guile_aspell-"
  257. version ".tar.gz"))
  258. (sha256
  259. (base32
  260. "0vpk5xj9m9qc702z3khmkwhgpb949qbsyz8kw2qycda6qnxk0077"))))
  261. (build-system gnu-build-system)
  262. (arguments
  263. '(#:phases (modify-phases %standard-phases
  264. (add-before 'configure 'set-guilesitedir
  265. (lambda _
  266. (substitute* "Makefile.in"
  267. (("^guilesitedir =.*$")
  268. "guilesitedir = \
  269. $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
  270. #t))
  271. (add-before 'build 'set-libaspell-file-name
  272. (lambda* (#:key inputs #:allow-other-keys)
  273. (let ((aspell (assoc-ref inputs "aspell")))
  274. (substitute* "aspell.scm"
  275. (("\"libaspell\\.so\"")
  276. (string-append "\"" aspell
  277. "/lib/libaspell\"")))
  278. #t))))))
  279. (native-inputs `(("pkg-config" ,pkg-config)))
  280. (inputs `(("guile" ,guile-2.2)
  281. ("aspell" ,aspell)))
  282. (home-page "https://github.com/spk121/guile-aspell")
  283. (synopsis "Spell-checking from Guile")
  284. (description
  285. "guile-aspell is a Guile Scheme library for comparing a string against a
  286. dictionary and suggesting spelling corrections.")
  287. (license license:gpl3+)))
  288. (define-public guile-bash
  289. ;; This project is currently retired. It was initially announced here:
  290. ;; <https://lists.gnu.org/archive/html/guile-user/2015-02/msg00003.html>.
  291. (let ((commit "1eabc563ca5692b3e08d84f1f0e6fd2283284469")
  292. (revision "0"))
  293. (package
  294. (name "guile-bash")
  295. (version (string-append "0.1.6-" revision "." (string-take commit 7)))
  296. (home-page
  297. "https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git")
  298. (source (origin
  299. (method git-fetch)
  300. (uri (git-reference
  301. (commit commit)
  302. (url home-page)))
  303. (sha256
  304. (base32
  305. "097vny990wp2qpjij6a5a5gwc6fxzg5wk56inhy18iki5v6pif1p"))
  306. (file-name (string-append name "-" version "-checkout"))))
  307. (build-system gnu-build-system)
  308. (arguments
  309. '(#:configure-flags
  310. ;; Add -I to match 'bash.pc' of Bash 4.4.
  311. (list (string-append "CPPFLAGS=-I"
  312. (assoc-ref %build-inputs "bash:include")
  313. "/include/bash/include")
  314. ;; The '.a' file is useless.
  315. "--disable-static"
  316. ;; Install 'lib/bash' as Bash 4.4 expects.
  317. (string-append "--libdir=" (assoc-ref %outputs "out")
  318. "/lib/bash"))))
  319. (native-inputs `(("pkg-config" ,pkg-config)
  320. ("autoconf" ,autoconf-wrapper)
  321. ("automake" ,automake)
  322. ("libtool" ,libtool)
  323. ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
  324. ("gettext" ,gettext-minimal)
  325. ;; Bash with loadable module support, for the test
  326. ;; suite.
  327. ("bash-full" ,bash)))
  328. (inputs `(("guile" ,guile-2.0)
  329. ("bash:include" ,bash "include")))
  330. (synopsis "Extend Bash using Guile")
  331. (description
  332. "Guile-Bash provides a shared library and set of Guile modules,
  333. allowing you to extend Bash in Scheme. Scheme interfaces allow you to access
  334. the following aspects of Bash:
  335. @itemize
  336. @item aliases;
  337. @item setting and getting Bash variables;
  338. @item creating dynamic variables;
  339. @item creating Bash functions with a Scheme implementation;
  340. @item reader macro for output capturing;
  341. @item reader macro for evaluating raw Bash commands.
  342. @end itemize
  343. To enable it, run:
  344. @example
  345. enable -f ~/.guix-profile/lib/bash/libguile-bash.so scm
  346. @end example
  347. and then run @command{scm example.scm}.")
  348. (license license:gpl3+))))
  349. (define-public guile-8sync
  350. (package
  351. (name "guile-8sync")
  352. (version "0.4.2")
  353. (source (origin
  354. (method url-fetch)
  355. (uri (string-append "mirror://gnu/8sync/8sync-" version
  356. ".tar.gz"))
  357. (sha256
  358. (base32
  359. "031wm13srak3wsnll7j2mbbi29g1pcm4swdb71ds9yn567pn20qw"))))
  360. (build-system gnu-build-system)
  361. (native-inputs `(("autoconf" ,autoconf)
  362. ("automake" ,automake)
  363. ("guile" ,guile-2.2)
  364. ("pkg-config" ,pkg-config)
  365. ("texinfo" ,texinfo)))
  366. (arguments
  367. `(#:phases (modify-phases %standard-phases
  368. (add-before 'configure 'setenv
  369. (lambda _
  370. ;; quiet warnings
  371. (setenv "GUILE_AUTO_COMPILE" "0")
  372. #t)))))
  373. (home-page "https://gnu.org/s/8sync/")
  374. (synopsis "Asynchronous actor model library for Guile")
  375. (description
  376. "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
  377. library for GNU Guile based on the actor model.
  378. Note that 8sync is only available for Guile 2.2.")
  379. (license license:lgpl3+)))
  380. (define-public guile-daemon
  381. (package
  382. (name "guile-daemon")
  383. (version "0.1.2")
  384. (source (origin
  385. (method url-fetch)
  386. (uri (string-append "https://github.com/alezost/" name
  387. "/releases/download/v" version
  388. "/" name "-" version ".tar.gz"))
  389. (sha256
  390. (base32
  391. "0hh6gq6b6phpxm0b1dkxyzj3f4sxdf7dji63609lzypa5v1ad2gv"))))
  392. (build-system gnu-build-system)
  393. (native-inputs
  394. `(("pkg-config" ,pkg-config)))
  395. (inputs
  396. `(("guile" ,guile-2.2)))
  397. (home-page "https://github.com/alezost/guile-daemon")
  398. (synopsis "Evaluate code in a running Guile process")
  399. (description
  400. "Guile-Daemon is a small Guile program that loads your initial
  401. configuration file, and then reads and evaluates Guile expressions that
  402. you send to a FIFO file.")
  403. (license license:gpl3+)))
  404. (define-public guile-dsv
  405. (package
  406. (name "guile-dsv")
  407. (version "0.2.1")
  408. (source (origin
  409. (method git-fetch)
  410. (uri (git-reference
  411. (url "https://github.com/artyom-poptsov/guile-dsv")
  412. (commit "bdc5267d007478abc20ea96d7c459b7dd9560b3d")))
  413. (file-name (string-append name "-" version "-checkout"))
  414. (sha256
  415. (base32
  416. "1irw6mz8998nwyhzrw9g94jcz60b9zljgqfmipaz1ybn8579qjx0"))))
  417. (build-system gnu-build-system)
  418. (native-inputs
  419. `(("autoconf" ,autoconf)
  420. ("automake" ,automake)
  421. ("pkg-config" ,pkg-config)
  422. ("texinfo" ,texinfo)))
  423. (inputs `(("guile" ,guile-2.2)))
  424. (propagated-inputs `(("guile-lib" ,guile-lib)))
  425. (arguments
  426. '(#:phases (modify-phases %standard-phases
  427. (add-before 'configure 'set-guilesitedir
  428. (lambda _
  429. (substitute* "Makefile.in"
  430. (("^guilesitedir =.*$")
  431. "guilesitedir = \
  432. $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
  433. (substitute* "modules/Makefile.in"
  434. (("^guilesitedir =.*$")
  435. "guilesitedir = \
  436. $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
  437. (substitute* "modules/dsv/Makefile.in"
  438. (("^guilesitedir =.*$")
  439. "guilesitedir = \
  440. $(datadir)/guile/site/$(GUILE_EFFECTIVE_VERSION)\n"))
  441. #t)))))
  442. (home-page "https://github.com/artyom-poptsov/guile-dsv")
  443. (synopsis "DSV module for Guile")
  444. (description
  445. "Guile-DSV is a GNU Guile module for working with the
  446. delimiter-separated values (DSV) data format. Guile-DSV supports the
  447. Unix-style DSV format and RFC 4180 format.")
  448. (license license:gpl3+)))
  449. (define-public guile-fibers
  450. (package
  451. (name "guile-fibers")
  452. (version "1.0.0")
  453. (source (origin
  454. (method url-fetch)
  455. (uri (string-append "https://wingolog.org/pub/fibers/fibers-"
  456. version ".tar.gz"))
  457. (sha256
  458. (base32
  459. "0vjkg72ghgdgphzbjz9ig8al8271rq8974viknb2r1rg4lz92ld0"))))
  460. (build-system gnu-build-system)
  461. (arguments
  462. '(#:phases (modify-phases %standard-phases
  463. (add-after 'install 'mode-guile-objects
  464. (lambda* (#:key outputs #:allow-other-keys)
  465. ;; .go files are installed to "lib/guile/X.Y/cache".
  466. ;; This phase moves them to "…/site-ccache".
  467. (let* ((out (assoc-ref outputs "out"))
  468. (lib (string-append out "/lib/guile"))
  469. (old (car (find-files lib "^ccache$"
  470. #:directories? #t)))
  471. (new (string-append (dirname old)
  472. "/site-ccache")))
  473. (rename-file old new)
  474. #t))))))
  475. (native-inputs
  476. `(("texinfo" ,texinfo)
  477. ("pkg-config" ,pkg-config)))
  478. (inputs
  479. `(("guile" ,guile-2.2)))
  480. (synopsis "Lightweight concurrency facility for Guile")
  481. (description
  482. "Fibers is a Guile library that implements a a lightweight concurrency
  483. facility, inspired by systems like Concurrent ML, Go, and Erlang. A fiber is
  484. like a \"goroutine\" from the Go language: a lightweight thread-like
  485. abstraction. Systems built with Fibers can scale up to millions of concurrent
  486. fibers, tens of thousands of concurrent socket connections, and many parallel
  487. cores. The Fibers library also provides Concurrent ML-like channels for
  488. communication between fibers.
  489. Note that Fibers makes use of some Guile 2.1/2.2-specific features and
  490. is not available for Guile 2.0.")
  491. (home-page "https://github.com/wingo/fibers")
  492. (license license:lgpl3+)))
  493. (define-public guile-syntax-highlight
  494. (package
  495. (name "guile-syntax-highlight")
  496. (version "0.1")
  497. (source (origin
  498. (method url-fetch)
  499. (uri (string-append "https://files.dthompson.us/"
  500. "guile-syntax-highlight/"
  501. "guile-syntax-highlight-"
  502. version ".tar.gz"))
  503. (sha256
  504. (base32
  505. "1p771kq15x83483m23bhah1sz6vkalg3drm7x279f4j1cxligkzi"))))
  506. (build-system gnu-build-system)
  507. (native-inputs
  508. `(("pkg-config" ,pkg-config)))
  509. (inputs
  510. `(("guile" ,guile-2.2)))
  511. (synopsis "General-purpose syntax highlighter for GNU Guile")
  512. (description "Guile-syntax-highlight is a general-purpose syntax
  513. highlighting library for GNU Guile. It can parse code written in various
  514. programming languages into a simple s-expression that can be converted to
  515. HTML (via SXML) or any other format for rendering.")
  516. (home-page "http://dthompson.us/projects/guile-syntax-highlight.html")
  517. (license license:lgpl3+)))
  518. (define-public guile-sjson
  519. (package
  520. (name "guile-sjson")
  521. (version "0.2.1")
  522. (source (origin
  523. (method url-fetch)
  524. (uri (string-append "https://dustycloud.org/misc/sjson-" version
  525. ".tar.gz"))
  526. (sha256
  527. (base32
  528. "1mzmapln79vv10qxaggz9qwcdbag3jnrj19xx8bgkmxss8h03sv3"))))
  529. (build-system gnu-build-system)
  530. (native-inputs
  531. `(("autoconf" ,autoconf)
  532. ("automake" ,automake)
  533. ("pkg-config" ,pkg-config)))
  534. (inputs
  535. `(("guile" ,guile-2.2)))
  536. (home-page "https://gitlab.com/dustyweb/guile-sjson")
  537. (synopsis "S-expression based json reader/writer for Guile")
  538. (description "guile-sjson is a json reader/writer for Guile.
  539. It has a nice, simple s-expression based syntax.")
  540. (license license:lgpl3+)))
  541. (define-public guile-squee
  542. (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d")
  543. (revision "0"))
  544. (package
  545. (name "guile-squee")
  546. (version (string-append "0-" revision "." (string-take commit 7)))
  547. (source (origin
  548. (method git-fetch)
  549. (uri (git-reference
  550. (url "https://notabug.org/cwebber/guile-squee.git")
  551. (commit commit)))
  552. (file-name (git-file-name name version))
  553. (sha256
  554. (base32
  555. "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z"))))
  556. (build-system guile-build-system)
  557. (arguments
  558. '(#:phases
  559. (modify-phases %standard-phases
  560. (add-after 'unpack 'patch
  561. (lambda* (#:key inputs #:allow-other-keys)
  562. (substitute* "squee.scm"
  563. (("dynamic-link \"libpq\"")
  564. (string-append
  565. "dynamic-link \""
  566. (assoc-ref inputs "postgresql") "/lib/libpq.so"
  567. "\"")))
  568. #t)))))
  569. (inputs
  570. `(("postgresql" ,postgresql)))
  571. (native-inputs
  572. `(("guile" ,guile-2.2)))
  573. (home-page "https://notabug.org/cwebber/guile-squee")
  574. (synopsis "Connect to PostgreSQL using Guile")
  575. (description
  576. "@code{squee} is a Guile library for connecting to PostgreSQL databases
  577. using Guile's foreign function interface.")
  578. (license license:lgpl3+))))
  579. (define-public guile-colorized
  580. (package
  581. (name "guile-colorized")
  582. (version "0.1")
  583. (source (origin
  584. (method url-fetch)
  585. (uri (string-append "https://github.com/NalaGinrut/guile-colorized/"
  586. "archive/v" version ".tar.gz"))
  587. (file-name (string-append name "-" version ".tar.gz"))
  588. (sha256
  589. (base32
  590. "16xhc3an6aglnca8xl3mvgi8hsqzqn68vsl5ga4bz8bvbap5fn4p"))))
  591. (build-system guile-build-system)
  592. (native-inputs
  593. `(("guile" ,guile-2.2)))
  594. (home-page "https://github.com/NalaGinrut/guile-colorized")
  595. (synopsis "Colorized REPL for Guile")
  596. (description
  597. "Guile-colorized provides you with a colorized REPL for GNU Guile.")
  598. (license license:gpl3+)))
  599. (define-public guile-pfds
  600. (package
  601. (name "guile-pfds")
  602. (version "0.3")
  603. (home-page "https://github.com/ijp/pfds")
  604. (source (origin
  605. (method git-fetch)
  606. (uri (git-reference
  607. (url home-page)
  608. (commit (string-append "v" version))))
  609. (sha256
  610. (base32
  611. "19y33wg94pf0n98dkfqd1zbw93fgky4sawxsxl6s3vyqwl0yi5vh"))
  612. (file-name (string-append name "-" version "-checkout"))))
  613. (build-system guile-build-system)
  614. (arguments
  615. '(#:source-directory "src"
  616. #:phases (modify-phases %standard-phases
  617. (add-after 'unpack 'move-files-around
  618. (lambda _
  619. ;; Move files under a pfds/ directory to reflect the
  620. ;; module hierarchy.
  621. (mkdir-p "src/pfds")
  622. (for-each (lambda (file)
  623. (rename-file file
  624. (string-append "src/pfds/"
  625. file)))
  626. '("bbtrees.sls"
  627. "deques"
  628. "deques.sls"
  629. "dlists.sls"
  630. "fingertrees.sls"
  631. "hamts.sls"
  632. "heaps.sls"
  633. "private"
  634. "psqs.sls"
  635. "queues"
  636. "queues.sls"
  637. "sequences.sls"
  638. "sets.sls"))
  639. ;; In Guile <= 2.2.4, there's no way to tell 'guild
  640. ;; compile' to accept the ".sls" extension. So...
  641. (for-each (lambda (file)
  642. (rename-file file
  643. (string-append
  644. (string-drop-right file 4)
  645. ".scm")))
  646. (find-files "." "\\.sls$"))
  647. #t)))))
  648. (native-inputs
  649. `(("guile" ,guile-2.2)))
  650. (synopsis "Purely functional data structures for Guile")
  651. (description
  652. "This package provides purely functional data structures written in R6RS
  653. Scheme and compiled for Guile. It has been tested with Racket, Guile 2,
  654. Vicare Scheme and IronScheme. Right now it contains:
  655. @itemize
  656. @item queues
  657. @item deques
  658. @item bbtrees
  659. @item sets
  660. @item dlists
  661. @item priority search queues (PSQs)
  662. @item finger trees
  663. @item sequences
  664. @item heaps
  665. @item hash array mapped tries (HAMTs).
  666. @end itemize\n")
  667. (license license:bsd-3)))
  668. (define-public guile-aa-tree
  669. (package
  670. (name "guile-aa-tree")
  671. (version "3.1.1")
  672. (source (origin
  673. (method url-fetch)
  674. (uri (string-append "mirror://savannah/guile-aa-tree/guile-aa-tree-"
  675. version ".tar.gz"))
  676. (sha256
  677. (base32
  678. "0044c105r3q9vpl17pv3phl1b79kjm1llhkakqgiasixyav01blh"))))
  679. (build-system guile-build-system)
  680. (native-inputs `(("guile" ,guile-2.2)))
  681. ;; https://savannah.nongnu.org/projects/guile-aa-tree
  682. (home-page "https://qlfiles.net/guile-aa-tree/")
  683. (synopsis "AA tree data structure for Guile")
  684. (description
  685. "This package provides an implementation of @dfn{AA trees}, a
  686. self-balancing binary tree data structure, for Guile. It ensure @math{O(log
  687. n)} worst case performance for core operations. The module provides
  688. non-mutating insert, delete, and search operations, with support for
  689. convenient nested tree operations.")
  690. (license license:gpl3+)))
  691. (define-public guile-simple-zmq
  692. (let ((commit "68bedb6679716214fb9d3472da57544526f7a618")
  693. (revision "3"))
  694. (package
  695. (name "guile-simple-zmq")
  696. (version (git-version "0.0.0" revision commit))
  697. (source
  698. (origin
  699. (method git-fetch)
  700. (uri (git-reference
  701. (url "https://github.com/jerry40/guile-simple-zmq")
  702. (commit commit)))
  703. (sha256
  704. (base32
  705. "1ad3xg69qqviy1f6dnlw0ysmfdbmp1jq65rfqb8nfd8dsrq2syli"))
  706. (file-name (git-file-name name version))))
  707. (build-system guile-build-system)
  708. (arguments
  709. `(#:source-directory "src"
  710. #:phases (modify-phases %standard-phases
  711. (add-after 'unpack 'set-libzmq-file-name
  712. (lambda* (#:key inputs #:allow-other-keys)
  713. (substitute* "src/simple-zmq.scm"
  714. (("\\(dynamic-link \"libzmq\"\\)")
  715. (format #f "(dynamic-link \"~a/lib/libzmq.so\")"
  716. (assoc-ref inputs "zeromq"))))
  717. #t)))))
  718. (native-inputs
  719. `(("guile" ,guile-2.2)))
  720. (inputs
  721. `(("zeromq" ,zeromq)))
  722. (home-page "https://github.com/jerry40/guile-simple-zmq")
  723. (synopsis "Guile wrapper over ZeroMQ library")
  724. (description
  725. "This package provides a Guile programming interface to the ZeroMQ
  726. messaging library.")
  727. (license license:gpl3+))))
  728. (define-public jupyter-guile-kernel
  729. (let ((commit "a7db9245a886e104138474df46c3e88b95cff629")
  730. (revision "1"))
  731. (package
  732. (name "jupyter-guile-kernel")
  733. (version (git-version "0.0.0" revision commit))
  734. (source
  735. (origin
  736. (method git-fetch)
  737. (uri (git-reference
  738. (url "https://github.com/jerry40/guile-kernel")
  739. (commit commit)))
  740. (sha256
  741. (base32
  742. "0aj04853bqm47ivfcmrgpb7w3wkis847kc7qrwsa5zcn9h38qh2f"))))
  743. (build-system guile-build-system)
  744. (arguments
  745. '(#:phases (modify-phases %standard-phases
  746. (add-after 'unpack 'set-openssl-file-name
  747. (lambda* (#:key inputs #:allow-other-keys)
  748. ;; Record the absolute file name of the 'openssl'
  749. ;; command.
  750. (substitute* "src/hmac.scm"
  751. (("openssl")
  752. (string-append (assoc-ref inputs "openssl")
  753. "/bin/openssl")))
  754. #t))
  755. ;; XXX: The code uses 'include' to include its own source
  756. ;; files, and "-L src" isn't enough in this case.
  757. (add-before 'build 'chdir
  758. (lambda _ (chdir "src") #t))
  759. (add-after 'build 'chdir-back
  760. (lambda _ (chdir "..") #t))
  761. (add-after 'install 'install-kernel
  762. (lambda* (#:key inputs outputs #:allow-other-keys)
  763. (let* ((out (assoc-ref outputs "out"))
  764. (json (assoc-ref inputs "guile-json"))
  765. (zmq (assoc-ref inputs "guile-simple-zmq"))
  766. (deps (list json zmq))
  767. (dir (string-append
  768. out "/share/jupyter/kernels/guile"))
  769. (effective (target-guile-effective-version)))
  770. ;; Install kernel.
  771. (install-file "src/kernel.json" dir)
  772. ;; Fix hard-coded file name in the kernel.
  773. (substitute* (string-append dir "/kernel.json")
  774. (("/home/.*/guile-jupyter-kernel.scm")
  775. (string-append out "/share/guile/site/"
  776. (target-guile-effective-version)
  777. "/guile-jupyter-kernel.scm"))
  778. (("\"guile\"")
  779. (string-append "\"" (assoc-ref inputs "guile")
  780. "/bin/guile\""))
  781. (("-s")
  782. ;; Add '-L' and '-C' flags so that the kernel
  783. ;; finds its dependencies.
  784. (let ((-L (map (lambda (item)
  785. (string-append "\"" item
  786. "/share/guile/site/"
  787. effective "\""))
  788. deps))
  789. (-C (map (lambda (item)
  790. (string-append "\"" item
  791. "/lib/guile/"
  792. effective
  793. "/site-ccache\""))
  794. deps)))
  795. (string-append "--no-auto-compile\""
  796. (string-join -L ", \"-L\", "
  797. 'prefix)
  798. (string-join -C ", \"-C\", "
  799. 'prefix)
  800. ", \"-s"))))
  801. #t))))))
  802. (inputs
  803. `(("openssl" ,openssl)
  804. ("guile" ,guile-2.2)
  805. ("guile-json" ,guile-json)
  806. ("guile-simple-zmq" ,guile-simple-zmq)))
  807. (synopsis "Guile kernel for the Jupyter Notebook")
  808. (description
  809. "This package provides a Guile 2.x kernel for the Jupyter Notebook. It
  810. allows users to interact with the Guile REPL through Jupyter.")
  811. (home-page "https://github.com/jerry40/guile-kernel")
  812. (license license:gpl3+))))
  813. (define-public guile-sparql
  814. (package
  815. (name "guile-sparql")
  816. (version "0.0.7")
  817. (source (origin
  818. (method url-fetch)
  819. (uri (string-append
  820. "https://github.com/roelj/guile-sparql/releases/download/"
  821. version "/guile-sparql-" version ".tar.gz"))
  822. (sha256
  823. (base32 "1drnvhsgl0gc5crmb16yyw1j98nkhwwcgssv9vgm36ng43nnzffd"))))
  824. (build-system gnu-build-system)
  825. (arguments `(#:tests? #f)) ; There are no tests.
  826. (native-inputs
  827. `(("pkg-config" ,pkg-config)))
  828. (inputs
  829. `(("guile" ,guile-2.2)))
  830. (home-page "https://github.com/roelj/guile-sparql")
  831. (synopsis "SPARQL module for Guile")
  832. (description "This package provides the functionality to query a SPARQL
  833. endpoint. Additionally, it provides an interface to write SPARQL queries
  834. using S-expressions.")
  835. (license license:gpl3+)))
  836. (define-public guile-debbugs
  837. (package
  838. (name "guile-debbugs")
  839. (version "0.0.2")
  840. (source (origin
  841. (method url-fetch)
  842. (uri (string-append "mirror://gnu/guile-debbugs/guile-debbugs-"
  843. version ".tar.gz"))
  844. (sha256
  845. (base32
  846. "16l8910p57im6s3j93xhdaqvgfy6ms5n97177mrch3y961z5hy0i"))
  847. (modules '((guix build utils)))
  848. (snippet
  849. '(substitute* "Makefile.in"
  850. (("^godir = (.*)/ccache" _ prefix)
  851. (string-append "godir = " prefix "/site-ccache"))))))
  852. (build-system gnu-build-system)
  853. (native-inputs
  854. `(("guile" ,guile-2.2)
  855. ("pkg-config" ,pkg-config)))
  856. (home-page "https://savannah.gnu.org/projects/guile-debbugs/")
  857. (synopsis "Guile interface to the Debbugs bug tracking service")
  858. (description
  859. "This package provides a Guile library to communicate with a Debbugs bug
  860. tracker's SOAP service, such as @url{https://bugs.gnu.org}.")
  861. (license license:gpl3+)))
  862. (define-public guile-email
  863. (let ((commit "fa52eac55e5946db89621a6c583d2aa357864dee")
  864. (revision "1"))
  865. (package
  866. (name "guile-email")
  867. (version (git-version "0.1.0" revision commit))
  868. (source
  869. (origin
  870. (method git-fetch)
  871. (uri (git-reference
  872. (url "https://git.systemreboot.net/guile-email")
  873. (commit commit)))
  874. (file-name (git-file-name name version))
  875. (sha256
  876. (base32
  877. "1037mbz7qd9bzaqp8ysyhnl9ipd97fmj3b9jr8qfzx9179vvsj63"))))
  878. (build-system gnu-build-system)
  879. (native-inputs
  880. `(("pkg-config" ,pkg-config)
  881. ("autoconf" ,autoconf)
  882. ("automake" ,automake)))
  883. (inputs
  884. `(("guile" ,guile-2.2)))
  885. (home-page "https://git.systemreboot.net/guile-email")
  886. (synopsis "Guile email parser")
  887. (description "This package provides an email parser written in pure
  888. Guile.")
  889. (license license:agpl3+))))
  890. (define-public guile-debbugs-next
  891. (let ((commit "75a331d561c8b6f8efcf16216dab961c17759efe")
  892. (revision "1"))
  893. (package (inherit guile-debbugs)
  894. (name "guile-debbugs")
  895. (version (git-version "0.0.3" revision commit))
  896. (source (origin
  897. (method git-fetch)
  898. (uri (git-reference
  899. (url "https://git.savannah.gnu.org/git/guile-debbugs.git")
  900. (commit commit)))
  901. (file-name (git-file-name name version))
  902. (sha256
  903. (base32
  904. "0br3mgbw41bpc9x57jlghl0i8dz9nl63r4wzs5l47aqszf84870y"))))
  905. (build-system gnu-build-system)
  906. (native-inputs
  907. `(("pkg-config" ,pkg-config)
  908. ("autoconf" ,autoconf)
  909. ("automake" ,automake)
  910. ("texinfo" ,texinfo)))
  911. (inputs
  912. `(("guile" ,guile-2.2)
  913. ("guile-email" ,guile-email))))))
  914. ;; There has not been any release yet.
  915. (define-public guile-newt
  916. (let ((commit "80c1e9e71945f833386d1632b52573e59325804f")
  917. (revision "4"))
  918. (package
  919. (name "guile-newt")
  920. (version (string-append "0-" revision "." (string-take commit 9)))
  921. (source (origin
  922. (method git-fetch)
  923. (uri (git-reference
  924. (url "https://gitlab.com/mothacehe/guile-newt")
  925. (commit commit)))
  926. (file-name (string-append name "-" version "-checkout"))
  927. (sha256
  928. (base32
  929. "1w7qy4dw1f4bx622l6hw8mv49sf1ha8kch8j4nganyk8fj0wn695"))))
  930. (build-system gnu-build-system)
  931. (arguments
  932. '(#:make-flags
  933. '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
  934. (inputs
  935. `(("guile" ,guile-2.2)
  936. ("newt" ,newt)))
  937. (native-inputs
  938. `(("autoconf" ,autoconf)
  939. ("automake" ,automake)
  940. ("pkg-config" ,pkg-config)))
  941. (synopsis "Guile bindings to Newt")
  942. (description
  943. "This package provides bindings for Newt, a programming library for
  944. color text mode, widget based user interfaces. The bindings are written in pure
  945. Scheme by using Guile’s foreign function interface.")
  946. (home-page "https://gitlab.com/mothacehe/guile-newt")
  947. (license license:gpl3+))))
  948. (define-public guile-mastodon
  949. (package
  950. (name "guile-mastodon")
  951. (version "0.0.1")
  952. (source (origin
  953. (method git-fetch)
  954. (uri (git-reference
  955. (url "https://framagit.org/prouby/guile-mastodon.git")
  956. (commit (string-append "v" version))))
  957. (file-name (git-file-name name version))
  958. (sha256
  959. (base32
  960. "1vblf3d1bbwna3l09p2ap5y8ycvl549bz6whgk78imyfmn28ygry"))))
  961. (build-system gnu-build-system)
  962. (native-inputs
  963. `(("autoconf" ,autoconf)
  964. ("automake" ,automake)
  965. ("pkg-config" ,pkg-config)))
  966. (inputs
  967. `(("guile" ,guile-2.2)
  968. ("gnutls" ,gnutls)
  969. ("guile-json" ,guile-json)))
  970. (home-page "https://framagit.org/prouby/guile-mastodon")
  971. (synopsis "Guile Mastodon REST API module")
  972. (description "This package provides Guile modules to access the
  973. @uref{https://docs.joinmastodon.org/api/, REST API of Mastodon}, a federated
  974. microblogging service.")
  975. (license license:gpl3+)))
  976. ;; There has not been any release yet.
  977. (define-public guile-parted
  978. (let ((commit "ea3f1a1f6844775fc59d3078d2a09c62ffb341b8")
  979. (revision "0"))
  980. (package
  981. (name "guile-parted")
  982. (version (string-append "0-" revision "." (string-take commit 9)))
  983. (source (origin
  984. (method git-fetch)
  985. (uri (git-reference
  986. (url "https://gitlab.com/mothacehe/guile-parted")
  987. (commit commit)))
  988. (file-name (string-append name "-" version "-checkout"))
  989. (sha256
  990. (base32
  991. "1q7425gpjlwi2wvhzq7kw046yyx7v6j6jyzkd1cr861iz34mjwiq"))))
  992. (build-system gnu-build-system)
  993. (arguments
  994. '(#:make-flags
  995. '("GUILE_AUTO_COMPILE=0"))) ;to prevent guild warnings
  996. (inputs
  997. `(("guile" ,guile-2.2)
  998. ("parted" ,parted)))
  999. (propagated-inputs
  1000. `(("guile-bytestructures" ,guile-bytestructures)))
  1001. (native-inputs
  1002. `(("autoconf" ,autoconf)
  1003. ("automake" ,automake)
  1004. ("pkg-config" ,pkg-config)))
  1005. (synopsis "Guile bindings to GNU Parted")
  1006. (description
  1007. "This package provides bindings for GNU Parted library, a C library
  1008. allowing disk partition tables creation and manipulation. The bindings are
  1009. written in pure Scheme by using Guile's foreign function interface.")
  1010. (home-page "https://gitlab.com/mothacehe/guile-parted")
  1011. (license license:gpl3+))))
  1012. (define-public guile-xosd
  1013. (package
  1014. (name "guile-xosd")
  1015. (version "0.2.1")
  1016. (source (origin
  1017. (method url-fetch)
  1018. (uri (string-append "https://github.com/alezost/" name
  1019. "/releases/download/v" version
  1020. "/" name "-" version ".tar.gz"))
  1021. (sha256
  1022. (base32
  1023. "1ri5065c16kmgrf2pysn2ymxjqi5302lhpb07wkl1jr75ym8fn8p"))))
  1024. (build-system gnu-build-system)
  1025. (native-inputs
  1026. `(("pkg-config" ,pkg-config)))
  1027. (inputs
  1028. `(("guile" ,guile-2.2)
  1029. ("libx11" ,libx11)
  1030. ("libxext" ,libxext)
  1031. ("libxinerama" ,libxinerama)
  1032. ("xosd" ,xosd)))
  1033. (home-page "https://github.com/alezost/guile-xosd")
  1034. (synopsis "XOSD bindings for Guile")
  1035. (description
  1036. "Guile-XOSD provides Guile bindings for @code{libxosd},
  1037. @uref{http://sourceforge.net/projects/libxosd/, the X On Screen Display
  1038. library}.")
  1039. (license license:gpl3+)))
  1040. (define-public guile-dbi
  1041. (package
  1042. (name "guile-dbi")
  1043. (version "2.1.6")
  1044. (source (origin
  1045. (method url-fetch)
  1046. (uri (string-append
  1047. "http://download.gna.org/guile-dbi/guile-dbi-"
  1048. version ".tar.gz"))
  1049. (sha256
  1050. (base32
  1051. "116njrprhgrsv1qm904sp3b02rq01fx639r433d657gyhw3x159n"))))
  1052. (build-system gnu-build-system)
  1053. (arguments
  1054. '(#:configure-flags
  1055. (list (string-append
  1056. "--with-guile-site-dir=" %output "/share/guile/site/2.2"))
  1057. #:make-flags
  1058. (list (string-append
  1059. "LDFLAGS=-Wl,-rpath=" %output "/lib:"
  1060. (assoc-ref %build-inputs "guile-dbd-sqlite3") "/lib" ":"
  1061. (assoc-ref %build-inputs "guile-dbd-postgresql") "/lib"))
  1062. #:phases
  1063. (modify-phases %standard-phases
  1064. (add-after 'install 'patch-extension-path
  1065. (lambda* (#:key outputs #:allow-other-keys)
  1066. (let* ((out (assoc-ref outputs "out"))
  1067. (dbi.scm (string-append
  1068. out "/share/guile/site/2.2/dbi/dbi.scm"))
  1069. (ext (string-append out "/lib/libguile-dbi")))
  1070. (substitute* dbi.scm (("libguile-dbi") ext))
  1071. #t))))))
  1072. (inputs
  1073. `(("guile-dbd-sqlite3" ,guile-dbd-sqlite3)
  1074. ("guile-dbd-postgresql" ,guile-dbd-postgresql))) ; only shared library, no scheme files
  1075. (propagated-inputs
  1076. `(("guile" ,guile-2.2)))
  1077. (synopsis "Guile database abstraction layer")
  1078. (home-page "http://home.gna.org/guile-dbi/guile-dbi.html")
  1079. (description
  1080. "guile-dbi is a library for Guile that provides a convenient interface to
  1081. SQL databases. Database programming with guile-dbi is generic in that the same
  1082. programming interface is presented regardless of which database system is used.
  1083. It currently supports MySQL, Postgres and SQLite3.")
  1084. (license license:gpl2+)))
  1085. (define guile-dbi-bootstrap
  1086. (package
  1087. (inherit guile-dbi)
  1088. (name "guile-dbi-bootstrap")
  1089. (inputs '())
  1090. (arguments
  1091. (substitute-keyword-arguments (package-arguments guile-dbi)
  1092. ((#:make-flags _) '(list))))))
  1093. (define-public guile-dbd-sqlite3
  1094. (package
  1095. (name "guile-dbd-sqlite3")
  1096. (version "2.1.6")
  1097. (source (origin
  1098. (method url-fetch)
  1099. (uri (string-append
  1100. "http://download.gna.org/guile-dbi/guile-dbd-sqlite3-"
  1101. version ".tar.gz"))
  1102. (sha256
  1103. (base32
  1104. "0rg71jchxd2y8x496s8zmfmikr5g8zxi8zv2ar3f7a23pph92iw2"))))
  1105. (build-system gnu-build-system)
  1106. (native-inputs
  1107. `(("pkg-config" ,pkg-config)
  1108. ("guile-dbi-bootstrap" ,guile-dbi-bootstrap))) ; only required for headers
  1109. (inputs
  1110. `(("sqlite" ,sqlite)
  1111. ("zlib" ,(@ (gnu packages compression) zlib))))
  1112. (synopsis "Guile DBI driver for SQLite")
  1113. (home-page "https://github.com/jkalbhenn/guile-dbd-sqlite3")
  1114. (description
  1115. "guile-dbi is a library for Guile that provides a convenient interface to
  1116. SQL databases. This package implements the interface for SQLite.")
  1117. (license license:gpl2+)))
  1118. (define-public guile-dbd-postgresql
  1119. (let ((commit "e97589b6b018b206c901e4cc24db463407a4036b")
  1120. (revision 0))
  1121. (package
  1122. (name "guile-dbd-postgresql")
  1123. (version (string-append
  1124. "2.1.6-" (number->string revision) "." (string-take commit 7)))
  1125. (source
  1126. (origin
  1127. (method git-fetch)
  1128. (uri (git-reference
  1129. (url "https://github.com/opencog/guile-dbi.git")
  1130. (commit commit)))
  1131. (file-name (git-file-name name version))
  1132. (sha256
  1133. (base32 "0n1gv9a0kdys10a4qmnrwvg5sydwb03880asri4gqdchcj3fimni"))))
  1134. (build-system gnu-build-system)
  1135. (arguments
  1136. '(#:phases
  1137. (modify-phases %standard-phases
  1138. (add-after 'unpack 'chdir
  1139. (lambda _
  1140. ;; The upstream Git repository contains all the code, so change
  1141. ;; to the relevant directory.
  1142. (chdir "guile-dbd-postgresql")
  1143. #t))
  1144. (add-after 'chdir 'patch-src/Makefile.am
  1145. (lambda* (#:key inputs #:allow-other-keys)
  1146. (substitute* "src/Makefile.am"
  1147. (("/usr/include")
  1148. (string-append (assoc-ref inputs "postgresql") "/include")))
  1149. #t))
  1150. (add-after 'patch-src/Makefile.am 'patch-src
  1151. (lambda _
  1152. (substitute* "src/guile-dbd-postgresql.c"
  1153. (("postgresql/libpq-fe\\.h") "libpq-fe.h"))
  1154. #t)))))
  1155. (native-inputs
  1156. `(("pkg-config" ,pkg-config)
  1157. ("automake" ,automake)
  1158. ("autoconf" ,autoconf)
  1159. ("perl" ,perl)
  1160. ("libtool" ,libtool)
  1161. ("guile-dbi-bootstrap" ,guile-dbi-bootstrap)))
  1162. (inputs
  1163. `(("postgresql" ,postgresql)
  1164. ("zlib" ,zlib)))
  1165. (synopsis "Guile DBI driver for PostgreSQL")
  1166. (home-page
  1167. "https://github.com/opencog/guile-dbi/tree/master/guile-dbd-postgresql")
  1168. (description
  1169. "@code{guile-dbi} is a library for Guile that provides a convenient
  1170. interface to SQL databases. This package implements the interface for
  1171. PostgreSQL.")
  1172. (license license:gpl2+))))
  1173. (define-public guile-config
  1174. (package
  1175. (name "guile-config")
  1176. (version "0.3")
  1177. (source
  1178. (origin
  1179. (method git-fetch)
  1180. (uri (git-reference
  1181. (url "https://gitlab.com/a-sassmannshausen/guile-config")
  1182. (commit "ce12de3f438c6b2b59c43ee21bcd58251835fdf3")))
  1183. (file-name "guile-config-0.3-checkout")
  1184. (sha256 (base32 "02zbpin0r9m2vxmr7mv68v3xdn247dcck56kbzjn0gj4c2rhih85"))))
  1185. (build-system gnu-build-system)
  1186. (native-inputs
  1187. `(("autoconf" ,autoconf)
  1188. ("automake" ,automake)
  1189. ("pkg-config" ,pkg-config)
  1190. ("texinfo" ,texinfo)))
  1191. (inputs `(("guile" ,guile-2.2)))
  1192. (synopsis
  1193. "Guile application configuration parsing library.")
  1194. (description
  1195. "Guile Config is a library providing a declarative approach to
  1196. application configuration specification. The library provides clean
  1197. configuration declaration forms, and processors that take care of:
  1198. configuration file creation; configuration file parsing; command-line
  1199. parameter parsing using getopt-long; basic GNU command-line parameter
  1200. generation (--help, --usage, --version); automatic output generation for the
  1201. above command-line parameters.")
  1202. (home-page
  1203. "https://gitlab.com/a-sassmannshausen/guile-config")
  1204. (license license:gpl3+)))
  1205. (define-public guile-hall
  1206. (package
  1207. (name "guile-hall")
  1208. (version "0.2")
  1209. (source
  1210. (origin
  1211. (method git-fetch)
  1212. (uri (git-reference
  1213. (url "https://gitlab.com/a-sassmannshausen/guile-hall")
  1214. (commit (string-append "v" version))))
  1215. (file-name (git-file-name name version))
  1216. (sha256 (base32
  1217. "1bkbqgj24xh5b65sw2m98iggpi67b72szx1dsiq3cpzlcxplmgaz"))))
  1218. (build-system gnu-build-system)
  1219. (arguments
  1220. `(#:modules
  1221. ((ice-9 match)
  1222. (ice-9 ftw)
  1223. ,@%gnu-build-system-modules)
  1224. #:phases
  1225. (modify-phases
  1226. %standard-phases
  1227. (add-after 'install 'hall-wrap-binaries
  1228. (lambda* (#:key inputs outputs #:allow-other-keys)
  1229. (let* ((compiled-dir
  1230. (lambda (out version)
  1231. (string-append
  1232. out "/lib/guile/" version "/site-ccache")))
  1233. (uncompiled-dir
  1234. (lambda (out version)
  1235. (string-append
  1236. out "/share/guile/site"
  1237. (if (string-null? version) "" "/") version)))
  1238. (dep-path
  1239. (lambda (env modules path)
  1240. (list env ":" 'prefix
  1241. (cons modules
  1242. (map (lambda (input)
  1243. (string-append
  1244. (assoc-ref inputs input)
  1245. path))
  1246. ,''("guile-config"))))))
  1247. (out (assoc-ref outputs "out"))
  1248. (bin (string-append out "/bin/"))
  1249. (site (uncompiled-dir out "")))
  1250. (match (scandir site)
  1251. (("." ".." version)
  1252. (for-each
  1253. (lambda (file)
  1254. (wrap-program
  1255. (string-append bin file)
  1256. (dep-path
  1257. "GUILE_LOAD_PATH"
  1258. (uncompiled-dir out version)
  1259. (uncompiled-dir "" version))
  1260. (dep-path
  1261. "GUILE_LOAD_COMPILED_PATH"
  1262. (compiled-dir out version)
  1263. (compiled-dir "" version))))
  1264. ,''("hall"))
  1265. #t))))))))
  1266. (native-inputs
  1267. `(("autoconf" ,autoconf)
  1268. ("automake" ,automake)
  1269. ("pkg-config" ,pkg-config)
  1270. ("texinfo" ,texinfo)))
  1271. (inputs `(("guile" ,guile-2.2)))
  1272. (propagated-inputs
  1273. `(("guile-config" ,guile-config)))
  1274. (synopsis "Guile project tooling")
  1275. (description
  1276. "Hall is a command-line application and a set of Guile libraries that
  1277. allow you to quickly create and publish Guile projects. It allows you to
  1278. transparently support the GNU build system, manage a project hierarchy &
  1279. provides tight coupling to Guix.")
  1280. (home-page "https://gitlab.com/a-sassmannshausen/guile-hall")
  1281. (license license:gpl3+)))
  1282. (define-public guile-ics
  1283. (package
  1284. (name "guile-ics")
  1285. (version "0.2.0")
  1286. (source (origin
  1287. (method git-fetch)
  1288. (uri (git-reference
  1289. (url "https://github.com/artyom-poptsov/guile-ics")
  1290. (commit (string-append "v" version))))
  1291. (file-name (string-append name "-" version "-checkout"))
  1292. (sha256
  1293. (base32
  1294. "0qjjvadr7gibdq9jvwkmlkb4afsw9n2shfj9phpiadinxk3p4m2g"))))
  1295. (build-system gnu-build-system)
  1296. (native-inputs
  1297. `(("autoconf" ,autoconf-wrapper)
  1298. ("automake" ,automake)
  1299. ("texinfo" ,texinfo)
  1300. ;; Gettext brings 'AC_LIB_LINKFLAGS_FROM_LIBS'.
  1301. ("gettext" ,gettext-minimal)
  1302. ("pkg-config" ,pkg-config)))
  1303. (inputs `(("guile" ,guile-2.2) ("which" ,which)))
  1304. (propagated-inputs `(("guile-lib" ,guile-lib)))
  1305. (home-page "https://github.com/artyom-poptsov/guile-ics")
  1306. (synopsis "Guile parser library for the iCalendar format")
  1307. (description
  1308. "Guile-ICS is an iCalendar (RFC5545) format parser library written in
  1309. pure Scheme. The library can be used to read and write iCalendar data.
  1310. The library is shipped with documentation in Info format and usage examples.")
  1311. (license license:gpl3+)))
  1312. (define-public guile-wisp
  1313. (package
  1314. (name "guile-wisp")
  1315. (version "0.9.9.1")
  1316. (source (origin
  1317. (method url-fetch)
  1318. (uri (string-append "https://bitbucket.org/ArneBab/"
  1319. "wisp/downloads/wisp-"
  1320. version ".tar.gz"))
  1321. (sha256
  1322. (base32
  1323. "1ii14qz1lx7ffhb8i9q7dgaiwbif8g2q182skx17j11skp65c8r3"))))
  1324. (build-system gnu-build-system)
  1325. (arguments
  1326. `(#:modules ((guix build gnu-build-system)
  1327. ((guix build emacs-build-system) #:prefix emacs:)
  1328. (guix build utils)
  1329. (guix build emacs-utils)
  1330. (ice-9 rdelim)
  1331. (ice-9 popen))
  1332. #:imported-modules (,@%gnu-build-system-modules
  1333. (guix build emacs-build-system)
  1334. (guix build emacs-utils))
  1335. #:phases
  1336. (modify-phases %standard-phases
  1337. (add-before 'configure 'patch-/usr/bin/env
  1338. (lambda _
  1339. (substitute* "Makefile.in"
  1340. (("/usr/bin/env bash") (which "bash"))
  1341. (("\\$\\(GUILE_EFFECTIVE_VERSION\\)/site")
  1342. "site/$(GUILE_EFFECTIVE_VERSION)")) ;use the right order
  1343. #t))
  1344. ;; auto compilation breaks, but if we set HOME to /tmp,
  1345. ;; that works ok
  1346. (add-before 'check 'auto-compile-hacky-workaround
  1347. (lambda _ (setenv "HOME" "/tmp") #t))
  1348. (add-after 'install 'install-go-files
  1349. (lambda* (#:key outputs inputs #:allow-other-keys)
  1350. (let* ((out (assoc-ref outputs "out"))
  1351. (effective (read-line
  1352. (open-pipe* OPEN_READ
  1353. "guile" "-c"
  1354. "(display (effective-version))")))
  1355. (module-dir (string-append out "/share/guile/site/"
  1356. effective))
  1357. (object-dir (string-append out "/lib/guile/" effective
  1358. "/site-ccache"))
  1359. (prefix (string-length module-dir)))
  1360. ;; compile to the destination
  1361. (for-each (lambda (file)
  1362. (let* ((base (string-drop (string-drop-right file 4)
  1363. prefix))
  1364. (go (string-append object-dir base ".go")))
  1365. (invoke "guild" "compile" "-L" module-dir
  1366. file "-o" go)))
  1367. (find-files module-dir "\\.scm$"))
  1368. #t)))
  1369. (add-after 'install 'install-emacs-files
  1370. (assoc-ref emacs:%standard-phases 'install))
  1371. (add-after 'install-emacs-files 'compile-emacs-files
  1372. (assoc-ref emacs:%standard-phases 'build))
  1373. (add-after 'compile-emacs-files 'make-autoloads
  1374. (assoc-ref emacs:%standard-phases 'make-autoloads)))))
  1375. (home-page "https://draketo.de/english/wisp")
  1376. (inputs
  1377. `(("guile" ,guile-2.2)))
  1378. (native-inputs
  1379. `(("emacs" ,emacs-minimal)
  1380. ("python" ,python)
  1381. ("pkg-config" ,pkg-config)))
  1382. (synopsis "Whitespace to lisp syntax for Guile")
  1383. (description "Wisp is a syntax for Guile which provides a Python-like
  1384. whitespace-significant language. It may be easier on the eyes for some
  1385. users and in some situations.")
  1386. (license license:gpl3+)))
  1387. (define-public guile-sly
  1388. (package
  1389. (name "guile-sly")
  1390. (version "0.1")
  1391. (source (origin
  1392. (method url-fetch)
  1393. (uri (string-append "https://files.dthompson.us/sly/sly-"
  1394. version ".tar.gz"))
  1395. (sha256
  1396. (base32
  1397. "1svzlbz2vripmyq2kjh0rig16bsrnbkwbsm558pjln9l65mcl4qq"))
  1398. (modules '((guix build utils)))
  1399. (snippet
  1400. '(begin
  1401. (substitute* "configure"
  1402. (("_guile_required_version=\"2.0.11\"")
  1403. "_guile_required_version=\"2\"")
  1404. (("ac_subst_vars='")
  1405. "ac_subst_vars='GUILE_EFFECTIVE_VERSION\n"))
  1406. (substitute* (find-files "." "Makefile.in")
  1407. (("moddir = .*$")
  1408. (string-append
  1409. "moddir = "
  1410. "$(prefix)/share/guile/site/@GUILE_EFFECTIVE_VERSION@\n"))
  1411. (("godir = .*$")
  1412. (string-append
  1413. "godir = "
  1414. "$(prefix)/lib/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n")))
  1415. #t))))
  1416. (build-system gnu-build-system)
  1417. (arguments
  1418. '(#:configure-flags
  1419. (list (string-append "--with-libfreeimage-prefix="
  1420. (assoc-ref %build-inputs "freeimage"))
  1421. (string-append "--with-libgslcblas-prefix="
  1422. (assoc-ref %build-inputs "gsl")))))
  1423. (native-inputs
  1424. `(("pkg-config" ,pkg-config)))
  1425. (propagated-inputs
  1426. `(("guile-sdl" ,guile-sdl)
  1427. ("guile-opengl" ,guile-opengl)))
  1428. (inputs
  1429. `(("guile" ,guile-2.2)
  1430. ("gsl" ,gsl)
  1431. ("freeimage" ,freeimage)
  1432. ("mesa" ,mesa)))
  1433. (synopsis "2D/3D game engine for GNU Guile")
  1434. (description "Sly is a 2D/3D game engine written in Guile Scheme. Sly
  1435. features a functional reactive programming interface and live coding
  1436. capabilities.")
  1437. (home-page "https://dthompson.us/projects/sly.html")
  1438. (license license:gpl3+)))
  1439. (define-public g-wrap
  1440. (package
  1441. (name "g-wrap")
  1442. (version "1.9.15")
  1443. (source (origin
  1444. (method url-fetch)
  1445. (uri (string-append "mirror://savannah/g-wrap/g-wrap-"
  1446. version ".tar.gz"))
  1447. (sha256
  1448. (base32
  1449. "0ak0bha37dfpj9kmyw1r8fj8nva639aw5xr66wr5gd3l1rqf5xhg"))))
  1450. (build-system gnu-build-system)
  1451. (native-inputs
  1452. `(("pkg-config" ,pkg-config)))
  1453. (propagated-inputs
  1454. `(("guile" ,guile-2.2)
  1455. ("guile-lib" ,guile-lib)))
  1456. (inputs
  1457. `(("libffi" ,libffi)))
  1458. (arguments
  1459. `(#:configure-flags '("--disable-Werror")
  1460. #:phases
  1461. (modify-phases %standard-phases
  1462. (add-before 'configure 'pre-configure
  1463. (lambda* (#:key outputs #:allow-other-keys)
  1464. (let ((out (assoc-ref outputs "out")))
  1465. (substitute* (find-files "." "^Makefile.in$")
  1466. (("guilemoduledir =.*guile/site" all)
  1467. (string-append all "/@GUILE_EFFECTIVE_VERSION@")))
  1468. #t))))))
  1469. (synopsis "Generate C bindings for Guile")
  1470. (description "G-Wrap is a tool and Guile library for generating function
  1471. wrappers for inter-language calls. It currently only supports generating Guile
  1472. wrappers for C functions. Given a definition of the types and prototypes for
  1473. a given C interface, G-Wrap will automatically generate the C code that
  1474. provides access to that interface and its types from the Scheme level.")
  1475. (home-page "https://www.nongnu.org/g-wrap/index.html")
  1476. (license license:lgpl2.1+)))
  1477. (define-public guile-miniadapton
  1478. (let ((commit "1b5749422304567c96ac5367f2221dda9eff5880")
  1479. (revision "1"))
  1480. (package
  1481. (name "guile-miniadapton")
  1482. (version (string-append "0-" revision "." (string-take commit 9)))
  1483. (source (origin
  1484. (method git-fetch)
  1485. (uri (git-reference
  1486. (url "https://github.com/fisherdj/miniAdapton.git")
  1487. (commit commit)))
  1488. (file-name (string-append name "-" version "-checkout"))
  1489. (sha256
  1490. (base32
  1491. "09q51zkw2fypad5xixskfzw2cjhjgs5cswdp3i7cpp651rb3zndh"))))
  1492. (build-system guile-build-system)
  1493. (native-inputs
  1494. `(("guile" ,guile-2.2)))
  1495. (home-page "https://github.com/fisherdj/miniAdapton")
  1496. (synopsis "Minimal implementation of incremental computation in Guile
  1497. Scheme")
  1498. (description "This package provides a complete Scheme implementation of
  1499. miniAdapton, which implements the core functionality of the Adapton system for
  1500. incremental computation (also known as self-adjusting computation). Like
  1501. Adapton, miniAdapton allows programmers to safely combine mutation and
  1502. memoization. miniAdapton is built on top of an even simpler system,
  1503. microAdapton. Both miniAdapton and microAdapton are designed to be easy to
  1504. understand, extend, and port to host languages other than Scheme.")
  1505. (license license:expat))))
  1506. (define-public guile-reader
  1507. (package
  1508. (name "guile-reader")
  1509. (version "0.6.2")
  1510. (source (origin
  1511. (method url-fetch)
  1512. (uri (string-append "mirror://savannah/guile-reader/guile-reader-"
  1513. version ".tar.gz"))
  1514. (sha256
  1515. (base32
  1516. "0592s2s8ampqmqwilc4fvcild6rb9gy79di6vxv5kcdmv23abkgx"))))
  1517. (build-system gnu-build-system)
  1518. (native-inputs `(("pkgconfig" ,pkg-config)
  1519. ("gperf" ,gperf-3.0)))
  1520. (inputs `(("guile" ,guile-2.2)))
  1521. (synopsis "Framework for building readers for GNU Guile")
  1522. (description
  1523. "Guile-Reader is a simple framework for building readers for GNU Guile.
  1524. The idea is to make it easy to build procedures that extend Guile’s read
  1525. procedure. Readers supporting various syntax variants can easily be written,
  1526. possibly by re-using existing “token readers” of a standard Scheme
  1527. readers. For example, it is used to implement Skribilo’s R5RS-derived
  1528. document syntax.
  1529. Guile-Reader’s approach is similar to Common Lisp’s “read table”, but
  1530. hopefully more powerful and flexible (for instance, one may instantiate as
  1531. many readers as needed).")
  1532. (home-page "https://www.nongnu.org/guile-reader/")
  1533. (license license:gpl3+)))
  1534. (define-public guile2.2-reader
  1535. (deprecated-package "guile2.2-reader" guile-reader))
  1536. (define-public guile-ncurses
  1537. (package
  1538. (name "guile-ncurses")
  1539. (version "2.2")
  1540. (source (origin
  1541. (method url-fetch)
  1542. (uri (string-append "mirror://gnu/guile-ncurses/guile-ncurses-"
  1543. version ".tar.gz"))
  1544. (sha256
  1545. (base32
  1546. "1wvggbr4xv8idh1hzd8caj4xfp4pln78a7w1wqzd4zgzwmnzxr2f"))))
  1547. (build-system gnu-build-system)
  1548. (inputs `(("ncurses" ,ncurses)
  1549. ("guile" ,guile-2.2)))
  1550. (native-inputs `(("pkg-config" ,pkg-config)))
  1551. (arguments
  1552. '(#:configure-flags (list "--with-ncursesw" ; Unicode support
  1553. "--with-gnu-filesystem-hierarchy")
  1554. #:phases
  1555. (modify-phases %standard-phases
  1556. (add-before 'build 'fix-libguile-ncurses-file-name
  1557. (lambda* (#:key outputs #:allow-other-keys)
  1558. (invoke "make" "install"
  1559. "-C" "src/ncurses"
  1560. "-j" (number->string
  1561. (parallel-job-count)))
  1562. (let* ((out (assoc-ref outputs "out"))
  1563. (dir "src/ncurses")
  1564. (files (find-files dir ".scm")))
  1565. (substitute* files
  1566. (("\"libguile-ncurses\"")
  1567. (format #f "\"~a/lib/guile/2.2/libguile-ncurses\""
  1568. out)))
  1569. #t))))))
  1570. (home-page "https://www.gnu.org/software/guile-ncurses/")
  1571. (synopsis "Guile bindings to ncurses")
  1572. (description
  1573. "guile-ncurses provides Guile language bindings for the ncurses
  1574. library.")
  1575. (license license:lgpl3+)))
  1576. (define-public guile-ncurses/gpm
  1577. (package
  1578. (inherit guile-ncurses)
  1579. (name "guile-ncurses-with-gpm")
  1580. (inputs `(("ncurses" ,ncurses/gpm)
  1581. ("guile" ,guile-2.2)))))
  1582. (define-public guile-lib
  1583. (package
  1584. (name "guile-lib")
  1585. (version "0.2.6.1")
  1586. (source (origin
  1587. (method url-fetch)
  1588. (uri (string-append "mirror://savannah/guile-lib/guile-lib-"
  1589. version ".tar.gz"))
  1590. (sha256
  1591. (base32
  1592. "0aizxdif5dpch9cvs8zz5g8ds5s4xhfnwza2il5ji7fv2h7ks7bd"))))
  1593. (build-system gnu-build-system)
  1594. (arguments
  1595. '(#:make-flags
  1596. '("GUILE_AUTO_COMPILE=0") ; to prevent guild errors
  1597. #:phases
  1598. (modify-phases %standard-phases
  1599. (add-before 'configure 'patch-module-dir
  1600. (lambda _
  1601. (substitute* "src/Makefile.in"
  1602. (("^moddir = ([[:graph:]]+)")
  1603. "moddir = $(datadir)/guile/site/@GUILE_EFFECTIVE_VERSION@\n")
  1604. (("^godir = ([[:graph:]]+)")
  1605. "godir = \
  1606. $(libdir)/guile/@GUILE_EFFECTIVE_VERSION@/site-ccache\n"))
  1607. #t)))))
  1608. (native-inputs `(("pkg-config" ,pkg-config)))
  1609. (inputs `(("guile" ,guile-2.2)))
  1610. (home-page "https://www.nongnu.org/guile-lib/")
  1611. (synopsis "Collection of useful Guile Scheme modules")
  1612. (description
  1613. "Guile-Lib is intended as an accumulation place for pure-scheme Guile
  1614. modules, allowing for people to cooperate integrating their generic Guile
  1615. modules into a coherent library. Think \"a down-scaled, limited-scope CPAN
  1616. for Guile\".")
  1617. ;; The whole is under GPLv3+, but some modules are under laxer
  1618. ;; distribution terms such as LGPL and public domain. See `COPYING' for
  1619. ;; details.
  1620. (license license:gpl3+)))
  1621. (define-public guile2.0-lib
  1622. (package
  1623. (inherit guile-lib)
  1624. (name "guile2.0-lib")
  1625. (inputs `(("guile" ,guile-2.0)))))
  1626. (define-public guile2.2-lib
  1627. (deprecated-package "guile2.2-lib" guile-lib))
  1628. (define-public guile-minikanren
  1629. (package
  1630. (name "guile-minikanren")
  1631. (version "20150424.e844d85")
  1632. (source (origin
  1633. (method git-fetch)
  1634. (uri (git-reference
  1635. (url "https://github.com/ijp/minikanren.git")
  1636. (commit "e844d85512f8c055d3f96143ee506007389a25e3")))
  1637. (file-name (string-append name "-" version "-checkout"))
  1638. (sha256
  1639. (base32
  1640. "0r50jlpzi940jlmxyy3ddqqwmj5r12gb4bcv0ssini9v8km13xz6"))))
  1641. (build-system guile-build-system)
  1642. (native-inputs
  1643. `(("guile" ,guile-2.2)))
  1644. (home-page "https://github.com/ijp/minikanren")
  1645. (synopsis "MiniKanren declarative logic system, packaged for Guile")
  1646. (description
  1647. "MiniKanren is a relational programming extension to the Scheme
  1648. programming Language, written as a smaller version of Kanren suitable for
  1649. pedagogical purposes. It is featured in the book, The Reasoned Schemer,
  1650. written by Dan Friedman, William Byrd, and Oleg Kiselyov.
  1651. This is Ian Price's r6rs packaged version of miniKanren, which deviates
  1652. slightly from miniKanren mainline.
  1653. See http://minikanren.org/ for more on miniKanren generally.")
  1654. (license license:expat)))
  1655. (define-public guile2.0-minikanren
  1656. (package
  1657. (inherit guile-minikanren)
  1658. (name "guile2.0-minikanren")
  1659. (native-inputs `(("guile" ,guile-2.0)))))
  1660. (define-public guile2.2-minikanren
  1661. (deprecated-package "guile2.2-minikanren" guile-minikanren))
  1662. (define-public guile-irregex
  1663. (package
  1664. (name "guile-irregex")
  1665. (version "0.9.6")
  1666. (source (origin
  1667. (method url-fetch)
  1668. (uri (string-append
  1669. "http://synthcode.com/scheme/irregex/irregex-"
  1670. version ".tar.gz"))
  1671. (sha256
  1672. (base32
  1673. "1ia3m7dp3lcxa048q0gqbiwwsyvn99baw6xkhb4bhhzn4k7bwyqq"))))
  1674. (build-system guile-build-system)
  1675. (arguments
  1676. '(#:phases (modify-phases %standard-phases
  1677. (add-after 'unpack 'move-files-around
  1678. (lambda _
  1679. ;; Move the relevant source files to src/ and create the
  1680. ;; rx/ directory to match the expected module hierarchy.
  1681. (mkdir-p "src/rx/source")
  1682. (rename-file "irregex-guile.scm"
  1683. "src/rx/irregex.scm")
  1684. (rename-file "irregex.scm"
  1685. "src/rx/source/irregex.scm")
  1686. ;; Not really reachable via guile's packaging system,
  1687. ;; but nice to have around.
  1688. (rename-file "irregex-utils.scm"
  1689. "src/rx/source/irregex-utils.scm")
  1690. #t)))
  1691. #:source-directory "src"))
  1692. (native-inputs
  1693. `(("guile" ,guile-2.2)))
  1694. (home-page "http://synthcode.com/scheme/irregex")
  1695. (synopsis "S-expression based regular expressions")
  1696. (description
  1697. "Irregex is an s-expression based alternative to your classic
  1698. string-based regular expressions. It implements SRFI 115 and is deeply
  1699. inspired by the SCSH regular expression system.")
  1700. (license license:bsd-3)))
  1701. (define-public guile2.0-irregex
  1702. (package
  1703. (inherit guile-irregex)
  1704. (name "guile2.0-irregex")
  1705. (native-inputs `(("guile" ,guile-2.0)))))
  1706. (define-public guile2.2-irregex
  1707. (deprecated-package "guile2.2-irregex" guile-irregex))
  1708. (define-public haunt
  1709. (package
  1710. (name "haunt")
  1711. (version "0.2.4")
  1712. (source (origin
  1713. (method url-fetch)
  1714. (uri (string-append "https://files.dthompson.us/haunt/haunt-"
  1715. version ".tar.gz"))
  1716. (sha256
  1717. (base32
  1718. "056z4znikk83nr5mr0x2ac3iinqbywa2bvb37mhr566a1q50isfc"))))
  1719. (build-system gnu-build-system)
  1720. (arguments
  1721. `(#:modules ((ice-9 match) (ice-9 ftw)
  1722. ,@%gnu-build-system-modules)
  1723. #:tests? #f ; test suite is non-deterministic :(
  1724. #:phases (modify-phases %standard-phases
  1725. (add-after 'install 'wrap-haunt
  1726. (lambda* (#:key inputs outputs #:allow-other-keys)
  1727. ;; Wrap the 'haunt' command to refer to the right
  1728. ;; modules.
  1729. (let* ((out (assoc-ref outputs "out"))
  1730. (bin (string-append out "/bin"))
  1731. (site (string-append
  1732. out "/share/guile/site"))
  1733. (deps (list (assoc-ref inputs "guile-reader")
  1734. (assoc-ref inputs "guile-commonmark"))))
  1735. (match (scandir site)
  1736. (("." ".." version)
  1737. (let ((modules (string-append site "/" version))
  1738. (compiled-modules (string-append
  1739. out "/lib/guile/" version
  1740. "/site-ccache")))
  1741. (wrap-program (string-append bin "/haunt")
  1742. `("GUILE_LOAD_PATH" ":" prefix
  1743. (,modules
  1744. ,@(map (lambda (dep)
  1745. (string-append dep
  1746. "/share/guile/site/"
  1747. version))
  1748. deps)))
  1749. `("GUILE_LOAD_COMPILED_PATH" ":" prefix
  1750. (,compiled-modules
  1751. ,@(map (lambda (dep)
  1752. (string-append dep "/lib/guile/"
  1753. version
  1754. "/site-ccache"))
  1755. deps))))
  1756. #t)))))))))
  1757. (native-inputs
  1758. `(("pkg-config" ,pkg-config)
  1759. ("texinfo" ,texinfo)))
  1760. (inputs
  1761. `(("guile" ,guile-2.2)))
  1762. (propagated-inputs
  1763. `(("guile-reader" ,guile-reader)
  1764. ("guile-commonmark" ,guile-commonmark)))
  1765. (synopsis "Functional static site generator")
  1766. (description "Haunt is a static site generator written in Guile
  1767. Scheme. Haunt features a functional build system and an extensible
  1768. interface for reading articles in any format.")
  1769. (home-page "http://haunt.dthompson.us")
  1770. (license license:gpl3+)))
  1771. (define-public guile2.0-haunt
  1772. (package
  1773. (inherit haunt)
  1774. (name "guile2.0-haunt")
  1775. (inputs `(("guile" ,guile-2.0)))))
  1776. (define-public guile2.2-haunt
  1777. (deprecated-package "guile2.2-haunt" haunt))
  1778. (define-public guile-redis
  1779. (package
  1780. (name "guile-redis")
  1781. (version "1.3.0")
  1782. (home-page "https://github.com/aconchillo/guile-redis")
  1783. (source (origin
  1784. (method url-fetch)
  1785. (uri (string-append home-page "/archive/" version ".tar.gz"))
  1786. (sha256
  1787. (base32
  1788. "1li70a2716my9q9zfq0qn2x5d1cir9k2vx0jm9glm464yaf1vj39"))))
  1789. (build-system gnu-build-system)
  1790. (native-inputs
  1791. `(("autoconf" ,autoconf)
  1792. ("automake" ,automake)
  1793. ("pkg-config" ,pkg-config)
  1794. ("guile" ,guile-2.2)))
  1795. (synopsis "Redis client library for Guile")
  1796. (description "Guile-redis provides a Scheme interface to the Redis
  1797. key-value cache and store.")
  1798. (license license:lgpl3+)))
  1799. (define-public guile2.0-redis
  1800. (package
  1801. (inherit guile-redis)
  1802. (name "guile2.0-redis")
  1803. (native-inputs `(("guile" ,guile-2.0)
  1804. ,@(alist-delete "guile"
  1805. (package-native-inputs guile-redis))))))
  1806. (define-public guile2.2-redis
  1807. (deprecated-package "guile2.2-redis" guile-redis))
  1808. (define-public guile-commonmark
  1809. (package
  1810. (name "guile-commonmark")
  1811. (version "0.1.2")
  1812. (source (origin
  1813. (method url-fetch)
  1814. (uri (string-append "https://github.com/OrangeShark/" name
  1815. "/releases/download/v" version
  1816. "/" name "-" version ".tar.gz"))
  1817. (sha256
  1818. (base32
  1819. "17lrsdisa3kckh24q114vfmzdc4wkqa6ccwl4hdlrng5wpn1iman"))))
  1820. (build-system gnu-build-system)
  1821. (inputs
  1822. `(("guile" ,guile-2.2)))
  1823. (native-inputs
  1824. `(("pkg-config" ,pkg-config)))
  1825. (synopsis "CommonMark parser for Guile")
  1826. (description
  1827. "guile-commonmark is a library for parsing CommonMark, a fully specified
  1828. variant of Markdown. The library is written in Guile Scheme and is designed
  1829. to transform a CommonMark document to SXML. guile-commonmark tries to closely
  1830. follow the @uref{http://commonmark.org/, CommonMark spec}, the main difference
  1831. is no support for parsing block and inline level HTML.")
  1832. (home-page "https://github.com/OrangeShark/guile-commonmark")
  1833. (license license:lgpl3+)))
  1834. (define-public guile2.0-commonmark
  1835. (package
  1836. (inherit guile-commonmark)
  1837. (name "guile2.0-commonmark")
  1838. (inputs `(("guile" ,guile-2.0)))))
  1839. (define-public guile2.2-commonmark
  1840. (deprecated-package "guile2.2-commonmark" guile-commonmark))
  1841. (define-public mcron
  1842. (package
  1843. (name "mcron")
  1844. (version "1.1.1")
  1845. (source (origin
  1846. (method url-fetch)
  1847. (uri (string-append "mirror://gnu/mcron/mcron-"
  1848. version ".tar.gz"))
  1849. (sha256
  1850. (base32
  1851. "1i9mcp6r6my61zfiydsm3n6my41mwvl7dfala4q29qx0zn1ynlm4"))))
  1852. (build-system gnu-build-system)
  1853. (arguments
  1854. '(#:phases (modify-phases %standard-phases
  1855. (add-before 'check 'set-timezone
  1856. (lambda* (#:key inputs #:allow-other-keys)
  1857. ;; 'tests/job-specifier.scm' expects to be running in
  1858. ;; UTC-2 or something.
  1859. ;; FIXME: This issue is being investigated upstream, for
  1860. ;; now we'll just skip the tests (see below):
  1861. ;; <https://lists.gnu.org/archive/html/bug-mcron/2018-04/msg00005.html>.
  1862. (let ((tzdata (assoc-ref inputs "tzdata")))
  1863. (setenv "TZDIR"
  1864. (string-append tzdata
  1865. "/share/zoneinfo"))
  1866. (setenv "TZ" "UTC-2")
  1867. #t)))
  1868. (add-before 'check 'adjust-tests
  1869. (lambda _
  1870. (substitute* "tests/job-specifier.scm"
  1871. ;; (getpw) fails with "entry not found" in the build
  1872. ;; environment, so pass an argument.
  1873. (("\\(getpw\\)")
  1874. "(getpwnam (getuid))")
  1875. ;; The build environment lacks an entry for root in
  1876. ;; /etc/passwd.
  1877. (("\\(getpw 0\\)")
  1878. "(getpwnam \"nobody\")")
  1879. ;; FIXME: Skip the 4 faulty tests (see above).
  1880. (("\\(test-equal \"next-year\"" all)
  1881. (string-append "(test-skip 4)\n" all)))
  1882. #t)))))
  1883. (native-inputs `(("pkg-config" ,pkg-config)
  1884. ("tzdata" ,tzdata-for-tests)))
  1885. (inputs `(("ed" ,ed) ("which" ,which) ("guile" ,guile-2.2)))
  1886. (home-page "https://www.gnu.org/software/mcron/")
  1887. (synopsis "Run jobs at scheduled times")
  1888. (description
  1889. "GNU Mcron is a complete replacement for Vixie cron. It is used to run
  1890. tasks on a schedule, such as every hour or every Monday. Mcron is written in
  1891. Guile, so its configuration can be written in Scheme; the original cron
  1892. format is also supported.")
  1893. (license license:gpl3+)))
  1894. (define-public mcron2
  1895. ;; This was mthl's mcron development branch, and it became mcron 1.1.
  1896. (deprecated-package "mcron2" mcron))
  1897. (define-public guile-picture-language
  1898. (let ((commit "1ea8b78a8bceb4f7e5eaeb3e76987072267f99bb")
  1899. (revision "2"))
  1900. (package
  1901. (name "guile-picture-language")
  1902. (version (git-version "0" revision commit))
  1903. (source (origin
  1904. (method git-fetch)
  1905. (uri (git-reference
  1906. (url "https://git.elephly.net/software/guile-picture-language.git")
  1907. (commit commit)))
  1908. (sha256
  1909. (base32
  1910. "1rvq6q2zq21x7dx0qq1hn568wglsl4bkd8gacbarcx1fs0rrxcqw"))))
  1911. (build-system guile-build-system)
  1912. (inputs
  1913. `(("guile" ,guile-2.2)))
  1914. (home-page "https://git.elephly.net/software/guile-picture-language.git")
  1915. (synopsis "Picture language for Guile")
  1916. (description
  1917. "This package provides a simple SVG-based picture language for Guile.
  1918. The picture values can directly be displayed in Geiser.")
  1919. (license license:lgpl3+))))