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