Merge branch 'staging'
[jackhill/guix/guix.git] / gnu / packages / ocaml.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
3 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
6 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
7 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
8 ;;; Copyright © 2016, 2018 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016-2018 Julien Lepiller <julien@lepiller.eu>
10 ;;; Copyright © 2017 Ben Woodcroft <donttrustben@gmail.com>
11 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2018 Peter Kreye <kreyepr@gmail.com>
13 ;;; Copyright © 2018, 2019 Gabriel Hondet <gabrielhondet@gmail.com>
14 ;;; Copyright © 2018 Kei Kebreau <kkebreau@posteo.net>
15 ;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
16 ;;;
17 ;;; This file is part of GNU Guix.
18 ;;;
19 ;;; GNU Guix is free software; you can redistribute it and/or modify it
20 ;;; under the terms of the GNU General Public License as published by
21 ;;; the Free Software Foundation; either version 3 of the License, or (at
22 ;;; your option) any later version.
23 ;;;
24 ;;; GNU Guix is distributed in the hope that it will be useful, but
25 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ;;; GNU General Public License for more details.
28 ;;;
29 ;;; You should have received a copy of the GNU General Public License
30 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31
32 (define-module (gnu packages ocaml)
33 #:use-module (gnu packages)
34 #:use-module (gnu packages autotools)
35 #:use-module (gnu packages base)
36 #:use-module (gnu packages bison)
37 #:use-module (gnu packages boost)
38 #:use-module (gnu packages compression)
39 #:use-module (gnu packages curl)
40 #:use-module (gnu packages emacs)
41 #:use-module (gnu packages emacs-xyz)
42 #:use-module (gnu packages flex)
43 #:use-module (gnu packages gcc)
44 #:use-module (gnu packages ghostscript)
45 #:use-module (gnu packages glib)
46 #:use-module (gnu packages gnome)
47 #:use-module (gnu packages gtk)
48 #:use-module (gnu packages libevent)
49 #:use-module (gnu packages libffi)
50 #:use-module (gnu packages llvm)
51 #:use-module (gnu packages m4)
52 #:use-module (gnu packages maths)
53 #:use-module (gnu packages multiprecision)
54 #:use-module (gnu packages ncurses)
55 #:use-module (gnu packages pcre)
56 #:use-module (gnu packages perl)
57 #:use-module (gnu packages pkg-config)
58 #:use-module (gnu packages protobuf)
59 #:use-module (gnu packages python)
60 #:use-module (gnu packages python-xyz)
61 #:use-module (gnu packages sdl)
62 #:use-module (gnu packages sqlite)
63 #:use-module (gnu packages tex)
64 #:use-module (gnu packages texinfo)
65 #:use-module (gnu packages time)
66 #:use-module (gnu packages tls)
67 #:use-module (gnu packages version-control)
68 #:use-module (gnu packages virtualization)
69 #:use-module (gnu packages web-browsers)
70 #:use-module (gnu packages xml)
71 #:use-module (gnu packages xorg)
72 #:use-module (guix build-system dune)
73 #:use-module (guix build-system emacs)
74 #:use-module (guix build-system gnu)
75 #:use-module (guix build-system ocaml)
76 #:use-module (guix download)
77 #:use-module (guix git-download)
78 #:use-module ((guix licenses) #:prefix license:)
79 #:use-module (guix packages)
80 #:use-module (guix svn-download)
81 #:use-module (guix utils)
82 #:use-module ((srfi srfi-1) #:hide (zip)))
83
84 ;; A shortcut for files from ocaml forge. Downloaded files are computed from
85 ;; their number, not their name.
86 (define (ocaml-forge-uri name version file-number)
87 (string-append "https://forge.ocamlcore.org/frs/download.php/"
88 (number->string file-number) "/" name "-" version
89 ".tar.gz"))
90
91 ;; Janestreet packages are found in a similar way and all need the same patch.
92 (define (janestreet-origin name version hash)
93 (origin (method url-fetch)
94 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/"
95 (version-major+minor version) "/files/"
96 name "-" version ".tar.gz"))
97 (sha256 (base32 hash))
98 (modules '((guix build utils)))
99 (snippet
100 (let ((pattern (string-append "lib/" name)))
101 `(begin
102 ;; install.ml contains an invalid reference to the ppx file and
103 ;; propagates this error to the generated META file. It
104 ;; looks for it in the "lib" directory, but it is installed in
105 ;; "lib/ocaml/site-lib/package". This substitute does not change
106 ;; this file for non ppx packages.
107 (substitute* "install.ml"
108 ((,pattern) (string-append "lib/ocaml/site-lib/" ,name)))
109 ;; The standard Makefile would try to install janestreet modules
110 ;; in OCaml's directory in the store, which is read-only.
111 (substitute* "Makefile"
112 (("--prefix")
113 "--libdir $(LIBDIR) --prefix"))
114 #t)))))
115
116 ;; They also require almost the same set of arguments
117 (define janestreet-arguments
118 `(#:use-make? #t
119 #:make-flags
120 (list (string-append "CONFIGUREFLAGS=--prefix "
121 (assoc-ref %outputs "out")
122 " --enable-tests")
123 (string-append "LIBDIR="
124 (assoc-ref %outputs "out")
125 "/lib/ocaml/site-lib")
126 ;; for ocaml-bin-prot, otherwise ignored
127 (string-append "OCAML_TOPLEVEL_PATH="
128 (assoc-ref %build-inputs "findlib")
129 "/lib/ocaml/site-lib"))
130 #:phases (modify-phases %standard-phases (delete 'configure))))
131
132 (define-public ocaml-4.07
133 (package
134 (name "ocaml")
135 (version "4.07.1")
136 (source (origin
137 (method url-fetch)
138 (uri (string-append
139 "http://caml.inria.fr/pub/distrib/ocaml-"
140 (version-major+minor version)
141 "/ocaml-" version ".tar.xz"))
142 (sha256
143 (base32
144 "1f07hgj5k45cylj1q3k5mk8yi02cwzx849b1fwnwia8xlcfqpr6z"))))
145 (build-system gnu-build-system)
146 (native-search-paths
147 (list (search-path-specification
148 (variable "OCAMLPATH")
149 (files (list "lib/ocaml" "lib/ocaml/site-lib")))
150 (search-path-specification
151 (variable "CAML_LD_LIBRARY_PATH")
152 (files (list "lib/ocaml/site-lib/stubslibs"
153 "lib/ocaml/site-lib/stublibs")))))
154 (native-inputs
155 `(("perl" ,perl)
156 ("pkg-config" ,pkg-config)))
157 (inputs
158 `(("libx11" ,libx11)
159 ;; For libiberty, needed for objdump support.
160 ("gcc:lib" ,(canonical-package gcc) "lib")
161 ("zlib" ,zlib))) ;also needed for objdump support
162 (arguments
163 `(#:modules ((guix build gnu-build-system)
164 (guix build utils)
165 (web server))
166 #:phases
167 (modify-phases %standard-phases
168 (add-after 'unpack 'patch-/bin/sh-references
169 (lambda* (#:key inputs #:allow-other-keys)
170 (let* ((sh (string-append (assoc-ref inputs "bash")
171 "/bin/sh"))
172 (quoted-sh (string-append "\"" sh "\"")))
173 (with-fluids ((%default-port-encoding #f))
174 (for-each
175 (lambda (file)
176 (substitute* file
177 (("\"/bin/sh\"")
178 (begin
179 (format (current-error-port) "\
180 patch-/bin/sh-references: ~a: changing `\"/bin/sh\"' to `~a'~%"
181 file quoted-sh)
182 quoted-sh))))
183 (find-files "." "\\.ml$"))
184 #t))))
185 (replace 'configure
186 (lambda* (#:key outputs #:allow-other-keys)
187 (let* ((out (assoc-ref outputs "out"))
188 (mandir (string-append out "/share/man")))
189 ;; Custom configure script doesn't recognize
190 ;; --prefix=<PREFIX> syntax (with equals sign).
191 (invoke "./configure"
192 "--prefix" out
193 "--mandir" mandir))))
194 (replace 'build
195 (lambda _
196 (invoke "make" "-j" (number->string (parallel-job-count))
197 "world.opt")))
198 (delete 'check)
199 (add-after 'install 'check
200 (lambda _
201 (with-directory-excursion "testsuite"
202 (invoke "make" "all")))))))
203 (home-page "https://ocaml.org/")
204 (synopsis "The OCaml programming language")
205 (description
206 "OCaml is a general purpose industrial-strength programming language with
207 an emphasis on expressiveness and safety. Developed for more than 20 years at
208 Inria it benefits from one of the most advanced type systems and supports
209 functional, imperative and object-oriented styles of programming.")
210 ;; The compiler is distributed under qpl1.0 with a change to choice of
211 ;; law: the license is governed by the laws of France. The library is
212 ;; distributed under lgpl2.0.
213 (license (list license:qpl license:lgpl2.0))))
214
215 (define-public ocaml ocaml-4.07)
216
217 (define-public ocamlbuild
218 (package
219 (name "ocamlbuild")
220 (version "0.13.1")
221 (source
222 (origin
223 (method git-fetch)
224 (uri (git-reference
225 (url "https://github.com/ocaml/ocamlbuild.git")
226 (commit version)))
227 (file-name (git-file-name name version))
228 (sha256
229 (base32 "0v37vjvdqw35yvj8ipmlzmwf1jhip0hbsmcbdcn9cnj12p3mr6k7"))))
230 (build-system gnu-build-system)
231 (arguments
232 `(#:test-target "test"
233 #:tests? #f; tests require findlib
234 #:make-flags
235 (list (string-append "OCAMLBUILD_PREFIX=" (assoc-ref %outputs "out"))
236 (string-append "OCAMLBUILD_BINDIR=" (assoc-ref %outputs "out")
237 "/bin")
238 (string-append "OCAMLBUILD_LIBDIR=" (assoc-ref %outputs "out")
239 "/lib/ocaml/site-lib")
240 (string-append "OCAMLBUILD_MANDIR=" (assoc-ref %outputs "out")
241 "/share/man"))
242 #:phases
243 (modify-phases %standard-phases
244 (delete 'bootstrap)
245 (delete 'configure)
246 (add-before 'build 'findlib-environment
247 (lambda* (#:key outputs #:allow-other-keys)
248 (let* ((out (assoc-ref outputs "out")))
249 (setenv "OCAMLFIND_DESTDIR" (string-append out "/lib/ocaml/site-lib"))
250 (setenv "OCAMLFIND_LDCONF" "ignore")
251 #t))))))
252 (native-inputs
253 `(("ocaml" ,ocaml)))
254 (home-page "https://github.com/ocaml/ocamlbuild")
255 (synopsis "OCaml build tool")
256 (description "OCamlbuild is a generic build tool, that has built-in rules
257 for building OCaml library and programs.")
258 (license license:lgpl2.1+)))
259
260 (define-public ocaml-extlib
261 (package
262 (name "ocaml-extlib")
263 (version "1.7.6")
264 (source (origin
265 (method url-fetch)
266 (uri (string-append "https://ygrek.org.ua/p/release/ocaml-extlib/"
267 "extlib-" version ".tar.gz"))
268 (sha256
269 (base32
270 "0wfs20v1yj5apdbj7214wdsr17ayh0qqq7ihidndvc8nmmwfa1dz"))))
271 (build-system ocaml-build-system)
272 (arguments
273 `(#:phases
274 (modify-phases %standard-phases
275 (delete 'configure))))
276 (native-inputs
277 `(("ocaml-cppo" ,ocaml-cppo)))
278 (home-page "https://github.com/ygrek/ocaml-extlib")
279 (synopsis "Complete and small extension for OCaml standard library")
280 (description "This library adds new functions to OCaml standard library
281 modules, modifies some functions in order to get better performances or
282 safety (tail-recursive) and also provides new modules which should be useful
283 for day to day programming.")
284 ;; With static-linking exception
285 (license license:lgpl2.1+)))
286
287 (define-public ocaml-cudf
288 (package
289 (name "ocaml-cudf")
290 (version "0.9")
291 (source
292 (origin
293 (method url-fetch)
294 (uri "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz")
295 (sha256
296 (base32
297 "0771lwljqwwn3cryl0plny5a5dyyrj4z6bw66ha5n8yfbpcy8clr"))))
298 (build-system ocaml-build-system)
299 (propagated-inputs `(("ocaml-extlib" ,ocaml-extlib)))
300 (native-inputs
301 `(("perl" ,perl)
302 ("ocamlbuild" ,ocamlbuild)
303 ("ocaml-ounit" ,ocaml-ounit)))
304 (arguments
305 `(#:make-flags
306 (list
307 "all" "opt"
308 (string-append "BINDIR=" (assoc-ref %outputs "out")
309 "/bin"))
310 #:phases
311 (modify-phases %standard-phases
312 (delete 'configure))))
313 (home-page "http://www.mancoosi.org/cudf/")
314 (synopsis "CUDF library (part of the Mancoosi tools)")
315 (description "CUDF (for Common Upgradeability Description Format) is a
316 format for describing upgrade scenarios in package-based Free and Open Source
317 Software distribution.")
318 ;; With static-linking exception
319 (license license:lgpl2.1+)))
320
321 (define-public ocaml-mccs
322 (package
323 (name "ocaml-mccs")
324 (version "1.1+9")
325 (source (origin
326 (method git-fetch)
327 (uri (git-reference
328 (url "https://github.com/AltGr/ocaml-mccs")
329 (commit version)))
330 (file-name (git-file-name name version))
331 (sha256
332 (base32
333 "1i0hhkrqi7rqlainlg5pc4hibbx6b5dp3x99gmav8c3sbfvlk9mc"))))
334 (build-system dune-build-system)
335 (propagated-inputs `(("ocaml-cudf" ,ocaml-cudf)))
336 (home-page "http://www.i3s.unice.fr/~cpjm/misc/")
337 (synopsis "Upgrade path problem solver")
338 (description "Mccs (Multi Criteria CUDF Solver) is a CUDF problem solver.
339 Mccs take as input a CUDF problem and computes the best solution according to
340 a set of criteria. It relies on a Integer Programming solver or a
341 Pseudo Boolean solver to achieve its task. Mccs can use a wide set of
342 underlying solvers like Cplex, Gurobi, Lpsolver, Glpk, CbC, SCIP or WBO.")
343 (license (list
344 license:bsd-3
345 license:gpl3+
346 ;; With static-linking exception
347 license:lgpl2.1+))))
348
349 (define-public ocaml-dose3
350 (package
351 (name "ocaml-dose3")
352 (version "5.0.1")
353 (source (origin
354 (method url-fetch)
355 (uri "https://gforge.inria.fr/frs/download.php/file/36063/dose3-5.0.1.tar.gz")
356 (sha256
357 (base32
358 "00yvyfm4j423zqndvgc1ycnmiffaa2l9ab40cyg23pf51qmzk2jm"))
359 (patches
360 (search-patches
361 "ocaml-dose3-add-unix-dependency.patch"
362 "ocaml-dose3-Fix-for-ocaml-4.06.patch"
363 "ocaml-dose3-dont-make-printconf.patch"
364 "ocaml-dose3-Install-mli-cmx-etc.patch"))))
365 (build-system ocaml-build-system)
366 (arguments
367 `(#:configure-flags
368 (list (string-append "SHELL="
369 (assoc-ref %build-inputs "bash")
370 "/bin/sh"))
371 #:make-flags
372 (list (string-append "LIBDIR="
373 (assoc-ref %outputs "out")
374 "/lib/ocaml/site-lib"))))
375 (propagated-inputs
376 `(("ocaml-graph" ,ocaml-graph)
377 ("ocaml-cudf" ,ocaml-cudf)
378 ("ocaml-extlib" ,ocaml-extlib)
379 ("ocaml-re" ,ocaml-re)))
380 (native-inputs
381 `(("perl" ,perl)
382 ("python" ,python-2) ; for a test script
383 ("python2-pyyaml" ,python2-pyyaml) ; for a test script
384 ("ocaml-extlib" ,ocaml-extlib)
385 ("ocamlbuild" ,ocamlbuild)
386 ("ocaml-cppo" ,ocaml-cppo)))
387 (home-page "http://www.mancoosi.org/software/")
388 (synopsis "Package distribution management framework")
389 (description "Dose3 is a framework made of several OCaml libraries for
390 managing distribution packages and their dependencies. Though not tied to
391 any particular distribution, dose3 constitutes a pool of libraries which
392 enable analyzing packages coming from various distributions. Besides basic
393 functionalities for querying and setting package properties, dose3 also
394 implements algorithms for solving more complex problems such as monitoring
395 package evolutions, correct and complete dependency resolution and
396 repository-wide uninstallability checks.")
397 ;; with static-linking exception
398 (license license:lgpl2.1+)))
399
400 (define-public ocaml-opam-file-format
401 (package
402 (name "ocaml-opam-file-format")
403 (version "2.0.0")
404 (source (origin
405 (method git-fetch)
406 (uri (git-reference
407 (url "https://github.com/ocaml/opam-file-format")
408 (commit version)))
409 (file-name (git-file-name name version))
410 (sha256
411 (base32
412 "0fqb99asnair0043hhc8r158d6krv5nzvymd0xwycr5y72yrp0hv"))))
413 (build-system ocaml-build-system)
414 (arguments
415 `(#:tests? #f; No tests
416 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
417 "/lib/ocaml/site-lib"))
418 #:phases
419 (modify-phases %standard-phases
420 (delete 'configure))))
421 (home-page "https://opam.ocaml.org")
422 (synopsis "Parser and printer for the opam file syntax")
423 (description "This package contains a parser and a pretty-printer for
424 the opam file fomat.")
425 ;; With static-linking exception
426 (license license:lgpl2.1+)))
427
428 (define-public opam
429 (package
430 (name "opam")
431 (version "2.0.4")
432 (source (origin
433 (method git-fetch)
434 (uri (git-reference
435 (url "https://github.com/ocaml/opam")
436 (commit version)))
437 (file-name (git-file-name name version))
438 (sha256
439 (base32
440 "1yx5k8v5vnnc20fmz5zx8kqd242j48qcknlk6vmkr7rkq886ipq2"))))
441 (build-system ocaml-build-system)
442 (arguments
443 `(#:configure-flags
444 (list (string-append "SHELL="
445 (assoc-ref %build-inputs "bash")
446 "/bin/sh"))
447
448 ;; For some reason, 'ocp-build' needs $TERM to be set.
449 #:make-flags
450 (list "TERM=screen"
451 (string-append "SHELL="
452 (assoc-ref %build-inputs "bash")
453 "/bin/sh"))
454
455 #:test-target "tests"
456
457 ;; FIXME: There's an obscure test failure:
458 ;; …/_obuild/opam/opam.asm install P1' failed.
459 #:tests? #f
460
461 #:phases (modify-phases %standard-phases
462 (add-before 'build 'pre-build
463 (lambda* (#:key inputs make-flags #:allow-other-keys)
464 (let ((bash (assoc-ref inputs "bash"))
465 (bwrap (string-append (assoc-ref inputs "bubblewrap")
466 "/bin/bwrap")))
467 (substitute* "src/core/opamSystem.ml"
468 (("\"/bin/sh\"")
469 (string-append "\"" bash "/bin/sh\""))
470 (("getconf")
471 (which "getconf")))
472 ;; Use bwrap from the store directly.
473 (substitute* "src/state/shellscripts/bwrap.sh"
474 (("-v bwrap") (string-append "-v " bwrap))
475 (("exec bwrap") (string-append "exec " bwrap))
476 ;; Mount /gnu and /run/current-system in the
477 ;; isolated environment when building with opam.
478 ;; This is necessary for packages to find external
479 ;; dependencies, such as a C compiler, make, etc...
480 (("^add_sys_mounts /usr")
481 "add_sys_mounts /gnu /run/current-system /usr"))
482 (substitute* "src/client/opamInitDefaults.ml"
483 (("\"bwrap\"") (string-append "\"" bwrap "\"")))
484 #t)))
485 (add-before 'check 'pre-check
486 (lambda _
487 (setenv "HOME" (getcwd))
488 (invoke "git" "config" "--global" "user.email" "guix@gnu.org")
489 (invoke "git" "config" "--global" "user.name" "Guix")
490 #t)))))
491 (native-inputs
492 `(("dune" ,dune)
493 ("git" ,git) ;for the tests
494 ("ocaml-cppo" ,ocaml-cppo)
495 ("python" ,python) ;for the tests
496 ("camlp4" ,camlp4)))
497 (inputs
498 `(("ocaml" ,ocaml)
499 ("ncurses" ,ncurses)
500 ("curl" ,curl)
501 ("bubblewrap" ,bubblewrap)))
502 (propagated-inputs
503 `(("ocaml-cmdliner" ,ocaml-cmdliner)
504 ("ocaml-dose3" ,ocaml-dose3)
505 ("ocaml-mccs" ,ocaml-mccs)
506 ("ocaml-opam-file-format" ,ocaml-opam-file-format)
507 ("ocaml-re" ,ocaml-re)))
508 (home-page "http://opam.ocamlpro.com/")
509 (synopsis "Package manager for OCaml")
510 (description
511 "OPAM is a tool to manage OCaml packages. It supports multiple
512 simultaneous compiler installations, flexible package constraints, and a
513 Git-friendly development workflow.")
514
515 ;; The 'LICENSE' file waives some requirements compared to LGPLv3.
516 (license license:lgpl3)))
517
518 (define-public camlp4-4.07
519 (package
520 (name "camlp4")
521 (version "4.07+1")
522 (source (origin
523 (method git-fetch)
524 (uri (git-reference
525 (url "https://github.com/ocaml/camlp4.git")
526 (commit version)))
527 (file-name (git-file-name name version))
528 (sha256
529 (base32
530 "0cxl4hkqcvspvkx4f2k83217rh6051fll9i2yz7cw6m3bq57mdvl"))))
531 (build-system gnu-build-system)
532 (native-inputs
533 `(("ocaml" ,ocaml-4.07)
534 ("ocamlbuild" ,ocamlbuild)
535 ("which" ,which)))
536 (inputs `(("ocaml" ,ocaml-4.07)))
537 (arguments
538 '(#:tests? #f ;no documented test target
539 ;; a race-condition will lead byte and native targets to mkdir _build
540 ;; which fails on the second attempt.
541 #:parallel-build? #f
542 #:make-flags '("all")
543 #:phases
544 (modify-phases %standard-phases
545 (replace 'configure
546 (lambda* (#:key outputs #:allow-other-keys)
547 ;; This is a home-made 'configure' script.
548 (let ((out (assoc-ref outputs "out")))
549 (invoke "./configure"
550 (string-append "--libdir=" out
551 "/lib/ocaml/site-lib")
552 (string-append "--bindir=" out "/bin")
553 (string-append "--pkgdir=" out
554 "/lib/ocaml/site-lib")))))
555 (add-after 'install 'install-meta
556 (lambda* (#:key outputs #:allow-other-keys)
557 (let ((out (assoc-ref outputs "out")))
558 (substitute* "camlp4/META.in"
559 (("directory = .*")
560 (string-append "directory = \"" out
561 "/lib/ocaml/site-lib/camlp4\"\n")))
562 (invoke "make" "install-META")))))))
563 (home-page "https://github.com/ocaml/camlp4")
564 (synopsis "Write parsers in OCaml")
565 (description
566 "Camlp4 is a software system for writing extensible parsers for
567 programming languages. It provides a set of OCaml libraries that are used to
568 define grammars as well as loadable syntax extensions of such grammars.
569 Camlp4 stands for Caml Preprocessor and Pretty-Printer and one of its most
570 important applications is the definition of domain-specific extensions of the
571 syntax of OCaml.")
572
573 ;; This is LGPLv2 with an exception that allows packages statically-linked
574 ;; against the library to be released under any terms.
575 (license license:lgpl2.0)))
576
577 (define-public camlp4 camlp4-4.07)
578
579 (define-public camlp5
580 (package
581 (name "camlp5")
582 (version "7.07")
583 (source
584 (origin
585 (method git-fetch)
586 (uri (git-reference
587 (url "https://github.com/camlp5/camlp5.git")
588 (commit (string-append "rel" (string-delete #\. version)))))
589 (file-name (git-file-name name version))
590 (sha256
591 (base32 "1c8v45553ccbqha2ypfranqlgw06rr5wjr2hlnrx5bf9jfq0h0dn"))))
592 (build-system gnu-build-system)
593 (inputs
594 `(("ocaml" ,ocaml)))
595 (arguments
596 `(#:tests? #f ; XXX TODO figure out how to run the tests
597 #:phases
598 (modify-phases %standard-phases
599 (replace 'configure
600 (lambda* (#:key outputs #:allow-other-keys)
601 (let* ((out (assoc-ref outputs "out"))
602 (mandir (string-append out "/share/man")))
603 ;; Custom configure script doesn't recognize
604 ;; --prefix=<PREFIX> syntax (with equals sign).
605 (invoke "./configure"
606 "--prefix" out
607 "--mandir" mandir))))
608 (add-before 'build 'fix-/bin-references
609 (lambda _
610 (substitute* "config/Makefile"
611 (("/bin/rm") "rm"))
612 #t))
613 (replace 'build
614 (lambda _
615 (invoke "make" "-j" (number->string
616 (parallel-job-count))
617 "world.opt")))
618 ;; Required for findlib to find camlp5's libraries
619 (add-after 'install 'install-meta
620 (lambda* (#:key outputs #:allow-other-keys)
621 (install-file "etc/META" (string-append (assoc-ref outputs "out")
622 "/lib/ocaml/camlp5/"))
623 #t)))))
624 (home-page "http://camlp5.gforge.inria.fr/")
625 (synopsis "Pre-processor Pretty Printer for OCaml")
626 (description
627 "Camlp5 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers
628 tools for syntax (Stream Parsers and Grammars) and the ability to modify the
629 concrete syntax of the language (Quotations, Syntax Extensions).")
630 ;; Most files are distributed under bsd-3, but ocaml_stuff/* is under qpl.
631 (license (list license:bsd-3 license:qpl))))
632
633 (define-public hevea
634 (package
635 (name "hevea")
636 (version "2.32")
637 (source (origin
638 (method url-fetch)
639 (uri (string-append "http://hevea.inria.fr/old/"
640 name "-" version ".tar.gz"))
641 (sha256
642 (base32
643 "1s4yqphfcr1pf5mcj5c84mvmd107k525iiym5jdwsxz0ka0ccmfy"))))
644 (build-system gnu-build-system)
645 (inputs
646 `(("ocaml" ,ocaml)))
647 (native-inputs
648 `(("ocamlbuild" ,ocamlbuild)))
649 (arguments
650 `(#:tests? #f ; no test suite
651 #:make-flags (list (string-append "PREFIX=" %output))
652 #:phases (modify-phases %standard-phases
653 (delete 'configure)
654 (add-before 'build 'patch-/bin/sh
655 (lambda _
656 (substitute* "_tags"
657 (("/bin/sh") (which "sh")))
658 #t)))))
659 (home-page "http://hevea.inria.fr/")
660 (synopsis "LaTeX to HTML translator")
661 (description
662 "HeVeA is a LaTeX to HTML translator that generates modern HTML 5. It is
663 written in Objective Caml.")
664 (license license:qpl)))
665
666 (define-public ocaml-num
667 (package
668 (name "ocaml-num")
669 (version "1.1")
670 (source
671 (origin
672 (method git-fetch)
673 (uri (git-reference
674 (url "https://github.com/ocaml/num.git")
675 (commit (string-append "v" version))))
676 (file-name (git-file-name name version))
677 (sha256
678 (base32 "0a4mhxgs5hi81d227aygjx35696314swas0vzy3ig809jb7zq4h0"))))
679 (build-system ocaml-build-system)
680 (arguments
681 `(#:phases
682 (modify-phases %standard-phases
683 (delete 'configure)
684 (add-before 'build 'fix-makefile
685 (lambda* (#:key outputs #:allow-other-keys)
686 ;; This package supposes we install to the same directory as
687 ;; the ocaml package.
688 (substitute* "src/META"
689 (("\"\\^\"") (string-append "\"" (assoc-ref outputs "out")
690 "/lib/ocaml/site-lib\"")))
691 (substitute* "src/Makefile"
692 (("\\) \\$\\(STDLIBDIR\\)")
693 (string-append ") " (assoc-ref outputs "out")
694 "/lib/ocaml/site-lib")))
695 #t))
696 (add-after 'install 'fix-stubslib
697 (lambda* (#:key outputs #:allow-other-keys)
698 (format #t "~a~%" (find-files "." ".*.so"))
699 (let ((stubdir (string-append (assoc-ref outputs "out")
700 "/lib/ocaml/site-lib/stublibs")))
701 (delete-file stubdir)
702 (mkdir-p stubdir)
703 (install-file "src/dllnums.so" stubdir))
704 #t)))))
705 (home-page "https://github.com/ocaml/num")
706 (synopsis "Arbitrary-precision integer and rational arithmetic")
707 (description "OCaml-Num contains the legacy Num library for
708 arbitrary-precision integer and rational arithmetic that used to be part of
709 the OCaml core distribution.")
710 (license license:lgpl2.1+))); with linking exception
711
712 (define-public emacs-tuareg
713 (package
714 (name "emacs-tuareg")
715 (version "2.2.0")
716 (source
717 (origin
718 (method git-fetch)
719 (uri (git-reference
720 (url "https://github.com/ocaml/tuareg.git")
721 (commit version)))
722 (file-name (git-file-name name version))
723 (sha256
724 (base32 "06zxnn85fk5087iq0zxc5l5n9fz8r0367wylmynbfhc9711vccy6"))))
725 (build-system gnu-build-system)
726 (native-inputs `(("emacs" ,emacs-minimal)
727 ("opam" ,opam)))
728 (arguments
729 `(#:phases
730 (modify-phases %standard-phases
731 (add-after 'unpack 'make-git-checkout-writable
732 (lambda _
733 (for-each make-file-writable (find-files "."))
734 #t))
735 (delete 'configure)
736 (add-before 'install 'fix-install-path
737 (lambda* (#:key outputs #:allow-other-keys)
738 (substitute* "Makefile"
739 (("/emacs/site-lisp")
740 (string-append (assoc-ref %outputs "out")
741 "/share/emacs/site-lisp/")))
742 #t))
743 (add-after 'install 'post-install
744 (lambda* (#:key outputs #:allow-other-keys)
745 (symlink "tuareg.el"
746 (string-append (assoc-ref outputs "out")
747 "/share/emacs/site-lisp/"
748 "tuareg-autoloads.el"))
749 #t)))))
750 (home-page "https://github.com/ocaml/tuareg")
751 (synopsis "OCaml programming mode, REPL, debugger for Emacs")
752 (description "Tuareg helps editing OCaml code, to highlight important
753 parts of the code, to run an OCaml REPL, and to run the OCaml debugger within
754 Emacs.")
755 (license license:gpl2+)))
756
757 (define-public ocaml-menhir
758 (package
759 (name "ocaml-menhir")
760 (version "20181113")
761 (source
762 (origin
763 (method git-fetch)
764 (uri (git-reference
765 (url "https://gitlab.inria.fr/fpottier/menhir.git")
766 (commit version)))
767 (file-name (git-file-name name version))
768 (sha256
769 (base32 "1iqdf64ayq4s3d9jkwhs3s8wqc2s48b292hp0kcjsskfhcvwg0kr"))))
770 (build-system ocaml-build-system)
771 (inputs
772 `(("ocaml" ,ocaml)))
773 (native-inputs
774 `(("ocamlbuild" ,ocamlbuild)))
775 (arguments
776 `(#:make-flags `("USE_OCAMLFIND=true"
777 ,(string-append "PREFIX=" (assoc-ref %outputs "out")))
778 #:tests? #f ; No check target
779 #:phases
780 (modify-phases %standard-phases
781 (delete 'configure))))
782 (home-page "http://gallium.inria.fr/~fpottier/menhir/")
783 (synopsis "Parser generator")
784 (description "Menhir is a parser generator. It turns high-level grammar
785 specifications, decorated with semantic actions expressed in the OCaml
786 programming language into parsers, again expressed in OCaml. It is based on
787 Knuth’s LR(1) parser construction technique.")
788 ;; The file src/standard.mly and all files listed in src/mnehirLib.mlpack
789 ;; that have an *.ml or *.mli extension are GPL licensed. All other files
790 ;; are QPL licensed.
791 (license (list license:gpl2+ license:qpl))))
792
793 (define-public ocaml-bigarray-compat
794 (package
795 (name "ocaml-bigarray-compat")
796 (version "1.0.0")
797 (source (origin
798 (method git-fetch)
799 (uri (git-reference
800 (url "https://github.com/mirage/bigarray-compat")
801 (commit (string-append "v" version))))
802 (file-name (git-file-name name version))
803 (sha256
804 (base32
805 "06j1dwlpisxshdd0nab4n4x266gg1s1n8na16lpgw3fvcznwnimz"))))
806 (build-system dune-build-system)
807 (arguments
808 `(#:tests? #f)); no tests
809 (home-page "https://github.com/mirage/bigarray-compat")
810 (synopsis "OCaml compatibility library")
811 (description "This package contains a compatibility library for
812 @code{Stdlib.Bigarray} in OCaml.")
813 (license license:isc)))
814
815 (define-public lablgtk
816 (package
817 (name "lablgtk")
818 (version "2.18.6")
819 (source (origin
820 (method url-fetch)
821 (uri (ocaml-forge-uri name version 1726))
822 (sha256
823 (base32
824 "1y38fdvswy6hmppm65qvgdk4pb3ghhnvz7n4ialf46340r1s5p2d"))))
825 (build-system gnu-build-system)
826 (native-inputs
827 `(("camlp4" ,camlp4)
828 ("ocaml" ,ocaml)
829 ("findlib" ,ocaml-findlib)
830 ("pkg-config" ,pkg-config)))
831 ;; FIXME: Add inputs gtkgl-2.0, libpanelapplet-2.0, gtkspell-2.0,
832 ;; and gtk+-quartz-2.0 once available.
833 (inputs
834 `(("gtk+" ,gtk+-2)
835 ("gtksourceview" ,gtksourceview-2)
836 ("libgnomecanvas" ,libgnomecanvas)
837 ("libgnomeui" ,libgnomeui)
838 ("libglade" ,libglade)
839 ("librsvg" ,librsvg)))
840 (arguments
841 `(#:tests? #f ; no check target
842
843 ;; opt: also install cmxa files
844 #:make-flags (list "all" "opt"
845 (string-append "FINDLIBDIR="
846 (assoc-ref %outputs "out")
847 "/lib/ocaml"))
848 ;; Occasionally we would get "Error: Unbound module GtkThread" when
849 ;; compiling 'gtkThInit.ml', with 'make -j'. So build sequentially.
850 #:parallel-build? #f
851
852 #:phases
853 (modify-phases %standard-phases
854 (add-before 'install 'prepare-install
855 (lambda* (#:key inputs outputs #:allow-other-keys)
856 (let ((out (assoc-ref outputs "out"))
857 (ocaml (assoc-ref inputs "ocaml")))
858 ;; Install into the output and not the ocaml directory.
859 (mkdir-p (string-append out "/lib/ocaml"))
860 (substitute* "config.make"
861 ((ocaml) out))
862 #t))))))
863 (home-page "http://lablgtk.forge.ocamlcore.org/")
864 (synopsis "GTK+ bindings for OCaml")
865 (description
866 "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides
867 a strongly-typed object-oriented interface that is compatible with the
868 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
869 also provides bindings to
870 gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas,
871 gnomeui, gtksourceview, gtkspell,
872 libglade (and it an generate OCaml code from .glade files),
873 libpanel, librsvg and quartz.")
874 (license license:lgpl2.1)))
875
876 (define-public unison
877 (package
878 (name "unison")
879 (version "2.51.2")
880 (source (origin
881 (method git-fetch)
882 (uri (git-reference
883 (url "https://github.com/bcpierce00/unison.git")
884 (commit (string-append "v" version))))
885 (file-name (git-file-name name version))
886 (sha256
887 (base32
888 "1bykiyc0dc5pkw8x370qkg2kygq9pq7yqzsgczd3y13b6ivm4sdq"))))
889 (build-system gnu-build-system)
890 (outputs '("out"
891 "doc")) ; 1.9 MiB of documentation
892 (native-inputs
893 `(("ocaml" ,ocaml)
894 ;; For documentation
895 ("ghostscript" ,ghostscript)
896 ("texlive" ,texlive-tiny)
897 ("hevea" ,hevea)
898 ("lynx" ,lynx)
899 ("which" ,which)))
900 (arguments
901 `(#:parallel-build? #f
902 #:parallel-tests? #f
903 #:test-target "selftest"
904 #:tests? #f ; Tests require writing to $HOME.
905 ; If some $HOME is provided, they fail with the message
906 ; "Fatal error: Skipping some tests -- remove me!"
907 #:phases
908 (modify-phases %standard-phases
909 (delete 'configure)
910 (add-before 'install 'prepare-install
911 (lambda* (#:key outputs #:allow-other-keys)
912 (let* ((out (assoc-ref outputs "out"))
913 (bin (string-append out "/bin")))
914 (mkdir-p bin)
915 (setenv "HOME" out) ; forces correct INSTALLDIR in Makefile
916 #t)))
917 (add-after 'install 'install-fsmonitor
918 (lambda* (#:key outputs #:allow-other-keys)
919 (let* ((out (assoc-ref outputs "out"))
920 (bin (string-append out "/bin")))
921 ;; 'unison-fsmonitor' is used in "unison -repeat watch" mode.
922 (install-file "src/unison-fsmonitor" bin)
923 #t)))
924 (add-after 'install 'install-doc
925 (lambda* (#:key outputs #:allow-other-keys)
926 (let ((doc (string-append (assoc-ref outputs "doc")
927 "/share/doc/unison")))
928 (mkdir-p doc)
929 ;; Remove an '\n' that prevents the doc to be generated
930 ;; correctly with newer hevea.
931 (substitute* "doc/local.tex"
932 (("----SNIP----.*") "----SNIP----"))
933 ;; This file needs write-permissions, because it's
934 ;; overwritten by 'docs' during documentation generation.
935 (chmod "src/strings.ml" #o600)
936 (invoke "make" "docs"
937 "TEXDIRECTIVES=\\\\draftfalse")
938 (for-each (lambda (f)
939 (install-file f doc))
940 (map (lambda (ext)
941 (string-append "doc/unison-manual." ext))
942 ;; Install only html documentation,
943 ;; since the build is currently
944 ;; non-reproducible with the ps, pdf,
945 ;; and dvi docs.
946 '(;; "ps" "pdf" "dvi"
947 "html")))
948 #t))))))
949 (home-page "https://www.cis.upenn.edu/~bcpierce/unison/")
950 (synopsis "File synchronizer")
951 (description
952 "Unison is a file-synchronization tool. It allows two replicas of
953 a collection of files and directories to be stored on different hosts
954 (or different disks on the same host), modified separately, and then
955 brought up to date by propagating the changes in each replica
956 to the other.")
957 (license license:gpl3+)))
958
959 (define-public ocaml-findlib
960 (package
961 (name "ocaml-findlib")
962 (version "1.8.0")
963 (source (origin
964 (method url-fetch)
965 (uri (string-append "http://download.camlcity.org/download/"
966 "findlib" "-" version ".tar.gz"))
967 (sha256
968 (base32
969 "1b97zqjdriqd2ikgh4rmqajgxwdwn013riji5j53y3xvcmnpsyrb"))))
970 (build-system gnu-build-system)
971 (native-inputs
972 `(("camlp4" ,camlp4)
973 ("m4" ,m4)
974 ("ocaml" ,ocaml)))
975 (arguments
976 `(#:tests? #f ; no test suite
977 #:parallel-build? #f
978 #:make-flags (list "all" "opt")
979 #:phases (modify-phases %standard-phases
980 (replace
981 'configure
982 (lambda* (#:key inputs outputs #:allow-other-keys)
983 (let ((out (assoc-ref outputs "out")))
984 (invoke
985 "./configure"
986 "-bindir" (string-append out "/bin")
987 "-config" (string-append out "/etc/ocamfind.conf")
988 "-mandir" (string-append out "/share/man")
989 "-sitelib" (string-append out "/lib/ocaml/site-lib")
990 "-with-toolbox"))))
991 (replace 'install
992 (lambda* (#:key outputs #:allow-other-keys)
993 (let ((out (assoc-ref outputs "out")))
994 (invoke "make" "install"
995 (string-append "OCAML_CORE_STDLIB="
996 out "/lib/ocaml/site-lib")))))
997 (add-after 'install 'remove-camlp4
998 (lambda* (#:key outputs #:allow-other-keys)
999 (let ((out (assoc-ref outputs "out")))
1000 (delete-file-recursively
1001 (string-append out "/lib/ocaml/site-lib/camlp4"))
1002 #t))))))
1003 (home-page "http://projects.camlcity.org/projects/findlib.html")
1004 (synopsis "Management tool for OCaml libraries")
1005 (description
1006 "The \"findlib\" library provides a scheme to manage reusable software
1007 components (packages), and includes tools that support this scheme. Packages
1008 are collections of OCaml modules for which metainformation can be stored. The
1009 packages are kept in the file system hierarchy, but with strict directory
1010 structure. The library contains functions to look the directory up that
1011 stores a package, to query metainformation about a package, and to retrieve
1012 dependency information about multiple packages. There is also a tool that
1013 allows the user to enter queries on the command-line. In order to simplify
1014 compilation and linkage, there are new frontends of the various OCaml
1015 compilers that can directly deal with packages.")
1016 (license license:x11)))
1017
1018 ;; note that some tests may hang for no obvious reason.
1019 (define-public ocaml-ounit
1020 (package
1021 (name "ocaml-ounit")
1022 (version "2.0.8")
1023 (source (origin
1024 (method url-fetch)
1025 (uri (ocaml-forge-uri "ounit" version 1749))
1026 (sha256
1027 (base32
1028 "03ifp9hjcxg4m5j190iy373jcn4039d3vy10kmd8p4lfciwzwc1f"))))
1029 (build-system ocaml-build-system)
1030 (native-inputs
1031 `(("libxml2" ,libxml2) ; for xmllint
1032 ("ocamlbuild" ,ocamlbuild)))
1033 (arguments
1034 `(#:phases
1035 (modify-phases %standard-phases
1036 (delete 'check)))) ; tests are run during build
1037 (home-page "http://ounit.forge.ocamlcore.org")
1038 (synopsis "Unit testing framework for OCaml")
1039 (description "Unit testing framework for OCaml. It is similar to JUnit and
1040 other XUnit testing frameworks.")
1041 (license license:expat)))
1042
1043 (define-public camlzip
1044 (package
1045 (name "camlzip")
1046 (version "1.0.6")
1047 (source (origin
1048 (method url-fetch)
1049 (uri (ocaml-forge-uri name version 1616))
1050 (sha256
1051 (base32
1052 "0m6gyjw46w3qnhxfsyqyag42znl5lwargks7w7rfchr9jzwpff68"))))
1053 (build-system ocaml-build-system)
1054 (inputs
1055 `(("zlib" ,zlib)))
1056 (arguments
1057 `(#:phases
1058 (modify-phases %standard-phases
1059 (delete 'configure)
1060 (add-after 'install 'install-camlzip
1061 (lambda* (#:key outputs #:allow-other-keys)
1062 (let* ((out (assoc-ref outputs "out"))
1063 (dir (string-append out "/lib/ocaml/site-lib/camlzip")))
1064 (mkdir-p dir)
1065 (call-with-output-file (string-append dir "/META")
1066 (lambda (port)
1067 (format port "version=\"1.06\"\n")
1068 (format port "requires=\"unix\"\n")
1069 (format port "archive(byte)=\"zip.cma\"\n")
1070 (format port "archive(native)=\"zip.cmxa\"\n")
1071 (format port "archive(native,plugin)=\"zip.cmxs\"\n")
1072 (format port "directory=\"../zip\"\n")))))))
1073 #:install-target "install-findlib"
1074 #:make-flags
1075 (list "all" "allopt"
1076 (string-append "INSTALLDIR=" (assoc-ref %outputs "out")
1077 "/lib/ocaml"))))
1078 (home-page "http://forge.ocamlcore.org/projects/camlzip")
1079 (synopsis "Provides easy access to compressed files")
1080 (description "Provides easy access to compressed files in ZIP, GZIP and
1081 JAR format. It provides functions for reading from and writing to compressed
1082 files in these formats.")
1083 (license license:lgpl2.1+)))
1084
1085 (define-public ocamlmod
1086 (package
1087 (name "ocamlmod")
1088 (version "0.0.9")
1089 (source (origin
1090 (method url-fetch)
1091 (uri (ocaml-forge-uri name version 1702))
1092 (sha256
1093 (base32
1094 "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa"))))
1095 (build-system ocaml-build-system)
1096 (native-inputs
1097 `(("ounit" ,ocaml-ounit)
1098 ("ocamlbuild" ,ocamlbuild)))
1099 (arguments
1100 `(#:phases
1101 (modify-phases %standard-phases
1102 ;; Tests are done during build.
1103 (delete 'check))))
1104 (home-page "https://forge.ocamlcore.org/projects/ocamlmod")
1105 (synopsis "Generate modules from OCaml source files")
1106 (description "Generate modules from OCaml source files.")
1107 (license license:lgpl2.1+))) ; with an exception
1108
1109 (define-public ocaml-zarith
1110 (package
1111 (name "ocaml-zarith")
1112 (version "1.7")
1113 (source (origin
1114 (method git-fetch)
1115 (uri (git-reference
1116 (url "https://github.com/ocaml/Zarith")
1117 (commit (string-append "release-" version))))
1118 (sha256
1119 (base32
1120 "08x5xnamibhvxl50f1bb3jl9ym0hm6004hmc54xnrnrv7jxz9rvz"))))
1121 (build-system ocaml-build-system)
1122 (native-inputs
1123 `(("perl" ,perl)))
1124 (inputs
1125 `(("gmp" ,gmp)))
1126 (arguments
1127 `(#:tests? #f ; no test target
1128 #:phases
1129 (modify-phases %standard-phases
1130 (replace 'configure
1131 (lambda _ (invoke "./configure"))))))
1132 (home-page "https://forge.ocamlcore.org/projects/zarith/")
1133 (synopsis "Implements arbitrary-precision integers")
1134 (description "Implements arithmetic and logical operations over
1135 arbitrary-precision integers. It uses GMP to efficiently implement arithmetic
1136 over big integers. Small integers are represented as Caml unboxed integers,
1137 for speed and space economy.")
1138 (license license:lgpl2.1+))) ; with an exception
1139
1140 (define-public ocaml-frontc
1141 (package
1142 (name "ocaml-frontc")
1143 (version "3.4.1")
1144 (source (origin
1145 (method git-fetch)
1146 (uri (git-reference
1147 (url "https://github.com/BinaryAnalysisPlatform/FrontC")
1148 (commit (string-append
1149 "V_" (string-join (string-split version #\.) "_")))))
1150 (file-name (git-file-name name version))
1151 (sha256
1152 (base32
1153 "1dq5nks0c9gsbr1m8k39m1bniawr5hqcy1r8x5px7naa95ch06ak"))))
1154 (build-system ocaml-build-system)
1155 (arguments
1156 `(#:phases
1157 (modify-phases %standard-phases
1158 (delete 'configure)
1159 (add-after 'install 'install-meta
1160 (lambda* (#:key outputs #:allow-other-keys)
1161 (let ((out (assoc-ref outputs "out")))
1162 (with-output-to-file
1163 (string-append out "/lib/ocaml/frontc/META")
1164 (lambda _
1165 (display
1166 (string-append
1167 "description = \"Parser for the C language\"
1168 version = \"" ,version "\"
1169 requires = \"unix\"
1170 archive(byte) = \"frontc.cma\"
1171 archive(native) = \"frontc.cmxa\""))))
1172 (symlink (string-append out "/lib/ocaml/frontc")
1173 (string-append out "/lib/ocaml/FrontC"))))))
1174 #:make-flags (list (string-append "PREFIX="
1175 (assoc-ref %outputs "out"))
1176 "OCAML_SITE=$(LIB_DIR)/ocaml/")))
1177 (properties `((upstream-name . "FrontC")))
1178 (home-page "https://www.irit.fr/FrontC")
1179 (synopsis "C parser and lexer library")
1180 (description "FrontC is an OCAML library providing a C parser and lexer.
1181 The result is a syntactic tree easy to process with usual OCAML tree management.
1182 It provides support for ANSI C syntax, old-C K&R style syntax and the standard
1183 GNU CC attributes. It provides also a C pretty printer as an example of use.")
1184 (license license:lgpl2.1)))
1185
1186 (define-public ocaml-qcheck
1187 (package
1188 (name "ocaml-qcheck")
1189 (version "0.9")
1190 (source
1191 (origin
1192 (method git-fetch)
1193 (uri (git-reference
1194 (url "https://github.com/c-cube/qcheck.git")
1195 (commit version)))
1196 (file-name (git-file-name name version))
1197 (sha256
1198 (base32 "0w83v9ylycsssyn47q8wnkfbvhn5vn10z6i35n5965i2m1r0mmcf"))))
1199 (build-system dune-build-system)
1200 (arguments
1201 `(#:test-target "."))
1202 (native-inputs
1203 `(("ocaml-alcotest" ,ocaml-alcotest)
1204 ("ocaml-ounit" ,ocaml-ounit)
1205 ("ocamlbuild" ,ocamlbuild)))
1206 (home-page "https://github.com/c-cube/qcheck")
1207 (synopsis "QuickCheck inspired property-based testing for OCaml")
1208 (description "QuickCheck inspired property-based testing for OCaml. This
1209 module allows to check invariants (properties of some types) over randomly
1210 generated instances of the type. It provides combinators for generating
1211 instances and printing them.")
1212 (license license:lgpl3+)))
1213
1214 (define-public ocaml-qtest
1215 (package
1216 (name "ocaml-qtest")
1217 (version "2.9")
1218 (source (origin
1219 (method git-fetch)
1220 (uri (git-reference
1221 (url "https://github.com/vincent-hugot/qtest/")
1222 (commit (string-append "v" version))))
1223 (file-name (git-file-name name version))
1224 (sha256
1225 (base32
1226 "1ifxc8jndwah82g5k8xaa7jskbv866j4zpd0w41f0pskg4y0z9g1"))))
1227 (build-system dune-build-system)
1228 (arguments
1229 `(#:jbuild? #t
1230 #:test-target "tests"))
1231 (propagated-inputs
1232 `(("ounit" ,ocaml-ounit)
1233 ("qcheck" ,ocaml-qcheck)))
1234 (home-page "https://github.com/vincent-hugot/qtest")
1235 (synopsis "Inline (Unit) Tests for OCaml")
1236 (description "Qtest extracts inline unit tests written using a special
1237 syntax in comments. Those tests are then run using the oUnit framework and the
1238 qcheck library. The possibilities range from trivial tests -- extremely simple
1239 to use -- to sophisticated random generation of test cases.")
1240 (license license:lgpl3+)))
1241
1242 (define-public ocaml-stringext
1243 (package
1244 (name "ocaml-stringext")
1245 (version "1.5.0")
1246 (source (origin
1247 (method git-fetch)
1248 (uri (git-reference
1249 (url "https://github.com/rgrinberg/stringext")
1250 (commit version)))
1251 (file-name (git-file-name name version))
1252 (sha256
1253 (base32
1254 "0035pyakk0r7pfhkrayvqncpv9mk6lssr455j3prmdcirh6s50d7"))))
1255 (build-system dune-build-system)
1256 (arguments
1257 `(#:test-target "."))
1258 (native-inputs
1259 `(("ocamlbuild" ,ocamlbuild)
1260 ("qtest" ,ocaml-qtest)))
1261 (home-page "https://github.com/rgrinberg/stringext")
1262 (synopsis "Extra string functions for OCaml")
1263 (description "Provides a single module named Stringext that provides a grab
1264 bag of often used but missing string functions from the stdlib. E.g, split,
1265 full_split, cut, rcut, etc..")
1266 ;; the only mention of a license in this project is in its `opam' file
1267 ;; where it says `mit'.
1268 (license license:expat)))
1269
1270 (define-public ocaml-bisect
1271 (package
1272 (name "ocaml-bisect")
1273 (version "1.3.1")
1274 (source
1275 (origin
1276 (method git-fetch)
1277 (uri (git-reference
1278 (url "https://github.com/gasche/bisect.git")
1279 (commit version)))
1280 (file-name (git-file-name name version))
1281 (sha256
1282 (base32 "0hm5za61qydda6ri3887b4zqqbqilh42x712xnclm1rr7ggga2nh"))
1283 (patches
1284 (search-patches
1285 "ocaml-bisect-fix-camlp4-in-another-directory.patch"))))
1286 (build-system ocaml-build-system)
1287 (native-inputs
1288 `(("camlp4" ,camlp4)
1289 ("libxml2" ,libxml2)
1290 ("ocamlbuild" ,ocamlbuild)
1291 ("which" ,which)))
1292 (propagated-inputs
1293 `(("camlp4" ,camlp4)))
1294 (arguments
1295 `(#:test-target "tests"
1296 #:make-flags
1297 (list "all" (string-append "CAMLP4_LIBDIR="
1298 (assoc-ref %build-inputs "camlp4")
1299 "/lib/ocaml/site-lib/camlp4"))
1300 #:phases
1301 (modify-phases %standard-phases
1302 (replace 'configure
1303 (lambda* (#:key inputs outputs #:allow-other-keys)
1304 (invoke "./configure" "-prefix" (assoc-ref outputs "out")
1305 "-ocaml-prefix" (assoc-ref inputs "ocaml")
1306 "-camlp4-prefix" (assoc-ref inputs "camlp4"))
1307 #t)))))
1308 (home-page "http://bisect.x9c.fr")
1309 (synopsis "Code coverage tool for the OCaml language")
1310 (description "Bisect is a code coverage tool for the OCaml language. It is
1311 a camlp4-based tool that allows to instrument your application before running
1312 tests. After application execution, it is possible to generate a report in HTML
1313 format that is the replica of the application source code annotated with code
1314 coverage information.")
1315 (license license:gpl3+)))
1316
1317 (define-public dune
1318 (package
1319 (name "dune")
1320 (version "1.9.3")
1321 (source (origin
1322 (method url-fetch)
1323 (uri (string-append "https://github.com/ocaml/dune/releases/"
1324 "download/" version "/dune-" version ".tbz"))
1325 (sha256
1326 (base32
1327 "1jlhnx580v6i1d451z5cl8ibfd0m9qln963y2pp5v6s2winyqyri"))))
1328 (build-system ocaml-build-system)
1329 (arguments
1330 `(#:tests? #f; require odoc
1331 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1332 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1333 "/lib/ocaml/site-lib"))
1334 #:phases
1335 (modify-phases %standard-phases
1336 (replace 'configure
1337 (lambda* (#:key outputs #:allow-other-keys)
1338 (invoke "./configure")
1339 #t)))))
1340 (home-page "https://github.com/ocaml/dune")
1341 (synopsis "OCaml build system")
1342 (description "Dune is a build system that was designed to simplify the
1343 release of Jane Street packages. It reads metadata from @file{dune} files
1344 following a very simple s-expression syntax.")
1345 (license license:expat)))
1346
1347 (define-public ocaml-migrate-parsetree
1348 (package
1349 (name "ocaml-migrate-parsetree")
1350 (version "1.2.0")
1351 (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
1352 (source
1353 (origin
1354 (method git-fetch)
1355 (uri (git-reference
1356 (url (string-append home-page ".git"))
1357 (commit (string-append "v" version))))
1358 (file-name (git-file-name name version))
1359 (sha256
1360 (base32
1361 "16kas19iwm4afijv3yxd250s08absabmdcb4yj57wc8r4fmzv5dm"))))
1362 (build-system dune-build-system)
1363 (arguments
1364 `(#:tests? #f))
1365 (propagated-inputs
1366 `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
1367 ("ocamlbuild" ,ocamlbuild)
1368 ("ocaml-result" ,ocaml-result)))
1369 (properties `((upstream-name . "ocaml-migrate-parsetree")))
1370 (synopsis "OCaml parsetree converter")
1371 (description "This library converts between parsetrees of different OCaml
1372 versions. For each version, there is a snapshot of the parsetree and conversion
1373 functions to the next and/or previous version.")
1374 (license license:lgpl2.1+)))
1375
1376 (define-public ocaml-ppx-tools-versioned
1377 (package
1378 (name "ocaml-ppx-tools-versioned")
1379 (version "5.2.1")
1380 (source (origin
1381 (method url-fetch)
1382 (uri (string-append "https://github.com/ocaml-ppx/"
1383 "ppx_tools_versioned/archive/"
1384 version ".tar.gz"))
1385 (file-name (string-append name "-" version ".tar.gz"))
1386 (sha256
1387 (base32
1388 "1x2xfjpkzbcz4rza1d7gh3ipliw6jqfcklbsln82v3561qgkqgmh"))))
1389 (build-system dune-build-system)
1390 (arguments
1391 `(#:test-target "."))
1392 (propagated-inputs
1393 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
1394 (properties `((upstream-name . "ppx_tools_versioned")))
1395 (home-page "https://github.com/let-def/ppx_tools_versioned")
1396 (synopsis "Variant of ppx_tools")
1397 (description "This package is a variant of ppx_tools based on
1398 ocaml-migrate-parsetree")
1399 (license license:expat)))
1400
1401 (define-public ocaml-bitstring
1402 (package
1403 (name "ocaml-bitstring")
1404 (version "3.1.0")
1405 (source (origin
1406 (method url-fetch)
1407 (uri (string-append "https://bitbucket.org/thanatonauts/bitstring/"
1408 "get/v" version ".tar.gz"))
1409 (file-name (string-append name "-" version ".tar.gz"))
1410 (sha256
1411 (base32
1412 "15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps"))))
1413 (build-system dune-build-system)
1414 (native-inputs
1415 `(("camlp4" ,camlp4)
1416 ("time" ,time)
1417 ("autoconf" ,autoconf)
1418 ("automake" ,automake)
1419 ("bisect" ,ocaml-bisect)))
1420 (propagated-inputs
1421 `(("camlp4" ,camlp4)
1422 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
1423 (arguments
1424 `(#:tests? #f; Tests fail to build
1425 #:jbuild? #t))
1426 (home-page "https://github.com/xguerin/bitstring")
1427 (synopsis "Bitstrings and bitstring matching for OCaml")
1428 (description "Adds Erlang-style bitstrings and matching over bitstrings as
1429 a syntax extension and library for OCaml. You can use this module to both parse
1430 and generate binary formats, files and protocols. Bitstring handling is added
1431 as primitives to the language, making it exceptionally simple to use and very
1432 powerful.")
1433 (license license:isc)))
1434
1435 (define-public ocaml-result
1436 (package
1437 (name "ocaml-result")
1438 (version "1.3")
1439 (source (origin
1440 (method git-fetch)
1441 (uri (git-reference
1442 (url "https://github.com/janestreet/result")
1443 (commit version)))
1444 (file-name (git-file-name name version))
1445 (sha256
1446 (base32
1447 "081ayblszn9pj2rqcif40x6cz2zda48vi45gy49rc2qfc4gszry3"))))
1448 (build-system dune-build-system)
1449 (arguments
1450 `(#:test-target "."))
1451 (home-page "https://github.com/janestreet/result")
1452 (synopsis "Compatibility Result module")
1453 (description "Uses the new result type defined in OCaml >= 4.03 while
1454 staying compatible with older version of OCaml should use the Result module
1455 defined in this library.")
1456 (license license:bsd-3)))
1457
1458 (define-public ocaml-topkg
1459 (package
1460 (name "ocaml-topkg")
1461 (version "1.0.0")
1462 (source (origin
1463 (method url-fetch)
1464 (uri (string-append "http://erratique.ch/software/topkg/releases/"
1465 "topkg-" version ".tbz"))
1466 (sha256
1467 (base32
1468 "1df61vw6v5bg2mys045682ggv058yqkqb67w7r2gz85crs04d5fw"))))
1469 (build-system ocaml-build-system)
1470 (native-inputs
1471 `(("opam" ,opam)
1472 ("ocamlbuild" ,ocamlbuild)))
1473 (propagated-inputs
1474 `(("result" ,ocaml-result)))
1475 (arguments
1476 `(#:tests? #f
1477 #:build-flags '("build")
1478 #:phases
1479 (modify-phases %standard-phases
1480 (delete 'configure))))
1481 (home-page "http://erratique.ch/software/topkg")
1482 (synopsis "Transitory OCaml software packager")
1483 (description "Topkg is a packager for distributing OCaml software. It
1484 provides an API to describe the files a package installs in a given build
1485 configuration and to specify information about the package's distribution,
1486 creation and publication procedures.")
1487 (license license:isc)))
1488
1489 (define-public ocaml-rresult
1490 (package
1491 (name "ocaml-rresult")
1492 (version "0.5.0")
1493 (source (origin
1494 (method url-fetch)
1495 (uri (string-append "http://erratique.ch/software/rresult/releases/"
1496 "rresult-" version ".tbz"))
1497 (sha256
1498 (base32
1499 "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm"))))
1500 (build-system ocaml-build-system)
1501 (native-inputs
1502 `(("opam" ,opam)
1503 ("ocamlbuild" ,ocamlbuild)))
1504 (propagated-inputs
1505 `(("topkg" ,ocaml-topkg)))
1506 (arguments
1507 `(#:tests? #f
1508 #:build-flags '("build")
1509 #:phases
1510 (modify-phases %standard-phases
1511 (delete 'configure))))
1512 (home-page "http://erratique.ch/software/rresult")
1513 (synopsis "Result value combinators for OCaml")
1514 (description "Handle computation results and errors in an explicit and
1515 declarative manner, without resorting to exceptions. It defines combinators
1516 to operate on the result type available from OCaml 4.03 in the standard
1517 library.")
1518 (license license:isc)))
1519
1520 (define-public ocaml-sqlite3
1521 (package
1522 (name "ocaml-sqlite3")
1523 (version "4.4.1")
1524 (source
1525 (origin
1526 (method git-fetch)
1527 (uri (git-reference
1528 (url "https://github.com/mmottl/sqlite3-ocaml")
1529 (commit version)))
1530 (file-name (git-file-name name version))
1531 (sha256
1532 (base32
1533 "1536agm5fgcqysszhpd3kmw7lkc5n5ni7gmlyglrbvmnmrwf3av2"))))
1534 (build-system dune-build-system)
1535 (native-inputs
1536 `(("ocaml-base" ,ocaml-base)
1537 ("ocaml-stdio" ,ocaml-stdio)
1538 ("pkg-config" ,pkg-config)))
1539 (inputs
1540 `(("sqlite" ,sqlite)))
1541 (home-page "https://mmottl.github.io/sqlite3-ocaml")
1542 (synopsis "SQLite3 Bindings for OCaml")
1543 (description
1544 "SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client
1545 API. Sqlite3 is a self-contained, serverless, zero-configuration,
1546 transactional SQL database engine with outstanding performance for many use
1547 cases. These bindings are written in a way that enables a friendly
1548 coexistence with the old (version 2) SQLite and its OCaml wrapper
1549 @code{ocaml-sqlite}.")
1550 (license license:expat)))
1551
1552 (define-public ocaml-csv
1553 (package
1554 (name "ocaml-csv")
1555 (version "2.2")
1556 (source
1557 (origin
1558 (method git-fetch)
1559 (uri (git-reference
1560 (url "https://github.com/Chris00/ocaml-csv")
1561 (commit version)))
1562 (file-name (git-file-name name version))
1563 (sha256
1564 (base32
1565 "07qdw8bbvprk78x96pnm807rhs82ks6sxis1cf5nyng8b5nvm2mv"))))
1566 (build-system dune-build-system)
1567 (arguments
1568 `(#:package "csv"
1569 #:test-target "."))
1570 (home-page "https://github.com/Chris00/ocaml-csv")
1571 (synopsis "Pure OCaml functions to read and write CSV")
1572 (description
1573 "@dfn{Comma separated values} (CSV) is a simple tabular format supported
1574 by all major spreadsheets. This library implements pure OCaml functions to
1575 read and write files in this format as well as some convenience functions to
1576 manipulate such data.")
1577 (license (package-license camlp4))))
1578
1579 (define-public ocaml-mtime
1580 (package
1581 (name "ocaml-mtime")
1582 (version "1.1.0")
1583 (source (origin
1584 (method url-fetch)
1585 (uri (string-append "http://erratique.ch/software/mtime/releases/"
1586 "mtime-" version ".tbz"))
1587 (sha256
1588 (base32
1589 "1qb4ljwirrc3g8brh97s76rjky2cpmy7zm87y7iqd6pxix52ydk3"))))
1590 (build-system ocaml-build-system)
1591 (native-inputs
1592 `(("ocamlbuild" ,ocamlbuild)
1593 ("opam" ,opam)))
1594 (propagated-inputs
1595 `(("topkg" ,ocaml-topkg)))
1596 (arguments
1597 `(#:tests? #f
1598 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1599 #:phases
1600 (modify-phases %standard-phases
1601 (delete 'configure))))
1602 (home-page "http://erratique.ch/software/mtime")
1603 (synopsis "Monotonic wall-clock time for OCaml")
1604 (description "Access monotonic wall-clock time. It allows to measure time
1605 spans without being subject to operating system calendar time adjustments.")
1606 (license license:isc)))
1607
1608 (define-public ocaml-cmdliner
1609 (package
1610 (name "ocaml-cmdliner")
1611 (version "1.0.3")
1612 (source (origin
1613 (method url-fetch)
1614 (uri (string-append "http://erratique.ch/software/cmdliner/releases/"
1615 "cmdliner-" version ".tbz"))
1616 (sha256
1617 (base32
1618 "0g3w4hvc1cx9x2yp5aqn6m2rl8lf9x1dn754hfq8m1sc1102lxna"))))
1619 (build-system ocaml-build-system)
1620 (inputs
1621 `(("ocaml-result" ,ocaml-result)))
1622 (native-inputs
1623 `(("ocamlbuild" ,ocamlbuild)))
1624 (arguments
1625 `(#:tests? #f
1626 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
1627 "/lib/ocaml/site-lib/cmdliner"))
1628 #:phases
1629 (modify-phases %standard-phases
1630 (delete 'configure)
1631 (add-before 'build 'fix-source-file-order
1632 (lambda _
1633 (substitute* "build.ml"
1634 (("Sys.readdir dir")
1635 "let a = Sys.readdir dir in Array.sort String.compare a; a"))
1636 #t)))))
1637 (home-page "http://erratique.ch/software/cmdliner")
1638 (synopsis "Declarative definition of command line interfaces for OCaml")
1639 (description "Cmdliner is a module for the declarative definition of command
1640 line interfaces. It provides a simple and compositional mechanism to convert
1641 command line arguments to OCaml values and pass them to your functions. The
1642 module automatically handles syntax errors, help messages and UNIX man page
1643 generation. It supports programs with single or multiple commands and respects
1644 most of the POSIX and GNU conventions.")
1645 (license license:bsd-3)))
1646
1647 (define-public ocaml-fmt
1648 (package
1649 (name "ocaml-fmt")
1650 (version "0.8.5")
1651 (source
1652 (origin
1653 (method url-fetch)
1654 (uri (string-append "http://erratique.ch/software/fmt/releases/fmt-"
1655 version ".tbz"))
1656 (sha256 (base32
1657 "1zj9azcxcn6skmb69ykgmi9z8c50yskwg03wqgh87lypgjdcz060"))))
1658 (build-system ocaml-build-system)
1659 (native-inputs
1660 `(("ocamlbuild" ,ocamlbuild)
1661 ("opam" ,opam)
1662 ("topkg" ,ocaml-topkg)))
1663 (propagated-inputs
1664 `(("result" ,ocaml-result)
1665 ("ocaml-uchar" ,ocaml-uchar)
1666 ("cmdliner" ,ocaml-cmdliner)))
1667 (arguments `(#:tests? #f
1668 #:build-flags (list "build" "--with-base-unix" "true"
1669 "--with-cmdliner" "true")
1670 #:phases
1671 (modify-phases %standard-phases
1672 (delete 'configure))))
1673 (home-page "http://erratique.ch/software/fmt")
1674 (synopsis "OCaml Format pretty-printer combinators")
1675 (description "Fmt exposes combinators to devise Format pretty-printing
1676 functions.")
1677 (license license:isc)))
1678
1679 (define-public ocaml-astring
1680 (package
1681 (name "ocaml-astring")
1682 (version "0.8.3")
1683 (source
1684 (origin
1685 (method url-fetch)
1686 (uri (string-append "http://erratique.ch/software/astring/releases/astring-"
1687 version ".tbz"))
1688 (sha256 (base32
1689 "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0"))))
1690 (build-system ocaml-build-system)
1691 (native-inputs
1692 `(("ocamlbuild" ,ocamlbuild)
1693 ("opam" ,opam)
1694 ("topkg" ,ocaml-topkg)))
1695 (arguments
1696 `(#:tests? #f
1697 #:build-flags (list "build")
1698 #:phases
1699 (modify-phases %standard-phases
1700 (delete 'configure))))
1701 (home-page "http://erratique.ch/software/astring")
1702 (synopsis "Alternative String module for OCaml")
1703 (description "Astring exposes an alternative String module for OCaml. This
1704 module balances minimality and expressiveness for basic, index-free, string
1705 processing and provides types and functions for substrings, string sets and
1706 string maps. The String module exposed by Astring has exception safe functions,
1707 removes deprecated and rarely used functions, alters some signatures and names,
1708 adds a few missing functions and fully exploits OCaml's newfound string
1709 immutability.")
1710 (license license:isc)))
1711
1712 (define-public ocaml-alcotest
1713 (package
1714 (name "ocaml-alcotest")
1715 (version "0.8.5")
1716 (source (origin
1717 (method url-fetch)
1718 (uri (string-append "https://github.com/mirage/alcotest/releases/"
1719 "download/" version "/alcotest-" version ".tbz"))
1720 (sha256
1721 (base32
1722 "0szwjxvaahgynsx0apj81jxj3ki6yz4is9mh2wkcbx66qy7n6fvb"))))
1723 (build-system dune-build-system)
1724 (arguments
1725 `(#:package "alcotest"
1726 #:test-target "."))
1727 (native-inputs
1728 `(("ocamlbuild" ,ocamlbuild)))
1729 (propagated-inputs
1730 `(("ocaml-astring" ,ocaml-astring)
1731 ("ocaml-cmdliner" ,ocaml-cmdliner)
1732 ("ocaml-fmt" ,ocaml-fmt)
1733 ("ocaml-result" ,ocaml-result)
1734 ("ocaml-uuidm" ,ocaml-uuidm)))
1735 (home-page "https://github.com/mirage/alcotest")
1736 (synopsis "Lightweight OCaml test framework")
1737 (description "Alcotest exposes simple interface to perform unit tests. It
1738 exposes a simple TESTABLE module type, a check function to assert test
1739 predicates and a run function to perform a list of unit -> unit test callbacks.
1740 Alcotest provides a quiet and colorful output where only faulty runs are fully
1741 displayed at the end of the run (with the full logs ready to inspect), with a
1742 simple (yet expressive) query language to select the tests to run.")
1743 (license license:isc)))
1744
1745 (define-public ocaml-ppx-tools
1746 (package
1747 (name "ocaml-ppx-tools")
1748 (version "5.1+4.06.0")
1749 (source
1750 (origin
1751 (method git-fetch)
1752 (uri (git-reference
1753 (url "https://github.com/alainfrisch/ppx_tools.git")
1754 (commit version)))
1755 (file-name (git-file-name name version))
1756 (sha256 (base32
1757 "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"))))
1758 (build-system ocaml-build-system)
1759 (arguments
1760 `(#:phases (modify-phases %standard-phases (delete 'configure))
1761 #:tests? #f))
1762 (properties `((upstream-name . "ppx_tools")))
1763 (home-page "https://github.com/alainfrisch/ppx_tools")
1764 (synopsis "Tools for authors of ppx rewriters and other syntactic tools")
1765 (description "Tools for authors of ppx rewriters and other syntactic tools.")
1766 (license license:expat)))
1767
1768 (define-public ocaml-react
1769 (package
1770 (name "ocaml-react")
1771 (version "1.2.1")
1772 (source
1773 (origin
1774 (method url-fetch)
1775 (uri (string-append "http://erratique.ch/software/react/releases/react-"
1776 version ".tbz"))
1777 (sha256 (base32
1778 "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v"))))
1779 (build-system ocaml-build-system)
1780 (native-inputs
1781 `(("ocamlbuild" ,ocamlbuild)
1782 ("opam" ,opam)
1783 ("ocaml-topkg" ,ocaml-topkg)))
1784 (arguments
1785 `(#:tests? #f
1786 #:build-flags (list "build")
1787 #:phases
1788 (modify-phases %standard-phases
1789 (delete 'configure))))
1790 (home-page "http://erratique.ch/software/react")
1791 (synopsis "Declarative events and signals for OCaml")
1792 (description "React is an OCaml module for functional reactive programming
1793 (FRP). It provides support to program with time varying values: declarative
1794 events and signals. React doesn't define any primitive event or signal, it
1795 lets the client choose the concrete timeline.")
1796 (license license:bsd-3)))
1797
1798 (define-public ocaml-ssl
1799 (package
1800 (name "ocaml-ssl")
1801 (version "0.5.7")
1802 (source
1803 (origin
1804 (method git-fetch)
1805 (uri (git-reference
1806 (url "https://github.com/savonet/ocaml-ssl.git")
1807 (commit version)))
1808 (file-name (git-file-name name version))
1809 (sha256 (base32
1810 "06zxqnwqkvf7pmj5s44jflkknv01czgbi4nbaac0ys1p7rv99y3x"))))
1811 (build-system dune-build-system)
1812 (arguments
1813 `(#:test-target "."))
1814 (native-inputs
1815 `(("autoconf" ,autoconf)
1816 ("automake" ,automake)
1817 ("which" ,which)))
1818 (propagated-inputs `(("openssl" ,openssl)))
1819 (home-page "https://github.com/savonet/ocaml-ssl/")
1820 (synopsis "OCaml bindings for OpenSSL")
1821 (description
1822 "OCaml-SSL is a set of bindings for OpenSSL, a library for communicating
1823 through Transport Layer Security (@dfn{TLS}) encrypted connections.")
1824 (license license:lgpl2.1)))
1825
1826 (define-public ocaml-lwt
1827 (package
1828 (name "ocaml-lwt")
1829 (version "4.1.0")
1830 (source
1831 (origin
1832 (method url-fetch)
1833 (uri (string-append "https://github.com/ocsigen/lwt/archive/" version
1834 ".tar.gz"))
1835 (file-name (string-append name "-" version ".tar.gz"))
1836 (sha256 (base32
1837 "0mhh019bjkg5xfvpy1pxs4xdxb759fyydmgb6l4j0qww1qgr8klp"))))
1838 (build-system dune-build-system)
1839 (arguments
1840 `(#:tests? #f; require lwt_ppx
1841 #:jbuild? #t
1842 #:phases
1843 (modify-phases %standard-phases
1844 (add-before 'build 'configure
1845 (lambda _
1846 (invoke "ocaml" "src/util/configure.ml" "-use-libev" "true")
1847 #t)))))
1848 (native-inputs
1849 `(("ocaml-cppo" ,ocaml-cppo)
1850 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
1851 ("pkg-config" ,pkg-config)
1852 ("ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
1853 (inputs
1854 `(("libev" ,libev)
1855 ("glib" ,glib)))
1856 (propagated-inputs
1857 `(("result" ,ocaml-result)
1858 ("ocaml-ssl" ,ocaml-ssl)
1859 ("ocaml-react" ,ocaml-react)))
1860 (home-page "https://github.com/ocsigen/lwt")
1861 (synopsis "Cooperative threads and I/O in monadic style")
1862 (description "Lwt provides typed, composable cooperative threads. These
1863 make it easy to run normally-blocking I/O operations concurrently in a single
1864 process. Also, in many cases, Lwt threads can interact without the need for
1865 locks or other synchronization primitives.")
1866 (license license:lgpl2.1)))
1867
1868 (define-public ocaml-lwt-log
1869 (package
1870 (name "ocaml-lwt-log")
1871 (version "1.1.0")
1872 (source
1873 (origin
1874 (method url-fetch)
1875 (uri (string-append "https://github.com/aantron/lwt_log/archive/" version
1876 ".tar.gz"))
1877 (file-name (string-append name "-" version ".tar.gz"))
1878 (sha256 (base32
1879 "1lr62j2266pbsi54xmzsfvl2z7fi7smhak7fp1ybl8hssxwi6in2"))))
1880 (build-system dune-build-system)
1881 (arguments
1882 `(#:tests? #f; require lwt_ppx
1883 #:jbuild? #t))
1884 (propagated-inputs
1885 `(("lwt" ,ocaml-lwt)))
1886 (properties `((upstream-name . "lwt_log")))
1887 (home-page "https://github.com/aantron/lwt_log")
1888 (synopsis "Logging library")
1889 (description "This package provides a deprecated logging component for
1890 ocaml lwt.")
1891 (license license:lgpl2.1)))
1892
1893 (define-public ocaml-logs
1894 (package
1895 (name "ocaml-logs")
1896 (version "0.6.2")
1897 (source (origin
1898 (method url-fetch)
1899 (uri (string-append "http://erratique.ch/software/logs/releases/"
1900 "logs-" version ".tbz"))
1901 (sha256
1902 (base32
1903 "1khbn7jqpid83zn8rvyh1x1sirls7zc878zj4fz985m5xlsfy853"))))
1904 (build-system ocaml-build-system)
1905 (arguments
1906 `(#:tests? #f
1907 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1908 #:phases
1909 (modify-phases %standard-phases
1910 (delete 'configure))))
1911 (native-inputs
1912 `(("ocamlbuild" ,ocamlbuild)
1913 ("opam" ,opam)))
1914 (propagated-inputs
1915 `(("fmt" ,ocaml-fmt)
1916 ("lwt" ,ocaml-lwt)
1917 ("mtime" ,ocaml-mtime)
1918 ("result" ,ocaml-result)
1919 ("cmdliner" ,ocaml-cmdliner)
1920 ("topkg" ,ocaml-topkg)))
1921 (home-page "http://erratique.ch/software/logs")
1922 (synopsis "Logging infrastructure for OCaml")
1923 (description "Logs provides a logging infrastructure for OCaml. Logging is
1924 performed on sources whose reporting level can be set independently. Log
1925 message report is decoupled from logging and is handled by a reporter.")
1926 (license license:isc)))
1927
1928 (define-public ocaml-fpath
1929 (package
1930 (name "ocaml-fpath")
1931 (version "0.7.2")
1932 (source (origin
1933 (method url-fetch)
1934 (uri (string-append "http://erratique.ch/software/fpath/releases/"
1935 "fpath-" version ".tbz"))
1936 (sha256
1937 (base32
1938 "1hr05d8bpqmqcfdavn4rjk9rxr7v2zl84866f5knjifrm60sxqic"))))
1939 (build-system ocaml-build-system)
1940 (arguments
1941 `(#:tests? #f
1942 #:build-flags (list "build")
1943 #:phases
1944 (modify-phases %standard-phases
1945 (delete 'configure))))
1946 (native-inputs
1947 `(("ocamlbuild" ,ocamlbuild)
1948 ("opam" ,opam)))
1949 (propagated-inputs
1950 `(("topkg" ,ocaml-topkg)
1951 ("astring" ,ocaml-astring)))
1952 (home-page "http://erratique.ch/software/fpath")
1953 (synopsis "File system paths for OCaml")
1954 (description "Fpath is an OCaml module for handling file system paths with
1955 POSIX or Windows conventions. Fpath processes paths without accessing the
1956 file system and is independent from any system library.")
1957 (license license:isc)))
1958
1959 (define-public ocaml-bos
1960 (package
1961 (name "ocaml-bos")
1962 (version "0.2.0")
1963 (source (origin
1964 (method url-fetch)
1965 (uri (string-append "http://erratique.ch/software/bos/releases/"
1966 "bos-" version ".tbz"))
1967 (sha256
1968 (base32
1969 "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"))))
1970 (build-system ocaml-build-system)
1971 (arguments
1972 `(#:tests? #f
1973 #:build-flags (list "build")
1974 #:phases
1975 (modify-phases %standard-phases
1976 (delete 'configure))))
1977 (native-inputs
1978 `(("ocamlbuild" ,ocamlbuild)
1979 ("opam" ,opam)))
1980 (propagated-inputs
1981 `(("topkg" ,ocaml-topkg)
1982 ("astring" ,ocaml-astring)
1983 ("fmt" ,ocaml-fmt)
1984 ("fpath" ,ocaml-fpath)
1985 ("logs" ,ocaml-logs)
1986 ("rresult" ,ocaml-rresult)))
1987 (home-page "http://erratique.ch/software/bos")
1988 (synopsis "Basic OS interaction for OCaml")
1989 (description "Bos provides support for basic and robust interaction with
1990 the operating system in OCaml. It has functions to access the process
1991 environment, parse command line arguments, interact with the file system and
1992 run command line programs.")
1993 (license license:isc)))
1994
1995 (define-public ocaml-xmlm
1996 (package
1997 (name "ocaml-xmlm")
1998 (version "1.3.0")
1999 (source (origin
2000 (method url-fetch)
2001 (uri (string-append "http://erratique.ch/software/xmlm/releases/"
2002 "xmlm-" version ".tbz"))
2003 (sha256
2004 (base32
2005 "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n"))))
2006 (build-system ocaml-build-system)
2007 (arguments
2008 `(#:tests? #f
2009 #:build-flags (list "build")
2010 #:phases
2011 (modify-phases %standard-phases
2012 (delete 'configure))))
2013 (native-inputs
2014 `(("ocamlbuild" ,ocamlbuild)
2015 ("ocaml-topkg" ,ocaml-topkg)
2016 ("opam" ,opam)))
2017 (home-page "http://erratique.ch/software/xmlm")
2018 (synopsis "Streaming XML codec for OCaml")
2019 (description "Xmlm is a streaming codec to decode and encode the XML data
2020 format. It can process XML documents without a complete in-memory
2021 representation of the data.")
2022 (license license:isc)))
2023
2024 (define-public ocaml-ulex
2025 (package
2026 (name "ocaml-ulex")
2027 (version "1.2")
2028 (source
2029 (origin
2030 (method git-fetch)
2031 (uri (git-reference
2032 (url "https://github.com/whitequark/ulex.git")
2033 (commit (string-append "v" version))))
2034 (file-name (git-file-name name version))
2035 (sha256
2036 (base32 "08yf2x9a52l2y4savjqfjd2xy4pjd1rpla2ylrr9qrz1drpfw4ic"))))
2037 (build-system ocaml-build-system)
2038 (arguments
2039 `(#:phases (modify-phases %standard-phases (delete 'configure))
2040 #:tests? #f
2041 #:make-flags
2042 (list "all.opt"
2043 (string-append "OCAMLBUILD=ocamlbuild -byte-plugin "
2044 "-cflags -I," (assoc-ref %build-inputs "camlp4")
2045 "/lib/ocaml/site-lib/camlp4"))))
2046 (native-inputs
2047 `(("camlp4" ,camlp4)
2048 ("ocamlbuild" ,ocamlbuild)))
2049 (home-page "http://www.cduce.org/download.html#side")
2050 (synopsis "Lexer generator for Unicode and OCaml")
2051 (description "Lexer generator for Unicode and OCaml.")
2052 (license license:expat)))
2053
2054 (define-public ocaml-uchar
2055 (package
2056 (name "ocaml-uchar")
2057 (version "0.0.2")
2058 (source
2059 (origin
2060 (method url-fetch)
2061 (uri (string-append "https://github.com/ocaml/uchar/releases/download/v"
2062 version "/uchar-" version ".tbz"))
2063 (sha256 (base32
2064 "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"))))
2065 (build-system ocaml-build-system)
2066 (arguments
2067 `(#:tests? #f
2068 #:build-flags (list "native=true" "native-dynlink=true")
2069 #:phases
2070 (modify-phases %standard-phases
2071 (delete 'configure))))
2072 (native-inputs
2073 `(("ocamlbuild" ,ocamlbuild)
2074 ("opam" ,opam)))
2075 (home-page "https://github.com/ocaml/uchar")
2076 (synopsis "Compatibility library for OCaml's Uchar module")
2077 (description "The uchar package provides a compatibility library for the
2078 `Uchar` module introduced in OCaml 4.03.")
2079 (license license:lgpl2.1)))
2080
2081 (define-public ocaml-uutf
2082 (package
2083 (name "ocaml-uutf")
2084 (version "1.0.1")
2085 (source (origin
2086 (method url-fetch)
2087 (uri (string-append "http://erratique.ch/software/uutf/releases/"
2088 "uutf-" version ".tbz"))
2089 (sha256
2090 (base32
2091 "1gp96dcggq7s84934vimxh89caaxa77lqiff1yywbwkilkkjcfqj"))))
2092 (build-system ocaml-build-system)
2093 (arguments
2094 `(#:tests? #f
2095 #:build-flags (list "build")
2096 #:phases
2097 (modify-phases %standard-phases
2098 (delete 'configure))))
2099 (native-inputs
2100 `(("ocamlbuild" ,ocamlbuild)
2101 ("opam" ,opam)
2102 ("topkg" ,ocaml-topkg)))
2103 (propagated-inputs
2104 `(("uchar" ,ocaml-uchar)
2105 ("cmdliner" ,ocaml-cmdliner)))
2106 (home-page "http://erratique.ch/software/uutf")
2107 (synopsis "Non-blocking streaming Unicode codec for OCaml")
2108 (description "Uutf is a non-blocking streaming codec to decode and encode
2109 the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
2110 work character by character without blocking on IO. Decoders perform character
2111 position tracking and support newline normalization.
2112
2113 Functions are also provided to fold over the characters of UTF encoded OCaml
2114 string values and to directly encode characters in OCaml Buffer.t values.")
2115 (license license:isc)))
2116
2117 (define-public ocaml-jsonm
2118 (package
2119 (name "ocaml-jsonm")
2120 (version "1.0.1")
2121 (source (origin
2122 (method url-fetch)
2123 (uri (string-append "http://erratique.ch/software/jsonm/releases/"
2124 "jsonm-" version ".tbz"))
2125 (sha256
2126 (base32
2127 "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w"))))
2128 (build-system ocaml-build-system)
2129 (arguments
2130 `(#:tests? #f
2131 #:build-flags (list "build")
2132 #:phases
2133 (modify-phases %standard-phases
2134 (delete 'configure))))
2135 (native-inputs
2136 `(("ocamlbuild" ,ocamlbuild)
2137 ("opam" ,opam)
2138 ("topkg" ,ocaml-topkg)))
2139 (propagated-inputs
2140 `(("uutf" ,ocaml-uutf)
2141 ("cmdliner" ,ocaml-cmdliner)))
2142 (home-page "http://erratique.ch/software/jsonm")
2143 (synopsis "Non-blocking streaming JSON codec for OCaml")
2144 (description "Jsonm is a non-blocking streaming codec to decode and encode
2145 the JSON data format. It can process JSON text without blocking on IO and
2146 without a complete in-memory representation of the data.")
2147 (license license:isc)))
2148
2149 (define-public ocaml-ocurl
2150 (package
2151 (name "ocaml-ocurl")
2152 (version "0.8.2")
2153 (source (origin
2154 (method url-fetch)
2155 (uri (string-append "http://ygrek.org.ua/p/release/ocurl/ocurl-"
2156 version ".tar.gz"))
2157 (sha256
2158 (base32
2159 "1ax3xdlzgb1zg7d0wr9nwgmh6a45a764m0wk8p6mx07ad94hz0q9"))))
2160 (build-system ocaml-build-system)
2161 (arguments
2162 `(#:phases
2163 (modify-phases %standard-phases
2164 (add-before 'configure 'fix-/bin/sh
2165 (lambda* (#:key inputs #:allow-other-keys)
2166 (substitute* "configure"
2167 (("-/bin/sh") (string-append "-" (which "bash")))))))))
2168 (native-inputs
2169 `(("pkg-config" ,pkg-config)))
2170 (inputs `(("curl" ,curl)))
2171 (home-page "http://ocurl.forge.ocamlcore.org/")
2172 (synopsis "OCaml bindings for libcurl")
2173 (description "Client-side URL transfer library, supporting HTTP and a
2174 multitude of other network protocols (FTP/SMTP/RTSP/etc).")
2175 (license license:isc)))
2176
2177 (define-public ocaml-base64
2178 (package
2179 (name "ocaml-base64")
2180 (version "3.2.0")
2181 (source (origin
2182 (method git-fetch)
2183 (uri (git-reference
2184 (url "https://github.com/mirage/ocaml-base64")
2185 (commit (string-append "v" version))))
2186 (file-name (git-file-name name version))
2187 (sha256
2188 (base32
2189 "1ilw3zj0w6cq7i4pvr8m2kv5l5f2y9aldmv72drlwwns013b1gwy"))))
2190 (build-system dune-build-system)
2191 (native-inputs
2192 `(("ocaml-alcotest" ,ocaml-alcotest)
2193 ("ocaml-bos" ,ocaml-bos)
2194 ("ocaml-rresult" ,ocaml-rresult)))
2195 (home-page "https://github.com/mirage/ocaml-base64")
2196 (synopsis "Base64 encoding for OCaml")
2197 (description "Base64 is a group of similar binary-to-text encoding schemes
2198 that represent binary data in an ASCII string format by translating it into a
2199 radix-64 representation. It is specified in RFC 4648.")
2200 (license license:isc)))
2201
2202 (define-public ocamlify
2203 (package
2204 (name "ocamlify")
2205 (version "0.0.1")
2206 (source (origin
2207 (method url-fetch)
2208 (uri "https://download.ocamlcore.org/ocamlify/ocamlify/0.0.1/ocamlify-0.0.1.tar.gz")
2209 (sha256
2210 (base32
2211 "1j9nb3vjqbdsx3d6jazixgrh776051zkrc06nsc5q5ilp1jhrwkm"))))
2212 (build-system ocaml-build-system)
2213 ; tests are done during build
2214 (arguments
2215 `(#:phases
2216 (modify-phases %standard-phases
2217 (delete 'check)
2218 (replace 'configure
2219 (lambda* (#:key outputs #:allow-other-keys)
2220 (invoke "ocaml" "setup.ml" "-configure" "--prefix"
2221 (assoc-ref outputs "out")))))))
2222 (native-inputs
2223 `(("ocamlbuild" ,ocamlbuild)))
2224 (home-page "https://forge.ocamlcore.org/projects/ocamlify")
2225 (synopsis "Include files in OCaml code")
2226 (description "OCamlify allows to create OCaml source code by including
2227 whole files into OCaml string or string list. The code generated can be
2228 compiled as a standard OCaml file. It allows embedding external resources as
2229 OCaml code.")
2230 (license license:lgpl2.1+))); with the OCaml static compilation exception
2231
2232 (define-public omake
2233 (package
2234 (name "omake")
2235 (version "0.10.3")
2236 (source (origin
2237 (method url-fetch)
2238 (uri (string-append "http://download.camlcity.org/download/"
2239 "omake-" version ".tar.gz"))
2240 (sha256
2241 (base32
2242 "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz"))
2243 (patches (search-patches "omake-fix-non-determinism.patch"))))
2244 (build-system ocaml-build-system)
2245 (arguments
2246 `(#:make-flags
2247 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2248 #:tests? #f ; no test target
2249 #:phases
2250 (modify-phases %standard-phases
2251 (add-before 'configure 'fix-makefile
2252 (lambda* (#:key outputs #:allow-other-keys)
2253 (substitute* "mk/osconfig_unix.mk"
2254 (("CC = cc") "CC = gcc")))))))
2255 (native-inputs `(("hevea" ,hevea)))
2256 (home-page "http://projects.camlcity.org/projects/omake.html")
2257 (synopsis "Build system designed for scalability and portability")
2258 (description "Similar to make utilities you may have used, but it features
2259 many additional enhancements, including:
2260
2261 @enumerate
2262 @item Support for projects spanning several directories or directory hierarchies.
2263 @item Fast, reliable, automated, scriptable dependency analysis using MD5 digests,
2264 with full support for incremental builds.
2265 @item Dependency analysis takes the command lines into account — whenever the
2266 command line used to build a target changes, the target is considered
2267 out-of-date.
2268 @item Fully scriptable, includes a library that providing support for standard
2269 tasks in C, C++, OCaml, and LaTeX projects, or a mixture thereof.
2270 @end enumerate")
2271 (license (list license:lgpl2.1 ; libmojave
2272 license:expat ; OMake scripts
2273 license:gpl2)))) ; OMake itself, with ocaml linking exception
2274 ; see LICENSE.OMake
2275
2276 (define-public ocaml-batteries
2277 (package
2278 (name "ocaml-batteries")
2279 (version "2.9.0")
2280 (source (origin
2281 (method url-fetch)
2282 (uri (string-append "https://github.com/ocaml-batteries-team/"
2283 "batteries-included/releases/download/v"
2284 version "/batteries-" version ".tar.gz"))
2285 (sha256
2286 (base32
2287 "0lkdmv2my5hirkswmci2cch341n6wkkj2q8apjhs83sg6528caxi"))))
2288 (build-system ocaml-build-system)
2289 (native-inputs
2290 `(("ocamlbuild" ,ocamlbuild)
2291 ("qtest" ,ocaml-qtest)
2292 ("bisect" ,ocaml-bisect)
2293 ("ounit" ,ocaml-ounit)))
2294 (propagated-inputs
2295 `(("ocaml-num" ,ocaml-num)))
2296 (arguments
2297 `(#:phases
2298 (modify-phases %standard-phases
2299 (delete 'check) ; tests are run by the build phase
2300 (add-before 'build 'fix-nondeterminism
2301 (lambda _
2302 (substitute* "setup.ml"
2303 (("Sys.readdir dirname")
2304 "let a = Sys.readdir dirname in Array.sort String.compare a; a"))
2305 #t))
2306 (replace 'build
2307 (lambda* (#:key inputs outputs #:allow-other-keys)
2308 (let ((files
2309 (map (lambda (str)
2310 (substring str 0 (- (string-length str) 1)))
2311 (append
2312 (find-files "src" ".*.mliv")
2313 (find-files "src" ".*.mlv")
2314 (find-files "src" ".*.mlp")))))
2315 (apply invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2316 "-lflag" "-dllpath-all" files)
2317 (for-each (lambda (file)
2318 (copy-file (string-append "_build/" file) file))
2319 files))
2320 (invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2321 "-lflag" "-dllpath-all" "build/mkconf.byte")
2322 (copy-file "_build/build/mkconf.byte" "build/mkconf.byte")
2323 (invoke "make" "all")
2324 #t)))))
2325 (home-page "http://batteries.forge.ocamlcore.org/")
2326 (synopsis "Development platform for the OCaml programming language")
2327 (description "Define a standard set of libraries which may be expected on
2328 every compliant installation of OCaml and organize these libraries into a
2329 hierarchy of modules.")
2330 (license license:lgpl2.1+)))
2331
2332 (define-public ocaml-pcre
2333 (package
2334 (name "ocaml-pcre")
2335 (version "7.4.1")
2336 (source (origin
2337 (method git-fetch)
2338 (uri (git-reference
2339 (url "https://github.com/mmottl/pcre-ocaml")
2340 (commit version)))
2341 (file-name (git-file-name name version))
2342 (sha256
2343 (base32
2344 "11sd8g668h48790lamz0riw9jgnfkaif5qdfa0akcndwa6aj07jf"))))
2345 (build-system dune-build-system)
2346 (arguments
2347 `(#:test-target "."))
2348 (native-inputs
2349 `(("ocaml-base" ,ocaml-base)
2350 ("pcre:bin" ,pcre "bin")))
2351 (propagated-inputs `(("pcre" ,pcre)))
2352 (home-page "https://mmottl.github.io/pcre-ocaml")
2353 (synopsis "Bindings to the Perl Compatibility Regular Expressions library")
2354 (description "Pcre-ocaml offers library functions for string pattern
2355 matching and substitution, similar to the functionality offered by the Perl
2356 language.")
2357 (license license:lgpl2.1+))); with the OCaml link exception
2358
2359 (define-public ocaml-expect
2360 (package
2361 (name "ocaml-expect")
2362 (version "0.0.6")
2363 (source (origin
2364 (method url-fetch)
2365 (uri (ocaml-forge-uri name version 1736))
2366 (sha256
2367 (base32
2368 "098qvg9d4yrqzr5ax291y3whrpax0m3sx4gi6is0mblc96r9yqk0"))))
2369 (arguments
2370 `(#:tests? #f))
2371 (build-system ocaml-build-system)
2372 (native-inputs
2373 `(("ocamlbuild" ,ocamlbuild)
2374 ("ocaml-num" ,ocaml-num)
2375 ("ocaml-pcre" ,ocaml-pcre)
2376 ("ounit" ,ocaml-ounit)))
2377 (propagated-inputs `(("batteries" ,ocaml-batteries)))
2378 (home-page "https://forge.ocamlcore.org/projects/ocaml-expect/")
2379 (synopsis "Simple implementation of expect")
2380 (description "Help building unitary testing of interactive program. You
2381 can match the question using a regular expression or a timeout.")
2382 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2383
2384 (define-public ocaml-fileutils
2385 (package
2386 (name "ocaml-fileutils")
2387 (version "0.5.3")
2388 (source (origin
2389 (method url-fetch)
2390 (uri (ocaml-forge-uri name version 1728))
2391 (sha256
2392 (base32
2393 "1rc4cqlvdhbs55i85zfbfhz938fsy4fj6kwlkfm3ra7bpwn8bmpd"))))
2394 (build-system ocaml-build-system)
2395 (native-inputs
2396 `(("ocamlbuild" ,ocamlbuild)
2397 ("ounit" ,ocaml-ounit)))
2398 (home-page "http://ocaml-fileutils.forge.ocamlcore.org")
2399 (synopsis "Pure OCaml functions to manipulate real file and filename")
2400 (description "Library to provide pure OCaml functions to manipulate real
2401 file (POSIX like) and filename.")
2402 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2403
2404 (define-public ocaml-oasis
2405 (package
2406 (name "ocaml-oasis")
2407 (version "0.4.11")
2408 (source (origin
2409 (method url-fetch)
2410 (uri (ocaml-forge-uri name version 1757))
2411 (sha256
2412 (base32
2413 "0bn13mzfa98dq3y0jwzzndl55mnywaxv693z6f1rlvpdykp3vdqq"))
2414 (modules '((guix build utils)))
2415 (snippet
2416 '(begin
2417 (substitute* "test/test-main/Test.ml"
2418 ;; most of these tests fail because ld cannot find crti.o, but according
2419 ;; to the log file, the environment variables {LD_,}LIBRARY_PATH
2420 ;; are set correctly when LD_LIBRARY_PATH is defined beforhand.
2421 (("TestBaseCompat.tests;") "")
2422 (("TestExamples.tests;") "")
2423 (("TestFull.tests;") "")
2424 (("TestPluginDevFiles.tests;") "")
2425 (("TestPluginInternal.tests;") "")
2426 (("TestPluginOCamlbuild.tests;") "")
2427 (("TestPluginOMake.tests;") ""))
2428 #t))))
2429 (build-system ocaml-build-system)
2430 (arguments
2431 `(#:tests? #f))
2432 (native-inputs
2433 `(("ocamlbuild" ,ocamlbuild)
2434 ("ocamlify" ,ocamlify)
2435 ("ocamlmod" ,ocamlmod)))
2436 (home-page "https://oasis.forge.ocamlcore.org")
2437 (synopsis "Integrates a configure, build, install system in OCaml projects")
2438 (description "OASIS is a tool to integrate a configure, build and install
2439 system in your OCaml projects. It helps to create standard entry points in your
2440 build system and allows external tools to analyse your project easily.")
2441 (license license:lgpl2.1+))) ; with ocaml static compilation exception
2442
2443 (define-public ocaml-js-build-tools
2444 (package
2445 (name "ocaml-js-build-tools")
2446 (version "113.33.06")
2447 (source (janestreet-origin "js-build-tools" version
2448 "0r8z4fz8iy5y6hkdlkpwf6rk4qigcr3dzyv35585xgg2ahf12zy6"))
2449 (native-inputs
2450 `(("oasis" ,ocaml-oasis)
2451 ("ocamlbuild" ,ocamlbuild)
2452 ("opam" ,opam)))
2453 (build-system ocaml-build-system)
2454 (arguments janestreet-arguments)
2455 (home-page "https://github.com/janestreet/js-build-tools")
2456 (synopsis "Collection of tools to help building Jane Street Packages")
2457 (description "This package contains tools to help building Jane Street
2458 packages, but can be used for other purposes. It contains:
2459 @enumerate
2460 @item an @command{oasis2opam-install} tool to produce a @file{.install} file
2461 from the oasis build log
2462 @item a @code{js_build_tools} ocamlbuild plugin with various goodies.
2463 @end enumerate")
2464 (license license:asl2.0)))
2465
2466 (define-public ocaml-cppo
2467 (package
2468 (name "ocaml-cppo")
2469 (version "1.6.5")
2470 (source
2471 (origin
2472 (method url-fetch)
2473 (uri (string-append "https://github.com/mjambon/cppo/archive/v" version
2474 ".tar.gz"))
2475 (sha256 (base32
2476 "1dkm3d5h6h56y937gcdk2wixlpzl59vv5pmiafglr89p20kf7gqf"))
2477 (file-name (string-append name "-" version ".tar.gz"))))
2478 (build-system dune-build-system)
2479 (arguments
2480 `(#:tests? #f
2481 #:build-flags (list "--profile" "release")))
2482 (native-inputs
2483 `(("ocamlbuild" ,ocamlbuild)))
2484 (home-page "https://github.com/mjambon/cppo")
2485 (synopsis "Equivalent of the C preprocessor for OCaml programs")
2486 (description "Cppo is an equivalent of the C preprocessor for OCaml
2487 programs. It allows the definition of simple macros and file inclusion. Cpp ois:
2488 @enumerate
2489 @item more OCaml-friendly than cpp
2490 @item easy to learn without consulting a manual
2491 @item reasonably fast
2492 @item simple to install and to maintain.
2493 @end enumerate")
2494 (license license:bsd-3)))
2495
2496 (define-public ocaml-seq
2497 (package
2498 (name "ocaml-seq")
2499 (version "0.1")
2500 (source
2501 (origin
2502 (method git-fetch)
2503 (uri (git-reference
2504 (url "https://github.com/c-cube/seq.git")
2505 (commit version)))
2506 (file-name (git-file-name name version))
2507 (sha256
2508 (base32 "1cjpsc7q76yfgq9iyvswxgic4kfq2vcqdlmxjdjgd4lx87zvcwrv"))))
2509 (build-system ocaml-build-system)
2510 (arguments
2511 `(#:tests? #f
2512 #:phases
2513 (modify-phases %standard-phases
2514 (delete 'configure)
2515 (delete 'build)
2516 (replace 'install
2517 (lambda* (#:key outputs #:allow-other-keys)
2518 (let ((install-dir (string-append (assoc-ref outputs "out")
2519 "/lib/ocaml/site-lib/seq")))
2520 (mkdir-p install-dir)
2521 (with-output-to-file (string-append install-dir "/META")
2522 (lambda _
2523 (display "name=\"seq\"
2524 version=\"[distributed with ocaml]\"
2525 description=\"dummy package for compatibility\"
2526 requires=\"\"")))
2527 #t))))))
2528 (home-page "https://github.com/c-cube/seq")
2529 (synopsis "OCaml's standard iterator type")
2530 (description "This package is a compatibility package for OCaml's
2531 standard iterator type starting from 4.07.")
2532 (license license:lgpl2.1+)))
2533
2534 (define-public ocaml-re
2535 (package
2536 (name "ocaml-re")
2537 (version "1.9.0")
2538 (source
2539 (origin
2540 (method git-fetch)
2541 (uri (git-reference
2542 (url "https://github.com/ocaml/ocaml-re.git")
2543 (commit version)))
2544 (file-name (git-file-name name version))
2545 (sha256
2546 (base32 "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss"))))
2547 (build-system dune-build-system)
2548 (arguments
2549 `(#:tests? #f
2550 #:build-flags (list "--profile" "release")))
2551 (propagated-inputs
2552 `(("ocaml-seq" ,ocaml-seq)))
2553 (native-inputs
2554 `(("ounit" ,ocaml-ounit)))
2555 (home-page "https://github.com/ocaml/ocaml-re/")
2556 (synopsis "Regular expression library for OCaml")
2557 (description "Pure OCaml regular expressions with:
2558 @enumerate
2559 @item Perl-style regular expressions (module Re_perl)
2560 @item Posix extended regular expressions (module Re_posix)
2561 @item Emacs-style regular expressions (module Re_emacs)
2562 @item Shell-style file globbing (module Re_glob)
2563 @item Compatibility layer for OCaml's built-in Str module (module Re_str)
2564 @end enumerate")
2565 (license license:expat)))
2566
2567 (define-public ocaml-ocplib-endian
2568 (package
2569 (name "ocaml-ocplib-endian")
2570 (version "1.0")
2571 (source (origin
2572 (method url-fetch)
2573 (uri (string-append "https://github.com/OCamlPro/ocplib-endian/"
2574 "archive/" version ".tar.gz"))
2575 (sha256
2576 (base32
2577 "0hwj09rnzjs0m0kazz5h2mgs6p95j0zlga8cda5srnzqmzhniwkn"))
2578 (file-name (string-append name "-" version ".tar.gz"))))
2579 (build-system ocaml-build-system)
2580 (native-inputs
2581 `(("cppo" ,ocaml-cppo)
2582 ("ocamlbuild" ,ocamlbuild)))
2583 (home-page "https://github.com/OCamlPro/ocplib-endian")
2584 (synopsis "Optimised functions to read and write int16/32/64 from strings
2585 and bigarrays")
2586 (description "Optimised functions to read and write int16/32/64 from strings
2587 and bigarrays, based on new primitives added in version 4.01. It works on
2588 strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
2589 big- and little-endian, with their unsafe counter-parts.")
2590 (license license:lgpl2.1)))
2591
2592 (define-public ocaml-cstruct
2593 (package
2594 (name "ocaml-cstruct")
2595 (version "4.0.0")
2596 (source (origin
2597 (method git-fetch)
2598 (uri (git-reference
2599 (url "https://github.com/mirage/ocaml-cstruct")
2600 (commit (string-append "v" version))))
2601 (sha256
2602 (base32
2603 "0m4bz0digcsc8l2msfikwcbi1y371kccx6xnkwrz212mf5mp98bv"))))
2604 (build-system dune-build-system)
2605 (arguments
2606 `(#:package "cstruct"
2607 #:test-target "."))
2608 (native-inputs
2609 `(("ocaml-alcotest" ,ocaml-alcotest)))
2610 (home-page "https://github.com/mirage/ocaml-cstruct")
2611 (synopsis "Access C structures via a camlp4 extension")
2612 (description "Cstruct is a library and syntax extension to make it easier
2613 to access C-like structures directly from OCaml. It supports both reading and
2614 writing to these structures, and they are accessed via the Bigarray module.")
2615 (license license:isc)))
2616
2617 (define-public ocaml-hex
2618 (package
2619 (name "ocaml-hex")
2620 (version "1.4.0")
2621 (source (origin
2622 (method git-fetch)
2623 (uri (git-reference
2624 (url "https://github.com/mirage/ocaml-hex")
2625 (commit (string-append "v" version))))
2626 (file-name (git-file-name name version))
2627 (sha256
2628 (base32
2629 "0c8nhibcwy0ykzca4jn3gqb8ylq21ff88y82gl60wyzijr64rn0q"))))
2630 (build-system dune-build-system)
2631 (arguments
2632 `(#:test-target "."))
2633 (propagated-inputs
2634 `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat)
2635 ("cstruct" ,ocaml-cstruct)))
2636 (home-page "https://github.com/mirage/ocaml-hex/")
2637 (synopsis "Minimal library providing hexadecimal converters")
2638 (description "Hex is a minimal library providing hexadecimal converters.")
2639 (license license:isc)))
2640
2641 (define-public ocaml-ezjsonm
2642 (package
2643 (name "ocaml-ezjsonm")
2644 (version "1.1.0")
2645 (source
2646 (origin
2647 (method git-fetch)
2648 (uri (git-reference
2649 (url "https://github.com/mirage/ezjsonm.git")
2650 (commit (string-append "v" version))))
2651 (file-name (git-file-name name version))
2652 (sha256
2653 (base32 "064j9pzy01p3dv947khqyn7fkjbs3jmrqsg8limb4abnlaqxxs2s"))))
2654 (build-system dune-build-system)
2655 (arguments
2656 `(#:package "ezjsonm"
2657 #:test-target "."))
2658 (native-inputs
2659 `(("ocaml-alcotest" ,ocaml-alcotest)))
2660 (propagated-inputs
2661 `(("ocaml-hex" ,ocaml-hex)
2662 ("ocaml-jsonm" ,ocaml-jsonm)
2663 ("ocaml-sexplib" ,ocaml-sexplib)))
2664 (home-page "https://github.com/mirage/ezjsonm/")
2665 (synopsis "Read and write JSON data")
2666 (description "Ezjsonm provides more convenient (but far less flexible) input
2667 and output functions that go to and from [string] values than jsonm. This avoids
2668 the need to write signal code, which is useful for quick scripts that manipulate
2669 JSON.")
2670 (license license:isc)))
2671
2672 (define-public ocaml-uri
2673 (package
2674 (name "ocaml-uri")
2675 (version "2.2.0")
2676 (source
2677 (origin
2678 (method git-fetch)
2679 (uri (git-reference
2680 (url "https://github.com/mirage/ocaml-uri.git")
2681 (commit (string-append "v" version))))
2682 (file-name (git-file-name name version))
2683 (sha256
2684 (base32 "1ppbav41mszpjcl0zi3fyg958cxyfs57i7kvha4ds9ydn89bjmrh"))))
2685 (build-system dune-build-system)
2686 (arguments
2687 `(#:test-target "."
2688 #:phases
2689 (modify-phases %standard-phases
2690 (add-before 'build 'update-deprecated
2691 (lambda _
2692 (substitute* "lib/uri.ml"
2693 (("Re.get") "Re.Group.get")))))))
2694 (native-inputs
2695 `(("ocaml-ounit" ,ocaml-ounit)
2696 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)))
2697 (propagated-inputs
2698 `(("ocaml-re" ,ocaml-re)
2699 ("ocaml-sexplib0" ,ocaml-sexplib0)
2700 ("ocaml-stringext" ,ocaml-stringext)))
2701 (home-page "https://github.com/mirage/ocaml-uri")
2702 (synopsis "RFC3986 URI/URL parsing library")
2703 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.")
2704 (license license:isc)))
2705
2706 (define-public ocaml-easy-format
2707 (package
2708 (name "ocaml-easy-format")
2709 (version "1.3.1")
2710 (source (origin
2711 (method git-fetch)
2712 (uri (git-reference
2713 (url "https://github.com/mjambon/easy-format")
2714 (commit (string-append "v" version))))
2715 (file-name (git-file-name name version))
2716 (sha256
2717 (base32
2718 "0jfncci15b8sf1y72yrxfjlsmhs9aavcd14vwz4d7kj8k9w9c4qk"))))
2719 (build-system dune-build-system)
2720 (arguments
2721 `(#:jbuild? #t))
2722 (home-page "https://github.com/mjambon/easy-format")
2723 (synopsis "Interface to the Format module")
2724 (description "Easy-format is a high-level and functional interface to the
2725 Format module of the OCaml standard library.")
2726 (license license:bsd-3)))
2727
2728 (define-public ocaml-piqilib
2729 (package
2730 (name "ocaml-piqilib")
2731 (version "0.6.14")
2732 (source
2733 (origin
2734 (method git-fetch)
2735 (uri (git-reference
2736 (url "https://github.com/alavrik/piqi.git")
2737 (commit (string-append "v" version))))
2738 (file-name (git-file-name name version))
2739 (sha256
2740 (base32 "0lyqllmfsxmwlg7qidy92kvxi9n39lvachmydcyi81f8p07ykd2d"))
2741 (patches
2742 (search-patches "ocaml-piqilib-Update-base64.patch"))))
2743 (build-system ocaml-build-system)
2744 (arguments
2745 `(#:phases
2746 (modify-phases %standard-phases
2747 (add-before 'configure 'fix-ocamlpath
2748 (lambda _
2749 (substitute* '("Makefile" "make/Makefile.ocaml")
2750 (("OCAMLPATH := ") "OCAMLPATH := $(OCAMLPATH):"))
2751 #t))
2752 (replace 'configure
2753 (lambda* (#:key outputs #:allow-other-keys)
2754 (let ((out (assoc-ref outputs "out")))
2755 (substitute* "make/OCamlMakefile"
2756 (("/bin/sh") (which "bash")))
2757 (invoke "./configure" "--prefix" out "--ocaml-libdir"
2758 (string-append out "/lib/ocaml/site-lib")))
2759 #t))
2760 (add-after 'build 'build-ocaml
2761 (lambda* (#:key outputs #:allow-other-keys)
2762 (invoke "make" "ocaml")
2763 #t))
2764 (add-after 'install 'install-ocaml
2765 (lambda* (#:key outputs #:allow-other-keys)
2766 (invoke "make" "ocaml-install")
2767 #t))
2768 (add-after 'install-ocaml 'link-stubs
2769 (lambda* (#:key outputs #:allow-other-keys)
2770 (let* ((out (assoc-ref outputs "out"))
2771 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
2772 (lib (string-append out "/lib/ocaml/site-lib/piqilib")))
2773 (mkdir-p stubs)
2774 (symlink (string-append lib "/dllpiqilib_stubs.so")
2775 (string-append stubs "/dllpiqilib_stubs.so"))
2776 #t))))))
2777 (native-inputs
2778 `(("which" ,which)
2779 ("camlp4" ,camlp4)))
2780 (propagated-inputs
2781 `(("xmlm" ,ocaml-xmlm)
2782 ("ulex" ,ocaml-ulex)
2783 ("easy-format" ,ocaml-easy-format)
2784 ("base64" ,ocaml-base64)))
2785 (home-page "http://piqi.org")
2786 (synopsis "Data serialization and conversion library")
2787 (description "Piqilib is the common library used by the piqi command-line
2788 tool and piqi-ocaml.")
2789 (license license:asl2.0)))
2790
2791 (define-public ocaml-uuidm
2792 (package
2793 (name "ocaml-uuidm")
2794 (version "0.9.6")
2795 (source (origin
2796 (method url-fetch)
2797 (uri (string-append "http://erratique.ch/software/uuidm/"
2798 "releases/uuidm-" version ".tbz"))
2799 (sha256
2800 (base32
2801 "0hz4fdx0x16k0pw9995vkz5d1hmzz6b16wck9li399rcbfnv5jlc"))))
2802 (build-system ocaml-build-system)
2803 (arguments
2804 `(#:build-flags
2805 (list "build" "--tests" "true" "--with-cmdliner" "true")
2806 #:phases
2807 (modify-phases %standard-phases
2808 (delete 'configure))))
2809 (native-inputs
2810 `(("ocamlbuild" ,ocamlbuild)
2811 ("opam" ,opam)))
2812 (propagated-inputs
2813 `(("cmdliner" ,ocaml-cmdliner)
2814 ("topkg" ,ocaml-topkg)))
2815 (home-page "http://erratique.ch/software/uuidm")
2816 (synopsis "Universally unique identifiers for OCaml")
2817 (description "Uuidm is an OCaml module implementing 128 bits universally
2818 unique identifiers (UUIDs) version 3, 5 (named based with MD5, SHA-1 hashing)
2819 and 4 (random based) according to RFC 4122.")
2820 (license license:isc)))
2821
2822 (define-public ocaml-graph
2823 (package
2824 (name "ocaml-graph")
2825 (version "1.8.8")
2826 (source (origin
2827 (method url-fetch)
2828 (uri (string-append "http://ocamlgraph.lri.fr/download/"
2829 "ocamlgraph-" version ".tar.gz"))
2830 (sha256
2831 (base32
2832 "0m9g16wrrr86gw4fz2fazrh8nkqms0n863w7ndcvrmyafgxvxsnr"))))
2833 (build-system ocaml-build-system)
2834 (arguments
2835 `(#:install-target "install-findlib"
2836 #:tests? #f
2837 #:phases
2838 (modify-phases %standard-phases
2839 (add-before 'configure 'set-shell
2840 (lambda* (#:key inputs #:allow-other-keys)
2841 (setenv "CONFIG_SHELL" (string-append (assoc-ref inputs "bash")
2842 "/bin/sh")))))))
2843 (inputs `(("lablgtk" ,lablgtk)))
2844 (properties `((upstream-name . "ocamlgraph")))
2845 (home-page "http://ocamlgraph.lri.fr/")
2846 (synopsis "Graph library for OCaml")
2847 (description "OCamlgraph is a generic graph library for OCaml.")
2848 (license license:lgpl2.1)))
2849
2850 (define-public ocaml-piqi
2851 (package
2852 (name "ocaml-piqi")
2853 (version "0.7.6")
2854 (source (origin
2855 (method url-fetch)
2856 (uri (string-append "https://github.com/alavrik/piqi-ocaml/"
2857 "archive/v" version ".tar.gz"))
2858 (file-name (string-append name "-" version ".tar.gz"))
2859 (sha256
2860 (base32
2861 "0da0v2v28aj65b0cwpvvmcqyrfvz94pp3j5zgfdr1jrl5s37c21g"))))
2862 (build-system ocaml-build-system)
2863 (arguments
2864 `(#:make-flags
2865 (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
2866 (string-append "SHELL=" (assoc-ref %build-inputs "bash")
2867 "/bin/sh"))
2868 #:phases
2869 (modify-phases %standard-phases
2870 (delete 'configure))))
2871 (native-inputs
2872 `(("which" ,which)
2873 ("camlp4" ,camlp4)
2874 ("protobuf" ,protobuf))) ; for tests
2875 (propagated-inputs
2876 `(("num" ,ocaml-num)
2877 ("piqilib" ,ocaml-piqilib)))
2878 (home-page "https://github.com/alavrik/piqi-ocaml")
2879 (synopsis "Protocol serialization system for OCaml")
2880 (description "Piqi is a multi-format data serialization system for OCaml.
2881 It provides a uniform interface for serializing OCaml data structures to JSON,
2882 XML and Protocol Buffers formats.")
2883 (license license:asl2.0)))
2884
2885 (define-public bap
2886 (package
2887 (name "bap")
2888 (version "1.6.0")
2889 (home-page "https://github.com/BinaryAnalysisPlatform/bap")
2890 (source (origin
2891 (method git-fetch)
2892 (uri (git-reference
2893 (url home-page)
2894 (commit (string-append "v" version))))
2895 (file-name (git-file-name name version))
2896 (sha256
2897 (base32
2898 "0ryf2xb37pj2f9mc3p5prqgqrylph9qgq7q9jnbx8b03nzzpa6h6"))))
2899 (build-system ocaml-build-system)
2900 (native-inputs
2901 `(("ocaml-oasis" ,ocaml-oasis)
2902 ("clang" ,clang-3.8)
2903 ("ocaml-ounit" ,ocaml-ounit)))
2904 (propagated-inputs
2905 `(("camlzip" ,camlzip)
2906 ("ocaml-bitstring" ,ocaml-bitstring)
2907 ("ocaml-cmdliner" ,ocaml-cmdliner)
2908 ("ocaml-core-kernel" ,ocaml-core-kernel)
2909 ("ocaml-ezjsonm" ,ocaml-ezjsonm)
2910 ("ocaml-fileutils" ,ocaml-fileutils)
2911 ("ocaml-frontc" ,ocaml-frontc)
2912 ("ocaml-graph" ,ocaml-graph)
2913 ("ocaml-ocurl" ,ocaml-ocurl)
2914 ("ocaml-piqi" ,ocaml-piqi)
2915 ("ocaml-ppx-jane" ,ocaml-ppx-jane)
2916 ("ocaml-uuidm" ,ocaml-uuidm)
2917 ("ocaml-uri" ,ocaml-uri)
2918 ("ocaml-zarith" ,ocaml-zarith)))
2919 (inputs
2920 `(("llvm" ,llvm-3.8)
2921 ("gmp" ,gmp)))
2922 (arguments
2923 `(#:use-make? #t
2924 #:phases
2925 (modify-phases %standard-phases
2926 (replace 'configure
2927 (lambda* (#:key outputs inputs #:allow-other-keys)
2928 ;; add write for user, to prevent a failure in the install phase
2929 (for-each
2930 (lambda (file)
2931 (let ((stat (stat file)))
2932 (chmod file (+ #o200 (stat:mode stat)))))
2933 (find-files "." "."))
2934 (invoke "./configure" "--prefix"
2935 (assoc-ref outputs "out")
2936 "--libdir"
2937 (string-append
2938 (assoc-ref outputs "out")
2939 "/lib/ocaml/site-lib")
2940 "--with-llvm-version=3.8"
2941 "--with-llvm-config=llvm-config"
2942 "--enable-everything"))))))
2943 (synopsis "Binary Analysis Platform")
2944 (description "Binary Analysis Platform is a framework for writing program
2945 analysis tools, that target binary files. The framework consists of a plethora
2946 of libraries, plugins, and frontends. The libraries provide code reusability,
2947 the plugins facilitate extensibility, and the frontends serve as entry points.")
2948 (license license:expat)))
2949
2950 (define-public ocaml-camomile
2951 (package
2952 (name "ocaml-camomile")
2953 (version "1.0.1")
2954 (home-page "https://github.com/yoriyuki/Camomile")
2955 (source (origin
2956 (method url-fetch)
2957 (uri (string-append home-page "/releases/download/" version
2958 "/camomile-" version ".tbz"))
2959 (sha256
2960 (base32
2961 "01ssjrqz41jvrqh27jxnh9cx7ywi9b5sgsykd00i7z9nrcwhlfy2"))))
2962 (build-system dune-build-system)
2963 (native-inputs
2964 `(("camlp4" ,camlp4)))
2965 (arguments
2966 `(#:build-flags (list "--profile" "realease")
2967 #:test-target "camomile-test"
2968 #:phases
2969 (modify-phases %standard-phases
2970 (add-before 'build 'fix-usr-share
2971 (lambda* (#:key outputs #:allow-other-keys)
2972 (substitute* '("Camomile/jbuild" "configure.ml")
2973 (("/usr/share") (string-append (assoc-ref outputs "out") "/share")))
2974 #t)))))
2975 (synopsis "Comprehensive Unicode library")
2976 (description "Camomile is a Unicode library for OCaml. Camomile provides
2977 Unicode character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about
2978 200 encodings, collation and locale-sensitive case mappings, and more. The
2979 library is currently designed for Unicode Standard 3.2.")
2980 ;; with an exception for linked libraries to use a different license
2981 (license license:lgpl2.0+)))
2982
2983 (define-public ocaml-zed
2984 (package
2985 (name "ocaml-zed")
2986 (version "1.6")
2987 (source
2988 (origin
2989 (method git-fetch)
2990 (uri (git-reference
2991 (url "https://github.com/diml/zed.git")
2992 (commit version)))
2993 (file-name (git-file-name name version))
2994 (sha256
2995 (base32 "00hhxcjf3bj3w2qm8nzs9x6vrqkadf4i0277s5whzy2rmiknj63v"))))
2996 (build-system dune-build-system)
2997 (arguments
2998 `(#:jbuild? #t
2999 #:test-target "."))
3000 (propagated-inputs
3001 `(("camomile" ,ocaml-camomile)
3002 ("react" ,ocaml-react)))
3003 (home-page "https://github.com/diml/zed")
3004 (synopsis "Abstract engine for text editing in OCaml")
3005 (description "Zed is an abstract engine for text edition. It can be used
3006 to write text editors, edition widgets, readlines, etc. You just have to
3007 connect an engine to your inputs and rendering functions to get an editor.")
3008 (license license:bsd-3)))
3009
3010 (define-public ocaml-lambda-term
3011 (package
3012 (name "ocaml-lambda-term")
3013 (version "1.13")
3014 (source
3015 (origin
3016 (method git-fetch)
3017 (uri (git-reference
3018 (url "https://github.com/diml/lambda-term.git")
3019 (commit version)))
3020 (file-name (git-file-name name version))
3021 (sha256
3022 (base32 "0wwib20b2ir3h2g9zwhzn04cv160psb805skp8v23wqgyn5cnbh8"))))
3023 (build-system dune-build-system)
3024 (arguments
3025 `(#:build-flags (list "--profile" "release")
3026 #:tests? #f))
3027 (propagated-inputs
3028 `(("lwt" ,ocaml-lwt)
3029 ("lwt-log" ,ocaml-lwt-log)
3030 ("zed" ,ocaml-zed)))
3031 (home-page "https://github.com/diml/lambda-term")
3032 (synopsis "Terminal manipulation library for OCaml")
3033 (description "Lambda-Term is a cross-platform library for manipulating the
3034 terminal. It provides an abstraction for keys, mouse events, colors, as well as
3035 a set of widgets to write curses-like applications. The main objective of
3036 Lambda-Term is to provide a higher level functional interface to terminal
3037 manipulation than, for example, ncurses, by providing a native OCaml interface
3038 instead of bindings to a C library.")
3039 (license license:bsd-3)))
3040
3041 (define-public ocaml-utop
3042 (package
3043 (name "ocaml-utop")
3044 (version "2.3.0")
3045 (source
3046 (origin
3047 (method git-fetch)
3048 (uri (git-reference
3049 (url "https://github.com/ocaml-community/utop.git")
3050 (commit version)))
3051 (file-name (git-file-name name version))
3052 (sha256
3053 (base32 "0xvibb97vzzh7yabr5ajhilriwz8cg4c506lxq0bd7ss3aci9han"))))
3054 (build-system dune-build-system)
3055 (arguments
3056 `(#:jbuild? #t
3057 #:test-target "."))
3058 (native-inputs
3059 `(("cppo" ,ocaml-cppo)))
3060 (propagated-inputs
3061 `(("lambda-term" ,ocaml-lambda-term)
3062 ("lwt" ,ocaml-lwt)
3063 ("react" ,ocaml-react)
3064 ("camomile" ,ocaml-camomile)
3065 ("zed" ,ocaml-zed)))
3066 (home-page "https://github.com/diml/utop")
3067 (synopsis "Improved interface to the OCaml toplevel")
3068 (description "UTop is an improved toplevel for OCaml. It can run in a
3069 terminal or in Emacs. It supports line editing, history, real-time and context
3070 sensitive completion, colors, and more.")
3071 (license license:bsd-3)))
3072
3073 (define-public ocaml-integers
3074 (package
3075 (name "ocaml-integers")
3076 (version "0.3.0")
3077 (home-page "https://github.com/ocamllabs/ocaml-integers")
3078 (source (origin
3079 (method url-fetch)
3080 (uri (string-append home-page
3081 "/releases/download/v0.2.2/integers-"
3082 version ".tbz"))
3083 (file-name (string-append name "-" version ".tbz"))
3084 (sha256
3085 (base32
3086 "08b1ljw88ny3l0mdq6xmffjk8anfc77igryva5jz1p6f4f746ywk"))))
3087 (build-system ocaml-build-system)
3088 (arguments
3089 `(#:tests? #f; no tests
3090 #:build-flags (list "build")
3091 #:phases
3092 (modify-phases %standard-phases
3093 (delete 'configure))))
3094 (native-inputs
3095 `(("ocamlbuild" ,ocamlbuild)))
3096 (inputs
3097 `(("topkg" ,ocaml-topkg)
3098 ("opam" ,opam)))
3099 (synopsis "Various signed and unsigned integer types for OCaml")
3100 (description "The ocaml-integers library provides a number of 8-, 16-, 32-
3101 and 64-bit signed and unsigned integer types, together with aliases such as
3102 long and size_t whose sizes depend on the host platform.")
3103 (license license:expat)))
3104
3105 (define-public ocaml-ctypes
3106 (package
3107 (name "ocaml-ctypes")
3108 (version "0.14.0")
3109 (home-page "https://github.com/ocamllabs/ocaml-ctypes")
3110 (source (origin
3111 (method url-fetch)
3112 (uri (string-append home-page "/archive/" version ".tar.gz"))
3113 (file-name (string-append name "-" version ".tar.gz"))
3114 (sha256
3115 (base32
3116 "0zrsd42q2nciyg9375g2kydqax6ay299rhyfgms59qiw7d9ylyp9"))))
3117 (build-system ocaml-build-system)
3118 (arguments
3119 `(#:tests? #f; require an old lwt
3120 #:make-flags
3121 (list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
3122 #:phases
3123 (modify-phases %standard-phases
3124 (delete 'configure))))
3125 (native-inputs
3126 `(("pkg-config" ,pkg-config)))
3127 (inputs
3128 `(("libffi" ,libffi)
3129 ("ounit" ,ocaml-ounit)
3130 ("integers" ,ocaml-integers)
3131 ("lwt" ,ocaml-lwt)
3132 ("topkg" ,ocaml-topkg)
3133 ("opam" ,opam)))
3134 (synopsis "Library for binding to C libraries using pure OCaml")
3135 (description "Ctypes is a library for binding to C libraries using pure
3136 OCaml. The primary aim is to make writing C extensions as straightforward as
3137 possible. The core of ctypes is a set of combinators for describing the
3138 structure of C types -- numeric types, arrays, pointers, structs, unions and
3139 functions. You can use these combinators to describe the types of the
3140 functions that you want to call, then bind directly to those functions -- all
3141 without writing or generating any C!")
3142 (license license:expat)))
3143
3144 (define-public ocaml-ocb-stubblr
3145 (package
3146 (name "ocaml-ocb-stubblr")
3147 (version "0.1.1")
3148 (home-page "https://github.com/pqwy/ocb-stubblr")
3149 (source (origin
3150 (method url-fetch)
3151 (uri (string-append
3152 home-page "/releases/download/v0.1.1/ocb-stubblr-"
3153 version ".tbz"))
3154 (file-name (string-append name "-" version ".tbz"))
3155 (sha256
3156 (base32
3157 "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
3158 (build-system ocaml-build-system)
3159 (arguments
3160 `(#:build-flags (list "build" "--tests" "true")
3161 #:phases
3162 (modify-phases %standard-phases
3163 (delete 'configure)
3164 (add-before 'build 'fix-for-guix
3165 (lambda _
3166 (substitute* "src/ocb_stubblr.ml"
3167 ;; Do not fail when opam is not present or initialized
3168 (("error_msgf \"error running opam\"") "\"\"")
3169 ;; Guix doesn't have cc, but it has gcc
3170 (("\"cc\"") "\"gcc\""))
3171 #t)))))
3172 (inputs
3173 `(("topkg" ,ocaml-topkg)
3174 ("opam" ,opam)))
3175 (native-inputs
3176 `(("astring" ,ocaml-astring)
3177 ("ocamlbuild" ,ocamlbuild)))
3178 (synopsis "OCamlbuild plugin for C stubs")
3179 (description "Ocb-stubblr is about ten lines of code that you need to
3180 repeat over, over, over and over again if you are using ocamlbuild to build
3181 OCaml projects that contain C stubs.")
3182 (license license:isc)))
3183
3184 (define-public ocaml-tsdl
3185 (package
3186 (name "ocaml-tsdl")
3187 (version "0.9.6")
3188 (home-page "http://erratique.ch/software/tsdl")
3189 (source (origin
3190 (method url-fetch)
3191 (uri (string-append home-page "/releases/tsdl-"
3192 version ".tbz"))
3193 (file-name (string-append name "-" version ".tar.gz"))
3194 (sha256
3195 (base32
3196 "00krjhmnchsnz33h9zhh0v69xbvi86l0xf0dvy7iivylb7f7x3n4"))))
3197 (build-system ocaml-build-system)
3198 (arguments
3199 `(#:build-flags '("build")
3200 #:tests? #f; tests require a display device
3201 #:phases
3202 (modify-phases %standard-phases
3203 (delete 'configure))))
3204 (native-inputs
3205 `(("ocamlbuild" ,ocamlbuild)
3206 ("ocaml-astring" ,ocaml-astring)
3207 ("ocaml-ocb-stubblr" ,ocaml-ocb-stubblr)
3208 ("opam" ,opam)
3209 ("pkg-config" ,pkg-config)))
3210 (inputs
3211 `(("topkg" ,ocaml-topkg)
3212 ("result" ,ocaml-result)
3213 ("sdl2" ,sdl2)
3214 ("integers" ,ocaml-integers)
3215 ("ctypes" ,ocaml-ctypes)))
3216 (synopsis "Thin bindings to SDL for OCaml")
3217 (description "Tsdl is an OCaml library providing thin bindings to the
3218 cross-platform SDL C library.")
3219 (license license:isc)))
3220
3221 (define-public dedukti
3222 (package
3223 (name "dedukti")
3224 (version "2.6.0")
3225 (home-page "https://deducteam.github.io/")
3226 (source
3227 (origin
3228 (method git-fetch)
3229 (uri (git-reference
3230 (url "https://github.com/deducteam/dedukti.git")
3231 (commit (string-append "v" version))))
3232 (file-name (git-file-name name version))
3233 (sha256
3234 (base32
3235 "0frl3diff033i4fmq304b8wbsdnc9mvlhmwd7a3zd699ng2lzbxb"))))
3236 (inputs
3237 `(("menhir" ,ocaml-menhir)))
3238 (native-inputs
3239 `(("ocamlbuild" ,ocamlbuild)))
3240 (build-system ocaml-build-system)
3241 (arguments
3242 `(#:phases
3243 (modify-phases %standard-phases
3244 (delete 'configure)
3245 (replace 'build
3246 (lambda _
3247 (invoke "make")
3248 #t))
3249 (replace 'check
3250 (lambda _
3251 (invoke "make" "tests")
3252 #t))
3253 (add-before 'install 'set-binpath
3254 ;; Change binary path in the makefile
3255 (lambda _
3256 (let ((out (assoc-ref %outputs "out")))
3257 (substitute* "GNUmakefile"
3258 (("BINDIR = (.*)$")
3259 (string-append "BINDIR = " out "/bin"))))
3260 #t))
3261 (replace 'install
3262 (lambda _
3263 (invoke "make" "install")
3264 #t)))))
3265 (synopsis "Proof-checker for the λΠ-calculus modulo theory, an extension of
3266 the λ-calculus")
3267 (description "Dedukti is a proof-checker for the λΠ-calculus modulo
3268 theory. The λΠ-calculus is an extension of the simply typed λ-calculus with
3269 dependent types. The λΠ-calculus modulo theory is itself an extension of the
3270 λΠ-calculus where the context contains variable declaration as well as rewrite
3271 rules. This system is not designed to develop proofs, but to check proofs
3272 developed in other systems. In particular, it enjoys a minimalistic syntax.")
3273 (license license:cecill-c)))
3274
3275 (define-public emacs-dedukti-mode
3276 (let ((commit "d7c3505a1046187de3c3aeb144455078d514594e"))
3277 (package
3278 (name "emacs-dedukti-mode")
3279 (version (git-version "0" "0" commit))
3280 (home-page "https://github.com/rafoo/dedukti-mode")
3281 (source (origin
3282 (method git-fetch)
3283 (uri (git-reference
3284 (url home-page)
3285 (commit commit)))
3286 (sha256
3287 (base32
3288 "1842wikq24c8rg0ac84vb1qby9ng1nssxswyyni4kq85lng5lcrp"))
3289 (file-name (git-file-name name version))))
3290 (inputs
3291 `(("dedukti" ,dedukti)))
3292 (build-system emacs-build-system)
3293 (arguments
3294 '(#:phases
3295 (modify-phases %standard-phases
3296 (add-before 'install 'patch-dkpath
3297 (lambda _
3298 (let ((dkcheck-path (which "dkcheck")))
3299 (substitute* "dedukti-mode.el"
3300 (("dedukti-path \"(.*)\"")
3301 (string-append "dedukti-path \"" dkcheck-path "\"")))))))))
3302 (synopsis "Emacs major mode for Dedukti files")
3303 (description "This package provides an Emacs major mode for editing
3304 Dedukti files.")
3305 (license license:cecill-b))))
3306
3307 (define-public emacs-flycheck-dedukti
3308 (let ((commit "3dbff5646355f39d57a3ec514f560a6b0082a1cd"))
3309 (package
3310 (name "emacs-flycheck-dedukti")
3311 (version (git-version "0" "0" commit))
3312 (home-page "https://github.com/rafoo/flycheck-dedukti")
3313 (source (origin
3314 (method git-fetch)
3315 (uri (git-reference
3316 (url home-page)
3317 (commit commit)))
3318 (sha256
3319 (base32
3320 "1ffpxnwl3wx244n44mbw81g00nhnykd0lnid29f4aw1av7w6nw8l"))
3321 (file-name (git-file-name name version))))
3322 (build-system emacs-build-system)
3323 (inputs
3324 `(("dedukti-mode" ,emacs-dedukti-mode)
3325 ("flycheck-mode" ,emacs-flycheck)))
3326 (synopsis "Flycheck integration for the dedukti language")
3327 (description "This package provides a frontend for Flycheck to perform
3328 syntax checking on dedukti files.")
3329 (license license:cecill-b))))
3330
3331 (define-public ocaml-ppx-inline-test
3332 (package
3333 (name "ocaml-ppx-inline-test")
3334 (version "0.12.0")
3335 (home-page "https://github.com/janestreet/ppx_inline_test")
3336 (source
3337 (origin
3338 (method git-fetch)
3339 (uri (git-reference
3340 (url (string-append home-page ".git"))
3341 (commit (string-append "v" version))))
3342 (file-name (git-file-name name version))
3343 (sha256
3344 (base32
3345 "0nyz411zim94pzbxm2l2v2l9jishcxwvxhh142792g2s18r4vn50"))))
3346 (build-system dune-build-system)
3347 (arguments
3348 ;see home page README for further information
3349 `(#:tests? #f))
3350 (inputs
3351 `(("ocaml-base" ,ocaml-base)
3352 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
3353 ("ocaml-compiler-libs" ,ocaml-compiler-libs)
3354 ("ocaml-sexplib0" ,ocaml-sexplib0)
3355 ("ocaml-stdio" ,ocaml-stdio)
3356 ("ocaml-ppxlib" ,ocaml-ppxlib)))
3357 (properties `((upstream-name . "ppx_inline_test")))
3358 (synopsis "Syntax extension for writing in-line tests in ocaml code")
3359 (description "This package contains a syntax extension for writing
3360 in-line tests in ocaml code. It is part of Jane Street's PPX rewriters
3361 collection.")
3362 (license license:expat)))
3363
3364 (define-public ocaml-bindlib
3365 (package
3366 (name "ocaml-bindlib")
3367 (version "5.0.1")
3368 (source
3369 (origin
3370 (method git-fetch)
3371 (uri (git-reference
3372 (url "https://github.com/rlepigre/ocaml-bindlib.git")
3373 (commit (string-append "ocaml-bindlib_" version))))
3374 (file-name (git-file-name name version))
3375 (sha256
3376 (base32
3377 "1f8kr81w8vsi4gv61xn1qbc6zrzkjp8l9ix0942vjh4gjxc74v75"))))
3378 (build-system ocaml-build-system)
3379 (arguments
3380 `(#:tests? #f ;no tests
3381 #:use-make? #t
3382 #:phases
3383 (modify-phases %standard-phases
3384 (delete 'configure)
3385 (replace 'build
3386 (lambda _
3387 (invoke "make")))
3388 (replace 'install
3389 (lambda _
3390 (invoke "make" "install"))))))
3391 (native-inputs
3392 `(("ocamlbuild" ,ocamlbuild)
3393 ("ocaml-findlib" ,ocaml-findlib)))
3394 (home-page "https://rlepigre.github.io/ocaml-bindlib/")
3395 (synopsis "OCaml Bindlib library for bound variables")
3396 (description "Bindlib is a library allowing the manipulation of data
3397 structures with bound variables. It is particularly useful when writing ASTs
3398 for programming languages, but also for manipulating terms of the λ-calculus
3399 or quantified formulas.")
3400 (license license:gpl3+)))
3401
3402 (define-public ocaml-earley
3403 (package
3404 (name "ocaml-earley")
3405 (version "2.0.0")
3406 (home-page "https://github.com/rlepigre/ocaml-earley")
3407 (source
3408 (origin
3409 (method git-fetch)
3410 (uri (git-reference
3411 (url (string-append home-page ".git"))
3412 (commit version)))
3413 (file-name (git-file-name name version))
3414 (sha256
3415 (base32
3416 "18k7bi7krc4bvqnhijz1q0pfr0nfahghfjifci8rh1q4i5zd0xz5"))))
3417 (build-system dune-build-system)
3418 (arguments
3419 `(#:test-target "."))
3420 (synopsis "Parsing library based on Earley Algorithm")
3421 (description "Earley is a parser combinator library base on Earley's
3422 algorithm. It is intended to be used in conjunction with an OCaml syntax
3423 extension which allows the definition of parsers inside the language. There
3424 is also support for writing OCaml syntax extensions in a camlp4 style.")
3425 (license license:cecill-b)))
3426
3427 (define-public ocaml-timed
3428 (package
3429 (name "ocaml-timed")
3430 (version "1.0")
3431 (home-page "https://github.com/rlepigre/ocaml-timed")
3432 (source (origin
3433 (method git-fetch)
3434 (uri (git-reference
3435 (url (string-append home-page ".git"))
3436 (commit (string-append name "_" version))))
3437 (sha256
3438 (base32
3439 "0hfxz710faxy5yk97bkfnw87r732jcxxhmjppwrbfdb6pd0wks96"))
3440 (file-name (git-file-name name version))))
3441 (build-system ocaml-build-system)
3442 (arguments
3443 '(#:phases
3444 (modify-phases %standard-phases
3445 (delete 'configure)
3446 (replace 'build
3447 (lambda _
3448 (invoke "make")))
3449 (replace 'install
3450 (lambda _
3451 (invoke "make" "install")))
3452 (replace 'check
3453 (lambda _
3454 (invoke "make" "tests"))))))
3455 (synopsis "Timed references for imperative state")
3456 (description "Timed references for imperative state. This module provides
3457 an alternative type for references (or mutable cells) supporting undo/redo
3458 operations. In particular, an abstract notion of time is used to capture the
3459 state of the references at any given point, so that it can be restored. Note
3460 that usual reference operations only have a constant time / memory overhead
3461 (compared to those of the standard library).
3462
3463 Moreover, we provide an alternative implementation based on the references
3464 of the standard library (Pervasives module). However, it is less efficient
3465 than the first one.")
3466 (license license:expat)))
3467
3468 (define-public ocaml-biniou
3469 (package
3470 (name "ocaml-biniou")
3471 (version "1.2.0")
3472 (home-page "https://github.com/mjambon/biniou")
3473 (source
3474 (origin
3475 (method git-fetch)
3476 (uri (git-reference
3477 (url (string-append home-page ".git"))
3478 (commit (string-append "v" version))))
3479 (file-name (git-file-name name version))
3480 (sha256
3481 (base32
3482 "0mjpgwyfq2b2izjw0flmlpvdjgqpq8shs89hxj1np2r50csr8dcb"))))
3483 (build-system dune-build-system)
3484 (inputs
3485 `(("ocaml-easy-format" ,ocaml-easy-format)))
3486 (native-inputs
3487 `(("which" ,which)))
3488 (synopsis "Data format designed for speed, safety, ease of use and backward
3489 compatibility")
3490 (description "Biniou (pronounced \"be new\" is a binary data format
3491 designed for speed, safety, ease of use and backward compatibility as
3492 protocols evolve. Biniou is vastly equivalent to JSON in terms of
3493 functionality but allows implementations several times faster (4 times faster
3494 than yojson), with 25-35% space savings.")
3495 (license license:bsd-3)))
3496
3497 (define-public ocaml-yojson
3498 (package
3499 (name "ocaml-yojson")
3500 (version "1.7.0")
3501 (home-page "https://github.com/ocaml-community/yojson")
3502 (source
3503 (origin
3504 (method git-fetch)
3505 (uri (git-reference
3506 (url (string-append home-page ".git"))
3507 (commit version)))
3508 (file-name (git-file-name name version))
3509 (sha256
3510 (base32
3511 "0zncsw8bgbkh1pfvfc7nh628hfj84lgx6jwhp9ashj3z1z0w3xjn"))))
3512 (build-system dune-build-system)
3513 (arguments
3514 `(#:test-target "."))
3515 (inputs
3516 `(("ocaml-biniou" ,ocaml-biniou)
3517 ("ocaml-easy-format" ,ocaml-easy-format)))
3518 (native-inputs
3519 `(("ocaml-alcotest" ,ocaml-alcotest)
3520 ("ocaml-cppo" ,ocaml-cppo)))
3521 (synopsis "Low-level JSON library for OCaml")
3522 (description "Yojson is an optimized parsing and printing library for the
3523 JSON format. It addresses a few shortcomings of json-wheel including 2x
3524 speedup, polymorphic variants and optional syntax for tuples and variants.
3525 @code{ydump} is a pretty printing command-line program provided with the
3526 yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
3527 serializers and deserializers from type definitions.")
3528 (license license:bsd-3)))
3529
3530 (define-public ocaml-craml
3531 (package
3532 (name "ocaml-craml")
3533 (version "1.0.0")
3534 (home-page "https://github.com/realworldocaml/craml")
3535 (source
3536 (origin
3537 (method git-fetch)
3538 (uri (git-reference
3539 (url (string-append home-page ".git"))
3540 (commit version)))
3541 (file-name (git-file-name name version))
3542 (sha256
3543 (base32
3544 "197xjp4vmzdymf2ndinw271ihpf45h04mx8gqj8ypspxdr5fj1a5"))))
3545 (build-system dune-build-system)
3546 (inputs
3547 `(("ocaml-fmt" ,ocaml-fmt)
3548 ("ocaml-astring" ,ocaml-astring)
3549 ("ocaml-logs" ,ocaml-logs)
3550 ("ocaml-cmdliner" ,ocaml-cmdliner)))
3551 (synopsis
3552 "CRAM-testing framework for testing command line applications")
3553 (description "CRAM is a is functional testing framework for command line
3554 applications. @code{craml} is freely inspired by the
3555 Mercurial's @code{https://www.selenic.com/blog/?p=663, unified test
3556 format}. @code{craml} is released as a single binary (called @code{craml}).")
3557 (license license:isc)))
3558
3559 (define-public ocaml-merlin
3560 (package
3561 (name "ocaml-merlin")
3562 (version "3.2.2")
3563 (home-page "https://ocaml.github.io/merlin/")
3564 (source
3565 (origin
3566 (method git-fetch)
3567 (uri (git-reference
3568 (url "https://github.com/ocaml/merlin.git")
3569 (commit (string-append "v" version))))
3570 (file-name (git-file-name name version))
3571 (sha256
3572 (base32
3573 "15ssgmwdxylbwhld9p1cq8x6kadxyhll5bfyf11dddj6cldna3hb"))))
3574 (build-system dune-build-system)
3575 (inputs
3576 `(("ocaml-biniou" ,ocaml-biniou)
3577 ("ocaml-yojson" ,ocaml-yojson)
3578 ("ocaml-easy-format" ,ocaml-easy-format)))
3579 (native-inputs
3580 `(("ocaml-findlib" ,ocaml-findlib)))
3581 (arguments
3582 '(#:jbuild? #t
3583 #:tests? #f)) ;; Errors in tests in version 3.2.2
3584 (synopsis "Context sensitive completion for OCaml in Vim and Emacs")
3585 (description "Merlin is an editor service that provides modern IDE
3586 features for OCaml. Emacs and Vim support is provided out-of-the-box.
3587 External contributors added support for Visual Studio Code, Sublime Text and
3588 Atom.")
3589 (license license:expat)))
3590
3591 (define-public ocaml-gsl
3592 (package
3593 (name "ocaml-gsl")
3594 (version "1.24.0")
3595 (source
3596 (origin
3597 (method url-fetch)
3598 (uri
3599 (string-append
3600 "https://github.com/mmottl/gsl-ocaml/releases/download/"
3601 version "/gsl-" version ".tbz"))
3602 (sha256
3603 (base32
3604 "1l5zkkkg8sglsihrbf10ivq9s8xzl1y6ag89i4jqpnmi4m43fy34"))))
3605 (build-system dune-build-system)
3606 (arguments
3607 `(#:test-target "."
3608 #:phases
3609 (modify-phases %standard-phases
3610 (add-after 'unpack 'fix-gsl-directory
3611 (lambda* (#:key inputs #:allow-other-keys)
3612 (substitute* "src/config/discover.ml"
3613 (("/usr") (assoc-ref inputs "gsl")))
3614 #t)))))
3615 (inputs
3616 `(("gsl" ,gsl)))
3617 (propagated-inputs
3618 `(("ocaml-base" ,ocaml-base)
3619 ("ocaml-stdio" ,ocaml-stdio)))
3620 (home-page "https://mmottl.github.io/gsl-ocaml")
3621 (synopsis "Bindings to the GNU Scientific Library")
3622 (description
3623 "GSL-OCaml is an interface to the @dfn{GNU scientific library} (GSL) for
3624 the OCaml language.")
3625 (license license:gpl3+)))
3626
3627 (define-public ocaml-gsl-1
3628 (package
3629 (inherit ocaml-gsl)
3630 (version "1.19.3")
3631 (source (origin
3632 (method url-fetch)
3633 (uri (string-append "https://github.com/mmottl/gsl-ocaml"
3634 "/releases/download/v"
3635 version "/gsl-ocaml-" version ".tar.gz"))
3636 (sha256
3637 (base32
3638 "0nzp43hp8pbjqkrxnwp5lgjrabxayf61h18fjaydi0s5faq6f3xh"))))
3639 (build-system ocaml-build-system)
3640 (inputs
3641 `(("gsl" ,gsl)))
3642 (native-inputs
3643 `(("ocamlbuild" ,ocamlbuild)))
3644 (arguments '())
3645 (propagated-inputs '())))
3646
3647 (define-public cubicle
3648 (package
3649 (name "cubicle")
3650 (version "1.1.2")
3651 (source (origin
3652 (method url-fetch)
3653 (uri (string-append "http://cubicle.lri.fr/cubicle-"
3654 version ".tar.gz"))
3655 (sha256
3656 (base32
3657 "10kk80jdmpdvql88sdjsh7vqzlpaphd8vip2lp47aarxjkwjlz1q"))))
3658 (build-system gnu-build-system)
3659 (native-inputs
3660 `(("automake" ,automake)
3661 ("ocaml" ,ocaml)
3662 ("which" ,(@@ (gnu packages base) which))))
3663 (propagated-inputs
3664 `(("ocaml-num" ,ocaml-num)
3665 ("z3" ,z3)))
3666 (arguments
3667 `(#:configure-flags (list "--with-z3")
3668 #:make-flags (list "QUIET=")
3669 #:tests? #f
3670 #:phases
3671 (modify-phases %standard-phases
3672 (add-before 'configure 'configure-for-release
3673 (lambda _
3674 (substitute* "Makefile.in"
3675 (("SVNREV=") "#SVNREV="))
3676 #t))
3677 (add-before 'configure 'fix-/bin/sh
3678 (lambda _
3679 (substitute* "configure"
3680 (("-/bin/sh") (string-append "-" (which "sh"))))
3681 #t))
3682 (add-before 'configure 'fix-smt-z3wrapper.ml
3683 (lambda _
3684 (substitute* "Makefile.in"
3685 (("\\\\n") ""))
3686 #t))
3687 (add-before 'configure 'fix-ocaml-num
3688 (lambda* (#:key inputs #:allow-other-keys)
3689 (substitute* "Makefile.in"
3690 (("= \\$\\(FUNCTORYLIB\\)")
3691 (string-append "= -I "
3692 (assoc-ref inputs "ocaml-num")
3693 "/lib/ocaml/site-lib"
3694 " $(FUNCTORYLIB)")))
3695 #t)))))
3696 (home-page "http://cubicle.lri.fr/")
3697 (synopsis "Model checker for array-based systems")
3698 (description "Cubicle is a model checker for verifying safety properties
3699 of array-based systems. This is a syntactically restricted class of
3700 parametrized transition systems with states represented as arrays indexed by
3701 an arbitrary number of processes. Cache coherence protocols and mutual
3702 exclusion algorithms are typical examples of such systems.")
3703 (license license:asl2.0)))
3704
3705 (define-public ocaml-sexplib0
3706 (package
3707 (name "ocaml-sexplib0")
3708 (version "0.11.0")
3709 (home-page "https://github.com/janestreet/sexplib0")
3710 (source
3711 (origin
3712 (method git-fetch)
3713 (uri (git-reference
3714 (url (string-append home-page ".git"))
3715 (commit (string-append "v" version))))
3716 (file-name (git-file-name name version))
3717 (sha256
3718 (base32
3719 "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
3720 (build-system dune-build-system)
3721 (arguments
3722 '(#:tests? #f)) ;no tests
3723 (synopsis "Library containing the definition of S-expressions and some
3724 base converters")
3725 (description "Part of Jane Street's Core library The Core suite of
3726 libraries is an industrial strength alternative to OCaml's standard library
3727 that was developed by Jane Street, the largest industrial user of OCaml.")
3728 (license license:expat)))
3729
3730 (define-public ocaml-parsexp
3731 (package
3732 (name "ocaml-parsexp")
3733 (version "0.11.0")
3734 (home-page "https://github.com/janestreet/parsexp")
3735 (source
3736 (origin
3737 (method git-fetch)
3738 (uri (git-reference
3739 (url (string-append home-page ".git"))
3740 (commit (string-append "v" version))))
3741 (file-name (git-file-name name version))
3742 (sha256
3743 (base32
3744 "1nyq23s5igd8cf3n4qxprjvhbmb6ighb3fy5mw7hxl0mdgsw5fvz"))))
3745 (build-system dune-build-system)
3746 (inputs
3747 `(("ocaml-sexplib0" ,ocaml-sexplib0)))
3748 (synopsis "S-expression parsing library")
3749 (description
3750 "This library provides generic parsers for parsing S-expressions from
3751 strings or other medium.
3752
3753 The library is focused on performances but still provide full generic
3754 parsers that can be used with strings, bigstrings, lexing buffers,
3755 character streams or any other sources effortlessly.
3756
3757 It provides three different class of parsers:
3758 @itemize
3759 @item
3760 the normal parsers, producing [Sexp.t] or [Sexp.t list] values
3761 @item
3762 the parsers with positions, building compact position sequences so
3763 that one can recover original positions in order to report properly
3764 located errors at little cost
3765 @item
3766 the Concrete Syntax Tree parsers, produce values of type
3767 @code{Parsexp.Cst.t} which record the concrete layout of the s-expression
3768 syntax, including comments
3769 @end itemize
3770
3771 This library is portable and doesn't provide IO functions. To read
3772 s-expressions from files or other external sources, you should use
3773 parsexp_io.")
3774 (license license:expat)))
3775
3776 (define-public ocaml-sexplib
3777 (package
3778 (name "ocaml-sexplib")
3779 (version "0.11.0")
3780 (home-page "https://github.com/janestreet/sexplib")
3781 (source
3782 (origin
3783 (method git-fetch)
3784 (uri (git-reference
3785 (url (string-append home-page ".git"))
3786 (commit (string-append "v" version))))
3787 (file-name (git-file-name name version))
3788 (sha256
3789 (base32
3790 "1qfl0m04rpcjvc4yw1hzh6r16jpwmap0sa9ax6zjji67dz4szpyb"))))
3791 (build-system dune-build-system)
3792 (propagated-inputs
3793 `(("ocaml-num" ,ocaml-num)
3794 ("ocaml-parsexp" ,ocaml-parsexp)
3795 ("ocaml-sexplib0" ,ocaml-sexplib0)))
3796 (synopsis
3797 "Library for serializing OCaml values to and from S-expressions")
3798 (description
3799 "This package is part of Jane Street's Core library. Sexplib contains
3800 functionality for parsing and pretty-printing s-expressions.")
3801 (license license:expat)))
3802
3803 (define-public ocaml-base
3804 (package
3805 (name "ocaml-base")
3806 (version "0.11.1")
3807 (home-page "https://github.com/janestreet/base")
3808 (source
3809 (origin
3810 (method git-fetch)
3811 (uri (git-reference
3812 (url (string-append home-page ".git"))
3813 (commit (string-append "v" version))))
3814 (file-name (git-file-name name version))
3815 (sha256
3816 (base32
3817 "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
3818 (build-system dune-build-system)
3819 (propagated-inputs
3820 `(("ocaml-sexplib0" ,ocaml-sexplib0)))
3821 (arguments
3822 `(#:phases
3823 (modify-phases %standard-phases
3824 (replace 'build
3825 ;; make warnings non fatal (jbuilder behaviour)
3826 (lambda _
3827 (invoke "dune" "build" "@install" "--profile=release"))))))
3828 (synopsis
3829 "Full standard library replacement for OCaml")
3830 (description
3831 "Base is a complete and portable alternative to the OCaml standard
3832 library. It provides all standard functionalities one would expect
3833 from a language standard library. It uses consistent conventions
3834 across all of its module.
3835
3836 Base aims to be usable in any context. As a result system dependent
3837 features such as I/O are not offered by Base. They are instead
3838 provided by companion libraries such as
3839 @url{https://github.com/janestreet/stdio, ocaml-stdio}.")
3840 (license license:expat)))
3841
3842 (define-public ocaml-compiler-libs
3843 (package
3844 (name "ocaml-compiler-libs")
3845 (version "0.11.0")
3846 (home-page "https://github.com/janestreet/ocaml-compiler-libs")
3847 (source
3848 (origin
3849 (method git-fetch)
3850 (uri (git-reference
3851 (url (string-append home-page ".git"))
3852 (commit (string-append "v" version))))
3853 (file-name (git-file-name name version))
3854 (sha256
3855 (base32
3856 "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
3857 (build-system dune-build-system)
3858 (arguments
3859 '(#:tests? #f)) ;no tests
3860 (properties `((upstream-name . "ocaml-compiler-libs")))
3861 (synopsis "Compiler libraries repackaged")
3862 (description "This package simply repackages the OCaml compiler libraries
3863 so they don't expose everything at toplevel. For instance, @code{Ast_helper}
3864 is now @code{Ocaml_common.Ast_helper}.")
3865 (license license:expat)))
3866
3867 (define-public ocaml-stdio
3868 (package
3869 (name "ocaml-stdio")
3870 (version "0.11.0")
3871 (home-page "https://github.com/janestreet/stdio")
3872 (source
3873 (origin
3874 (method git-fetch)
3875 (uri (git-reference
3876 (url (string-append home-page ".git"))
3877 (commit (string-append "v" version))))
3878 (file-name (git-file-name name version))
3879 (sha256
3880 (base32
3881 "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
3882 (build-system dune-build-system)
3883 (propagated-inputs
3884 `(("ocaml-base" ,ocaml-base)
3885 ("ocaml-sexplib0" ,ocaml-sexplib0)))
3886 (arguments
3887 '(#:tests? #f)) ;no tests
3888 (synopsis "Standard IO library for OCaml")
3889 (description
3890 "Stdio implements simple input/output functionalities for OCaml. It
3891 re-exports the input/output functions of the OCaml standard libraries using
3892 a more consistent API.")
3893 (license license:expat)))
3894
3895 (define-public ocaml-ppx-derivers
3896 (package
3897 (name "ocaml-ppx-derivers")
3898 (version "1.2.1")
3899 (home-page
3900 "https://github.com/ocaml-ppx/ppx_derivers")
3901 (source
3902 (origin
3903 (method git-fetch)
3904 (uri (git-reference
3905 (url (string-append home-page ".git"))
3906 (commit version)))
3907 (file-name (git-file-name name version))
3908 (sha256
3909 (base32
3910 "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"))))
3911 (build-system dune-build-system)
3912 (arguments
3913 '(#:tests? #f)) ;no tests
3914 (properties `((upstream-name . "ppx_derivers")))
3915 (synopsis "Shared @code{@@deriving} plugin registry")
3916 (description
3917 "Ppx_derivers is a tiny package whose sole purpose is to allow
3918 ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
3919 as part of the same ocaml-migrate-parsetree driver.")
3920 (license license:bsd-3)))
3921
3922 (define-public ocaml-ppxlib
3923 (package
3924 (name "ocaml-ppxlib")
3925 (version "0.6.0")
3926 (home-page "https://github.com/ocaml-ppx/ppxlib")
3927 (source
3928 (origin
3929 (method git-fetch)
3930 (uri (git-reference
3931 (url (string-append home-page ".git"))
3932 (commit version)))
3933 (file-name (git-file-name name version))
3934 (sha256
3935 (base32
3936 "0my9x7sxb329h0lzshppdaawiyfbaw6g5f41yiy7bhl071rnlvbv"))))
3937 (build-system dune-build-system)
3938 (propagated-inputs
3939 `(("ocaml-base" ,ocaml-base)
3940 ("ocaml-compiler-libs" ,ocaml-compiler-libs)
3941 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
3942 ("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
3943 ("ocaml-stdio" ,ocaml-stdio)
3944 ("ocaml-result" ,ocaml-result)
3945 ("ocaml-sexplib0" ,ocaml-sexplib0)))
3946 (arguments
3947 '(#:phases
3948 (modify-phases %standard-phases
3949 (add-before 'check 'set-topfind
3950 (lambda* (#:key inputs #:allow-other-keys)
3951 ;; add the line #directory ".." at the top of each file
3952 ;; using #use "topfind";; to be able to find topfind
3953 (let* ((findlib-path (assoc-ref inputs "findlib"))
3954 (findlib-libdir
3955 (string-append findlib-path "/lib/ocaml/site-lib")))
3956 (substitute* '("test/base/test.ml"
3957 "test/code_path/test.ml"
3958 "test/deriving/test.ml"
3959 "test/driver/attributes/test.ml"
3960 "test/driver/non-compressible-suffix/test.ml"
3961 "test/driver/transformations/test.ml")
3962 (("#use \"topfind\";;" all)
3963 (string-append "#directory \"" findlib-libdir "\"\n"
3964 all))))
3965 #t)))))
3966 (synopsis
3967 "Base library and tools for ppx rewriters")
3968 (description
3969 "A comprehensive toolbox for ppx development. It features:
3970 @itemize
3971 @item an OCaml AST / parser / pretty-printer snapshot, to create a full frontend
3972 independent of the version of OCaml;
3973 @item a library for library for ppx rewriters in general, and type-driven code
3974 generators in particular;
3975 @item
3976 a feature-full driver for OCaml AST transformers;
3977 @item a quotation mechanism allowing to write values representing the
3978 OCaml AST in the OCaml syntax;
3979 @item a generator of open recursion classes from type definitions.
3980 @end itemize")
3981 (license license:expat)))
3982
3983 (define-public ocaml-ppx-compare
3984 (package
3985 (name "ocaml-ppx-compare")
3986 (version "0.11.1")
3987 (source (origin
3988 (method git-fetch)
3989 (uri (git-reference
3990 (url "https://github.com/janestreet/ppx_compare.git")
3991 (commit (string-append "v" version))))
3992 (file-name (git-file-name name version))
3993 (sha256
3994 (base32
3995 "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
3996 (build-system dune-build-system)
3997 (propagated-inputs
3998 `(("ocaml-base" ,ocaml-base)
3999 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4000 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4001 (properties `((upstream-name . "ppx_compare")))
4002 (home-page "https://github.com/janestreet/ppx_compare")
4003 (synopsis "Generation of comparison functions from types")
4004 (description "Generation of fast comparison functions from type expressions
4005 and definitions. Ppx_compare is a ppx rewriter that derives comparison functions
4006 from type representations. The scaffolded functions are usually much faster
4007 than ocaml's Pervasives.compare. Scaffolding functions also gives you more
4008 flexibility by allowing you to override them for a specific type and more safety
4009 by making sure that you only compare comparable values.")
4010 (license license:asl2.0)))
4011
4012 (define-public ocaml-fieldslib
4013 (package
4014 (name "ocaml-fieldslib")
4015 (version "0.11.0")
4016 (source (origin
4017 (method url-fetch)
4018 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4019 (version-major+minor version) "/files/"
4020 "fieldslib-v" version ".tar.gz"))
4021 (sha256
4022 (base32
4023 "12948pzxrl360lybm9fzyvplgcl87zjbn4m3sk1aw75zk85p1388"))))
4024 (build-system dune-build-system)
4025 (arguments
4026 ;; No tests
4027 `(#:tests? #f))
4028 (propagated-inputs
4029 `(("ocaml-base" ,ocaml-base)
4030 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4031 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4032 (properties `((upstream-name . "fieldslib")))
4033 (home-page "https://github.com/janestreet/fieldslib")
4034 (synopsis "Syntax extension to record fields")
4035 (description "Syntax extension to define first class values representing
4036 record fields, to get and set record fields, iterate and fold over all fields
4037 of a record and create new record values.")
4038 (license license:asl2.0)))
4039
4040 (define-public ocaml-variantslib
4041 (package
4042 (name "ocaml-variantslib")
4043 (version "0.11.0")
4044 (source (origin
4045 (method url-fetch)
4046 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4047 (version-major+minor version)
4048 "/files/variantslib-v" version ".tar.gz"))
4049 (sha256
4050 (base32
4051 "1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
4052 (build-system dune-build-system)
4053 (arguments
4054 ;; No tests
4055 `(#:tests? #f))
4056 (propagated-inputs
4057 `(("ocaml-base" ,ocaml-base)
4058 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4059 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4060 (properties `((upstream-name . "variantslib")))
4061 (home-page "https://github.com/janestreet/variantslib")
4062 (synopsis "OCaml variants as first class values")
4063 (description "The Core suite of libraries is an alternative to OCaml's
4064 standard library.")
4065 (license license:asl2.0)))
4066
4067 (define-public ocaml-ppx-fields-conv
4068 (package
4069 (name "ocaml-ppx-fields-conv")
4070 (version "0.11.0")
4071 (source (origin
4072 (method url-fetch)
4073 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4074 (version-major+minor version)
4075 "/files/ppx_fields_conv-v" version ".tar.gz"))
4076 (sha256
4077 (base32
4078 "07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
4079 (build-system dune-build-system)
4080 (propagated-inputs
4081 `(("ocaml-base" ,ocaml-base)
4082 ("ocaml-fieldslib" ,ocaml-fieldslib)
4083 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4084 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4085 (properties `((upstream-name . "ppx_fields_conv")))
4086 (home-page "https://github.com/janestreet/ppx_fields_conv")
4087 (synopsis "Generation of accessor and iteration functions for ocaml records")
4088 (description "Ppx_fields_conv is a ppx rewriter that can be used to define
4089 first class values representing record fields, and additional routines, to get
4090 and set record fields, iterate and fold over all fields of a record and create
4091 new record values.")
4092 (license license:asl2.0)))
4093
4094 (define-public ocaml-ppx-sexp-conv
4095 (package
4096 (name "ocaml-ppx-sexp-conv")
4097 (version "0.11.2")
4098 (source (origin
4099 (method git-fetch)
4100 (uri (git-reference
4101 (url "https://github.com/janestreet/ppx_sexp_conv.git")
4102 (commit (string-append "v" version))))
4103 (file-name (git-file-name name version))
4104 (sha256
4105 (base32
4106 "0pqwnqy1xp309wvdcaax4lg02yk64lq2w03mbgfvf6ps5ry4gis9"))))
4107 (build-system dune-build-system)
4108 (propagated-inputs
4109 `(("ocaml-base" ,ocaml-base)
4110 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4111 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4112 (properties `((upstream-name . "ppx_sexp_conv")))
4113 (home-page "https://github.com/janestreet/ppx_sexp_conv")
4114 (synopsis "Generation of S-expression conversion functions from type definitions")
4115 (description "This package generates S-expression conversion functions from type
4116 definitions.")
4117 (license license:asl2.0)))
4118
4119 (define-public ocaml-ppx-variants-conv
4120 (package
4121 (name "ocaml-ppx-variants-conv")
4122 (version "0.11.1")
4123 (source (origin
4124 (method git-fetch)
4125 (uri (git-reference
4126 (url "https://github.com/janestreet/ppx_variants_conv.git")
4127 (commit (string-append "v" version))))
4128 (file-name (git-file-name name version))
4129 (sha256
4130 (base32
4131 "1yc0gsds5m2nv39zga8nnrca2n75rkqy5dz4xj1635ybz20hhbjd"))))
4132 (build-system dune-build-system)
4133 (propagated-inputs
4134 `(("ocaml-base" ,ocaml-base)
4135 ("ocaml-variantslib" ,ocaml-variantslib)
4136 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4137 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4138 (properties
4139 `((upstream-name . "ppx_variants_conv")))
4140 (home-page
4141 "https://github.com/janestreet/ppx_variants_conv")
4142 (synopsis "Generation of accessor and iteration functions for OCaml variant types")
4143 (description
4144 "This package generates accessors and interation functions for OCaml
4145 variant types.")
4146 (license license:asl2.0)))
4147
4148 (define-public ocaml-ppx-custom-printf
4149 (package
4150 (name "ocaml-ppx-custom-printf")
4151 (version "0.11.0")
4152 (source (origin
4153 (method url-fetch)
4154 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4155 (version-major+minor version)
4156 "/files/ppx_custom_printf-v" version ".tar.gz"))
4157 (sha256
4158 (base32
4159 "11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))))
4160 (build-system dune-build-system)
4161 (propagated-inputs
4162 `(("ocaml-base" ,ocaml-base)
4163 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
4164 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4165 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4166 (properties `((upstream-name . "ppx_custom_printf")))
4167 (home-page "https://github.com/janestreet/ppx_custom_printf")
4168 (synopsis "Printf-style format-strings for user-defined string conversion")
4169 (description "Extensions to printf-style format-strings for user-defined
4170 string conversion.")
4171 (license license:asl2.0)))
4172
4173 (define-public ocaml-bin-prot
4174 (package
4175 (name "ocaml-bin-prot")
4176 (version "0.11.0")
4177 (source (origin
4178 (method url-fetch)
4179 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4180 (version-major+minor version)
4181 "/files/bin_prot-v" version ".tar.gz"))
4182 (sha256
4183 (base32
4184 "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
4185 (build-system dune-build-system)
4186 (inputs
4187 `(("ocaml-base" ,ocaml-base)
4188 ("ocaml-ppx-compare" ,ocaml-ppx-compare)
4189 ("ocaml-ppx-custom-printf" ,ocaml-ppx-custom-printf)
4190 ("ocaml-ppx-fields-conv" ,ocaml-ppx-fields-conv)
4191 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
4192 ("ocaml-ppx-variants-conv" ,ocaml-ppx-variants-conv)
4193 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
4194 (properties `((upstream-name . "bin_prot")))
4195 (home-page "https://github.com/janestreet/bin_prot")
4196 (synopsis "Binary protocol generator")
4197 (description "This library contains functionality for reading and writing
4198 OCaml-values in a type-safe binary protocol. It is extremely efficient,
4199 typically supporting type-safe marshalling and unmarshalling of even highly
4200 structured values at speeds sufficient to saturate a gigabit connection. The
4201 protocol is also heavily optimized for size, making it ideal for long-term
4202 storage of large amounts of data.")
4203 (license (list
4204 license:asl2.0
4205 license:bsd-3))))
4206
4207 (define-public ocaml-octavius
4208 (package
4209 (name "ocaml-octavius")
4210 (version "1.2.1")
4211 (source (origin
4212 (method git-fetch)
4213 (uri (git-reference
4214 (url "https://github.com/ocaml-doc/octavius")
4215 (commit (string-append "v" version))))
4216 (file-name (git-file-name name version))
4217 (sha256
4218 (base32
4219 "1ck6yj6z5rvqyl39rz87ca1bnk0f1dpgvlk115631hjh8bwpfvfq"))))
4220 (build-system dune-build-system)
4221 (properties `((upstream-name . "octavius")))
4222 (home-page "https://github.com/ocaml-doc/octavius")
4223 (synopsis "Ocamldoc comment syntax parser")
4224 (description "Octavius is a library to parse the `ocamldoc` comment syntax.")
4225 (license license:isc)))
4226
4227 (define-public ocaml-ppx-hash
4228 (package
4229 (name "ocaml-ppx-hash")
4230 (version "0.11.1")
4231 (source (origin
4232 (method git-fetch)
4233 (uri (git-reference
4234 (url "https://github.com/janestreet/ppx_hash.git")
4235 (commit (string-append "v" version))))
4236 (file-name (git-file-name name version))
4237 (sha256
4238 (base32
4239 "1p0ic6aijxlrdggpmycj12q3cy9xksbq2vq727215maz4snvlf5p"))))
4240 (build-system dune-build-system)
4241 (propagated-inputs
4242 `(("ocaml-base" ,ocaml-base)
4243 ("ocaml-ppx-compare" ,ocaml-ppx-compare)
4244 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
4245 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4246 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4247 (properties `((upstream-name . "ppx_hash")))
4248 (home-page "https://github.com/janestreet/ppx_hash")
4249 (synopsis "Generation of hash functions from type expressions and definitions")
4250 (description "This package is a collection of ppx rewriters that generate
4251 hash functions from type exrpessions and definitions.")
4252 (license license:asl2.0)))
4253
4254 (define-public ocaml-ppx-enumerate
4255 (package
4256 (name "ocaml-ppx-enumerate")
4257 (version "0.11.1")
4258 (source (origin
4259 (method git-fetch)
4260 (uri (git-reference
4261 (url "https://github.com/janestreet/ppx_enumerate.git")
4262 (commit (string-append "v" version))))
4263 (file-name (git-file-name name version))
4264 (sha256
4265 (base32
4266 "0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
4267 (build-system dune-build-system)
4268 (arguments
4269 `(#:tests? #f)) ; no test suite
4270 (propagated-inputs
4271 `(("ocaml-base" ,ocaml-base)
4272 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4273 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4274 (properties `((upstream-name . "ppx_enumerate")))
4275 (home-page "https://github.com/janestreet/ppx_enumerate")
4276 (synopsis "Generate a list containing all values of a finite type")
4277 (description "Ppx_enumerate is a ppx rewriter which generates a definition
4278 for the list of all values of a type (for a type which only has finitely
4279 many values).")
4280 (license license:asl2.0)))
4281
4282 (define-public ocaml-ppx-bench
4283 (package
4284 (name "ocaml-ppx-bench")
4285 (version "0.11.0")
4286 (source (origin
4287 (method url-fetch)
4288 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4289 (version-major+minor version)
4290 "/files/ppx_bench-v" version ".tar.gz"))
4291 (sha256
4292 (base32
4293 "0ys4pblbcjbk9dn073rqiwm7r6rc7fah03j7riklkwnb5n44andl"))))
4294 (build-system dune-build-system)
4295 (arguments
4296 ;; No tests
4297 `(#:tests? #f))
4298 (propagated-inputs
4299 `(("ocaml-ppx-inline-test" ,ocaml-ppx-inline-test)
4300 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4301 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4302 (properties `((upstream-name . "ppx_bench")))
4303 (home-page "https://github.com/janestreet/ppx_bench")
4304 (synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
4305 (description "Syntax extension for writing in-line benchmarks in ocaml code.")
4306 (license license:asl2.0)))
4307
4308 (define-public ocaml-ppx-here
4309 (package
4310 (name "ocaml-ppx-here")
4311 (version "0.11.0")
4312 (source (origin
4313 (method url-fetch)
4314 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4315 (version-major+minor version)
4316 "/files/ppx_here-v" version ".tar.gz"))
4317 (sha256
4318 (base32
4319 "0wxcak3ay4jpigm3pfdcpr65qw4hxfa8whhkryhcd8gy71x056z5"))))
4320 (build-system dune-build-system)
4321 (arguments
4322 ;; broken tests
4323 `(#:tests? #f))
4324 (propagated-inputs
4325 `(("ocaml-base" ,ocaml-base)
4326 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4327 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4328 (properties `((upstream-name . "ppx_here")))
4329 (home-page "https://github.com/janestreet/ppx_here")
4330 (synopsis "Expands [%here] into its location")
4331 (description
4332 "Part of the Jane Street's PPX rewriters collection.")
4333 (license license:asl2.0)))
4334
4335 (define-public ocaml-typerep
4336 (package
4337 (name "ocaml-typerep")
4338 (version "0.11.0")
4339 (source (origin
4340 (method url-fetch)
4341 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4342 (version-major+minor version)
4343 "/files/typerep-v" version ".tar.gz"))
4344 (sha256
4345 (base32
4346 "1zi7hy0prpgzqhr4lkacr04wvlvbp21jfbdfvffhrm6cd400rb5v"))))
4347 (build-system dune-build-system)
4348 (arguments
4349 `(#:tests? #f))
4350 (propagated-inputs `(("ocaml-base" ,ocaml-base)))
4351 (home-page "https://github.com/janestreet/typerep")
4352 (synopsis "Typerep is a library for runtime types")
4353 (description "Typerep is a library for runtime types.")
4354 (license license:asl2.0)))
4355
4356 (define-public ocaml-ppx-sexp-value
4357 (package
4358 (name "ocaml-ppx-sexp-value")
4359 (version "0.11.0")
4360 (source (origin
4361 (method url-fetch)
4362 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4363 (version-major+minor version)
4364 "/files/ppx_sexp_value-v" version ".tar.gz"))
4365 (sha256
4366 (base32
4367 "1xnalfrln6k5khsyxvxkg6v32q8fpr4cqamsjqfih29jdv486xrs"))))
4368 (build-system dune-build-system)
4369 (propagated-inputs
4370 `(("ocaml-base" ,ocaml-base)
4371 ("ocaml-ppx-here" ,ocaml-ppx-here)
4372 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
4373 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4374 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4375 (properties `((upstream-name . "ppx_sexp_value")))
4376 (home-page "https://github.com/janestreet/ppx_sexp_value")
4377 (synopsis "Simplify building s-expressions from ocaml values")
4378 (description "A ppx rewriter that simplifies building s-expressions from
4379 ocaml values.")
4380 (license license:asl2.0)))
4381
4382 (define-public ocaml-ppx-sexp-message
4383 (package
4384 (name "ocaml-ppx-sexp-message")
4385 (version "0.11.0")
4386 (source (origin
4387 (method url-fetch)
4388 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4389 (version-major+minor version)
4390 "/files/ppx_sexp_message-v" version ".tar.gz"))
4391 (sha256
4392 (base32
4393 "1yh440za0w9cvrbxbmqacir8715kdaw6sw24ys9xj80av9nqpiw7"))))
4394 (build-system dune-build-system)
4395 (propagated-inputs
4396 `(("ocaml-base" ,ocaml-base)
4397 ("ocaml-ppx-here" ,ocaml-ppx-here)
4398 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
4399 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4400 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4401 (properties `((upstream-name . "ppx_sexp_message")))
4402 (home-page "https://github.com/janestreet/ppx_sexp_message")
4403 (synopsis "A ppx rewriter for easy construction of s-expressions")
4404 (description "Ppx_sexp_message aims to ease the creation of s-expressions
4405 in OCaml. This is mainly motivated by writing error and debugging messages,
4406 where one needs to construct a s-expression based on various element of the
4407 context such as function arguments.")
4408 (license license:asl2.0)))
4409
4410 (define-public ocaml-ppx-pipebang
4411 (package
4412 (name "ocaml-ppx-pipebang")
4413 (version "0.11.0")
4414 (source (origin
4415 (method url-fetch)
4416 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4417 (version-major+minor version)
4418 "/files/ppx_pipebang-v" version ".tar.gz"))
4419 (sha256
4420 (base32
4421 "1wrrzlb4kdvkkcmzi01fw25jar38r2jlnyn0i6pn4z0lq4gpm9m0"))))
4422 (build-system dune-build-system)
4423 (arguments
4424 ;; No tests
4425 `(#:tests? #f))
4426 (propagated-inputs
4427 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4428 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4429 (properties `((upstream-name . "ppx_pipebang")))
4430 (home-page "https://github.com/janestreet/ppx_pipebang")
4431 (synopsis "Inline reverse application operators `|>` and `|!`")
4432 (description "A ppx rewriter that inlines reverse application operators
4433 @code{|>} and @code{|!}.")
4434 (license license:asl2.0)))
4435
4436 (define-public ocaml-ppx-optional
4437 (package
4438 (name "ocaml-ppx-optional")
4439 (version "0.11.0")
4440 (source (origin
4441 (method url-fetch)
4442 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4443 (version-major+minor version)
4444 "/files/ppx_optional-v" version ".tar.gz"))
4445 (sha256
4446 (base32
4447 "1z8z2bga95k2vksljljfglg10vygkjd24kn1b37sk4z3nmp47x0h"))))
4448 (build-system dune-build-system)
4449 (arguments
4450 ;; No tests
4451 `(#:tests? #f))
4452 (propagated-inputs
4453 `(("ocaml-base" ,ocaml-base)
4454 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4455 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4456 (properties `((upstream-name . "ppx_optional")))
4457 (home-page "https://github.com/janestreet/ppx_optional")
4458 (synopsis "Pattern matching on flat options")
4459 (description
4460 "A ppx rewriter that rewrites simple match statements with an if then
4461 else expression.")
4462 (license license:asl2.0)))
4463
4464 (define-public ocaml-ppx-optcomp
4465 (package
4466 (name "ocaml-ppx-optcomp")
4467 (version "0.11.0")
4468 (source (origin
4469 (method url-fetch)
4470 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4471 (version-major+minor version)
4472 "/files/ppx_optcomp-v" version ".tar.gz"))
4473 (sha256
4474 (base32
4475 "1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))))
4476 (build-system dune-build-system)
4477 (propagated-inputs
4478 `(("ocaml-base" ,ocaml-base)
4479 ("ocaml-stdio" ,ocaml-stdio)
4480 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4481 (properties `((upstream-name . "ppx_optcomp")))
4482 (home-page "https://github.com/janestreet/ppx_optcomp")
4483 (synopsis "Optional compilation for OCaml")
4484 (description "Ppx_optcomp stands for Optional Compilation. It is a tool
4485 used to handle optional compilations of pieces of code depending of the word
4486 size, the version of the compiler, ...")
4487 (license license:asl2.0)))
4488
4489 (define-public ocaml-ppx-let
4490 (package
4491 (name "ocaml-ppx-let")
4492 (version "0.11.0")
4493 (source (origin
4494 (method url-fetch)
4495 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4496 (version-major+minor version)
4497 "/files/ppx_let-v" version ".tar.gz"))
4498 (sha256
4499 (base32
4500 "1wdfw6w4xbg97a35yg6bif9gggxniy9ddnrjfw1a0inkl2yamxkj"))))
4501 (build-system dune-build-system)
4502 (propagated-inputs
4503 `(("ocaml-base" ,ocaml-base)
4504 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4505 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4506 (properties `((upstream-name . "ppx_let")))
4507 (home-page "https://github.com/janestreet/ppx_let")
4508 (synopsis "Monadic let-bindings")
4509 (description "A ppx rewriter for monadic and applicative let bindings,
4510 match expressions, and if expressions.")
4511 (license license:asl2.0)))
4512
4513 (define-public ocaml-ppx-fail
4514 (package
4515 (name "ocaml-ppx-fail")
4516 (version "0.11.0")
4517 (source (origin
4518 (method url-fetch)
4519 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4520 (version-major+minor version)
4521 "/files/ppx_fail-v" version ".tar.gz"))
4522 (sha256
4523 (base32
4524 "07plqsvljiwvngggfypwq55g46s5my55y45mvlmalrxyppzr03s8"))))
4525 (build-system dune-build-system)
4526 (propagated-inputs
4527 `(("ocaml-base" ,ocaml-base)
4528 ("ocaml-ppx-here" ,ocaml-ppx-here)
4529 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4530 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4531 (properties `((upstream-name . "ppx_fail")))
4532 (home-page "https://github.com/janestreet/ppx_fail")
4533 (synopsis "Add location to calls to failwiths")
4534 (description "Syntax extension that makes [failwiths] always include a
4535 position.")
4536 (license license:asl2.0)))
4537
4538 (define-public ocaml-ppx-assert
4539 (package
4540 (name "ocaml-ppx-assert")
4541 (version "0.11.0")
4542 (source (origin
4543 (method url-fetch)
4544 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4545 (version-major+minor version)
4546 "/files/ppx_assert-v" version ".tar.gz"))
4547 (sha256
4548 (base32
4549 "17kd311n0l9f72gblf9kv8i5rghr106w37x4f0m5qwh6nlgl0j9k"))))
4550 (build-system dune-build-system)
4551 (propagated-inputs
4552 `(("ocaml-base" ,ocaml-base)
4553 ("ocaml-ppx-compare" ,ocaml-ppx-compare)
4554 ("ocaml-ppx-here" ,ocaml-ppx-here)
4555 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
4556 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4557 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4558 (properties `((upstream-name . "ppx_assert")))
4559 (home-page "https://github.com/janestreet/ppx_assert")
4560 (synopsis "Assert-like extension nodes that raise useful errors on failure")
4561 (description "This package contains assert-like extension nodes that raise
4562 useful errors on failure.")
4563 (license license:asl2.0)))
4564
4565 (define-public ocaml-ppx-expect
4566 (package
4567 (name "ocaml-ppx-expect")
4568 (version "0.12.0")
4569 (source (origin
4570 (method git-fetch)
4571 (uri (git-reference
4572 (url "https://github.com/janestreet/ppx_expect.git")
4573 (commit (string-append "v" version))))
4574 (file-name (git-file-name name version))
4575 (sha256
4576 (base32
4577 "1wawsbjfkri4sw52n8xqrzihxc3xfpdicv3ahz83a1rsn4lb8j5q"))))
4578 (build-system dune-build-system)
4579 (arguments
4580 `(#:jbuild? #t))
4581 (propagated-inputs
4582 `(("ocaml-base" ,ocaml-base)
4583 ("ocaml-ppx-assert" ,ocaml-ppx-assert)
4584 ("ocaml-ppx-compare" ,ocaml-ppx-compare)
4585 ("ocaml-ppx-custom-printf" ,ocaml-ppx-custom-printf)
4586 ("ocaml-ppx-fields-conv" ,ocaml-ppx-fields-conv)
4587 ("ocaml-ppx-here" ,ocaml-ppx-here)
4588 ("ocaml-ppx-inline-test" ,ocaml-ppx-inline-test)
4589 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
4590 ("ocaml-ppx-variants-conv" ,ocaml-ppx-variants-conv)
4591 ("ocaml-stdio" ,ocaml-stdio)
4592 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4593 ("ocaml-ppxlib" ,ocaml-ppxlib)
4594 ("ocaml-re" ,ocaml-re)))
4595 (properties `((upstream-name . "ppx_expect")))
4596 (home-page "https://github.com/janestreet/ppx_expect")
4597 (synopsis "Cram like framework for OCaml")
4598 (description "Expect-test is a framework for writing tests in OCaml, similar
4599 to Cram. Expect-tests mimics the existing inline tests framework with the
4600 @code{let%expect_test} construct. The body of an expect-test can contain
4601 output-generating code, interleaved with @code{%expect} extension expressions
4602 to denote the expected output.")
4603 (license license:asl2.0)))
4604
4605 (define-public ocaml-ppx-js-style
4606 (package
4607 (name "ocaml-ppx-js-style")
4608 (version "0.11.0")
4609 (source (origin
4610 (method url-fetch)
4611 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4612 (version-major+minor version)
4613 "/files/ppx_js_style-v" version ".tar.gz"))
4614 (sha256
4615 (base32
4616 "0z3fc55jdjhhsblla6z4fqc13kljpcz29q79rvs5h2vsraqrldr2"))))
4617 (build-system dune-build-system)
4618 (arguments
4619 ;; No tests
4620 `(#:tests? #f))
4621 (propagated-inputs
4622 `(("ocaml-base" ,ocaml-base)
4623 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4624 ("ocaml-octavius" ,ocaml-octavius)
4625 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4626 (properties `((upstream-name . "ppx_js_style")))
4627 (home-page "https://github.com/janestreet/ppx_js_style")
4628 (synopsis "Code style checker for Jane Street Packages")
4629 (description "This package is a no-op ppx rewriter. It is used as a
4630 @code{lint} tool to enforce some coding conventions across all Jane Street
4631 packages.")
4632 (license license:asl2.0)))
4633
4634 (define-public ocaml-ppx-typerep-conv
4635 (package
4636 (name "ocaml-ppx-typerep-conv")
4637 (version "0.11.1")
4638 (source (origin
4639 (method git-fetch)
4640 (uri (git-reference
4641 (url "https://github.com/janestreet/ppx_typerep_conv.git")
4642 (commit (string-append "v" version))))
4643 (file-name (git-file-name name version))
4644 (sha256
4645 (base32
4646 "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))
4647 (build-system dune-build-system)
4648 (arguments
4649 `(#:test-target "."))
4650 (propagated-inputs
4651 `(("ocaml-base" ,ocaml-base)
4652 ("ocaml-typerep" ,ocaml-typerep)
4653 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4654 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4655 (properties `((upstream-name . "ppx_typerep_conv")))
4656 (home-page "https://github.com/janestreet/ppx_typerep_conv")
4657 (synopsis "Generation of runtime types from type declarations")
4658 (description "This package can automatically generate runtime types
4659 from type definitions.")
4660 (license license:asl2.0)))
4661
4662 (define-public ocaml-ppx-base
4663 (package
4664 (name "ocaml-ppx-base")
4665 (version "0.11.0")
4666 (source (origin
4667 (method url-fetch)
4668 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4669 (version-major+minor version)
4670 "/files/ppx_base-v" version ".tar.gz"))
4671 (sha256
4672 (base32
4673 "0aq206pg330jmj7lhcagiiwm3a0b3gsqm801m8ajd4ysyw7idkym"))))
4674 (build-system dune-build-system)
4675 (arguments
4676 `(#:test-target "."))
4677 (propagated-inputs
4678 `(("ocaml-ppx-compare" ,ocaml-ppx-compare)
4679 ("ocaml-ppx-enumerate" ,ocaml-ppx-enumerate)
4680 ("ocaml-ppx-hash" ,ocaml-ppx-hash)
4681 ("ocaml-ppx-js-style" ,ocaml-ppx-js-style)
4682 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
4683 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4684 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4685 (properties `((upstream-name . "ppx_base")))
4686 (home-page "https://github.com/janestreet/ppx_base")
4687 (synopsis "Base set of ppx rewriters")
4688 (description "Ppx_base is the set of ppx rewriters used for Base.
4689
4690 Note that Base doesn't need ppx to build, it is only used as a
4691 verification tool.")
4692 (license license:asl2.0)))
4693
4694 (define-public ocaml-ppx-bin-prot
4695 (package
4696 (name "ocaml-ppx-bin-prot")
4697 (version "0.11.1")
4698 (source (origin
4699 (method git-fetch)
4700 (uri (git-reference
4701 (url "https://github.com/janestreet/ppx_bin_prot.git")
4702 (commit (string-append "v" version))))
4703 (file-name (git-file-name name version))
4704 (sha256
4705 (base32
4706 "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
4707 (build-system dune-build-system)
4708 (arguments
4709 ;; Cyclic dependency with ocaml-ppx-jane
4710 `(#:tests? #f))
4711 (propagated-inputs
4712 `(("ocaml-base" ,ocaml-base)
4713 ("ocaml-bin-prot" ,ocaml-bin-prot)
4714 ("ocaml-ppx-here" ,ocaml-ppx-here)
4715 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4716 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4717 (properties `((upstream-name . "ppx_bin_prot")))
4718 (home-page "https://github.com/janestreet/ppx_bin_prot")
4719 (synopsis "Generation of bin_prot readers and writers from types")
4720 (description "Generation of binary serialization and deserialization
4721 functions from type definitions.")
4722 (license license:asl2.0)))
4723
4724 (define-public ocaml-ppx-jane
4725 (package
4726 (name "ocaml-ppx-jane")
4727 (version "0.11.0")
4728 (source (origin
4729 (method url-fetch)
4730 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4731 (version-major+minor version)
4732 "/files/ppx_jane-v" version ".tar.gz"))
4733 (sha256
4734 (base32
4735 "0lgppkw3aixrfnixihrsz2ipafv8fpvkdpy3pw8n0r615gg8x8la"))))
4736 (build-system dune-build-system)
4737 (arguments
4738 `(#:test-target "."))
4739 (propagated-inputs
4740 `(("ocaml-ppx-assert" ,ocaml-ppx-assert)
4741 ("ocaml-ppx-base" ,ocaml-ppx-base)
4742 ("ocaml-ppx-bench" ,ocaml-ppx-bench)
4743 ("ocaml-ppx-bin-prot" ,ocaml-ppx-bin-prot)
4744 ("ocaml-ppx-custom-printf" ,ocaml-ppx-custom-printf)
4745 ("ocaml-ppx-expect" ,ocaml-ppx-expect)
4746 ("ocaml-ppx-fail" ,ocaml-ppx-fail)
4747 ("ocaml-ppx-fields-conv" ,ocaml-ppx-fields-conv)
4748 ("ocaml-ppx-here" ,ocaml-ppx-here)
4749 ("ocaml-ppx-inline-test" ,ocaml-ppx-inline-test)
4750 ("ocaml-ppx-let" ,ocaml-ppx-let)
4751 ("ocaml-ppx-optcomp" ,ocaml-ppx-optcomp)
4752 ("ocaml-ppx-optional" ,ocaml-ppx-optional)
4753 ("ocaml-ppx-pipebang" ,ocaml-ppx-pipebang)
4754 ("ocaml-ppx-sexp-message" ,ocaml-ppx-sexp-message)
4755 ("ocaml-ppx-sexp-value" ,ocaml-ppx-sexp-value)
4756 ("ocaml-ppx-typerep-conv" ,ocaml-ppx-typerep-conv)
4757 ("ocaml-ppx-variants-conv" ,ocaml-ppx-variants-conv)
4758 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4759 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4760 (properties `((upstream-name . "ppx_jane")))
4761 (home-page "https://github.com/janestreet/ppx_jane")
4762 (synopsis "Standard Jane Street ppx rewriters")
4763 (description "This package installs a ppx-jane executable, which is a ppx
4764 driver including all standard Jane Street ppx rewriters.")
4765 (license license:asl2.0)))
4766
4767 (define-public ocaml-splittable-random
4768 (package
4769 (name "ocaml-splittable-random")
4770 (version "0.11.0")
4771 (source (origin
4772 (method url-fetch)
4773 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4774 (version-major+minor version)
4775 "/files/splittable_random-v" version ".tar.gz"))
4776 (sha256
4777 (base32
4778 "0l1wbd881mymlnpzlq5q53mmdz3g5d7qjhyc7lfaq1x0iaccn5lc"))))
4779 (build-system dune-build-system)
4780 (propagated-inputs
4781 `(("ocaml-base" ,ocaml-base)
4782 ("ocaml-ppx-jane" ,ocaml-ppx-jane)
4783 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
4784 (properties `((upstream-name . "splittable_random")))
4785 (home-page "https://github.com/janestreet/splittable_random")
4786 (synopsis "PRNG that can be split into independent streams")
4787 (description "This package provides a splittable
4788 @acronym{PRNG,pseudo-random number generator} functions like a PRNG that can
4789 be used as a stream of random values; it can also be split to produce a
4790 second, independent stream of random values.
4791
4792 This library implements a splittable pseudo-random number generator that sacrifices
4793 cryptographic-quality randomness in favor of performance.")
4794 (license license:asl2.0)))
4795
4796 (define-public ocaml-jane-street-headers
4797 (package
4798 (name "ocaml-jane-street-headers")
4799 (version "0.11.0")
4800 (source (origin
4801 (method url-fetch)
4802 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4803 (version-major+minor version)
4804 "/files/jane-street-headers-v" version ".tar.gz"))
4805 (sha256
4806 (base32
4807 "0afhzm08l9v883fhpqqh2lmy7az609pxif40bp7x1sk8c0yszqsh"))))
4808 (build-system dune-build-system)
4809 (arguments
4810 `(#:test-target "."))
4811 (home-page "https://github.com/janestreet/jane-street-headers")
4812 (synopsis "Jane Street C header files")
4813 (description "This package provides C header files shared between the
4814 various Jane Street packages.")
4815 (license license:asl2.0)))
4816
4817 (define-public ocaml-configurator
4818 (package
4819 (name "ocaml-configurator")
4820 (version "0.11.0")
4821 (source (origin
4822 (method url-fetch)
4823 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4824 (version-major+minor version)
4825 "/files/configurator-v" version ".tar.gz"))
4826 (sha256
4827 (base32
4828 "0kwgi3sh92v4n242dk5hgpwd85zzgnczgbkqi0q0kr6m93zgbf7p"))))
4829 (build-system dune-build-system)
4830 (arguments
4831 ;; No tests
4832 `(#:tests? #f))
4833 (propagated-inputs
4834 `(("ocaml-base" ,ocaml-base)
4835 ("ocaml-stdio" ,ocaml-stdio)))
4836 (home-page "https://github.com/janestreet/configurator")
4837 (synopsis "Helper library for gathering system configuration")
4838 (description "Configurator is a small library that helps writing OCaml
4839 scripts that test features available on the system, in order to generate config.h
4840 files for instance.
4841
4842 Configurator allows one to:
4843 @itemize
4844 @item test if a C program compiles
4845 @item query pkg-config
4846 @item import #define from OCaml header files
4847 @item generate config.h file
4848 @end itemize")
4849 (license license:asl2.0)))
4850
4851 (define-public ocaml-spawn
4852 (package
4853 (name "ocaml-spawn")
4854 (version "0.13.0")
4855 (source (origin
4856 (method git-fetch)
4857 (uri (git-reference
4858 (url "https://github.com/janestreet/spawn.git")
4859 (commit (string-append "v" version))))
4860 (file-name (git-file-name name version))
4861 (sha256
4862 (base32
4863 "1w003k1kw1lmyiqlk58gkxx8rac7dchiqlz6ah7aj7bh49b36ppf"))))
4864 (build-system dune-build-system)
4865 (arguments
4866 `(#:phases
4867 (modify-phases %standard-phases
4868 (add-before 'check 'fix-tests
4869 (lambda _
4870 (substitute* "test/tests.ml"
4871 (("/bin/pwd") (which "pwd"))
4872 (("/bin/echo") (which "echo")))
4873 #t)))))
4874 (native-inputs
4875 `(("ocaml-ppx-expect" ,ocaml-ppx-expect)))
4876 (home-page "https://github.com/janestreet/spawn")
4877 (synopsis "Spawning sub-processes")
4878 (description
4879 "Spawn is a small library exposing only one functionality: spawning sub-process.
4880
4881 It has three main goals:
4882
4883 @itemize
4884 @item provide missing features of Unix.create_process such as providing a
4885 working directory,
4886 @item provide better errors when a system call fails in the
4887 sub-process. For instance if a command is not found, you get a proper
4888 @code{Unix.Unix_error} exception,
4889 @item improve performances by using vfork when available. It is often
4890 claimed that nowadays fork is as fast as vfork, however in practice
4891 fork takes time proportional to the process memory while vfork is
4892 constant time. In application using a lot of memory, vfork can be
4893 thousands of times faster than fork.
4894 @end itemize")
4895 (license license:asl2.0)))
4896
4897 (define-public ocaml-core
4898 (package
4899 (name "ocaml-core")
4900 (version "0.11.3")
4901 (source (origin
4902 (method git-fetch)
4903 (uri (git-reference
4904 (url "https://github.com/janestreet/core.git")
4905 (commit (string-append "v" version))))
4906 (file-name (git-file-name name version))
4907 (sha256
4908 (base32
4909 "0pzl8n09z4f3i7z2wq4cjxfqrr8mj6xcdp7rbg0nxap2zdhjgvrq"))))
4910 (build-system dune-build-system)
4911 (arguments
4912 `(#:jbuild? #t
4913 ;; Require a cyclic dependency: core_extended
4914 #:tests? #f))
4915 (propagated-inputs
4916 `(("ocaml-base" ,ocaml-base)
4917 ("ocaml-configurator" ,ocaml-configurator)
4918 ("ocaml-core-kernel" ,ocaml-core-kernel)
4919 ("ocaml-ppx-assert" ,ocaml-ppx-assert)
4920 ("ocaml-ppx-jane" ,ocaml-ppx-jane)
4921 ("ocaml-sexplib" ,ocaml-sexplib)
4922 ("ocaml-spawn" ,ocaml-spawn)
4923 ("ocaml-stdio" ,ocaml-stdio)
4924 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4925 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4926 (home-page "https://github.com/janestreet/core")
4927 (synopsis "Alternative to OCaml's standard library")
4928 (description "The Core suite of libraries is an alternative to OCaml's
4929 standard library that was developed by Jane Street.")
4930 ;; Also contains parts of OCaml, relicensed to asl2.0, as permitted
4931 ;; by OCaml's license for consortium members (see THIRD-PARTY.txt).
4932 (license license:asl2.0)))
4933
4934 (define-public ocaml-core-kernel
4935 (package
4936 (name "ocaml-core-kernel")
4937 (version "0.11.1")
4938 (source (origin
4939 (method git-fetch)
4940 (uri (git-reference
4941 (url "https://github.com/janestreet/core_kernel.git")
4942 (commit (string-append "v" version))))
4943 (file-name (git-file-name name version))
4944 (sha256
4945 (base32
4946 "1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
4947 (build-system dune-build-system)
4948 (arguments
4949 ;; Cyclic dependency with ocaml-core
4950 `(#:tests? #f))
4951 (propagated-inputs
4952 `(("ocaml-base" ,ocaml-base)
4953 ("ocaml-bin-prot" ,ocaml-bin-prot)
4954 ("ocaml-configurator" ,ocaml-configurator)
4955 ("ocaml-fieldslib" ,ocaml-fieldslib)
4956 ("ocaml-jane-street-headers" ,ocaml-jane-street-headers)
4957 ("ocaml-ppx-assert" ,ocaml-ppx-assert)
4958 ("ocaml-ppx-base" ,ocaml-ppx-base)
4959 ("ocaml-ppx-hash" ,ocaml-ppx-hash)
4960 ("ocaml-ppx-inline-test" ,ocaml-ppx-inline-test)
4961 ("ocaml-ppx-jane" ,ocaml-ppx-jane)
4962 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
4963 ("ocaml-ppx-sexp-message" ,ocaml-ppx-sexp-message)
4964 ("ocaml-sexplib" ,ocaml-sexplib)
4965 ("ocaml-splittable-random" ,ocaml-splittable-random)
4966 ("ocaml-stdio" ,ocaml-stdio)
4967 ("ocaml-typerep" ,ocaml-typerep)
4968 ("ocaml-variantslib" ,ocaml-variantslib)
4969 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
4970 (properties `((upstream-name . "core_kernel")))
4971 (home-page "https://github.com/janestreet/core_kernel")
4972 (synopsis "Portable standard library for OCaml")
4973 (description "Core is an alternative to the OCaml standard library.
4974
4975 Core_kernel is the system-independent part of Core. It is aimed for cases when
4976 the full Core is not available, such as in Javascript.")
4977 (license (list
4978 ;; this package and parts of OCaml, relicensed by janestreet
4979 license:asl2.0
4980 ;; MLton and sjs
4981 license:expat))))
4982
4983 (define-public ocaml-markup
4984 (package
4985 (name "ocaml-markup")
4986 (version "0.8.0")
4987 (home-page "https://github.com/aantron/markup.ml")
4988 (source
4989 (origin
4990 (method git-fetch)
4991 (uri (git-reference
4992 (url (string-append home-page ".git"))
4993 (commit version)))
4994 (file-name (git-file-name name version))
4995 (sha256
4996 (base32
4997 "0aif4abvfmi9xc1pvw5n5rbm6rzkkpsxyvdn0lanr33rjpvkwdlm"))))
4998 (build-system dune-build-system)
4999 (inputs
5000 `(("ocaml-uchar" ,ocaml-uchar)
5001 ("ocaml-uutf" ,ocaml-uutf)
5002 ("ocaml-lwt" ,ocaml-lwt)))
5003 (native-inputs `(("ocaml-ounit" ,ocaml-ounit)))
5004 (synopsis "Error-recovering functional HTML5 and XML parsers and writers")
5005 (description "Markup.ml provides an HTML parser and an XML parser. The
5006 parsers are wrapped in a simple interface: they are functions that transform
5007 byte streams to parsing signal streams. Streams can be manipulated in various
5008 ways, such as processing by fold, filter, and map, assembly into DOM tree
5009 structures, or serialization back to HTML or XML.
5010
5011 Both parsers are based on their respective standards. The HTML parser, in
5012 particular, is based on the state machines defined in HTML5.
5013
5014 The parsers are error-recovering by default, and accept fragments. This makes
5015 it very easy to get a best-effort parse of some input. The parsers can,
5016 however, be easily configured to be strict, and to accept only full documents.
5017
5018 Apart from this, the parsers are streaming (do not build up a document in
5019 memory), non-blocking (can be used with threading libraries), lazy (do not
5020 consume input unless the signal stream is being read), and process the input in
5021 a single pass. They automatically detect the character encoding of the input
5022 stream, and convert everything to UTF-8.")
5023 (license license:bsd-3)))
5024
5025 (define-public ocaml-tyxml
5026 (package
5027 (name "ocaml-tyxml")
5028 (version "4.3.0")
5029 (source
5030 (origin
5031 (method git-fetch)
5032 (uri (git-reference
5033 (url "https://github.com/ocsigen/tyxml.git")
5034 (commit version)))
5035 (file-name (git-file-name name version))
5036 (sha256
5037 (base32
5038 "0wv19xipkj8l2sks1h53105ywbjwk7q93fb7b8al4a2g9wr109c0"))))
5039 (build-system dune-build-system)
5040 (inputs
5041 `(("ocaml-re" ,ocaml-re)
5042 ("ocaml-seq" ,ocaml-seq)
5043 ("ocaml-uutf" ,ocaml-uutf)
5044 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5045 ("ocaml-markup" ,ocaml-markup)))
5046 (native-inputs
5047 `(("ocaml-alcotest" ,ocaml-alcotest)))
5048 (arguments `(#:jbuild? #t))
5049 (home-page "https://github.com/ocsigen/tyxml/")
5050 (synopsis "TyXML is a library for building correct HTML and SVG documents")
5051 (description "TyXML provides a set of convenient combinators that uses the
5052 OCaml type system to ensure the validity of the generated documents. TyXML can
5053 be used with any representation of HTML and SVG: the textual one, provided
5054 directly by this package, or DOM trees (@code{js_of_ocaml-tyxml}) virtual DOM
5055 (@code{virtual-dom}) and reactive or replicated trees (@code{eliom}). You can
5056 also create your own representation and use it to instantiate a new set of
5057 combinators.")
5058 (license license:lgpl2.1)))
5059
5060 (define-public ocaml-bisect-ppx
5061 (package
5062 (name "ocaml-bisect-ppx")
5063 (version "1.4.1")
5064 (source
5065 (origin
5066 (method git-fetch)
5067 (uri (git-reference
5068 (url "https://github.com/aantron/bisect_ppx.git")
5069 (commit version)))
5070 (file-name (git-file-name name version))
5071 (sha256
5072 (base32
5073 "1vp3qvrkz7q25nbmvd40vhsnz2k9aqh17bnd21i3q8q0xlr5hdag"))))
5074 (build-system dune-build-system)
5075 (inputs
5076 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5077 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5078 ("ocaml-ounit" ,ocaml-ounit)))
5079 (home-page "https://github.com/aantron/bisect_ppx")
5080 (synopsis "Code coverage for OCaml")
5081 (description "Bisect_ppx helps you test thoroughly. It is a small
5082 preprocessor that inserts instrumentation at places in your code, such as
5083 if-then-else and match expressions. After you run tests, Bisect_ppx gives a
5084 nice HTML report showing which places were visited and which were missed.
5085
5086 Usage is simple - add package bisect_ppx when building tests, run your tests,
5087 then run the Bisect_ppx report tool on the generated visitation files.")
5088 (license license:mpl2.0)))
5089
5090 (define-public ocaml-odoc
5091 (package
5092 (name "ocaml-odoc")
5093 (version "1.4.0")
5094 (source
5095 (origin
5096 (method git-fetch)
5097 (uri (git-reference
5098 (url "https://github.com/ocaml/odoc")
5099 (commit version)))
5100 (file-name (git-file-name name version))
5101 (sha256
5102 (base32
5103 "0br11cw6wa0mwafja4xdb45d2f8908l6nzdq5mw5lbfq2jnp68km"))))
5104 (build-system dune-build-system)
5105 (inputs
5106 `(("ocaml-alcotest" ,ocaml-alcotest)
5107 ("ocaml-markup" ,ocaml-markup)
5108 ("ocaml-sexplib" ,ocaml-sexplib)
5109 ("ocaml-re" ,ocaml-re)
5110 ("ocaml-uutf" ,ocaml-uutf)))
5111 (native-inputs
5112 `(("ocaml-astring" ,ocaml-astring)
5113 ("ocaml-cmdliner" ,ocaml-cmdliner)
5114 ("ocaml-cppo" ,ocaml-cppo)
5115 ("ocaml-fpath" ,ocaml-fpath)
5116 ("ocaml-result" ,ocaml-result)
5117 ("ocaml-tyxml" ,ocaml-tyxml)
5118 ("ocaml-bisect-ppx" ,ocaml-bisect-ppx)))
5119 (home-page "https://github.com/ocaml/odoc")
5120 (synopsis "OCaml documentation generator")
5121 (description "Odoc is a documentation generator for OCaml. It reads
5122 @emph{doc comments}, delimited with @code{(** ... *)}, and outputs
5123 @acronym{HTML}.
5124
5125 Text inside doc comments is marked up in ocamldoc syntax. Odoc's main
5126 advantage over ocamldoc is an accurate cross-referencer, which handles the
5127 complexity of the OCaml module system.")
5128 (license license:isc)))