gnu: ocaml-extlib: Update to 1.7.7.
[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.7")
271 (source (origin
272 (method url-fetch)
273 (uri (string-append "https://ygrek.org/p/release/ocaml-extlib/"
274 "extlib-" version ".tar.gz"))
275 (sha256
276 (base32
277 "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1"))))
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.12")
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 "12ix5g15bys932hyf9gs637iz76m0ji9075d83jfdmx85q30llgf"))))
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.34")
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 "1pzyszxw90klpcmhjqrjfc8cw6c0gm4w2blim8ydyxb6rq6qml1s"))))
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 ;; More recent versions can be built after we have dune >= 2.0
710 (version "20190626")
711 (source
712 (origin
713 (method git-fetch)
714 (uri (git-reference
715 (url "https://gitlab.inria.fr/fpottier/menhir.git")
716 (commit version)))
717 (file-name (git-file-name name version))
718 (sha256
719 (base32 "0v8av4pw6rykzb7wx54xhbsx0jhh8xyb4x0k4yrxi0w5ylkck6mb"))))
720 (build-system ocaml-build-system)
721 (inputs
722 `(("ocaml" ,ocaml)))
723 (native-inputs
724 `(("ocamlbuild" ,ocamlbuild)))
725 (arguments
726 `(#:make-flags `("USE_OCAMLFIND=true"
727 ,(string-append "PREFIX=" (assoc-ref %outputs "out")))
728 #:tests? #f ; No check target
729 #:phases
730 (modify-phases %standard-phases
731 (delete 'configure))))
732 (home-page "http://gallium.inria.fr/~fpottier/menhir/")
733 (synopsis "Parser generator")
734 (description "Menhir is a parser generator. It turns high-level grammar
735 specifications, decorated with semantic actions expressed in the OCaml
736 programming language into parsers, again expressed in OCaml. It is based on
737 Knuth’s LR(1) parser construction technique.")
738 ;; The file src/standard.mly and all files listed in src/mnehirLib.mlpack
739 ;; that have an *.ml or *.mli extension are GPL licensed. All other files
740 ;; are QPL licensed.
741 (license (list license:gpl2+ license:qpl))))
742
743 (define-public ocaml-bigarray-compat
744 (package
745 (name "ocaml-bigarray-compat")
746 (version "1.0.0")
747 (source (origin
748 (method git-fetch)
749 (uri (git-reference
750 (url "https://github.com/mirage/bigarray-compat")
751 (commit (string-append "v" version))))
752 (file-name (git-file-name name version))
753 (sha256
754 (base32
755 "06j1dwlpisxshdd0nab4n4x266gg1s1n8na16lpgw3fvcznwnimz"))))
756 (build-system dune-build-system)
757 (arguments
758 `(#:tests? #f)); no tests
759 (home-page "https://github.com/mirage/bigarray-compat")
760 (synopsis "OCaml compatibility library")
761 (description "This package contains a compatibility library for
762 @code{Stdlib.Bigarray} in OCaml.")
763 (license license:isc)))
764
765 (define-public lablgtk
766 (package
767 (name "lablgtk")
768 (version "2.18.10")
769 (source (origin
770 (method git-fetch)
771 (uri (git-reference
772 (url "https://github.com/garrigue/lablgtk")
773 (commit version)))
774 (file-name (git-file-name name version))
775 (sha256
776 (base32
777 "0w8cdfcv2wc19sd3qzj3qq77qc6rbnbynsz02gzbl15kgrvgrfxi"))))
778 (build-system gnu-build-system)
779 (native-inputs
780 `(("ocaml" ,ocaml)
781 ("findlib" ,ocaml-findlib)
782 ("pkg-config" ,pkg-config)))
783 ;; FIXME: Add inputs gtkgl-2.0, libpanelapplet-2.0, gtkspell-2.0,
784 ;; and gtk+-quartz-2.0 once available.
785 (inputs
786 `(("gtk+" ,gtk+-2)
787 ("gtksourceview" ,gtksourceview-2)
788 ("libgnomecanvas" ,libgnomecanvas)
789 ("libgnomeui" ,libgnomeui)
790 ("libglade" ,libglade)
791 ("librsvg" ,librsvg)))
792 (arguments
793 `(#:tests? #f ; no check target
794
795 ;; opt: also install cmxa files
796 #:make-flags (list "all" "opt"
797 (string-append "FINDLIBDIR="
798 (assoc-ref %outputs "out")
799 "/lib/ocaml"))
800 ;; Occasionally we would get "Error: Unbound module GtkThread" when
801 ;; compiling 'gtkThInit.ml', with 'make -j'. So build sequentially.
802 #:parallel-build? #f
803
804 #:phases
805 (modify-phases %standard-phases
806 (add-before 'install 'prepare-install
807 (lambda* (#:key inputs outputs #:allow-other-keys)
808 (let ((out (assoc-ref outputs "out"))
809 (ocaml (assoc-ref inputs "ocaml")))
810 ;; Install into the output and not the ocaml directory.
811 (mkdir-p (string-append out "/lib/ocaml"))
812 (substitute* "config.make"
813 ((ocaml) out))
814 #t))))))
815 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-lablgtk))))
816 (home-page "http://lablgtk.forge.ocamlcore.org/")
817 (synopsis "GTK+ bindings for OCaml")
818 (description
819 "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides
820 a strongly-typed object-oriented interface that is compatible with the
821 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
822 also provides bindings to
823 gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas,
824 gnomeui, gtksourceview, gtkspell,
825 libglade (and it an generate OCaml code from .glade files),
826 libpanel, librsvg and quartz.")
827 (license license:lgpl2.1)))
828
829 (define-public ocaml4.07-lablgtk
830 (package
831 (inherit lablgtk)
832 (name "ocaml4.07-lablgtk")
833 (native-inputs
834 `(("ocaml" ,ocaml-4.07)
835 ("findlib" ,ocaml4.07-findlib)
836 ("pkg-config" ,pkg-config)))
837 (properties '())))
838
839 (define-public unison
840 (package
841 (name "unison")
842 (version "2.51.2")
843 (source (origin
844 (method git-fetch)
845 (uri (git-reference
846 (url "https://github.com/bcpierce00/unison.git")
847 (commit (string-append "v" version))))
848 (file-name (git-file-name name version))
849 (sha256
850 (base32
851 "1bykiyc0dc5pkw8x370qkg2kygq9pq7yqzsgczd3y13b6ivm4sdq"))))
852 (build-system gnu-build-system)
853 (outputs '("out"
854 "doc")) ; 1.9 MiB of documentation
855 (native-inputs
856 `(("ocaml" ,ocaml-4.07)
857 ;; For documentation
858 ("ghostscript" ,ghostscript)
859 ("texlive" ,texlive-tiny)
860 ("hevea" ,hevea)
861 ("lynx" ,lynx)
862 ("which" ,which)))
863 (arguments
864 `(#:parallel-build? #f
865 #:parallel-tests? #f
866 #:test-target "selftest"
867 #:tests? #f ; Tests require writing to $HOME.
868 ; If some $HOME is provided, they fail with the message
869 ; "Fatal error: Skipping some tests -- remove me!"
870 #:phases
871 (modify-phases %standard-phases
872 (delete 'configure)
873 (add-before 'install 'prepare-install
874 (lambda* (#:key outputs #:allow-other-keys)
875 (let* ((out (assoc-ref outputs "out"))
876 (bin (string-append out "/bin")))
877 (mkdir-p bin)
878 (setenv "HOME" out) ; forces correct INSTALLDIR in Makefile
879 #t)))
880 (add-after 'install 'install-fsmonitor
881 (lambda* (#:key outputs #:allow-other-keys)
882 (let* ((out (assoc-ref outputs "out"))
883 (bin (string-append out "/bin")))
884 ;; 'unison-fsmonitor' is used in "unison -repeat watch" mode.
885 (install-file "src/unison-fsmonitor" bin)
886 #t)))
887 (add-after 'install 'install-doc
888 (lambda* (#:key outputs #:allow-other-keys)
889 (let ((doc (string-append (assoc-ref outputs "doc")
890 "/share/doc/unison")))
891 (mkdir-p doc)
892 ;; Remove an '\n' that prevents the doc to be generated
893 ;; correctly with newer hevea.
894 (substitute* "doc/local.tex"
895 (("----SNIP----.*") "----SNIP----"))
896 ;; This file needs write-permissions, because it's
897 ;; overwritten by 'docs' during documentation generation.
898 (chmod "src/strings.ml" #o600)
899 (invoke "make" "docs"
900 "TEXDIRECTIVES=\\\\draftfalse")
901 (for-each (lambda (f)
902 (install-file f doc))
903 (map (lambda (ext)
904 (string-append "doc/unison-manual." ext))
905 ;; Install only html documentation,
906 ;; since the build is currently
907 ;; non-reproducible with the ps, pdf,
908 ;; and dvi docs.
909 '(;; "ps" "pdf" "dvi"
910 "html")))
911 #t))))))
912 (home-page "https://www.cis.upenn.edu/~bcpierce/unison/")
913 (synopsis "File synchronizer")
914 (description
915 "Unison is a file-synchronization tool. It allows two replicas of
916 a collection of files and directories to be stored on different hosts
917 (or different disks on the same host), modified separately, and then
918 brought up to date by propagating the changes in each replica
919 to the other.")
920 (license license:gpl3+)))
921
922 (define-public ocaml-findlib
923 (package
924 (name "ocaml-findlib")
925 (version "1.8.1")
926 (source (origin
927 (method url-fetch)
928 (uri (string-append "http://download.camlcity.org/download/"
929 "findlib" "-" version ".tar.gz"))
930 (sha256
931 (base32
932 "00s3sfb02pnjmkax25pcnljcnhcggiliccfz69a72ic7gsjwz1cf"))))
933 (build-system gnu-build-system)
934 (native-inputs
935 `(("m4" ,m4)
936 ("ocaml" ,ocaml)))
937 (arguments
938 `(#:tests? #f ; no test suite
939 #:parallel-build? #f
940 #:make-flags (list "all" "opt")
941 #:phases (modify-phases %standard-phases
942 (replace
943 'configure
944 (lambda* (#:key inputs outputs #:allow-other-keys)
945 (let ((out (assoc-ref outputs "out")))
946 (invoke
947 "./configure"
948 "-bindir" (string-append out "/bin")
949 "-config" (string-append out "/etc/ocamfind.conf")
950 "-mandir" (string-append out "/share/man")
951 "-sitelib" (string-append out "/lib/ocaml/site-lib")
952 "-with-toolbox"))))
953 (replace 'install
954 (lambda* (#:key outputs #:allow-other-keys)
955 (let ((out (assoc-ref outputs "out")))
956 (invoke "make" "install"
957 (string-append "OCAML_CORE_STDLIB="
958 out "/lib/ocaml/site-lib"))))))))
959 (home-page "http://projects.camlcity.org/projects/findlib.html")
960 (synopsis "Management tool for OCaml libraries")
961 (description
962 "The \"findlib\" library provides a scheme to manage reusable software
963 components (packages), and includes tools that support this scheme. Packages
964 are collections of OCaml modules for which metainformation can be stored. The
965 packages are kept in the file system hierarchy, but with strict directory
966 structure. The library contains functions to look the directory up that
967 stores a package, to query metainformation about a package, and to retrieve
968 dependency information about multiple packages. There is also a tool that
969 allows the user to enter queries on the command-line. In order to simplify
970 compilation and linkage, there are new frontends of the various OCaml
971 compilers that can directly deal with packages.")
972 (license license:x11)))
973
974 (define-public ocaml4.07-findlib
975 (package
976 (inherit ocaml-findlib)
977 (name "ocaml4.07-findlib")
978 (native-inputs
979 `(("m4" ,m4)
980 ("ocaml" ,ocaml-4.07)))))
981
982 ;; note that some tests may hang for no obvious reason.
983 (define-public ocaml-ounit
984 (package
985 (name "ocaml-ounit")
986 (version "2.0.8")
987 (source (origin
988 (method url-fetch)
989 (uri (ocaml-forge-uri "ounit" version 1749))
990 (sha256
991 (base32
992 "03ifp9hjcxg4m5j190iy373jcn4039d3vy10kmd8p4lfciwzwc1f"))))
993 (build-system ocaml-build-system)
994 (native-inputs
995 `(("libxml2" ,libxml2) ; for xmllint
996 ("ocamlbuild" ,ocamlbuild)))
997 (arguments
998 `(#:phases
999 (modify-phases %standard-phases
1000 (delete 'check)))) ; tests are run during build
1001 (home-page "http://ounit.forge.ocamlcore.org")
1002 (synopsis "Unit testing framework for OCaml")
1003 (description "Unit testing framework for OCaml. It is similar to JUnit and
1004 other XUnit testing frameworks.")
1005 (license license:expat)))
1006
1007 (define-public camlzip
1008 (package
1009 (name "camlzip")
1010 (version "1.0.6")
1011 (source (origin
1012 (method url-fetch)
1013 (uri (ocaml-forge-uri name version 1616))
1014 (sha256
1015 (base32
1016 "0m6gyjw46w3qnhxfsyqyag42znl5lwargks7w7rfchr9jzwpff68"))))
1017 (build-system ocaml-build-system)
1018 (inputs
1019 `(("zlib" ,zlib)))
1020 (arguments
1021 `(#:phases
1022 (modify-phases %standard-phases
1023 (delete 'configure)
1024 (add-after 'install 'install-camlzip
1025 (lambda* (#:key outputs #:allow-other-keys)
1026 (let* ((out (assoc-ref outputs "out"))
1027 (dir (string-append out "/lib/ocaml/site-lib/camlzip")))
1028 (mkdir-p dir)
1029 (call-with-output-file (string-append dir "/META")
1030 (lambda (port)
1031 (format port "version=\"1.06\"\n")
1032 (format port "requires=\"unix\"\n")
1033 (format port "archive(byte)=\"zip.cma\"\n")
1034 (format port "archive(native)=\"zip.cmxa\"\n")
1035 (format port "archive(native,plugin)=\"zip.cmxs\"\n")
1036 (format port "directory=\"../zip\"\n")))))))
1037 #:install-target "install-findlib"
1038 #:make-flags
1039 (list "all" "allopt"
1040 (string-append "INSTALLDIR=" (assoc-ref %outputs "out")
1041 "/lib/ocaml"))))
1042 (home-page "https://github.com/xavierleroy/camlzip")
1043 (synopsis "Provides easy access to compressed files")
1044 (description "Provides easy access to compressed files in ZIP, GZIP and
1045 JAR format. It provides functions for reading from and writing to compressed
1046 files in these formats.")
1047 (license license:lgpl2.1+)))
1048
1049 (define-public ocamlmod
1050 (package
1051 (name "ocamlmod")
1052 (version "0.0.9")
1053 (source (origin
1054 (method url-fetch)
1055 (uri (ocaml-forge-uri name version 1702))
1056 (sha256
1057 (base32
1058 "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa"))))
1059 (build-system ocaml-build-system)
1060 (native-inputs
1061 `(("ounit" ,ocaml-ounit)
1062 ("ocamlbuild" ,ocamlbuild)))
1063 (arguments
1064 `(#:phases
1065 (modify-phases %standard-phases
1066 ;; Tests are done during build.
1067 (delete 'check))))
1068 (home-page "https://forge.ocamlcore.org/projects/ocamlmod")
1069 (synopsis "Generate modules from OCaml source files")
1070 (description "Generate modules from OCaml source files.")
1071 (license license:lgpl2.1+))) ; with an exception
1072
1073 (define-public ocaml-zarith
1074 (package
1075 (name "ocaml-zarith")
1076 (version "1.9.1")
1077 (source (origin
1078 (method git-fetch)
1079 (uri (git-reference
1080 (url "https://github.com/ocaml/Zarith")
1081 (commit (string-append "release-" version))))
1082 (file-name (git-file-name name version))
1083 (sha256
1084 (base32
1085 "0hv5ywz1q2cgn8apfz490clwk5hcynr937g2v8i13x2ax4bnv0lz"))))
1086 (build-system ocaml-build-system)
1087 (native-inputs
1088 `(("perl" ,perl)))
1089 (inputs
1090 `(("gmp" ,gmp)))
1091 (arguments
1092 `(#:tests? #f ; no test target
1093 #:phases
1094 (modify-phases %standard-phases
1095 (replace 'configure
1096 (lambda _ (invoke "./configure"))))))
1097 (home-page "https://forge.ocamlcore.org/projects/zarith/")
1098 (synopsis "Implements arbitrary-precision integers")
1099 (description "Implements arithmetic and logical operations over
1100 arbitrary-precision integers. It uses GMP to efficiently implement arithmetic
1101 over big integers. Small integers are represented as Caml unboxed integers,
1102 for speed and space economy.")
1103 (license license:lgpl2.1+))) ; with an exception
1104
1105 (define-public ocaml-frontc
1106 (package
1107 (name "ocaml-frontc")
1108 (version "3.4.2")
1109 (source (origin
1110 (method git-fetch)
1111 (uri (git-reference
1112 (url "https://github.com/BinaryAnalysisPlatform/FrontC")
1113 (commit (string-append
1114 "V_" (string-join (string-split version #\.) "_")))))
1115 (file-name (git-file-name name version))
1116 (sha256
1117 (base32
1118 "0k7jk9hkglnkk27s62xl493jyqc017gyvwqb1lyc0ywbb001s102"))))
1119 (build-system ocaml-build-system)
1120 (arguments
1121 `(#:phases
1122 (modify-phases %standard-phases
1123 (delete 'configure)
1124 (add-after 'install 'install-meta
1125 (lambda* (#:key outputs #:allow-other-keys)
1126 (let ((out (assoc-ref outputs "out")))
1127 (with-output-to-file
1128 (string-append out "/lib/ocaml/frontc/META")
1129 (lambda _
1130 (display
1131 (string-append
1132 "description = \"Parser for the C language\"
1133 version = \"" ,version "\"
1134 requires = \"unix\"
1135 archive(byte) = \"frontc.cma\"
1136 archive(native) = \"frontc.cmxa\""))))
1137 (symlink (string-append out "/lib/ocaml/frontc")
1138 (string-append out "/lib/ocaml/FrontC"))))))
1139 #:make-flags (list (string-append "PREFIX="
1140 (assoc-ref %outputs "out"))
1141 "OCAML_SITE=$(LIB_DIR)/ocaml/")))
1142 (properties `((upstream-name . "FrontC")))
1143 (home-page "https://www.irit.fr/FrontC")
1144 (synopsis "C parser and lexer library")
1145 (description "FrontC is an OCAML library providing a C parser and lexer.
1146 The result is a syntactic tree easy to process with usual OCAML tree management.
1147 It provides support for ANSI C syntax, old-C K&R style syntax and the standard
1148 GNU CC attributes. It provides also a C pretty printer as an example of use.")
1149 (license license:lgpl2.1)))
1150
1151 (define-public ocaml-qcheck
1152 (package
1153 (name "ocaml-qcheck")
1154 (version "0.12")
1155 (source
1156 (origin
1157 (method git-fetch)
1158 (uri (git-reference
1159 (url "https://github.com/c-cube/qcheck.git")
1160 (commit version)))
1161 (file-name (git-file-name name version))
1162 (sha256
1163 (base32 "1llnfynhlndwyjig7wrayjnds2b3mggp5lw20dwxhn2i2lkkb22m"))))
1164 (build-system dune-build-system)
1165 (arguments
1166 `(#:test-target "."
1167 #:phases
1168 (modify-phases %standard-phases
1169 (add-before 'build 'fix-deprecated
1170 (lambda _
1171 (substitute* "src/core/QCheck.ml"
1172 (("Pervasives.compare") "compare"))
1173 #t)))))
1174 (propagated-inputs
1175 `(("ocaml-alcotest" ,ocaml-alcotest)
1176 ("ocaml-ounit" ,ocaml-ounit)))
1177 (native-inputs
1178 `(("ocamlbuild" ,ocamlbuild)))
1179 (home-page "https://github.com/c-cube/qcheck")
1180 (synopsis "QuickCheck inspired property-based testing for OCaml")
1181 (description "QuickCheck inspired property-based testing for OCaml. This
1182 module checks invariants (properties of some types) over randomly
1183 generated instances of the type. It provides combinators for generating
1184 instances and printing them.")
1185 (license license:lgpl3+)))
1186
1187 (define-public ocaml-qtest
1188 (package
1189 (name "ocaml-qtest")
1190 (version "2.10.1")
1191 (source (origin
1192 (method git-fetch)
1193 (uri (git-reference
1194 (url "https://github.com/vincent-hugot/qtest/")
1195 (commit (string-append "v" version))))
1196 (file-name (git-file-name name version))
1197 (sha256
1198 (base32
1199 "0gddzan4vzs0vklsxhirdjrvx3rp7hhh2yr20vi13nq8rwkn9w29"))))
1200 (build-system dune-build-system)
1201 (arguments
1202 `(#:jbuild? #t
1203 #:test-target "tests"))
1204 (propagated-inputs
1205 `(("ounit" ,ocaml-ounit)
1206 ("qcheck" ,ocaml-qcheck)))
1207 (home-page "https://github.com/vincent-hugot/qtest")
1208 (synopsis "Inline (Unit) Tests for OCaml")
1209 (description "Qtest extracts inline unit tests written using a special
1210 syntax in comments. Those tests are then run using the oUnit framework and the
1211 qcheck library. The possibilities range from trivial tests -- extremely simple
1212 to use -- to sophisticated random generation of test cases.")
1213 (license license:lgpl3+)))
1214
1215 (define-public ocaml-stringext
1216 (package
1217 (name "ocaml-stringext")
1218 (version "1.6.0")
1219 (source (origin
1220 (method git-fetch)
1221 (uri (git-reference
1222 (url "https://github.com/rgrinberg/stringext")
1223 (commit version)))
1224 (file-name (git-file-name name version))
1225 (sha256
1226 (base32
1227 "1m09cmn3vrk3gdm60fb730qsygcfyxsyv7gl9xfzck08q1x2x9qx"))))
1228 (build-system dune-build-system)
1229 (arguments
1230 `(#:test-target "."))
1231 (native-inputs
1232 `(("ocamlbuild" ,ocamlbuild)
1233 ("qtest" ,ocaml-qtest)))
1234 (home-page "https://github.com/rgrinberg/stringext")
1235 (synopsis "Extra string functions for OCaml")
1236 (description "Provides a single module named Stringext that provides a grab
1237 bag of often used but missing string functions from the stdlib. E.g, split,
1238 full_split, cut, rcut, etc..")
1239 ;; the only mention of a license in this project is in its `opam' file
1240 ;; where it says `mit'.
1241 (license license:expat)))
1242
1243 (define-public dune
1244 (package
1245 (name "dune")
1246 (version "1.11.3")
1247 (source (origin
1248 (method git-fetch)
1249 (uri (git-reference
1250 (url "https://github.com/ocaml/dune")
1251 (commit version)))
1252 (file-name (git-file-name name version))
1253 (sha256
1254 (base32
1255 "0l4x0x2fz135pljv88zj8y6w1ninsqw0gn1mdxzprd6wbxbyn8wr"))))
1256 (build-system ocaml-build-system)
1257 (arguments
1258 `(#:tests? #f; require odoc
1259 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1260 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1261 "/lib/ocaml/site-lib"))
1262 #:phases
1263 (modify-phases %standard-phases
1264 (replace 'configure
1265 (lambda* (#:key outputs #:allow-other-keys)
1266 (invoke "./configure")
1267 #t)))))
1268 (home-page "https://github.com/ocaml/dune")
1269 (synopsis "OCaml build system")
1270 (description "Dune is a build system that was designed to simplify the
1271 release of Jane Street packages. It reads metadata from @file{dune} files
1272 following a very simple s-expression syntax.")
1273 (license license:expat)))
1274
1275 (define-public ocaml4.07-dune
1276 (package-with-ocaml4.07 dune))
1277
1278 (define-public ocaml-migrate-parsetree
1279 (package
1280 (name "ocaml-migrate-parsetree")
1281 (version "1.4.0")
1282 (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
1283 (source
1284 (origin
1285 (method git-fetch)
1286 (uri (git-reference
1287 (url (string-append home-page ".git"))
1288 (commit (string-append "v" version))))
1289 (file-name (git-file-name name version))
1290 (sha256
1291 (base32
1292 "0sv1p4615l8gpbah4ya2c40yr6fbvahvv3ks7zhrsgcwcq2ljyr2"))))
1293 (build-system dune-build-system)
1294 (arguments
1295 `(#:tests? #f))
1296 (propagated-inputs
1297 `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
1298 ("ocamlbuild" ,ocamlbuild)
1299 ("ocaml-result" ,ocaml-result)))
1300 (properties `((upstream-name . "ocaml-migrate-parsetree")))
1301 (synopsis "OCaml parsetree converter")
1302 (description "This library converts between parsetrees of different OCaml
1303 versions. For each version, there is a snapshot of the parsetree and conversion
1304 functions to the next and/or previous version.")
1305 (license license:lgpl2.1+)))
1306
1307 (define-public ocaml-ppx-tools-versioned
1308 (package
1309 (name "ocaml-ppx-tools-versioned")
1310 (version "5.2.3")
1311 (source (origin
1312 (method git-fetch)
1313 (uri (git-reference
1314 (url "https://github.com/ocaml-ppx/ppx_tools_versioned")
1315 (commit version)))
1316 (file-name (git-file-name name version))
1317 (sha256
1318 (base32
1319 "1hcmpnw26zf70a71r3d2c2c0mn8q084gdn1r36ynng6fv9hq6j0y"))))
1320 (build-system dune-build-system)
1321 (arguments
1322 `(#:test-target "."))
1323 (propagated-inputs
1324 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
1325 (properties `((upstream-name . "ppx_tools_versioned")))
1326 (home-page "https://github.com/let-def/ppx_tools_versioned")
1327 (synopsis "Variant of ppx_tools")
1328 (description "This package is a variant of ppx_tools based on
1329 ocaml-migrate-parsetree")
1330 (license license:expat)))
1331
1332 (define-public ocaml-bitstring
1333 (package
1334 (name "ocaml-bitstring")
1335 (version "3.1.0")
1336 (source (origin
1337 (method url-fetch)
1338 (uri (string-append "https://bitbucket.org/thanatonauts/bitstring/"
1339 "get/v" version ".tar.gz"))
1340 (file-name (string-append name "-" version ".tar.gz"))
1341 (sha256
1342 (base32
1343 "15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps"))))
1344 (build-system dune-build-system)
1345 (native-inputs
1346 `(("time" ,time)
1347 ("autoconf" ,autoconf)
1348 ("automake" ,automake)))
1349 (propagated-inputs
1350 `(("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
1351 (arguments
1352 `(#:tests? #f; Tests fail to build
1353 #:jbuild? #t))
1354 (home-page "https://github.com/xguerin/bitstring")
1355 (synopsis "Bitstrings and bitstring matching for OCaml")
1356 (description "Adds Erlang-style bitstrings and matching over bitstrings as
1357 a syntax extension and library for OCaml. You can use this module to both parse
1358 and generate binary formats, files and protocols. Bitstring handling is added
1359 as primitives to the language, making it exceptionally simple to use and very
1360 powerful.")
1361 (license license:isc)))
1362
1363 (define-public ocaml-result
1364 (package
1365 (name "ocaml-result")
1366 (version "1.4")
1367 (source (origin
1368 (method git-fetch)
1369 (uri (git-reference
1370 (url "https://github.com/janestreet/result")
1371 (commit version)))
1372 (file-name (git-file-name name version))
1373 (sha256
1374 (base32
1375 "0hir97k9i72nfkm6kncxnqpyk400wlsxysbldgcvk0fd9pjnsc3p"))))
1376 (build-system dune-build-system)
1377 (arguments
1378 `(#:test-target "."))
1379 (home-page "https://github.com/janestreet/result")
1380 (synopsis "Compatibility Result module")
1381 (description "Uses the new result type defined in OCaml >= 4.03 while
1382 staying compatible with older version of OCaml should use the Result module
1383 defined in this library.")
1384 (license license:bsd-3)))
1385
1386 (define-public ocaml-topkg
1387 (package
1388 (name "ocaml-topkg")
1389 (version "1.0.0")
1390 (source (origin
1391 (method url-fetch)
1392 (uri (string-append "http://erratique.ch/software/topkg/releases/"
1393 "topkg-" version ".tbz"))
1394 (sha256
1395 (base32
1396 "1df61vw6v5bg2mys045682ggv058yqkqb67w7r2gz85crs04d5fw"))))
1397 (build-system ocaml-build-system)
1398 (native-inputs
1399 `(("opam" ,opam)
1400 ("ocamlbuild" ,ocamlbuild)))
1401 (propagated-inputs
1402 `(("result" ,ocaml-result)))
1403 (arguments
1404 `(#:tests? #f
1405 #:build-flags '("build")
1406 #:phases
1407 (modify-phases %standard-phases
1408 (delete 'configure))))
1409 (home-page "http://erratique.ch/software/topkg")
1410 (synopsis "Transitory OCaml software packager")
1411 (description "Topkg is a packager for distributing OCaml software. It
1412 provides an API to describe the files a package installs in a given build
1413 configuration and to specify information about the package's distribution,
1414 creation and publication procedures.")
1415 (license license:isc)))
1416
1417 (define-public ocaml-rresult
1418 (package
1419 (name "ocaml-rresult")
1420 (version "0.5.0")
1421 (source (origin
1422 (method url-fetch)
1423 (uri (string-append "http://erratique.ch/software/rresult/releases/"
1424 "rresult-" version ".tbz"))
1425 (sha256
1426 (base32
1427 "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm"))))
1428 (build-system ocaml-build-system)
1429 (native-inputs
1430 `(("opam" ,opam)
1431 ("ocamlbuild" ,ocamlbuild)))
1432 (propagated-inputs
1433 `(("topkg" ,ocaml-topkg)))
1434 (arguments
1435 `(#:tests? #f
1436 #:build-flags '("build")
1437 #:phases
1438 (modify-phases %standard-phases
1439 (delete 'configure))))
1440 (home-page "http://erratique.ch/software/rresult")
1441 (synopsis "Result value combinators for OCaml")
1442 (description "Handle computation results and errors in an explicit and
1443 declarative manner, without resorting to exceptions. It defines combinators
1444 to operate on the result type available from OCaml 4.03 in the standard
1445 library.")
1446 (license license:isc)))
1447
1448 (define-public ocaml4.07-sqlite3
1449 (package
1450 (name "ocaml4.07-sqlite3")
1451 (version "4.4.1")
1452 (source
1453 (origin
1454 (method git-fetch)
1455 (uri (git-reference
1456 (url "https://github.com/mmottl/sqlite3-ocaml")
1457 (commit version)))
1458 (file-name (git-file-name name version))
1459 (sha256
1460 (base32
1461 "1536agm5fgcqysszhpd3kmw7lkc5n5ni7gmlyglrbvmnmrwf3av2"))))
1462 (build-system dune-build-system)
1463 (arguments
1464 `(#:ocaml ,ocaml-4.07
1465 #:findlib ,ocaml4.07-findlib))
1466 (native-inputs
1467 `(("ocaml-base" ,ocaml4.07-base)
1468 ("ocaml-stdio" ,ocaml4.07-stdio)
1469 ("pkg-config" ,pkg-config)))
1470 (inputs
1471 `(("sqlite" ,sqlite)))
1472 (home-page "https://mmottl.github.io/sqlite3-ocaml")
1473 (synopsis "SQLite3 Bindings for OCaml")
1474 (description
1475 "SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client
1476 API. Sqlite3 is a self-contained, serverless, zero-configuration,
1477 transactional SQL database engine with outstanding performance for many use
1478 cases. These bindings are written in a way that enables a friendly
1479 coexistence with the old (version 2) SQLite and its OCaml wrapper
1480 @code{ocaml-sqlite}.")
1481 (license license:expat)))
1482
1483 (define-public ocaml-csv
1484 (package
1485 (name "ocaml-csv")
1486 (version "2.3")
1487 (source
1488 (origin
1489 (method git-fetch)
1490 (uri (git-reference
1491 (url "https://github.com/Chris00/ocaml-csv")
1492 (commit version)))
1493 (file-name (git-file-name name version))
1494 (sha256
1495 (base32
1496 "19k48517s8y1zb91a1312a0n94cbh5i5dixndcrqjmf87kkz61zx"))))
1497 (build-system dune-build-system)
1498 (arguments
1499 `(#:package "csv"
1500 #:test-target "."))
1501 (home-page "https://github.com/Chris00/ocaml-csv")
1502 (synopsis "Pure OCaml functions to read and write CSV")
1503 (description
1504 "@dfn{Comma separated values} (CSV) is a simple tabular format supported
1505 by all major spreadsheets. This library implements pure OCaml functions to
1506 read and write files in this format as well as some convenience functions to
1507 manipulate such data.")
1508 ;; This is LGPLv2.1 with an exception that allows packages statically-linked
1509 ;; against the library to be released under any terms.
1510 (license license:lgpl2.1)))
1511
1512 (define-public ocaml-mtime
1513 (package
1514 (name "ocaml-mtime")
1515 (version "1.1.0")
1516 (source (origin
1517 (method url-fetch)
1518 (uri (string-append "http://erratique.ch/software/mtime/releases/"
1519 "mtime-" version ".tbz"))
1520 (sha256
1521 (base32
1522 "1qb4ljwirrc3g8brh97s76rjky2cpmy7zm87y7iqd6pxix52ydk3"))))
1523 (build-system ocaml-build-system)
1524 (native-inputs
1525 `(("ocamlbuild" ,ocamlbuild)
1526 ("opam" ,opam)))
1527 (propagated-inputs
1528 `(("topkg" ,ocaml-topkg)))
1529 (arguments
1530 `(#:tests? #f
1531 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1532 #:phases
1533 (modify-phases %standard-phases
1534 (delete 'configure))))
1535 (home-page "http://erratique.ch/software/mtime")
1536 (synopsis "Monotonic wall-clock time for OCaml")
1537 (description "Access monotonic wall-clock time. It measures time
1538 spans without being subject to operating system calendar time adjustments.")
1539 (license license:isc)))
1540
1541 (define-public ocaml-cmdliner
1542 (package
1543 (name "ocaml-cmdliner")
1544 (version "1.0.3")
1545 (source (origin
1546 (method url-fetch)
1547 (uri (string-append "http://erratique.ch/software/cmdliner/releases/"
1548 "cmdliner-" version ".tbz"))
1549 (sha256
1550 (base32
1551 "0g3w4hvc1cx9x2yp5aqn6m2rl8lf9x1dn754hfq8m1sc1102lxna"))))
1552 (build-system ocaml-build-system)
1553 (inputs
1554 `(("ocaml-result" ,ocaml-result)))
1555 (native-inputs
1556 `(("ocamlbuild" ,ocamlbuild)))
1557 (arguments
1558 `(#:tests? #f
1559 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
1560 "/lib/ocaml/site-lib/cmdliner"))
1561 #:phases
1562 (modify-phases %standard-phases
1563 (delete 'configure)
1564 (add-before 'build 'fix-source-file-order
1565 (lambda _
1566 (substitute* "build.ml"
1567 (("Sys.readdir dir")
1568 "let a = Sys.readdir dir in Array.sort String.compare a; a"))
1569 #t)))))
1570 (home-page "http://erratique.ch/software/cmdliner")
1571 (synopsis "Declarative definition of command line interfaces for OCaml")
1572 (description "Cmdliner is a module for the declarative definition of command
1573 line interfaces. It provides a simple and compositional mechanism to convert
1574 command line arguments to OCaml values and pass them to your functions. The
1575 module automatically handles syntax errors, help messages and UNIX man page
1576 generation. It supports programs with single or multiple commands and respects
1577 most of the POSIX and GNU conventions.")
1578 (license license:bsd-3)))
1579
1580 (define-public ocaml-fmt
1581 (package
1582 (name "ocaml-fmt")
1583 (version "0.8.5")
1584 (source
1585 (origin
1586 (method url-fetch)
1587 (uri (string-append "http://erratique.ch/software/fmt/releases/fmt-"
1588 version ".tbz"))
1589 (sha256 (base32
1590 "1zj9azcxcn6skmb69ykgmi9z8c50yskwg03wqgh87lypgjdcz060"))))
1591 (build-system ocaml-build-system)
1592 (native-inputs
1593 `(("ocamlbuild" ,ocamlbuild)
1594 ("opam" ,opam)
1595 ("topkg" ,ocaml-topkg)))
1596 (propagated-inputs
1597 `(("result" ,ocaml-result)
1598 ("ocaml-uchar" ,ocaml-uchar)
1599 ("cmdliner" ,ocaml-cmdliner)))
1600 (arguments `(#:tests? #f
1601 #:build-flags (list "build" "--with-base-unix" "true"
1602 "--with-cmdliner" "true")
1603 #:phases
1604 (modify-phases %standard-phases
1605 (delete 'configure))))
1606 (home-page "http://erratique.ch/software/fmt")
1607 (synopsis "OCaml Format pretty-printer combinators")
1608 (description "Fmt exposes combinators to devise Format pretty-printing
1609 functions.")
1610 (license license:isc)))
1611
1612 (define-public ocaml-astring
1613 (package
1614 (name "ocaml-astring")
1615 (version "0.8.3")
1616 (source
1617 (origin
1618 (method url-fetch)
1619 (uri (string-append "http://erratique.ch/software/astring/releases/astring-"
1620 version ".tbz"))
1621 (sha256 (base32
1622 "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0"))))
1623 (build-system ocaml-build-system)
1624 (native-inputs
1625 `(("ocamlbuild" ,ocamlbuild)
1626 ("opam" ,opam)
1627 ("topkg" ,ocaml-topkg)))
1628 (arguments
1629 `(#:tests? #f
1630 #:build-flags (list "build")
1631 #:phases
1632 (modify-phases %standard-phases
1633 (delete 'configure))))
1634 (home-page "http://erratique.ch/software/astring")
1635 (synopsis "Alternative String module for OCaml")
1636 (description "Astring exposes an alternative String module for OCaml. This
1637 module balances minimality and expressiveness for basic, index-free, string
1638 processing and provides types and functions for substrings, string sets and
1639 string maps. The String module exposed by Astring has exception safe functions,
1640 removes deprecated and rarely used functions, alters some signatures and names,
1641 adds a few missing functions and fully exploits OCaml's newfound string
1642 immutability.")
1643 (license license:isc)))
1644
1645 (define-public ocaml-alcotest
1646 (package
1647 (name "ocaml-alcotest")
1648 (version "0.8.5")
1649 (source (origin
1650 (method url-fetch)
1651 (uri (string-append "https://github.com/mirage/alcotest/releases/"
1652 "download/" version "/alcotest-" version ".tbz"))
1653 (sha256
1654 (base32
1655 "0szwjxvaahgynsx0apj81jxj3ki6yz4is9mh2wkcbx66qy7n6fvb"))))
1656 (build-system dune-build-system)
1657 (arguments
1658 `(#:package "alcotest"
1659 #:test-target "."))
1660 (native-inputs
1661 `(("ocamlbuild" ,ocamlbuild)))
1662 (propagated-inputs
1663 `(("ocaml-astring" ,ocaml-astring)
1664 ("ocaml-cmdliner" ,ocaml-cmdliner)
1665 ("ocaml-fmt" ,ocaml-fmt)
1666 ("ocaml-result" ,ocaml-result)
1667 ("ocaml-uuidm" ,ocaml-uuidm)))
1668 (home-page "https://github.com/mirage/alcotest")
1669 (synopsis "Lightweight OCaml test framework")
1670 (description "Alcotest exposes simple interface to perform unit tests. It
1671 exposes a simple TESTABLE module type, a check function to assert test
1672 predicates and a run function to perform a list of unit -> unit test callbacks.
1673 Alcotest provides a quiet and colorful output where only faulty runs are fully
1674 displayed at the end of the run (with the full logs ready to inspect), with a
1675 simple (yet expressive) query language to select the tests to run.")
1676 (license license:isc)))
1677
1678 (define-public ocaml4.07-ppx-tools
1679 (package
1680 (name "ocaml4.07-ppx-tools")
1681 (version "5.1+4.06.0")
1682 (source
1683 (origin
1684 (method git-fetch)
1685 (uri (git-reference
1686 (url "https://github.com/alainfrisch/ppx_tools.git")
1687 (commit version)))
1688 (file-name (git-file-name name version))
1689 (sha256 (base32
1690 "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"))))
1691 (build-system ocaml-build-system)
1692 (arguments
1693 `(#:phases (modify-phases %standard-phases (delete 'configure))
1694 #:tests? #f
1695 #:ocaml ,ocaml-4.07
1696 #:findlib ,ocaml4.07-findlib))
1697 (properties `((upstream-name . "ppx_tools")))
1698 (home-page "https://github.com/alainfrisch/ppx_tools")
1699 (synopsis "Tools for authors of ppx rewriters and other syntactic tools")
1700 (description "Tools for authors of ppx rewriters and other syntactic tools.")
1701 (license license:expat)))
1702
1703 (define-public ocaml-react
1704 (package
1705 (name "ocaml-react")
1706 (version "1.2.1")
1707 (source
1708 (origin
1709 (method url-fetch)
1710 (uri (string-append "http://erratique.ch/software/react/releases/react-"
1711 version ".tbz"))
1712 (sha256 (base32
1713 "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v"))))
1714 (build-system ocaml-build-system)
1715 (native-inputs
1716 `(("ocamlbuild" ,ocamlbuild)
1717 ("opam" ,opam)
1718 ("ocaml-topkg" ,ocaml-topkg)))
1719 (arguments
1720 `(#:tests? #f
1721 #:build-flags (list "build")
1722 #:phases
1723 (modify-phases %standard-phases
1724 (delete 'configure))))
1725 (home-page "http://erratique.ch/software/react")
1726 (synopsis "Declarative events and signals for OCaml")
1727 (description "React is an OCaml module for functional reactive programming
1728 (FRP). It provides support to program with time varying values: declarative
1729 events and signals. React doesn't define any primitive event or signal, it
1730 lets the client choose the concrete timeline.")
1731 (license license:bsd-3)))
1732
1733 (define-public ocaml-ssl
1734 (package
1735 (name "ocaml-ssl")
1736 (version "0.5.9")
1737 (source
1738 (origin
1739 (method git-fetch)
1740 (uri (git-reference
1741 (url "https://github.com/savonet/ocaml-ssl.git")
1742 (commit version)))
1743 (file-name (git-file-name name version))
1744 (sha256 (base32
1745 "04h02rvzrwp886n5hsx84rnc9b150iggy38g5v1x1rwz3pkdnmf0"))))
1746 (build-system dune-build-system)
1747 (arguments
1748 `(#:test-target "."))
1749 (native-inputs
1750 `(("autoconf" ,autoconf)
1751 ("automake" ,automake)
1752 ("which" ,which)))
1753 (propagated-inputs `(("openssl" ,openssl)))
1754 (home-page "https://github.com/savonet/ocaml-ssl/")
1755 (synopsis "OCaml bindings for OpenSSL")
1756 (description
1757 "OCaml-SSL is a set of bindings for OpenSSL, a library for communicating
1758 through Transport Layer Security (@dfn{TLS}) encrypted connections.")
1759 (license license:lgpl2.1)))
1760
1761 (define-public ocaml-mmap
1762 (package
1763 (name "ocaml-mmap")
1764 (version "1.1.0")
1765 (source (origin
1766 (method git-fetch)
1767 (uri (git-reference
1768 (url "https://github.com/mirage/mmap")
1769 (commit (string-append "v" version))))
1770 (file-name (git-file-name name version))
1771 (sha256
1772 (base32
1773 "1jaismy5d1bhbbanysmr2k79px0yv6ya265dri3949nha1l23i60"))))
1774 (build-system dune-build-system)
1775 (home-page "https://github.com/mirage/mmap")
1776 (synopsis "File mapping for OCaml")
1777 (description "This project provides a @command{Mmap.map_file} function
1778 for mapping files in memory. This function is the same as the
1779 @command{Unix.map_file} function added in OCaml >= 4.06.")
1780 (license (list license:qpl license:lgpl2.0))))
1781
1782 (define-public ocaml-lwt
1783 (package
1784 (name "ocaml-lwt")
1785 (version "5.1.1")
1786 (source
1787 (origin
1788 (method git-fetch)
1789 (uri (git-reference
1790 (url "https://github.com/ocsigen/lwt")
1791 (commit version)))
1792 (file-name (git-file-name name version))
1793 (sha256 (base32
1794 "1nl7rdnwfdhwcsm5zpay1nr9y5cbapd9x1qzily7zk9ab4v52m8g"))))
1795 (build-system dune-build-system)
1796 (arguments
1797 `(#:package "lwt"))
1798 (native-inputs
1799 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
1800 ("ocaml-cppo" ,ocaml-cppo)
1801 ("pkg-config" ,pkg-config)))
1802 (inputs
1803 `(("libev" ,libev)
1804 ("glib" ,glib)))
1805 (propagated-inputs
1806 `(("ocaml-mmap" ,ocaml-mmap)
1807 ("ocaml-ocplib-endian" ,ocaml-ocplib-endian)
1808 ("ocaml-result" ,ocaml-result)
1809 ("ocaml-seq" ,ocaml-seq)))
1810 (home-page "https://github.com/ocsigen/lwt")
1811 (synopsis "Cooperative threads and I/O in monadic style")
1812 (description "Lwt provides typed, composable cooperative threads. These
1813 make it easy to run normally-blocking I/O operations concurrently in a single
1814 process. Also, in many cases, Lwt threads can interact without the need for
1815 locks or other synchronization primitives.")
1816 (license license:lgpl2.1)))
1817
1818 (define-public ocaml-lwt-react
1819 (package
1820 (inherit ocaml-lwt)
1821 (name "ocaml-lwt-react")
1822 (version "1.1.3")
1823 (source (origin
1824 (method git-fetch)
1825 (uri (git-reference
1826 (url "https://github.com/ocsigen/lwt")
1827 ;; Version from opam
1828 (commit "4.3.0")))
1829 (file-name (git-file-name name version))
1830 (sha256
1831 (base32
1832 "0f7036srqz7zmnz0n164734smgkrqz78r1i35cg30x31kkr3pnn4"))))
1833 (arguments
1834 `(#:package "lwt_react"))
1835 (properties `((upstream-name . "lwt_react")))
1836 (propagated-inputs
1837 `(("ocaml-lwt" ,ocaml-lwt)
1838 ("ocaml-react" ,ocaml-react)))))
1839
1840 (define-public ocaml-lwt-log
1841 (package
1842 (name "ocaml-lwt-log")
1843 (version "1.1.1")
1844 (source (origin
1845 (method git-fetch)
1846 (uri (git-reference
1847 (url "https://github.com/aantron/lwt_log")
1848 (commit version)))
1849 (file-name (git-file-name name version))
1850 (sha256
1851 (base32
1852 "1n12i1rmn9cjn6p8yr6qn5dwbrwvym7ckr7bla04a1xnq8qlcyj7"))))
1853 (build-system dune-build-system)
1854 (arguments
1855 `(#:tests? #f; require lwt_ppx
1856 #:jbuild? #t))
1857 (propagated-inputs
1858 `(("lwt" ,ocaml-lwt)))
1859 (properties `((upstream-name . "lwt_log")))
1860 (home-page "https://github.com/aantron/lwt_log")
1861 (synopsis "Logging library")
1862 (description "This package provides a deprecated logging component for
1863 ocaml lwt.")
1864 (license license:lgpl2.1)))
1865
1866 (define-public ocaml-logs
1867 (package
1868 (name "ocaml-logs")
1869 (version "0.6.2")
1870 (source (origin
1871 (method url-fetch)
1872 (uri (string-append "http://erratique.ch/software/logs/releases/"
1873 "logs-" version ".tbz"))
1874 (sha256
1875 (base32
1876 "1khbn7jqpid83zn8rvyh1x1sirls7zc878zj4fz985m5xlsfy853"))))
1877 (build-system ocaml-build-system)
1878 (arguments
1879 `(#:tests? #f
1880 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1881 #:phases
1882 (modify-phases %standard-phases
1883 (delete 'configure))))
1884 (native-inputs
1885 `(("ocamlbuild" ,ocamlbuild)
1886 ("opam" ,opam)))
1887 (propagated-inputs
1888 `(("fmt" ,ocaml-fmt)
1889 ("lwt" ,ocaml-lwt)
1890 ("mtime" ,ocaml-mtime)
1891 ("result" ,ocaml-result)
1892 ("cmdliner" ,ocaml-cmdliner)
1893 ("topkg" ,ocaml-topkg)))
1894 (home-page "http://erratique.ch/software/logs")
1895 (synopsis "Logging infrastructure for OCaml")
1896 (description "Logs provides a logging infrastructure for OCaml. Logging is
1897 performed on sources whose reporting level can be set independently. Log
1898 message report is decoupled from logging and is handled by a reporter.")
1899 (license license:isc)))
1900
1901 (define-public ocaml-fpath
1902 (package
1903 (name "ocaml-fpath")
1904 (version "0.7.2")
1905 (source (origin
1906 (method url-fetch)
1907 (uri (string-append "http://erratique.ch/software/fpath/releases/"
1908 "fpath-" version ".tbz"))
1909 (sha256
1910 (base32
1911 "1hr05d8bpqmqcfdavn4rjk9rxr7v2zl84866f5knjifrm60sxqic"))))
1912 (build-system ocaml-build-system)
1913 (arguments
1914 `(#:tests? #f
1915 #:build-flags (list "build")
1916 #:phases
1917 (modify-phases %standard-phases
1918 (delete 'configure))))
1919 (native-inputs
1920 `(("ocamlbuild" ,ocamlbuild)
1921 ("opam" ,opam)))
1922 (propagated-inputs
1923 `(("topkg" ,ocaml-topkg)
1924 ("astring" ,ocaml-astring)))
1925 (home-page "http://erratique.ch/software/fpath")
1926 (synopsis "File system paths for OCaml")
1927 (description "Fpath is an OCaml module for handling file system paths with
1928 POSIX or Windows conventions. Fpath processes paths without accessing the
1929 file system and is independent from any system library.")
1930 (license license:isc)))
1931
1932 (define-public ocaml-bos
1933 (package
1934 (name "ocaml-bos")
1935 (version "0.2.0")
1936 (source (origin
1937 (method url-fetch)
1938 (uri (string-append "http://erratique.ch/software/bos/releases/"
1939 "bos-" version ".tbz"))
1940 (sha256
1941 (base32
1942 "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"))))
1943 (build-system ocaml-build-system)
1944 (arguments
1945 `(#:tests? #f
1946 #:build-flags (list "build")
1947 #:phases
1948 (modify-phases %standard-phases
1949 (delete 'configure))))
1950 (native-inputs
1951 `(("ocamlbuild" ,ocamlbuild)
1952 ("opam" ,opam)))
1953 (propagated-inputs
1954 `(("topkg" ,ocaml-topkg)
1955 ("astring" ,ocaml-astring)
1956 ("fmt" ,ocaml-fmt)
1957 ("fpath" ,ocaml-fpath)
1958 ("logs" ,ocaml-logs)
1959 ("rresult" ,ocaml-rresult)))
1960 (home-page "http://erratique.ch/software/bos")
1961 (synopsis "Basic OS interaction for OCaml")
1962 (description "Bos provides support for basic and robust interaction with
1963 the operating system in OCaml. It has functions to access the process
1964 environment, parse command line arguments, interact with the file system and
1965 run command line programs.")
1966 (license license:isc)))
1967
1968 (define-public ocaml-xmlm
1969 (package
1970 (name "ocaml-xmlm")
1971 (version "1.3.0")
1972 (source (origin
1973 (method url-fetch)
1974 (uri (string-append "http://erratique.ch/software/xmlm/releases/"
1975 "xmlm-" version ".tbz"))
1976 (sha256
1977 (base32
1978 "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n"))))
1979 (build-system ocaml-build-system)
1980 (arguments
1981 `(#:tests? #f
1982 #:build-flags (list "build")
1983 #:phases
1984 (modify-phases %standard-phases
1985 (delete 'configure))))
1986 (native-inputs
1987 `(("ocamlbuild" ,ocamlbuild)
1988 ("ocaml-topkg" ,ocaml-topkg)
1989 ("opam" ,opam)))
1990 (home-page "http://erratique.ch/software/xmlm")
1991 (synopsis "Streaming XML codec for OCaml")
1992 (description "Xmlm is a streaming codec to decode and encode the XML data
1993 format. It can process XML documents without a complete in-memory
1994 representation of the data.")
1995 (license license:isc)))
1996
1997 (define-public ocaml4.07-gen
1998 (package
1999 (name "ocaml4.07-gen")
2000 (version "0.5.2")
2001 (source (origin
2002 (method git-fetch)
2003 (uri (git-reference
2004 (url "https://github.com/c-cube/gen")
2005 (commit version)))
2006 (file-name (git-file-name name version))
2007 (sha256
2008 (base32
2009 "1h9g508rnj2j8va5nvhamzscp954vrkh0hdf4pn3d10pcfyslfg2"))))
2010 (build-system dune-build-system)
2011 (arguments
2012 `(#:tests? #f; no tests
2013 #:package "gen"
2014 #:ocaml ,ocaml-4.07
2015 #:findlib ,ocaml4.07-findlib))
2016 (propagated-inputs
2017 `(("ocaml-odoc" ,ocaml4.07-odoc)))
2018 (native-inputs
2019 `(("ocaml-qtest" ,(package-with-ocaml4.07 ocaml-qtest))
2020 ("ocaml-qcheck" ,(package-with-ocaml4.07 ocaml-qcheck))))
2021 (home-page "https://github.com/c-cube/gen/")
2022 (synopsis "Iterators for OCaml, both restartable and consumable")
2023 (description "Gen implements iterators of OCaml, that are both restartable
2024 and consumable.")
2025 (license license:bsd-2)))
2026
2027 (define-public ocaml4.07-sedlex
2028 (package
2029 (name "ocaml4.07-sedlex")
2030 (version "2.1")
2031 (source (origin
2032 (method git-fetch)
2033 (uri (git-reference
2034 (url "https://github.com/ocaml-community/sedlex")
2035 (commit (string-append "v" version))))
2036 (file-name (git-file-name name version))
2037 (sha256
2038 (base32
2039 "05f6qa8x3vhpdz1fcnpqk37fpnyyq13icqsk2gww5idjnh6kng26"))))
2040 (build-system dune-build-system)
2041 (arguments
2042 `(#:tests? #f; no tests
2043 #:package "sedlex"
2044 #:phases
2045 (modify-phases %standard-phases
2046 (add-before 'build 'copy-resources
2047 (lambda* (#:key inputs #:allow-other-keys)
2048 (with-directory-excursion "src/generator/data"
2049 (for-each
2050 (lambda (file)
2051 (copy-file (assoc-ref inputs file) file))
2052 '("DerivedCoreProperties.txt" "DerivedGeneralCategory.txt"
2053 "PropList.txt")))
2054 #t))
2055 (add-before 'build 'chmod
2056 (lambda _
2057 (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*"))
2058 #t)))
2059 #:ocaml ,ocaml-4.07
2060 #:findlib ,ocaml4.07-findlib))
2061 (native-inputs
2062 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
2063 (propagated-inputs
2064 `(("ocaml-gen" ,ocaml4.07-gen)
2065 ("ocaml-ppx-tools-versioned"
2066 ,(package-with-ocaml4.07 ocaml-ppx-tools-versioned))
2067 ("ocaml-uchar" ,(package-with-ocaml4.07 ocaml-uchar))))
2068 ;; These three files are needed by src/generator/data/dune, but would be
2069 ;; downloaded using curl at build time.
2070 (inputs
2071 `(("DerivedCoreProperties.txt"
2072 ,(origin
2073 (method url-fetch)
2074 (uri "https://www.unicode.org/Public/12.1.0/ucd/DerivedCoreProperties.txt")
2075 (sha256
2076 (base32
2077 "0s6sn1yr9qmb2i6gf8dir2zpsbjv1frdfzy3i2yjylzvf637msx6"))))
2078 ("DerivedGeneralCategory.txt"
2079 ,(origin
2080 (method url-fetch)
2081 (uri "https://www.unicode.org/Public/12.1.0/ucd/extracted/DerivedGeneralCategory.txt")
2082 (sha256
2083 (base32
2084 "1rifzq9ba6c58dn0lrmcb5l5k4ksx3zsdkira3m5p6h4i2wriy3q"))))
2085 ("PropList.txt"
2086 ,(origin
2087 (method url-fetch)
2088 (uri "https://www.unicode.org/Public/12.1.0/ucd/PropList.txt")
2089 (sha256
2090 (base32
2091 "0gsb1jpj3mnqbjgbavi4l95gl6g4agq58j82km22fdfg63j3w3fk"))))))
2092 (home-page "https://www.cduce.org/download.html#side")
2093 (synopsis "Lexer generator for Unicode and OCaml")
2094 (description "Lexer generator for Unicode and OCaml.")
2095 (license license:expat)))
2096
2097 (define-public ocaml-uchar
2098 (package
2099 (name "ocaml-uchar")
2100 (version "0.0.2")
2101 (source
2102 (origin
2103 (method url-fetch)
2104 (uri (string-append "https://github.com/ocaml/uchar/releases/download/v"
2105 version "/uchar-" version ".tbz"))
2106 (sha256 (base32
2107 "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"))))
2108 (build-system ocaml-build-system)
2109 (arguments
2110 `(#:tests? #f
2111 #:build-flags (list "native=true" "native-dynlink=true")
2112 #:phases
2113 (modify-phases %standard-phases
2114 (delete 'configure))))
2115 (native-inputs
2116 `(("ocamlbuild" ,ocamlbuild)
2117 ("opam" ,opam)))
2118 (home-page "https://github.com/ocaml/uchar")
2119 (synopsis "Compatibility library for OCaml's Uchar module")
2120 (description "The uchar package provides a compatibility library for the
2121 `Uchar` module introduced in OCaml 4.03.")
2122 (license license:lgpl2.1)))
2123
2124 (define-public ocaml-uutf
2125 (package
2126 (name "ocaml-uutf")
2127 (version "1.0.1")
2128 (source (origin
2129 (method url-fetch)
2130 (uri (string-append "http://erratique.ch/software/uutf/releases/"
2131 "uutf-" version ".tbz"))
2132 (sha256
2133 (base32
2134 "1gp96dcggq7s84934vimxh89caaxa77lqiff1yywbwkilkkjcfqj"))))
2135 (build-system ocaml-build-system)
2136 (arguments
2137 `(#:tests? #f
2138 #:build-flags (list "build")
2139 #:phases
2140 (modify-phases %standard-phases
2141 (delete 'configure))))
2142 (native-inputs
2143 `(("ocamlbuild" ,ocamlbuild)
2144 ("opam" ,opam)
2145 ("topkg" ,ocaml-topkg)))
2146 (propagated-inputs
2147 `(("uchar" ,ocaml-uchar)
2148 ("cmdliner" ,ocaml-cmdliner)))
2149 (home-page "http://erratique.ch/software/uutf")
2150 (synopsis "Non-blocking streaming Unicode codec for OCaml")
2151 (description "Uutf is a non-blocking streaming codec to decode and encode
2152 the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
2153 work character by character without blocking on IO. Decoders perform character
2154 position tracking and support newline normalization.
2155
2156 Functions are also provided to fold over the characters of UTF encoded OCaml
2157 string values and to directly encode characters in OCaml Buffer.t values.")
2158 (license license:isc)))
2159
2160 (define-public ocaml-jsonm
2161 (package
2162 (name "ocaml-jsonm")
2163 (version "1.0.1")
2164 (source (origin
2165 (method url-fetch)
2166 (uri (string-append "http://erratique.ch/software/jsonm/releases/"
2167 "jsonm-" version ".tbz"))
2168 (sha256
2169 (base32
2170 "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w"))))
2171 (build-system ocaml-build-system)
2172 (arguments
2173 `(#:tests? #f
2174 #:build-flags (list "build")
2175 #:phases
2176 (modify-phases %standard-phases
2177 (delete 'configure))))
2178 (native-inputs
2179 `(("ocamlbuild" ,ocamlbuild)
2180 ("opam" ,opam)
2181 ("topkg" ,ocaml-topkg)))
2182 (propagated-inputs
2183 `(("uutf" ,ocaml-uutf)
2184 ("cmdliner" ,ocaml-cmdliner)))
2185 (home-page "http://erratique.ch/software/jsonm")
2186 (synopsis "Non-blocking streaming JSON codec for OCaml")
2187 (description "Jsonm is a non-blocking streaming codec to decode and encode
2188 the JSON data format. It can process JSON text without blocking on IO and
2189 without a complete in-memory representation of the data.")
2190 (license license:isc)))
2191
2192 (define-public ocaml-ocurl
2193 (package
2194 (name "ocaml-ocurl")
2195 (version "0.9.1")
2196 (source (origin
2197 (method url-fetch)
2198 (uri (string-append "http://ygrek.org.ua/p/release/ocurl/ocurl-"
2199 version ".tar.gz"))
2200 (sha256
2201 (base32
2202 "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6"))))
2203 (build-system ocaml-build-system)
2204 (arguments
2205 `(#:phases
2206 (modify-phases %standard-phases
2207 (add-before 'configure 'fix-/bin/sh
2208 (lambda* (#:key inputs #:allow-other-keys)
2209 (substitute* "configure"
2210 (("-/bin/sh") (string-append "-" (which "bash")))))))))
2211 (native-inputs
2212 `(("pkg-config" ,pkg-config)))
2213 (inputs `(("curl" ,curl)))
2214 (home-page "http://ocurl.forge.ocamlcore.org/")
2215 (synopsis "OCaml bindings for libcurl")
2216 (description "Client-side URL transfer library, supporting HTTP and a
2217 multitude of other network protocols (FTP/SMTP/RTSP/etc).")
2218 (license license:isc)))
2219
2220 (define-public ocaml-base64
2221 (package
2222 (name "ocaml-base64")
2223 (version "3.2.0")
2224 (source (origin
2225 (method git-fetch)
2226 (uri (git-reference
2227 (url "https://github.com/mirage/ocaml-base64")
2228 (commit (string-append "v" version))))
2229 (file-name (git-file-name name version))
2230 (sha256
2231 (base32
2232 "1ilw3zj0w6cq7i4pvr8m2kv5l5f2y9aldmv72drlwwns013b1gwy"))))
2233 (build-system dune-build-system)
2234 (native-inputs
2235 `(("ocaml-alcotest" ,ocaml-alcotest)
2236 ("ocaml-bos" ,ocaml-bos)
2237 ("ocaml-rresult" ,ocaml-rresult)))
2238 (home-page "https://github.com/mirage/ocaml-base64")
2239 (synopsis "Base64 encoding for OCaml")
2240 (description "Base64 is a group of similar binary-to-text encoding schemes
2241 that represent binary data in an ASCII string format by translating it into a
2242 radix-64 representation. It is specified in RFC 4648.")
2243 (license license:isc)))
2244
2245 (define-public ocamlify
2246 (package
2247 (name "ocamlify")
2248 (version "0.0.1")
2249 (source (origin
2250 (method url-fetch)
2251 (uri "https://download.ocamlcore.org/ocamlify/ocamlify/0.0.1/ocamlify-0.0.1.tar.gz")
2252 (sha256
2253 (base32
2254 "1j9nb3vjqbdsx3d6jazixgrh776051zkrc06nsc5q5ilp1jhrwkm"))))
2255 (build-system ocaml-build-system)
2256 ; tests are done during build
2257 (arguments
2258 `(#:phases
2259 (modify-phases %standard-phases
2260 (delete 'check)
2261 (replace 'configure
2262 (lambda* (#:key outputs #:allow-other-keys)
2263 (invoke "ocaml" "setup.ml" "-configure" "--prefix"
2264 (assoc-ref outputs "out")))))))
2265 (native-inputs
2266 `(("ocamlbuild" ,ocamlbuild)))
2267 (home-page "https://forge.ocamlcore.org/projects/ocamlify")
2268 (synopsis "Include files in OCaml code")
2269 (description "OCamlify creates OCaml source code by including
2270 whole files into OCaml string or string list. The code generated can be
2271 compiled as a standard OCaml file. It allows embedding external resources as
2272 OCaml code.")
2273 (license license:lgpl2.1+))); with the OCaml static compilation exception
2274
2275 (define-public omake
2276 (package
2277 (name "omake")
2278 (version "0.10.3")
2279 (source (origin
2280 (method url-fetch)
2281 (uri (string-append "http://download.camlcity.org/download/"
2282 "omake-" version ".tar.gz"))
2283 (sha256
2284 (base32
2285 "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz"))
2286 (patches (search-patches "omake-fix-non-determinism.patch"))))
2287 (build-system ocaml-build-system)
2288 (arguments
2289 `(#:make-flags
2290 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2291 #:tests? #f ; no test target
2292 #:phases
2293 (modify-phases %standard-phases
2294 (add-before 'configure 'fix-makefile
2295 (lambda* (#:key outputs #:allow-other-keys)
2296 (substitute* "mk/osconfig_unix.mk"
2297 (("CC = cc") "CC = gcc")))))))
2298 (native-inputs `(("hevea" ,hevea)))
2299 (home-page "http://projects.camlcity.org/projects/omake.html")
2300 (synopsis "Build system designed for scalability and portability")
2301 (description "Similar to make utilities you may have used, but it features
2302 many additional enhancements, including:
2303
2304 @enumerate
2305 @item Support for projects spanning several directories or directory hierarchies.
2306 @item Fast, reliable, automated, scriptable dependency analysis using MD5 digests,
2307 with full support for incremental builds.
2308 @item Dependency analysis takes the command lines into account — whenever the
2309 command line used to build a target changes, the target is considered
2310 out-of-date.
2311 @item Fully scriptable, includes a library that providing support for standard
2312 tasks in C, C++, OCaml, and LaTeX projects, or a mixture thereof.
2313 @end enumerate")
2314 (license (list license:lgpl2.1 ; libmojave
2315 license:expat ; OMake scripts
2316 license:gpl2)))) ; OMake itself, with ocaml linking exception
2317 ; see LICENSE.OMake
2318
2319 (define-public ocaml-batteries
2320 (package
2321 (name "ocaml-batteries")
2322 (version "2.10.0")
2323 (source (origin
2324 (method url-fetch)
2325 (uri (string-append "https://github.com/ocaml-batteries-team/"
2326 "batteries-included/releases/download/v"
2327 version "/batteries-" version ".tar.gz"))
2328 (sha256
2329 (base32
2330 "08ghw87d56h1a6y1nnh3x2wy9xj25jqfk5sp6ma9nsyd37babb0h"))))
2331 (build-system ocaml-build-system)
2332 (native-inputs
2333 `(("ocamlbuild" ,ocamlbuild)
2334 ("qtest" ,ocaml-qtest)))
2335 (propagated-inputs
2336 `(("ocaml-num" ,ocaml-num)))
2337 (arguments
2338 `(#:phases
2339 (modify-phases %standard-phases
2340 (delete 'check) ; tests are run by the build phase
2341 (add-before 'build 'fix-nondeterminism
2342 (lambda _
2343 (substitute* "setup.ml"
2344 (("Sys.readdir dirname")
2345 "let a = Sys.readdir dirname in Array.sort String.compare a; a"))
2346 #t))
2347 (replace 'build
2348 (lambda* (#:key inputs outputs #:allow-other-keys)
2349 (let ((files
2350 (map (lambda (str)
2351 (substring str 0 (- (string-length str) 1)))
2352 (append
2353 (find-files "src" ".*.mliv")
2354 (find-files "src" ".*.mlv")
2355 (find-files "src" ".*.mlp")))))
2356 (apply invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2357 "-lflag" "-dllpath-all" files)
2358 (for-each (lambda (file)
2359 (copy-file (string-append "_build/" file) file))
2360 files))
2361 (invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2362 "-lflag" "-dllpath-all" "build/mkconf.byte")
2363 (copy-file "_build/build/mkconf.byte" "build/mkconf.byte")
2364 (invoke "make" "all")
2365 #t)))))
2366 (home-page "http://batteries.forge.ocamlcore.org/")
2367 (synopsis "Development platform for the OCaml programming language")
2368 (description "Define a standard set of libraries which may be expected on
2369 every compliant installation of OCaml and organize these libraries into a
2370 hierarchy of modules.")
2371 (license license:lgpl2.1+)))
2372
2373 (define-public ocaml4.07-pcre
2374 (package
2375 (name "ocaml4.07-pcre")
2376 (version "7.4.1")
2377 (source (origin
2378 (method git-fetch)
2379 (uri (git-reference
2380 (url "https://github.com/mmottl/pcre-ocaml")
2381 (commit version)))
2382 (file-name (git-file-name name version))
2383 (sha256
2384 (base32
2385 "11sd8g668h48790lamz0riw9jgnfkaif5qdfa0akcndwa6aj07jf"))))
2386 (build-system dune-build-system)
2387 (arguments
2388 `(#:test-target "."
2389 #:ocaml ,ocaml-4.07
2390 #:findlib ,ocaml4.07-findlib
2391 #:dune ,ocaml4.07-dune))
2392 (native-inputs
2393 `(("ocaml-base" ,ocaml4.07-base)
2394 ("pcre:bin" ,pcre "bin")))
2395 (propagated-inputs `(("pcre" ,pcre)))
2396 (home-page "https://mmottl.github.io/pcre-ocaml")
2397 (synopsis "Bindings to the Perl Compatibility Regular Expressions library")
2398 (description "Pcre-ocaml offers library functions for string pattern
2399 matching and substitution, similar to the functionality offered by the Perl
2400 language.")
2401 (license license:lgpl2.1+))); with the OCaml link exception
2402
2403 (define-public ocaml4.07-expect
2404 (package
2405 (name "ocaml4.07-expect")
2406 (version "0.0.6")
2407 (source (origin
2408 (method url-fetch)
2409 (uri (ocaml-forge-uri name version 1736))
2410 (sha256
2411 (base32
2412 "098qvg9d4yrqzr5ax291y3whrpax0m3sx4gi6is0mblc96r9yqk0"))))
2413 (arguments
2414 `(#:tests? #f
2415 #:ocaml ,ocaml-4.07
2416 #:findlib ,ocaml4.07-findlib))
2417 (build-system ocaml-build-system)
2418 (native-inputs
2419 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))
2420 ("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
2421 ("ocaml-pcre" ,ocaml4.07-pcre)
2422 ("ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
2423 (propagated-inputs
2424 `(("batteries" ,(package-with-ocaml4.07 ocaml-batteries))))
2425 (home-page "https://forge.ocamlcore.org/projects/ocaml-expect/")
2426 (synopsis "Simple implementation of expect")
2427 (description "Help building unitary testing of interactive program. You
2428 can match the question using a regular expression or a timeout.")
2429 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2430
2431 (define-public ocaml-stdlib-shims
2432 (package
2433 (name "ocaml-stdlib-shims")
2434 (version "0.1.0")
2435 (source (origin
2436 (method git-fetch)
2437 (uri (git-reference
2438 (url "https://github.com/ocaml/stdlib-shims")
2439 (commit version)))
2440 (file-name (git-file-name name version))
2441 (sha256
2442 (base32
2443 "007dwywsr5285z0np6a9nr0h8iqmyzfrlx6s5xaqcwj69zabsrjm"))))
2444 (build-system dune-build-system)
2445 (home-page "https://github.com/ocaml/stdlib-shims")
2446 (synopsis "OCaml stdlib features backport to older OCaml compilers")
2447 (description "This package backports some of the new stdlib features to
2448 older compilers, such as the Stdlib module. This allows projects that require
2449 compatibility with older compiler to use these new features in their code.")
2450 ;; with ocaml-linking exception
2451 (license license:lgpl2.1+)))
2452
2453 (define-public ocaml-fileutils
2454 (package
2455 (name "ocaml-fileutils")
2456 (version "0.6.2")
2457 (source (origin
2458 (method git-fetch)
2459 (uri (git-reference
2460 (url "https://github.com/gildor478/ocaml-fileutils")
2461 (commit (string-append "v" version))))
2462 (file-name (git-file-name name version))
2463 (sha256
2464 (base32
2465 "01qf51b8pb7vyfba7y0kb7ajwj1950im25d7f59821zwsibns3d9"))))
2466 (build-system dune-build-system)
2467 (propagated-inputs
2468 `(("ocaml-stdlib-shims" ,ocaml-stdlib-shims)))
2469 (native-inputs
2470 `(("ocaml-ounit" ,ocaml-ounit)))
2471 (home-page "http://ocaml-fileutils.forge.ocamlcore.org")
2472 (synopsis "Pure OCaml functions to manipulate real file and filename")
2473 (description "Library to provide pure OCaml functions to manipulate real
2474 file (POSIX like) and filename.")
2475 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2476
2477 (define-public ocaml-oasis
2478 (package
2479 (name "ocaml-oasis")
2480 (version "0.4.11")
2481 (source (origin
2482 (method url-fetch)
2483 (uri (ocaml-forge-uri name version 1757))
2484 (sha256
2485 (base32
2486 "0bn13mzfa98dq3y0jwzzndl55mnywaxv693z6f1rlvpdykp3vdqq"))
2487 (modules '((guix build utils)))
2488 (snippet
2489 '(begin
2490 (substitute* "test/test-main/Test.ml"
2491 ;; most of these tests fail because ld cannot find crti.o, but according
2492 ;; to the log file, the environment variables {LD_,}LIBRARY_PATH
2493 ;; are set correctly when LD_LIBRARY_PATH is defined beforhand.
2494 (("TestBaseCompat.tests;") "")
2495 (("TestExamples.tests;") "")
2496 (("TestFull.tests;") "")
2497 (("TestPluginDevFiles.tests;") "")
2498 (("TestPluginInternal.tests;") "")
2499 (("TestPluginOCamlbuild.tests;") "")
2500 (("TestPluginOMake.tests;") ""))
2501 #t))))
2502 (build-system ocaml-build-system)
2503 (arguments
2504 `(#:tests? #f))
2505 (native-inputs
2506 `(("ocamlbuild" ,ocamlbuild)
2507 ("ocamlify" ,ocamlify)
2508 ("ocamlmod" ,ocamlmod)))
2509 (home-page "https://oasis.forge.ocamlcore.org")
2510 (synopsis "Integrates a configure, build, install system in OCaml projects")
2511 (description "OASIS is a tool to integrate a configure, build and install
2512 system in your OCaml projects. It helps to create standard entry points in your
2513 build system and allows external tools to analyse your project easily.")
2514 (license license:lgpl2.1+))) ; with ocaml static compilation exception
2515
2516 (define-public ocaml-js-build-tools
2517 (package
2518 (name "ocaml-js-build-tools")
2519 (version "113.33.06")
2520 (source (janestreet-origin "js-build-tools" version
2521 "0r8z4fz8iy5y6hkdlkpwf6rk4qigcr3dzyv35585xgg2ahf12zy6"))
2522 (native-inputs
2523 `(("oasis" ,ocaml-oasis)
2524 ("ocamlbuild" ,ocamlbuild)
2525 ("opam" ,opam)))
2526 (build-system ocaml-build-system)
2527 (arguments janestreet-arguments)
2528 (home-page "https://github.com/janestreet/js-build-tools")
2529 (synopsis "Collection of tools to help building Jane Street Packages")
2530 (description "This package contains tools to help building Jane Street
2531 packages, but can be used for other purposes. It contains:
2532 @enumerate
2533 @item an @command{oasis2opam-install} tool to produce a @file{.install} file
2534 from the oasis build log
2535 @item a @code{js_build_tools} ocamlbuild plugin with various goodies.
2536 @end enumerate")
2537 (license license:asl2.0)))
2538
2539 (define-public ocaml-cppo
2540 (package
2541 (name "ocaml-cppo")
2542 (version "1.6.6")
2543 (source
2544 (origin
2545 (method git-fetch)
2546 (uri (git-reference
2547 (url "https://github.com/mjambon/cppo")
2548 (commit (string-append "v" version))))
2549 (file-name (git-file-name name version))
2550 (sha256 (base32
2551 "1smcc0l6fh2n0y6bp96c69j5nw755jja99w0b206wx3yb2m4w2hs"))))
2552 (build-system dune-build-system)
2553 (arguments
2554 `(#:tests? #f
2555 #:build-flags (list "--profile" "release")))
2556 (native-inputs
2557 `(("ocamlbuild" ,ocamlbuild)))
2558 (home-page "https://github.com/mjambon/cppo")
2559 (synopsis "Equivalent of the C preprocessor for OCaml programs")
2560 (description "Cppo is an equivalent of the C preprocessor for OCaml
2561 programs. It allows the definition of simple macros and file inclusion. Cpp ois:
2562 @enumerate
2563 @item more OCaml-friendly than cpp
2564 @item easy to learn without consulting a manual
2565 @item reasonably fast
2566 @item simple to install and to maintain.
2567 @end enumerate")
2568 (license license:bsd-3)))
2569
2570 (define-public ocaml-seq
2571 (package
2572 (name "ocaml-seq")
2573 (version "0.1")
2574 (source
2575 (origin
2576 (method git-fetch)
2577 (uri (git-reference
2578 (url "https://github.com/c-cube/seq.git")
2579 (commit version)))
2580 (file-name (git-file-name name version))
2581 (sha256
2582 (base32 "1cjpsc7q76yfgq9iyvswxgic4kfq2vcqdlmxjdjgd4lx87zvcwrv"))))
2583 (build-system ocaml-build-system)
2584 (arguments
2585 `(#:tests? #f
2586 #:phases
2587 (modify-phases %standard-phases
2588 (delete 'configure)
2589 (delete 'build)
2590 (replace 'install
2591 (lambda* (#:key outputs #:allow-other-keys)
2592 (let ((install-dir (string-append (assoc-ref outputs "out")
2593 "/lib/ocaml/site-lib/seq")))
2594 (mkdir-p install-dir)
2595 (with-output-to-file (string-append install-dir "/META")
2596 (lambda _
2597 (display "name=\"seq\"
2598 version=\"[distributed with ocaml]\"
2599 description=\"dummy package for compatibility\"
2600 requires=\"\"")))
2601 #t))))))
2602 (home-page "https://github.com/c-cube/seq")
2603 (synopsis "OCaml's standard iterator type")
2604 (description "This package is a compatibility package for OCaml's
2605 standard iterator type starting from 4.07.")
2606 (license license:lgpl2.1+)))
2607
2608 (define-public ocaml-re
2609 (package
2610 (name "ocaml-re")
2611 (version "1.9.0")
2612 (source
2613 (origin
2614 (method git-fetch)
2615 (uri (git-reference
2616 (url "https://github.com/ocaml/ocaml-re.git")
2617 (commit version)))
2618 (file-name (git-file-name name version))
2619 (sha256
2620 (base32 "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss"))))
2621 (build-system dune-build-system)
2622 (arguments
2623 `(#:tests? #f
2624 #:build-flags (list "--profile" "release")))
2625 (propagated-inputs
2626 `(("ocaml-seq" ,ocaml-seq)))
2627 (native-inputs
2628 `(("ounit" ,ocaml-ounit)))
2629 (home-page "https://github.com/ocaml/ocaml-re/")
2630 (synopsis "Regular expression library for OCaml")
2631 (description "Pure OCaml regular expressions with:
2632 @enumerate
2633 @item Perl-style regular expressions (module Re_perl)
2634 @item Posix extended regular expressions (module Re_posix)
2635 @item Emacs-style regular expressions (module Re_emacs)
2636 @item Shell-style file globbing (module Re_glob)
2637 @item Compatibility layer for OCaml's built-in Str module (module Re_str)
2638 @end enumerate")
2639 (license license:expat)))
2640
2641 (define-public ocaml-ocplib-endian
2642 (package
2643 (name "ocaml-ocplib-endian")
2644 (version "1.0")
2645 (source (origin
2646 (method git-fetch)
2647 (uri (git-reference
2648 (url "https://github.com/OCamlPro/ocplib-endian/")
2649 (commit version)))
2650 (sha256
2651 (base32
2652 "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw"))
2653 (file-name (git-file-name name version))))
2654 (build-system ocaml-build-system)
2655 (native-inputs
2656 `(("cppo" ,ocaml-cppo)
2657 ("ocamlbuild" ,ocamlbuild)))
2658 (home-page "https://github.com/OCamlPro/ocplib-endian")
2659 (synopsis "Optimised functions to read and write int16/32/64 from strings
2660 and bigarrays")
2661 (description "Optimised functions to read and write int16/32/64 from strings
2662 and bigarrays, based on new primitives added in version 4.01. It works on
2663 strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
2664 big- and little-endian, with their unsafe counter-parts.")
2665 (license license:lgpl2.1)))
2666
2667 (define-public ocaml-cstruct
2668 (package
2669 (name "ocaml-cstruct")
2670 (version "4.0.0")
2671 (source (origin
2672 (method git-fetch)
2673 (uri (git-reference
2674 (url "https://github.com/mirage/ocaml-cstruct")
2675 (commit (string-append "v" version))))
2676 (file-name (git-file-name name version))
2677 (sha256
2678 (base32
2679 "0m4bz0digcsc8l2msfikwcbi1y371kccx6xnkwrz212mf5mp98bv"))))
2680 (build-system dune-build-system)
2681 (arguments
2682 `(#:package "cstruct"
2683 #:test-target "."))
2684 (native-inputs
2685 `(("ocaml-alcotest" ,ocaml-alcotest)))
2686 (home-page "https://github.com/mirage/ocaml-cstruct")
2687 (synopsis "Access C structures via a camlp4 extension")
2688 (description "Cstruct is a library and syntax extension to make it easier
2689 to access C-like structures directly from OCaml. It supports both reading and
2690 writing to these structures, and they are accessed via the Bigarray module.")
2691 (license license:isc)))
2692
2693 (define-public ocaml-hex
2694 (package
2695 (name "ocaml-hex")
2696 (version "1.4.0")
2697 (source (origin
2698 (method git-fetch)
2699 (uri (git-reference
2700 (url "https://github.com/mirage/ocaml-hex")
2701 (commit (string-append "v" version))))
2702 (file-name (git-file-name name version))
2703 (sha256
2704 (base32
2705 "0c8nhibcwy0ykzca4jn3gqb8ylq21ff88y82gl60wyzijr64rn0q"))))
2706 (build-system dune-build-system)
2707 (arguments
2708 `(#:test-target "."))
2709 (propagated-inputs
2710 `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat)
2711 ("cstruct" ,ocaml-cstruct)))
2712 (home-page "https://github.com/mirage/ocaml-hex/")
2713 (synopsis "Minimal library providing hexadecimal converters")
2714 (description "Hex is a minimal library providing hexadecimal converters.")
2715 (license license:isc)))
2716
2717 (define-public ocaml4.07-ezjsonm
2718 (package
2719 (name "ocaml4.07-ezjsonm")
2720 (version "1.1.0")
2721 (source
2722 (origin
2723 (method git-fetch)
2724 (uri (git-reference
2725 (url "https://github.com/mirage/ezjsonm.git")
2726 (commit (string-append "v" version))))
2727 (file-name (git-file-name name version))
2728 (sha256
2729 (base32 "064j9pzy01p3dv947khqyn7fkjbs3jmrqsg8limb4abnlaqxxs2s"))))
2730 (build-system dune-build-system)
2731 (arguments
2732 `(#:package "ezjsonm"
2733 #:test-target "."
2734 #:ocaml ,ocaml-4.07
2735 #:findlib ,ocaml4.07-findlib))
2736 (native-inputs
2737 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))))
2738 (propagated-inputs
2739 `(("ocaml-hex" ,(package-with-ocaml4.07 ocaml-hex))
2740 ("ocaml-jsonm" ,(package-with-ocaml4.07 ocaml-jsonm))
2741 ("ocaml-sexplib" ,ocaml4.07-sexplib)))
2742 (home-page "https://github.com/mirage/ezjsonm/")
2743 (synopsis "Read and write JSON data")
2744 (description "Ezjsonm provides more convenient (but far less flexible) input
2745 and output functions that go to and from [string] values than jsonm. This avoids
2746 the need to write signal code, which is useful for quick scripts that manipulate
2747 JSON.")
2748 (license license:isc)))
2749
2750 (define-public ocaml4.07-uri
2751 (package
2752 (name "ocaml4.07-uri")
2753 (version "2.2.0")
2754 (source
2755 (origin
2756 (method git-fetch)
2757 (uri (git-reference
2758 (url "https://github.com/mirage/ocaml-uri.git")
2759 (commit (string-append "v" version))))
2760 (file-name (git-file-name name version))
2761 (sha256
2762 (base32 "1ppbav41mszpjcl0zi3fyg958cxyfs57i7kvha4ds9ydn89bjmrh"))))
2763 (build-system dune-build-system)
2764 (arguments
2765 `(#:test-target "."
2766 #:phases
2767 (modify-phases %standard-phases
2768 (add-before 'build 'update-deprecated
2769 (lambda _
2770 (substitute* "lib/uri.ml"
2771 (("Re.get") "Re.Group.get")))))
2772 #:ocaml ,ocaml-4.07
2773 #:findlib ,ocaml4.07-findlib))
2774 (native-inputs
2775 `(("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))
2776 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)))
2777 (propagated-inputs
2778 `(("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
2779 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
2780 ("ocaml-stringext" ,(package-with-ocaml4.07 ocaml-stringext))))
2781 (home-page "https://github.com/mirage/ocaml-uri")
2782 (synopsis "RFC3986 URI/URL parsing library")
2783 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.")
2784 (license license:isc)))
2785
2786 (define-public ocaml-easy-format
2787 (package
2788 (name "ocaml-easy-format")
2789 (version "1.3.2")
2790 (source (origin
2791 (method git-fetch)
2792 (uri (git-reference
2793 (url "https://github.com/mjambon/easy-format")
2794 (commit version)))
2795 (file-name (git-file-name name version))
2796 (sha256
2797 (base32
2798 "1fc95q2ypck6m6rv3kiawwilh5ac93v2hcp823mj608d5kj79xkb"))))
2799 (build-system dune-build-system)
2800 (arguments
2801 `(#:jbuild? #t
2802 #:phases
2803 (modify-phases %standard-phases
2804 (add-before 'build 'make-writable
2805 (lambda _
2806 (for-each
2807 (lambda (file)
2808 (chmod file #o644))
2809 (find-files "." "."))
2810 #t)))))
2811 (home-page "https://github.com/mjambon/easy-format")
2812 (synopsis "Interface to the Format module")
2813 (description "Easy-format is a high-level and functional interface to the
2814 Format module of the OCaml standard library.")
2815 (license license:bsd-3)))
2816
2817 (define-public ocaml4.07-piqilib
2818 (package
2819 (name "ocaml4.07-piqilib")
2820 (version "0.6.15")
2821 (source
2822 (origin
2823 (method git-fetch)
2824 (uri (git-reference
2825 (url "https://github.com/alavrik/piqi.git")
2826 (commit (string-append "v" version))))
2827 (file-name (git-file-name name version))
2828 (sha256
2829 (base32 "0v04hs85xv6d4ysqxyv1dik34dx49yab9shpi4x7iv19qlzl7csb"))))
2830 (build-system ocaml-build-system)
2831 (arguments
2832 `(#:phases
2833 (modify-phases %standard-phases
2834 (add-before 'configure 'fix-ocamlpath
2835 (lambda _
2836 (substitute* '("Makefile" "make/Makefile.ocaml")
2837 (("OCAMLPATH := ") "OCAMLPATH := $(OCAMLPATH):"))
2838 #t))
2839 (replace 'configure
2840 (lambda* (#:key outputs #:allow-other-keys)
2841 (let ((out (assoc-ref outputs "out")))
2842 (substitute* "make/OCamlMakefile"
2843 (("/bin/sh") (which "bash")))
2844 (invoke "./configure" "--prefix" out "--ocaml-libdir"
2845 (string-append out "/lib/ocaml/site-lib")))
2846 #t))
2847 (add-after 'build 'build-ocaml
2848 (lambda* (#:key outputs #:allow-other-keys)
2849 (invoke "make" "ocaml")
2850 #t))
2851 (add-after 'install 'install-ocaml
2852 (lambda* (#:key outputs #:allow-other-keys)
2853 (invoke "make" "ocaml-install")
2854 #t))
2855 (add-after 'install-ocaml 'link-stubs
2856 (lambda* (#:key outputs #:allow-other-keys)
2857 (let* ((out (assoc-ref outputs "out"))
2858 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
2859 (lib (string-append out "/lib/ocaml/site-lib/piqilib")))
2860 (mkdir-p stubs)
2861 (symlink (string-append lib "/dllpiqilib_stubs.so")
2862 (string-append stubs "/dllpiqilib_stubs.so"))
2863 #t))))
2864 #:ocaml ,ocaml-4.07
2865 #:findlib ,ocaml4.07-findlib))
2866 (native-inputs
2867 `(("which" ,which)))
2868 (propagated-inputs
2869 `(("ocaml-xmlm" ,(package-with-ocaml4.07 ocaml-xmlm))
2870 ("ocaml-sedlex" ,ocaml4.07-sedlex)
2871 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))
2872 ("ocaml-base64" ,(package-with-ocaml4.07 ocaml-base64))))
2873 (home-page "http://piqi.org")
2874 (synopsis "Data serialization and conversion library")
2875 (description "Piqilib is the common library used by the piqi command-line
2876 tool and piqi-ocaml.")
2877 (license license:asl2.0)))
2878
2879 (define-public ocaml-uuidm
2880 (package
2881 (name "ocaml-uuidm")
2882 (version "0.9.6")
2883 (source (origin
2884 (method url-fetch)
2885 (uri (string-append "http://erratique.ch/software/uuidm/"
2886 "releases/uuidm-" version ".tbz"))
2887 (sha256
2888 (base32
2889 "0hz4fdx0x16k0pw9995vkz5d1hmzz6b16wck9li399rcbfnv5jlc"))))
2890 (build-system ocaml-build-system)
2891 (arguments
2892 `(#:build-flags
2893 (list "build" "--tests" "true" "--with-cmdliner" "true")
2894 #:phases
2895 (modify-phases %standard-phases
2896 (delete 'configure))))
2897 (native-inputs
2898 `(("ocamlbuild" ,ocamlbuild)
2899 ("opam" ,opam)))
2900 (propagated-inputs
2901 `(("cmdliner" ,ocaml-cmdliner)
2902 ("topkg" ,ocaml-topkg)))
2903 (home-page "http://erratique.ch/software/uuidm")
2904 (synopsis "Universally unique identifiers for OCaml")
2905 (description "Uuidm is an OCaml module implementing 128 bits universally
2906 unique identifiers (UUIDs) version 3, 5 (named based with MD5, SHA-1 hashing)
2907 and 4 (random based) according to RFC 4122.")
2908 (license license:isc)))
2909
2910 (define-public ocaml-graph
2911 (package
2912 (name "ocaml-graph")
2913 (version "1.8.8")
2914 (source (origin
2915 (method url-fetch)
2916 (uri (string-append "http://ocamlgraph.lri.fr/download/"
2917 "ocamlgraph-" version ".tar.gz"))
2918 (sha256
2919 (base32
2920 "0m9g16wrrr86gw4fz2fazrh8nkqms0n863w7ndcvrmyafgxvxsnr"))))
2921 (build-system ocaml-build-system)
2922 (arguments
2923 `(#:install-target "install-findlib"
2924 #:tests? #f
2925 #:phases
2926 (modify-phases %standard-phases
2927 (add-before 'configure 'set-shell
2928 (lambda* (#:key inputs #:allow-other-keys)
2929 (setenv "CONFIG_SHELL" (string-append (assoc-ref inputs "bash")
2930 "/bin/sh")))))))
2931 (inputs `(("lablgtk" ,lablgtk)))
2932 (properties `((upstream-name . "ocamlgraph")))
2933 (home-page "http://ocamlgraph.lri.fr/")
2934 (synopsis "Graph library for OCaml")
2935 (description "OCamlgraph is a generic graph library for OCaml.")
2936 (license license:lgpl2.1)))
2937
2938 (define-public ocaml4.07-piqi
2939 (package
2940 (name "ocaml4.07-piqi")
2941 (version "0.7.7")
2942 (source (origin
2943 (method url-fetch)
2944 (uri (string-append "https://github.com/alavrik/piqi-ocaml/"
2945 "archive/v" version ".tar.gz"))
2946 (file-name (string-append name "-" version ".tar.gz"))
2947 (sha256
2948 (base32
2949 "1l0b4saxmwqgw9mb10mwrz31lvpj3l0abh3cwarqp0x4vdrzshbh"))))
2950 (build-system ocaml-build-system)
2951 (arguments
2952 `(#:make-flags
2953 (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
2954 (string-append "SHELL=" (assoc-ref %build-inputs "bash")
2955 "/bin/sh"))
2956 #:phases
2957 (modify-phases %standard-phases
2958 (delete 'configure))
2959 #:ocaml ,ocaml-4.07
2960 #:findlib ,ocaml4.07-findlib))
2961 (native-inputs
2962 `(("which" ,which)
2963 ("protobuf" ,protobuf))) ; for tests
2964 (propagated-inputs
2965 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
2966 ("ocaml-piqilib" ,ocaml4.07-piqilib)
2967 ("ocaml-stdlib-shims" ,(package-with-ocaml4.07 ocaml-stdlib-shims))))
2968 (home-page "https://github.com/alavrik/piqi-ocaml")
2969 (synopsis "Protocol serialization system for OCaml")
2970 (description "Piqi is a multi-format data serialization system for OCaml.
2971 It provides a uniform interface for serializing OCaml data structures to JSON,
2972 XML and Protocol Buffers formats.")
2973 (license license:asl2.0)))
2974
2975 (define-public bap
2976 (package
2977 (name "bap")
2978 (version "2.0.0")
2979 (home-page "https://github.com/BinaryAnalysisPlatform/bap")
2980 (source (origin
2981 (method git-fetch)
2982 (uri (git-reference
2983 (url home-page)
2984 (commit (string-append "v" version))))
2985 (file-name (git-file-name name version))
2986 (sha256
2987 (base32
2988 "0lb9xkfp67wjjqr75p6krivmjra7l5673236v9ny4gp0xi0755bk"))))
2989 (build-system ocaml-build-system)
2990 (native-inputs
2991 `(("ocaml-oasis" ,(package-with-ocaml4.07 ocaml-oasis))
2992 ("clang" ,clang-3.8)
2993 ("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
2994 (propagated-inputs
2995 `(("camlzip" ,(package-with-ocaml4.07 camlzip))
2996 ("ocaml-bitstring" ,(package-with-ocaml4.07 ocaml-bitstring))
2997 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
2998 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
2999 ("ocaml-ezjsonm" ,ocaml4.07-ezjsonm)
3000 ("ocaml-fileutils" ,(package-with-ocaml4.07 ocaml-fileutils))
3001 ("ocaml-frontc" ,(package-with-ocaml4.07 ocaml-frontc))
3002 ("ocaml-graph" ,(package-with-ocaml4.07 ocaml-graph))
3003 ("ocaml-ocurl" ,(package-with-ocaml4.07 ocaml-ocurl))
3004 ("ocaml-piqi" ,ocaml4.07-piqi)
3005 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
3006 ("ocaml-utop" ,ocaml4.07-utop)
3007 ("ocaml-uuidm" ,(package-with-ocaml4.07 ocaml-uuidm))
3008 ("ocaml-uri" ,ocaml4.07-uri)
3009 ("ocaml-zarith" ,(package-with-ocaml4.07 ocaml-zarith))))
3010 (inputs
3011 `(("gmp" ,gmp)
3012 ("llvm" ,llvm-3.8)
3013 ("ncurses" ,ncurses)))
3014 (arguments
3015 `(#:use-make? #t
3016 #:phases
3017 (modify-phases %standard-phases
3018 (add-before 'configure 'fix-ncurses
3019 (lambda _
3020 (substitute* "oasis/llvm"
3021 (("-lcurses") "-lncurses"))
3022 #t))
3023 (replace 'configure
3024 (lambda* (#:key outputs inputs #:allow-other-keys)
3025 ;; add write for user, to prevent a failure in the install phase
3026 (for-each
3027 (lambda (file)
3028 (let ((stat (stat file)))
3029 (chmod file (+ #o200 (stat:mode stat)))))
3030 (find-files "." "."))
3031 (invoke "./configure" "--prefix"
3032 (assoc-ref outputs "out")
3033 "--libdir"
3034 (string-append
3035 (assoc-ref outputs "out")
3036 "/lib/ocaml/site-lib")
3037 "--with-llvm-version=3.8"
3038 "--with-llvm-config=llvm-config"
3039 "--enable-everything"))))
3040 #:ocaml ,ocaml-4.07
3041 #:findlib ,ocaml4.07-findlib))
3042 (synopsis "Binary Analysis Platform")
3043 (description "Binary Analysis Platform is a framework for writing program
3044 analysis tools, that target binary files. The framework consists of a plethora
3045 of libraries, plugins, and frontends. The libraries provide code reusability,
3046 the plugins facilitate extensibility, and the frontends serve as entry points.")
3047 (license license:expat)))
3048
3049 (define-public ocaml-camomile
3050 (package
3051 (name "ocaml-camomile")
3052 (version "1.0.2")
3053 (home-page "https://github.com/yoriyuki/Camomile")
3054 (source (origin
3055 (method url-fetch)
3056 (uri (string-append home-page "/releases/download/" version
3057 "/camomile-" version ".tbz"))
3058 (sha256
3059 (base32
3060 "0chn7ldqb3wyf95yhmsxxq65cif56smgz1mhhc7m0dpwmyq1k97h"))))
3061 (build-system dune-build-system)
3062 (arguments
3063 `(#:build-flags (list "--profile" "release")
3064 #:test-target "camomile-test"
3065 #:tests? #f; Tests fail, see https://github.com/yoriyuki/Camomile/issues/82
3066 #:phases
3067 (modify-phases %standard-phases
3068 (add-before 'build 'fix-usr-share
3069 (lambda* (#:key outputs #:allow-other-keys)
3070 (substitute* '("Camomile/dune" "configure.ml")
3071 (("/usr/share") (string-append (assoc-ref outputs "out") "/share")))
3072 #t)))))
3073 (synopsis "Comprehensive Unicode library")
3074 (description "Camomile is a Unicode library for OCaml. Camomile provides
3075 Unicode character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about
3076 200 encodings, collation and locale-sensitive case mappings, and more. The
3077 library is currently designed for Unicode Standard 3.2.")
3078 ;; with an exception for linked libraries to use a different license
3079 (license license:lgpl2.0+)))
3080
3081 (define-public ocaml4.07-charinfo-width
3082 (package
3083 (name "ocaml4.07-charinfo-width")
3084 (version "1.1.0")
3085 (source (origin
3086 (method url-fetch)
3087 (uri (string-append "https://bitbucket.org/zandoye/charinfo_width"
3088 "/get/" version ".tar.gz"))
3089 (file-name (string-append name "-" version ".tar.gz"))
3090 (sha256
3091 (base32
3092 "00bv4p1yqs8y0z4z07wd9w9yyv669dikp9b04dcjbwpiy2wy0086"))))
3093 (build-system dune-build-system)
3094 (arguments
3095 `(#:ocaml ,ocaml-4.07
3096 #:findlib ,ocaml4.07-findlib))
3097 (propagated-inputs
3098 `(("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
3099 ("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))))
3100 (native-inputs
3101 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
3102 (properties
3103 `((upstream-name . "charInfo_width")))
3104 (home-page "https://bitbucket.org/zandoye/charinfo_width/")
3105 (synopsis "Determine column width for a character")
3106 (description "This module is implements purely in OCaml a character width
3107 function that follows the prototype of POSIX's wcwidth.")
3108 (license license:expat)))
3109
3110 (define-public ocaml4.07-zed
3111 (package
3112 (name "ocaml4.07-zed")
3113 (version "2.0.3")
3114 (source
3115 (origin
3116 (method git-fetch)
3117 (uri (git-reference
3118 (url "https://github.com/diml/zed.git")
3119 (commit version)))
3120 (file-name (git-file-name name version))
3121 (sha256
3122 (base32 "0pa9awinqr0plp4b2az78dwpvh01pwaljnn5ydg8mc6hi7rmir55"))))
3123 (build-system dune-build-system)
3124 (arguments
3125 `(#:jbuild? #t
3126 #:test-target "."
3127 #:ocaml ,ocaml-4.07
3128 #:findlib ,ocaml4.07-findlib))
3129 (propagated-inputs
3130 `(("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3131 ("ocaml-charinfo-width" ,ocaml4.07-charinfo-width)
3132 ("ocaml-react" ,(package-with-ocaml4.07 ocaml-react))))
3133 (home-page "https://github.com/diml/zed")
3134 (synopsis "Abstract engine for text editing in OCaml")
3135 (description "Zed is an abstract engine for text edition. It can be used
3136 to write text editors, edition widgets, readlines, etc. You just have to
3137 connect an engine to your inputs and rendering functions to get an editor.")
3138 (license license:bsd-3)))
3139
3140 (define-public ocaml4.07-lambda-term
3141 (package
3142 (name "ocaml4.07-lambda-term")
3143 (version "2.0.2")
3144 (source
3145 (origin
3146 (method git-fetch)
3147 (uri (git-reference
3148 (url "https://github.com/diml/lambda-term.git")
3149 (commit version)))
3150 (file-name (git-file-name name version))
3151 (sha256
3152 (base32 "0zcjy6fvf0d3i2ssz96asl889n3r6bplyzk7xvb2s3dkxbgcisyy"))))
3153 (build-system dune-build-system)
3154 (arguments
3155 `(#:build-flags (list "--profile" "release")
3156 #:tests? #f
3157 #:ocaml ,ocaml-4.07
3158 #:findlib ,ocaml4.07-findlib))
3159 (propagated-inputs
3160 `(("ocaml-lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3161 ("ocaml-lwt-log" ,(package-with-ocaml4.07 ocaml-lwt-log))
3162 ("ocaml-lwt-react" ,(package-with-ocaml4.07 ocaml-lwt-react))
3163 ("ocaml-zed" ,ocaml4.07-zed)))
3164 (inputs
3165 `(("libev" ,libev)))
3166 (home-page "https://github.com/diml/lambda-term")
3167 (synopsis "Terminal manipulation library for OCaml")
3168 (description "Lambda-Term is a cross-platform library for manipulating the
3169 terminal. It provides an abstraction for keys, mouse events, colors, as well as
3170 a set of widgets to write curses-like applications. The main objective of
3171 Lambda-Term is to provide a higher level functional interface to terminal
3172 manipulation than, for example, ncurses, by providing a native OCaml interface
3173 instead of bindings to a C library.")
3174 (license license:bsd-3)))
3175
3176 (define-public ocaml4.07-utop
3177 (package
3178 (name "ocaml4.07-utop")
3179 (version "2.4.3")
3180 (source
3181 (origin
3182 (method git-fetch)
3183 (uri (git-reference
3184 (url "https://github.com/ocaml-community/utop.git")
3185 (commit version)))
3186 (file-name (git-file-name name version))
3187 (sha256
3188 (base32 "1bl4943qpi3qy152dbdm5glhx19zsiylmn4rcxi8l66g58hikyjp"))))
3189 (build-system dune-build-system)
3190 (arguments
3191 `(#:jbuild? #t
3192 #:test-target "."
3193 #:ocaml ,ocaml-4.07
3194 #:findlib ,ocaml4.07-findlib))
3195 (native-inputs
3196 `(("cppo" ,(package-with-ocaml4.07 ocaml-cppo))))
3197 (propagated-inputs
3198 `(("lambda-term" ,ocaml4.07-lambda-term)
3199 ("lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3200 ("react" ,(package-with-ocaml4.07 ocaml-react))
3201 ("camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3202 ("zed" ,ocaml4.07-zed)))
3203 (home-page "https://github.com/ocaml-community/utop")
3204 (synopsis "Improved interface to the OCaml toplevel")
3205 (description "UTop is an improved toplevel for OCaml. It can run in a
3206 terminal or in Emacs. It supports line editing, history, real-time and context
3207 sensitive completion, colors, and more.")
3208 (license license:bsd-3)))
3209
3210 (define-public ocaml-integers
3211 (package
3212 (name "ocaml-integers")
3213 (version "0.3.0")
3214 (home-page "https://github.com/ocamllabs/ocaml-integers")
3215 (source (origin
3216 (method url-fetch)
3217 (uri (string-append home-page
3218 "/releases/download/v0.2.2/integers-"
3219 version ".tbz"))
3220 (file-name (string-append name "-" version ".tbz"))
3221 (sha256
3222 (base32
3223 "08b1ljw88ny3l0mdq6xmffjk8anfc77igryva5jz1p6f4f746ywk"))))
3224 (build-system ocaml-build-system)
3225 (arguments
3226 `(#:tests? #f; no tests
3227 #:build-flags (list "build")
3228 #:phases
3229 (modify-phases %standard-phases
3230 (delete 'configure))))
3231 (native-inputs
3232 `(("ocamlbuild" ,ocamlbuild)))
3233 (inputs
3234 `(("topkg" ,ocaml-topkg)
3235 ("opam" ,opam)))
3236 (synopsis "Various signed and unsigned integer types for OCaml")
3237 (description "The ocaml-integers library provides a number of 8-, 16-, 32-
3238 and 64-bit signed and unsigned integer types, together with aliases such as
3239 long and size_t whose sizes depend on the host platform.")
3240 (license license:expat)))
3241
3242 (define-public ocaml-ctypes
3243 (package
3244 (name "ocaml-ctypes")
3245 (version "0.14.0")
3246 (home-page "https://github.com/ocamllabs/ocaml-ctypes")
3247 (source (origin
3248 (method git-fetch)
3249 (uri (git-reference
3250 (url home-page)
3251 (commit version)))
3252 (file-name (git-file-name name version))
3253 (sha256
3254 (base32
3255 "1b2q3h63ngf4x9qp65qwapf2dg9q0mcdah6qjm2q0c7v2p5vysv9"))))
3256 (build-system ocaml-build-system)
3257 (arguments
3258 `(#:tests? #f; require an old lwt
3259 #:make-flags
3260 (list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
3261 #:phases
3262 (modify-phases %standard-phases
3263 (add-after 'unpack 'make-writable
3264 (lambda _
3265 (for-each
3266 (lambda (file)
3267 (let ((stat (stat file)))
3268 (chmod file (+ #o200 (stat:mode stat)))))
3269 (find-files "." "."))
3270 #t))
3271 (delete 'configure))))
3272 (native-inputs
3273 `(("pkg-config" ,pkg-config)))
3274 (inputs
3275 `(("libffi" ,libffi)
3276 ("ounit" ,ocaml-ounit)
3277 ("integers" ,ocaml-integers)
3278 ("lwt" ,ocaml-lwt)
3279 ("topkg" ,ocaml-topkg)
3280 ("opam" ,opam)))
3281 (synopsis "Library for binding to C libraries using pure OCaml")
3282 (description "Ctypes is a library for binding to C libraries using pure
3283 OCaml. The primary aim is to make writing C extensions as straightforward as
3284 possible. The core of ctypes is a set of combinators for describing the
3285 structure of C types -- numeric types, arrays, pointers, structs, unions and
3286 functions. You can use these combinators to describe the types of the
3287 functions that you want to call, then bind directly to those functions -- all
3288 without writing or generating any C!")
3289 (license license:expat)))
3290
3291 (define-public ocaml-ocb-stubblr
3292 (package
3293 (name "ocaml-ocb-stubblr")
3294 (version "0.1.1")
3295 (home-page "https://github.com/pqwy/ocb-stubblr")
3296 (source (origin
3297 (method url-fetch)
3298 (uri (string-append
3299 home-page "/releases/download/v0.1.1/ocb-stubblr-"
3300 version ".tbz"))
3301 (file-name (string-append name "-" version ".tbz"))
3302 (sha256
3303 (base32
3304 "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
3305 (build-system ocaml-build-system)
3306 (arguments
3307 `(#:build-flags (list "build" "--tests" "true")
3308 #:phases
3309 (modify-phases %standard-phases
3310 (delete 'configure)
3311 (add-before 'build 'fix-for-guix
3312 (lambda _
3313 (substitute* "src/ocb_stubblr.ml"
3314 ;; Do not fail when opam is not present or initialized
3315 (("error_msgf \"error running opam\"") "\"\"")
3316 ;; Guix doesn't have cc, but it has gcc
3317 (("\"cc\"") "\"gcc\""))
3318 #t)))))
3319 (inputs
3320 `(("topkg" ,ocaml-topkg)
3321 ("opam" ,opam)))
3322 (native-inputs
3323 `(("astring" ,ocaml-astring)
3324 ("ocamlbuild" ,ocamlbuild)))
3325 (synopsis "OCamlbuild plugin for C stubs")
3326 (description "Ocb-stubblr is about ten lines of code that you need to
3327 repeat over, over, over and over again if you are using ocamlbuild to build
3328 OCaml projects that contain C stubs.")
3329 (license license:isc)))
3330
3331 (define-public ocaml-tsdl
3332 (package
3333 (name "ocaml-tsdl")
3334 (version "0.9.7")
3335 (home-page "https://erratique.ch/software/tsdl")
3336 (source (origin
3337 (method url-fetch)
3338 (uri (string-append home-page "/releases/tsdl-"
3339 version ".tbz"))
3340 (file-name (string-append name "-" version ".tar.gz"))
3341 (sha256
3342 (base32
3343 "1zwv0ixkigh1gzk5n49rwvz2f2m62jdkkqg40j7dclg4gri7691f"))))
3344 (build-system ocaml-build-system)
3345 (arguments
3346 `(#:build-flags '("build")
3347 #:tests? #f; tests require a display device
3348 #:phases
3349 (modify-phases %standard-phases
3350 (delete 'configure))))
3351 (native-inputs
3352 `(("ocamlbuild" ,ocamlbuild)
3353 ("ocaml-astring" ,ocaml-astring)
3354 ("opam" ,opam)
3355 ("pkg-config" ,pkg-config)))
3356 (inputs
3357 `(("topkg" ,ocaml-topkg)
3358 ("sdl2" ,sdl2)
3359 ("integers" ,ocaml-integers)
3360 ("ctypes" ,ocaml-ctypes)))
3361 (synopsis "Thin bindings to SDL for OCaml")
3362 (description "Tsdl is an OCaml library providing thin bindings to the
3363 cross-platform SDL C library.")
3364 (license license:isc)))
3365
3366 (define-public dedukti
3367 (package
3368 (name "dedukti")
3369 (version "2.6.0")
3370 (home-page "https://deducteam.github.io/")
3371 (source
3372 (origin
3373 (method git-fetch)
3374 (uri (git-reference
3375 (url "https://github.com/deducteam/dedukti.git")
3376 (commit (string-append "v" version))))
3377 (file-name (git-file-name name version))
3378 (sha256
3379 (base32
3380 "0frl3diff033i4fmq304b8wbsdnc9mvlhmwd7a3zd699ng2lzbxb"))))
3381 (inputs
3382 `(("menhir" ,ocaml-menhir)))
3383 (native-inputs
3384 `(("ocamlbuild" ,ocamlbuild)))
3385 (build-system ocaml-build-system)
3386 (arguments
3387 `(#:phases
3388 (modify-phases %standard-phases
3389 (delete 'configure)
3390 (replace 'build
3391 (lambda _
3392 (invoke "make")
3393 #t))
3394 (replace 'check
3395 (lambda _
3396 (invoke "make" "tests")
3397 #t))
3398 (add-before 'install 'set-binpath
3399 ;; Change binary path in the makefile
3400 (lambda _
3401 (let ((out (assoc-ref %outputs "out")))
3402 (substitute* "GNUmakefile"
3403 (("BINDIR = (.*)$")
3404 (string-append "BINDIR = " out "/bin"))))
3405 #t))
3406 (replace 'install
3407 (lambda _
3408 (invoke "make" "install")
3409 #t)))))
3410 (synopsis "Proof-checker for the λΠ-calculus modulo theory, an extension of
3411 the λ-calculus")
3412 (description "Dedukti is a proof-checker for the λΠ-calculus modulo
3413 theory. The λΠ-calculus is an extension of the simply typed λ-calculus with
3414 dependent types. The λΠ-calculus modulo theory is itself an extension of the
3415 λΠ-calculus where the context contains variable declaration as well as rewrite
3416 rules. This system is not designed to develop proofs, but to check proofs
3417 developed in other systems. In particular, it enjoys a minimalistic syntax.")
3418 (license license:cecill-c)))
3419
3420 (define-public emacs-dedukti-mode
3421 (let ((commit "d7c3505a1046187de3c3aeb144455078d514594e"))
3422 (package
3423 (name "emacs-dedukti-mode")
3424 (version (git-version "0" "0" commit))
3425 (home-page "https://github.com/rafoo/dedukti-mode")
3426 (source (origin
3427 (method git-fetch)
3428 (uri (git-reference
3429 (url home-page)
3430 (commit commit)))
3431 (sha256
3432 (base32
3433 "1842wikq24c8rg0ac84vb1qby9ng1nssxswyyni4kq85lng5lcrp"))
3434 (file-name (git-file-name name version))))
3435 (inputs
3436 `(("dedukti" ,dedukti)))
3437 (build-system emacs-build-system)
3438 (arguments
3439 '(#:phases
3440 (modify-phases %standard-phases
3441 (add-before 'install 'patch-dkpath
3442 (lambda _
3443 (let ((dkcheck-path (which "dkcheck")))
3444 (substitute* "dedukti-mode.el"
3445 (("dedukti-path \"(.*)\"")
3446 (string-append "dedukti-path \"" dkcheck-path "\"")))))))))
3447 (synopsis "Emacs major mode for Dedukti files")
3448 (description "This package provides an Emacs major mode for editing
3449 Dedukti files.")
3450 (license license:cecill-b))))
3451
3452 (define-public emacs-flycheck-dedukti
3453 (let ((commit "3dbff5646355f39d57a3ec514f560a6b0082a1cd"))
3454 (package
3455 (name "emacs-flycheck-dedukti")
3456 (version (git-version "0" "0" commit))
3457 (home-page "https://github.com/rafoo/flycheck-dedukti")
3458 (source (origin
3459 (method git-fetch)
3460 (uri (git-reference
3461 (url home-page)
3462 (commit commit)))
3463 (sha256
3464 (base32
3465 "1ffpxnwl3wx244n44mbw81g00nhnykd0lnid29f4aw1av7w6nw8l"))
3466 (file-name (git-file-name name version))))
3467 (build-system emacs-build-system)
3468 (inputs
3469 `(("dedukti-mode" ,emacs-dedukti-mode)
3470 ("flycheck-mode" ,emacs-flycheck)))
3471 (synopsis "Flycheck integration for the dedukti language")
3472 (description "This package provides a frontend for Flycheck to perform
3473 syntax checking on dedukti files.")
3474 (license license:cecill-b))))
3475
3476 (define-public ocaml4.07-ppx-inline-test
3477 (package
3478 (name "ocaml4.07-ppx-inline-test")
3479 (version "0.12.0")
3480 (home-page "https://github.com/janestreet/ppx_inline_test")
3481 (source
3482 (origin
3483 (method git-fetch)
3484 (uri (git-reference
3485 (url (string-append home-page ".git"))
3486 (commit (string-append "v" version))))
3487 (file-name (git-file-name name version))
3488 (sha256
3489 (base32
3490 "0nyz411zim94pzbxm2l2v2l9jishcxwvxhh142792g2s18r4vn50"))))
3491 (build-system dune-build-system)
3492 (arguments
3493 ;see home page README for further information
3494 `(#:tests? #f
3495 #:ocaml ,ocaml-4.07
3496 #:findlib ,ocaml4.07-findlib))
3497 (inputs
3498 `(("ocaml-base" ,ocaml4.07-base)
3499 ("ocaml-migrate-parsetree"
3500 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
3501 ("ocaml-compiler-libs" ,(package-with-ocaml4.07 ocaml-compiler-libs))
3502 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
3503 ("ocaml-stdio" ,ocaml4.07-stdio)
3504 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
3505 (properties `((upstream-name . "ppx_inline_test")))
3506 (synopsis "Syntax extension for writing in-line tests in ocaml code")
3507 (description "This package contains a syntax extension for writing
3508 in-line tests in ocaml code. It is part of Jane Street's PPX rewriters
3509 collection.")
3510 (license license:expat)))
3511
3512 (define-public ocaml-bindlib
3513 (package
3514 (name "ocaml-bindlib")
3515 (version "5.0.1")
3516 (source
3517 (origin
3518 (method git-fetch)
3519 (uri (git-reference
3520 (url "https://github.com/rlepigre/ocaml-bindlib.git")
3521 (commit (string-append "ocaml-bindlib_" version))))
3522 (file-name (git-file-name name version))
3523 (sha256
3524 (base32
3525 "1f8kr81w8vsi4gv61xn1qbc6zrzkjp8l9ix0942vjh4gjxc74v75"))))
3526 (build-system ocaml-build-system)
3527 (arguments
3528 `(#:tests? #f ;no tests
3529 #:use-make? #t
3530 #:phases
3531 (modify-phases %standard-phases
3532 (delete 'configure)
3533 (replace 'build
3534 (lambda _
3535 (invoke "make")))
3536 (replace 'install
3537 (lambda _
3538 (invoke "make" "install"))))))
3539 (native-inputs
3540 `(("ocamlbuild" ,ocamlbuild)
3541 ("ocaml-findlib" ,ocaml-findlib)))
3542 (home-page "https://rlepigre.github.io/ocaml-bindlib/")
3543 (synopsis "OCaml Bindlib library for bound variables")
3544 (description "Bindlib is a library allowing the manipulation of data
3545 structures with bound variables. It is particularly useful when writing ASTs
3546 for programming languages, but also for manipulating terms of the λ-calculus
3547 or quantified formulas.")
3548 (license license:gpl3+)))
3549
3550 (define-public ocaml4.07-earley
3551 (package
3552 (name "ocaml4.07-earley")
3553 (version "2.0.0")
3554 (home-page "https://github.com/rlepigre/ocaml-earley")
3555 (source
3556 (origin
3557 (method git-fetch)
3558 (uri (git-reference
3559 (url (string-append home-page ".git"))
3560 (commit version)))
3561 (file-name (git-file-name name version))
3562 (sha256
3563 (base32
3564 "18k7bi7krc4bvqnhijz1q0pfr0nfahghfjifci8rh1q4i5zd0xz5"))))
3565 (build-system dune-build-system)
3566 (arguments
3567 `(#:test-target "."
3568 #:ocaml ,ocaml-4.07
3569 #:findlib ,ocaml4.07-findlib))
3570 (synopsis "Parsing library based on Earley Algorithm")
3571 (description "Earley is a parser combinator library base on Earley's
3572 algorithm. It is intended to be used in conjunction with an OCaml syntax
3573 extension which allows the definition of parsers inside the language. There
3574 is also support for writing OCaml syntax extensions in a camlp4 style.")
3575 (license license:cecill-b)))
3576
3577 (define-public ocaml-timed
3578 (package
3579 (name "ocaml-timed")
3580 (version "1.0")
3581 (home-page "https://github.com/rlepigre/ocaml-timed")
3582 (source (origin
3583 (method git-fetch)
3584 (uri (git-reference
3585 (url (string-append home-page ".git"))
3586 (commit (string-append name "_" version))))
3587 (sha256
3588 (base32
3589 "0hfxz710faxy5yk97bkfnw87r732jcxxhmjppwrbfdb6pd0wks96"))
3590 (file-name (git-file-name name version))))
3591 (build-system ocaml-build-system)
3592 (arguments
3593 '(#:phases
3594 (modify-phases %standard-phases
3595 (delete 'configure)
3596 (replace 'build
3597 (lambda _
3598 (invoke "make")))
3599 (replace 'install
3600 (lambda _
3601 (invoke "make" "install")))
3602 (replace 'check
3603 (lambda _
3604 (invoke "make" "tests"))))))
3605 (synopsis "Timed references for imperative state")
3606 (description "Timed references for imperative state. This module provides
3607 an alternative type for references (or mutable cells) supporting undo/redo
3608 operations. In particular, an abstract notion of time is used to capture the
3609 state of the references at any given point, so that it can be restored. Note
3610 that usual reference operations only have a constant time / memory overhead
3611 (compared to those of the standard library).
3612
3613 Moreover, we provide an alternative implementation based on the references
3614 of the standard library (Pervasives module). However, it is less efficient
3615 than the first one.")
3616 (license license:expat)))
3617
3618 (define-public ocaml-biniou
3619 (package
3620 (name "ocaml-biniou")
3621 (version "1.2.1")
3622 (home-page "https://github.com/mjambon/biniou")
3623 (source
3624 (origin
3625 (method git-fetch)
3626 (uri (git-reference
3627 (url (string-append home-page ".git"))
3628 (commit version)))
3629 (file-name (git-file-name name version))
3630 (sha256
3631 (base32
3632 "0x2kiy809n1j0yf32l7hj102y628jp5jdrkbi3z7ld8jq04h1790"))))
3633 (build-system dune-build-system)
3634 (arguments
3635 `(#:phases
3636 (modify-phases %standard-phases
3637 (add-before 'build 'make-writable
3638 (lambda _
3639 (for-each
3640 (lambda (file)
3641 (chmod file #o644))
3642 (find-files "." "."))
3643 #t)))))
3644 (inputs
3645 `(("ocaml-easy-format" ,ocaml-easy-format)))
3646 (native-inputs
3647 `(("which" ,which)))
3648 (synopsis "Data format designed for speed, safety, ease of use and backward
3649 compatibility")
3650 (description "Biniou (pronounced \"be new\" is a binary data format
3651 designed for speed, safety, ease of use and backward compatibility as
3652 protocols evolve. Biniou is vastly equivalent to JSON in terms of
3653 functionality but allows implementations several times faster (4 times faster
3654 than yojson), with 25-35% space savings.")
3655 (license license:bsd-3)))
3656
3657 (define-public ocaml-yojson
3658 (package
3659 (name "ocaml-yojson")
3660 (version "1.7.0")
3661 (home-page "https://github.com/ocaml-community/yojson")
3662 (source
3663 (origin
3664 (method git-fetch)
3665 (uri (git-reference
3666 (url (string-append home-page ".git"))
3667 (commit version)))
3668 (file-name (git-file-name name version))
3669 (sha256
3670 (base32
3671 "0zncsw8bgbkh1pfvfc7nh628hfj84lgx6jwhp9ashj3z1z0w3xjn"))))
3672 (build-system dune-build-system)
3673 (arguments
3674 `(#:test-target "."))
3675 (inputs
3676 `(("ocaml-biniou" ,ocaml-biniou)
3677 ("ocaml-easy-format" ,ocaml-easy-format)))
3678 (native-inputs
3679 `(("ocaml-alcotest" ,ocaml-alcotest)
3680 ("ocaml-cppo" ,ocaml-cppo)))
3681 (synopsis "Low-level JSON library for OCaml")
3682 (description "Yojson is an optimized parsing and printing library for the
3683 JSON format. It addresses a few shortcomings of json-wheel including 2x
3684 speedup, polymorphic variants and optional syntax for tuples and variants.
3685 @code{ydump} is a pretty printing command-line program provided with the
3686 yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
3687 serializers and deserializers from type definitions.")
3688 (license license:bsd-3)))
3689
3690 (define-public ocaml-craml
3691 (package
3692 (name "ocaml-craml")
3693 (version "1.0.0")
3694 (home-page "https://github.com/realworldocaml/craml")
3695 (source
3696 (origin
3697 (method git-fetch)
3698 (uri (git-reference
3699 (url (string-append home-page ".git"))
3700 (commit version)))
3701 (file-name (git-file-name name version))
3702 (sha256
3703 (base32
3704 "197xjp4vmzdymf2ndinw271ihpf45h04mx8gqj8ypspxdr5fj1a5"))))
3705 (build-system dune-build-system)
3706 (inputs
3707 `(("ocaml-fmt" ,ocaml-fmt)
3708 ("ocaml-astring" ,ocaml-astring)
3709 ("ocaml-logs" ,ocaml-logs)
3710 ("ocaml-cmdliner" ,ocaml-cmdliner)))
3711 (synopsis
3712 "CRAM-testing framework for testing command line applications")
3713 (description "CRAM is a is functional testing framework for command line
3714 applications. @code{craml} is freely inspired by the
3715 Mercurial's @code{https://www.selenic.com/blog/?p=663, unified test
3716 format}. @code{craml} is released as a single binary (called @code{craml}).")
3717 (license license:isc)))
3718
3719 (define-public ocaml4.07-merlin
3720 (package
3721 (name "ocaml4.07-merlin")
3722 (version "3.2.2")
3723 (home-page "https://ocaml.github.io/merlin/")
3724 (source
3725 (origin
3726 (method git-fetch)
3727 (uri (git-reference
3728 (url "https://github.com/ocaml/merlin.git")
3729 (commit (string-append "v" version))))
3730 (file-name (git-file-name name version))
3731 (sha256
3732 (base32
3733 "15ssgmwdxylbwhld9p1cq8x6kadxyhll5bfyf11dddj6cldna3hb"))))
3734 (build-system dune-build-system)
3735 (inputs
3736 `(("ocaml-biniou" ,(package-with-ocaml4.07 ocaml-biniou))
3737 ("ocaml-yojson" ,(package-with-ocaml4.07 ocaml-yojson))
3738 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))))
3739 (native-inputs
3740 `(("ocaml-findlib" ,ocaml-findlib)))
3741 (arguments
3742 `(#:jbuild? #t
3743 #:tests? #f ;; Errors in tests in version 3.2.2
3744 #:ocaml ,ocaml-4.07
3745 #:findlib ,ocaml4.07-findlib))
3746 (synopsis "Context sensitive completion for OCaml in Vim and Emacs")
3747 (description "Merlin is an editor service that provides modern IDE
3748 features for OCaml. Emacs and Vim support is provided out-of-the-box.
3749 External contributors added support for Visual Studio Code, Sublime Text and
3750 Atom.")
3751 (license license:expat)))
3752
3753 (define-public ocaml4.07-gsl
3754 (package
3755 (name "ocaml4.07-gsl")
3756 (version "1.24.0")
3757 (source
3758 (origin
3759 (method url-fetch)
3760 (uri
3761 (string-append
3762 "https://github.com/mmottl/gsl-ocaml/releases/download/"
3763 version "/gsl-" version ".tbz"))
3764 (sha256
3765 (base32
3766 "1l5zkkkg8sglsihrbf10ivq9s8xzl1y6ag89i4jqpnmi4m43fy34"))))
3767 (build-system dune-build-system)
3768 (arguments
3769 `(#:test-target "."
3770 #:phases
3771 (modify-phases %standard-phases
3772 (add-after 'unpack 'fix-gsl-directory
3773 (lambda* (#:key inputs #:allow-other-keys)
3774 (substitute* "src/config/discover.ml"
3775 (("/usr") (assoc-ref inputs "gsl")))
3776 #t)))
3777 #:ocaml ,ocaml-4.07
3778 #:findlib ,ocaml4.07-findlib
3779 #:dune ,ocaml4.07-dune))
3780 (inputs
3781 `(("gsl" ,gsl)))
3782 (propagated-inputs
3783 `(("ocaml-base" ,ocaml4.07-base)
3784 ("ocaml-stdio" ,ocaml4.07-stdio)))
3785 (home-page "https://mmottl.github.io/gsl-ocaml")
3786 (synopsis "Bindings to the GNU Scientific Library")
3787 (description
3788 "GSL-OCaml is an interface to the @dfn{GNU scientific library} (GSL) for
3789 the OCaml language.")
3790 (license license:gpl3+)))
3791
3792 (define-public ocaml4.07-gsl-1
3793 (package
3794 (inherit ocaml4.07-gsl)
3795 (version "1.19.3")
3796 (source (origin
3797 (method url-fetch)
3798 (uri (string-append "https://github.com/mmottl/gsl-ocaml"
3799 "/releases/download/v"
3800 version "/gsl-ocaml-" version ".tar.gz"))
3801 (sha256
3802 (base32
3803 "0nzp43hp8pbjqkrxnwp5lgjrabxayf61h18fjaydi0s5faq6f3xh"))))
3804 (build-system ocaml-build-system)
3805 (inputs
3806 `(("gsl" ,gsl)))
3807 (native-inputs
3808 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
3809 (arguments
3810 `(#:ocaml ,ocaml-4.07
3811 #:findlib ,ocaml4.07-findlib))
3812 (propagated-inputs '())))
3813
3814 (define-public cubicle
3815 (package
3816 (name "cubicle")
3817 (version "1.1.2")
3818 (source (origin
3819 (method url-fetch)
3820 (uri (string-append "http://cubicle.lri.fr/cubicle-"
3821 version ".tar.gz"))
3822 (sha256
3823 (base32
3824 "10kk80jdmpdvql88sdjsh7vqzlpaphd8vip2lp47aarxjkwjlz1q"))))
3825 (build-system gnu-build-system)
3826 (native-inputs
3827 `(("automake" ,automake)
3828 ("ocaml" ,ocaml)
3829 ("which" ,(@@ (gnu packages base) which))))
3830 (propagated-inputs
3831 `(("ocaml-num" ,ocaml-num)
3832 ("z3" ,z3)))
3833 (arguments
3834 `(#:configure-flags (list "--with-z3")
3835 #:make-flags (list "QUIET=")
3836 #:tests? #f
3837 #:phases
3838 (modify-phases %standard-phases
3839 (add-before 'configure 'configure-for-release
3840 (lambda _
3841 (substitute* "Makefile.in"
3842 (("SVNREV=") "#SVNREV="))
3843 #t))
3844 (add-before 'configure 'fix-/bin/sh
3845 (lambda _
3846 (substitute* "configure"
3847 (("-/bin/sh") (string-append "-" (which "sh"))))
3848 #t))
3849 (add-before 'configure 'fix-smt-z3wrapper.ml
3850 (lambda _
3851 (substitute* "Makefile.in"
3852 (("\\\\n") ""))
3853 #t))
3854 (add-before 'configure 'fix-ocaml-num
3855 (lambda* (#:key inputs #:allow-other-keys)
3856 (substitute* "Makefile.in"
3857 (("= \\$\\(FUNCTORYLIB\\)")
3858 (string-append "= -I "
3859 (assoc-ref inputs "ocaml-num")
3860 "/lib/ocaml/site-lib"
3861 " $(FUNCTORYLIB)")))
3862 #t)))))
3863 (home-page "http://cubicle.lri.fr/")
3864 (synopsis "Model checker for array-based systems")
3865 (description "Cubicle is a model checker for verifying safety properties
3866 of array-based systems. This is a syntactically restricted class of
3867 parametrized transition systems with states represented as arrays indexed by
3868 an arbitrary number of processes. Cache coherence protocols and mutual
3869 exclusion algorithms are typical examples of such systems.")
3870 (license license:asl2.0)))
3871
3872 (define-public ocaml4.07-sexplib0
3873 (package
3874 (name "ocaml4.07-sexplib0")
3875 (version "0.11.0")
3876 (home-page "https://github.com/janestreet/sexplib0")
3877 (source
3878 (origin
3879 (method git-fetch)
3880 (uri (git-reference
3881 (url (string-append home-page ".git"))
3882 (commit (string-append "v" version))))
3883 (file-name (git-file-name name version))
3884 (sha256
3885 (base32
3886 "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
3887 (build-system dune-build-system)
3888 (arguments
3889 `(#:tests? #f ;no tests
3890 #:ocaml ,ocaml-4.07
3891 #:findlib ,ocaml4.07-findlib))
3892 (synopsis "Library containing the definition of S-expressions and some
3893 base converters")
3894 (description "Part of Jane Street's Core library The Core suite of
3895 libraries is an industrial strength alternative to OCaml's standard library
3896 that was developed by Jane Street, the largest industrial user of OCaml.")
3897 (license license:expat)))
3898
3899 (define-public ocaml4.07-parsexp
3900 (package
3901 (name "ocaml4.07-parsexp")
3902 (version "0.11.0")
3903 (home-page "https://github.com/janestreet/parsexp")
3904 (source
3905 (origin
3906 (method git-fetch)
3907 (uri (git-reference
3908 (url (string-append home-page ".git"))
3909 (commit (string-append "v" version))))
3910 (file-name (git-file-name name version))
3911 (sha256
3912 (base32
3913 "1nyq23s5igd8cf3n4qxprjvhbmb6ighb3fy5mw7hxl0mdgsw5fvz"))))
3914 (build-system dune-build-system)
3915 (arguments
3916 `(#:ocaml ,ocaml-4.07
3917 #:findlib ,ocaml4.07-findlib))
3918 (inputs
3919 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3920 (synopsis "S-expression parsing library")
3921 (description
3922 "This library provides generic parsers for parsing S-expressions from
3923 strings or other medium.
3924
3925 The library is focused on performances but still provide full generic
3926 parsers that can be used with strings, bigstrings, lexing buffers,
3927 character streams or any other sources effortlessly.
3928
3929 It provides three different class of parsers:
3930 @itemize
3931 @item
3932 the normal parsers, producing [Sexp.t] or [Sexp.t list] values
3933 @item
3934 the parsers with positions, building compact position sequences so
3935 that one can recover original positions in order to report properly
3936 located errors at little cost
3937 @item
3938 the Concrete Syntax Tree parsers, produce values of type
3939 @code{Parsexp.Cst.t} which record the concrete layout of the s-expression
3940 syntax, including comments
3941 @end itemize
3942
3943 This library is portable and doesn't provide IO functions. To read
3944 s-expressions from files or other external sources, you should use
3945 parsexp_io.")
3946 (license license:expat)))
3947
3948 (define-public ocaml4.07-sexplib
3949 (package
3950 (name "ocaml4.07-sexplib")
3951 (version "0.11.0")
3952 (home-page "https://github.com/janestreet/sexplib")
3953 (source
3954 (origin
3955 (method git-fetch)
3956 (uri (git-reference
3957 (url (string-append home-page ".git"))
3958 (commit (string-append "v" version))))
3959 (file-name (git-file-name name version))
3960 (sha256
3961 (base32
3962 "1qfl0m04rpcjvc4yw1hzh6r16jpwmap0sa9ax6zjji67dz4szpyb"))))
3963 (build-system dune-build-system)
3964 (arguments
3965 `(#:ocaml ,ocaml-4.07
3966 #:findlib ,ocaml4.07-findlib))
3967 (propagated-inputs
3968 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
3969 ("ocaml-parsexp" ,ocaml4.07-parsexp)
3970 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3971 (synopsis
3972 "Library for serializing OCaml values to and from S-expressions")
3973 (description
3974 "This package is part of Jane Street's Core library. Sexplib contains
3975 functionality for parsing and pretty-printing s-expressions.")
3976 (license license:expat)))
3977
3978 (define-public ocaml4.07-base
3979 (package
3980 (name "ocaml4.07-base")
3981 (version "0.11.1")
3982 (home-page "https://github.com/janestreet/base")
3983 (source
3984 (origin
3985 (method git-fetch)
3986 (uri (git-reference
3987 (url (string-append home-page ".git"))
3988 (commit (string-append "v" version))))
3989 (file-name (git-file-name name version))
3990 (sha256
3991 (base32
3992 "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
3993 (build-system dune-build-system)
3994 (propagated-inputs
3995 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3996 (arguments
3997 `(#:phases
3998 (modify-phases %standard-phases
3999 (replace 'build
4000 ;; make warnings non fatal (jbuilder behaviour)
4001 (lambda _
4002 (invoke "dune" "build" "@install" "--profile=release"))))
4003 #:ocaml ,ocaml-4.07
4004 #:findlib ,ocaml4.07-findlib))
4005 (synopsis
4006 "Full standard library replacement for OCaml")
4007 (description
4008 "Base is a complete and portable alternative to the OCaml standard
4009 library. It provides all standard functionalities one would expect
4010 from a language standard library. It uses consistent conventions
4011 across all of its module.
4012
4013 Base aims to be usable in any context. As a result system dependent
4014 features such as I/O are not offered by Base. They are instead
4015 provided by companion libraries such as
4016 @url{https://github.com/janestreet/stdio, ocaml-stdio}.")
4017 (license license:expat)))
4018
4019 (define-public ocaml-compiler-libs
4020 (package
4021 (name "ocaml-compiler-libs")
4022 (version "0.11.0")
4023 (home-page "https://github.com/janestreet/ocaml-compiler-libs")
4024 (source
4025 (origin
4026 (method git-fetch)
4027 (uri (git-reference
4028 (url (string-append home-page ".git"))
4029 (commit (string-append "v" version))))
4030 (file-name (git-file-name name version))
4031 (sha256
4032 (base32
4033 "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
4034 (build-system dune-build-system)
4035 (arguments
4036 '(#:tests? #f)) ;no tests
4037 (properties `((upstream-name . "ocaml-compiler-libs")))
4038 (synopsis "Compiler libraries repackaged")
4039 (description "This package simply repackages the OCaml compiler libraries
4040 so they don't expose everything at toplevel. For instance, @code{Ast_helper}
4041 is now @code{Ocaml_common.Ast_helper}.")
4042 (license license:expat)))
4043
4044 (define-public ocaml4.07-stdio
4045 (package
4046 (name "ocaml4.07-stdio")
4047 (version "0.11.0")
4048 (home-page "https://github.com/janestreet/stdio")
4049 (source
4050 (origin
4051 (method git-fetch)
4052 (uri (git-reference
4053 (url (string-append home-page ".git"))
4054 (commit (string-append "v" version))))
4055 (file-name (git-file-name name version))
4056 (sha256
4057 (base32
4058 "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
4059 (build-system dune-build-system)
4060 (propagated-inputs
4061 `(("ocaml-base" ,ocaml4.07-base)
4062 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4063 (arguments
4064 `(#:tests? #f ;no tests
4065 #:ocaml ,ocaml-4.07
4066 #:findlib ,ocaml4.07-findlib))
4067 (synopsis "Standard IO library for OCaml")
4068 (description
4069 "Stdio implements simple input/output functionalities for OCaml. It
4070 re-exports the input/output functions of the OCaml standard libraries using
4071 a more consistent API.")
4072 (license license:expat)))
4073
4074 (define-public ocaml-ppx-derivers
4075 (package
4076 (name "ocaml-ppx-derivers")
4077 (version "1.2.1")
4078 (home-page
4079 "https://github.com/ocaml-ppx/ppx_derivers")
4080 (source
4081 (origin
4082 (method git-fetch)
4083 (uri (git-reference
4084 (url (string-append home-page ".git"))
4085 (commit version)))
4086 (file-name (git-file-name name version))
4087 (sha256
4088 (base32
4089 "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"))))
4090 (build-system dune-build-system)
4091 (arguments
4092 '(#:tests? #f)) ;no tests
4093 (properties `((upstream-name . "ppx_derivers")))
4094 (synopsis "Shared @code{@@deriving} plugin registry")
4095 (description
4096 "Ppx_derivers is a tiny package whose sole purpose is to allow
4097 ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
4098 as part of the same ocaml-migrate-parsetree driver.")
4099 (license license:bsd-3)))
4100
4101 (define-public ocaml4.07-ppxlib
4102 (package
4103 (name "ocaml4.07-ppxlib")
4104 (version "0.6.0")
4105 (home-page "https://github.com/ocaml-ppx/ppxlib")
4106 (source
4107 (origin
4108 (method git-fetch)
4109 (uri (git-reference
4110 (url (string-append home-page ".git"))
4111 (commit version)))
4112 (file-name (git-file-name name version))
4113 (sha256
4114 (base32
4115 "0my9x7sxb329h0lzshppdaawiyfbaw6g5f41yiy7bhl071rnlvbv"))))
4116 (build-system dune-build-system)
4117 (propagated-inputs
4118 `(("ocaml-base" ,ocaml4.07-base)
4119 ("ocaml-compiler-libs" ,(package-with-ocaml4.07 ocaml-compiler-libs))
4120 ("ocaml-migrate-parsetree"
4121 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4122 ("ocaml-ppx-derivers" ,(package-with-ocaml4.07 ocaml-ppx-derivers))
4123 ("ocaml-stdio" ,ocaml4.07-stdio)
4124 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
4125 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4126 (arguments
4127 `(#:phases
4128 (modify-phases %standard-phases
4129 (add-before 'check 'set-topfind
4130 (lambda* (#:key inputs #:allow-other-keys)
4131 ;; add the line #directory ".." at the top of each file
4132 ;; using #use "topfind";; to be able to find topfind
4133 (let* ((findlib-path (assoc-ref inputs "findlib"))
4134 (findlib-libdir
4135 (string-append findlib-path "/lib/ocaml/site-lib")))
4136 (substitute* '("test/base/test.ml"
4137 "test/code_path/test.ml"
4138 "test/deriving/test.ml"
4139 "test/driver/attributes/test.ml"
4140 "test/driver/non-compressible-suffix/test.ml"
4141 "test/driver/transformations/test.ml")
4142 (("#use \"topfind\";;" all)
4143 (string-append "#directory \"" findlib-libdir "\"\n"
4144 all))))
4145 #t)))
4146 #:ocaml ,ocaml-4.07
4147 #:findlib ,ocaml4.07-findlib))
4148 (synopsis
4149 "Base library and tools for ppx rewriters")
4150 (description
4151 "A comprehensive toolbox for ppx development. It features:
4152 @itemize
4153 @item an OCaml AST / parser / pretty-printer snapshot, to create a full frontend
4154 independent of the version of OCaml;
4155 @item a library for library for ppx rewriters in general, and type-driven code
4156 generators in particular;
4157 @item
4158 a feature-full driver for OCaml AST transformers;
4159 @item a quotation mechanism allowing to write values representing the
4160 OCaml AST in the OCaml syntax;
4161 @item a generator of open recursion classes from type definitions.
4162 @end itemize")
4163 (license license:expat)))
4164
4165 (define-public ocaml4.07-ppx-compare
4166 (package
4167 (name "ocaml4.07-ppx-compare")
4168 (version "0.11.1")
4169 (source (origin
4170 (method git-fetch)
4171 (uri (git-reference
4172 (url "https://github.com/janestreet/ppx_compare.git")
4173 (commit (string-append "v" version))))
4174 (file-name (git-file-name name version))
4175 (sha256
4176 (base32
4177 "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
4178 (build-system dune-build-system)
4179 (propagated-inputs
4180 `(("ocaml-base" ,ocaml4.07-base)
4181 ("ocaml-migrate-parsetree"
4182 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4183 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4184 (arguments
4185 `(#:ocaml ,ocaml-4.07
4186 #:findlib ,ocaml4.07-findlib))
4187 (properties `((upstream-name . "ppx_compare")))
4188 (home-page "https://github.com/janestreet/ppx_compare")
4189 (synopsis "Generation of comparison functions from types")
4190 (description "Generation of fast comparison functions from type expressions
4191 and definitions. Ppx_compare is a ppx rewriter that derives comparison functions
4192 from type representations. The scaffolded functions are usually much faster
4193 than ocaml's Pervasives.compare. Scaffolding functions also gives you more
4194 flexibility by allowing you to override them for a specific type and more safety
4195 by making sure that you only compare comparable values.")
4196 (license license:asl2.0)))
4197
4198 (define-public ocaml4.07-fieldslib
4199 (package
4200 (name "ocaml4.07-fieldslib")
4201 (version "0.11.0")
4202 (source (origin
4203 (method url-fetch)
4204 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4205 (version-major+minor version) "/files/"
4206 "fieldslib-v" version ".tar.gz"))
4207 (sha256
4208 (base32
4209 "12948pzxrl360lybm9fzyvplgcl87zjbn4m3sk1aw75zk85p1388"))))
4210 (build-system dune-build-system)
4211 (arguments
4212 ;; No tests
4213 `(#:tests? #f
4214 #:ocaml ,ocaml-4.07
4215 #:findlib ,ocaml4.07-findlib))
4216 (propagated-inputs
4217 `(("ocaml-base" ,ocaml4.07-base)
4218 ("ocaml-migrate-parsetree"
4219 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4220 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4221 (properties `((upstream-name . "fieldslib")))
4222 (home-page "https://github.com/janestreet/fieldslib")
4223 (synopsis "Syntax extension to record fields")
4224 (description "Syntax extension to define first class values representing
4225 record fields, to get and set record fields, iterate and fold over all fields
4226 of a record and create new record values.")
4227 (license license:asl2.0)))
4228
4229 (define-public ocaml4.07-variantslib
4230 (package
4231 (name "ocaml4.07-variantslib")
4232 (version "0.11.0")
4233 (source (origin
4234 (method url-fetch)
4235 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4236 (version-major+minor version)
4237 "/files/variantslib-v" version ".tar.gz"))
4238 (sha256
4239 (base32
4240 "1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
4241 (build-system dune-build-system)
4242 (arguments
4243 ;; No tests
4244 `(#:tests? #f
4245 #:ocaml ,ocaml-4.07
4246 #:findlib ,ocaml4.07-findlib))
4247 (propagated-inputs
4248 `(("ocaml-base" ,ocaml4.07-base)
4249 ("ocaml-migrate-parsetree"
4250 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4251 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4252 (properties `((upstream-name . "variantslib")))
4253 (home-page "https://github.com/janestreet/variantslib")
4254 (synopsis "OCaml variants as first class values")
4255 (description "The Core suite of libraries is an alternative to OCaml's
4256 standard library.")
4257 (license license:asl2.0)))
4258
4259 (define-public ocaml4.07-ppx-fields-conv
4260 (package
4261 (name "ocaml4.07-ppx-fields-conv")
4262 (version "0.11.0")
4263 (source (origin
4264 (method url-fetch)
4265 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4266 (version-major+minor version)
4267 "/files/ppx_fields_conv-v" version ".tar.gz"))
4268 (sha256
4269 (base32
4270 "07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
4271 (build-system dune-build-system)
4272 (propagated-inputs
4273 `(("ocaml-base" ,ocaml4.07-base)
4274 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
4275 ("ocaml-migrate-parsetree"
4276 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4277 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4278 (arguments
4279 `(#:ocaml ,ocaml-4.07
4280 #:findlib ,ocaml4.07-findlib))
4281 (properties `((upstream-name . "ppx_fields_conv")))
4282 (home-page "https://github.com/janestreet/ppx_fields_conv")
4283 (synopsis "Generation of accessor and iteration functions for ocaml records")
4284 (description "Ppx_fields_conv is a ppx rewriter that can be used to define
4285 first class values representing record fields, and additional routines, to get
4286 and set record fields, iterate and fold over all fields of a record and create
4287 new record values.")
4288 (license license:asl2.0)))
4289
4290 (define-public ocaml4.07-ppx-sexp-conv
4291 (package
4292 (name "ocaml4.07-ppx-sexp-conv")
4293 (version "0.11.2")
4294 (source (origin
4295 (method git-fetch)
4296 (uri (git-reference
4297 (url "https://github.com/janestreet/ppx_sexp_conv.git")
4298 (commit (string-append "v" version))))
4299 (file-name (git-file-name name version))
4300 (sha256
4301 (base32
4302 "0pqwnqy1xp309wvdcaax4lg02yk64lq2w03mbgfvf6ps5ry4gis9"))))
4303 (build-system dune-build-system)
4304 (propagated-inputs
4305 `(("ocaml-base" ,ocaml4.07-base)
4306 ("ocaml-migrate-parsetree"
4307 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4308 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4309 (arguments
4310 `(#:ocaml ,ocaml-4.07
4311 #:findlib ,ocaml4.07-findlib))
4312 (properties `((upstream-name . "ppx_sexp_conv")))
4313 (home-page "https://github.com/janestreet/ppx_sexp_conv")
4314 (synopsis "Generation of S-expression conversion functions from type definitions")
4315 (description "This package generates S-expression conversion functions from type
4316 definitions.")
4317 (license license:asl2.0)))
4318
4319 (define-public ocaml4.07-ppx-variants-conv
4320 (package
4321 (name "ocaml4.07-ppx-variants-conv")
4322 (version "0.11.1")
4323 (source (origin
4324 (method git-fetch)
4325 (uri (git-reference
4326 (url "https://github.com/janestreet/ppx_variants_conv.git")
4327 (commit (string-append "v" version))))
4328 (file-name (git-file-name name version))
4329 (sha256
4330 (base32
4331 "1yc0gsds5m2nv39zga8nnrca2n75rkqy5dz4xj1635ybz20hhbjd"))))
4332 (build-system dune-build-system)
4333 (propagated-inputs
4334 `(("ocaml-base" ,ocaml4.07-base)
4335 ("ocaml-variantslib" ,ocaml4.07-variantslib)
4336 ("ocaml-migrate-parsetree"
4337 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4338 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4339 (arguments
4340 `(#:ocaml ,ocaml-4.07
4341 #:findlib ,ocaml4.07-findlib))
4342 (properties
4343 `((upstream-name . "ppx_variants_conv")))
4344 (home-page
4345 "https://github.com/janestreet/ppx_variants_conv")
4346 (synopsis "Generation of accessor and iteration functions for OCaml variant types")
4347 (description
4348 "This package generates accessors and interation functions for OCaml
4349 variant types.")
4350 (license license:asl2.0)))
4351
4352 (define-public ocaml4.07-ppx-custom-printf
4353 (package
4354 (name "ocaml4.07-ppx-custom-printf")
4355 (version "0.11.0")
4356 (source (origin
4357 (method url-fetch)
4358 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4359 (version-major+minor version)
4360 "/files/ppx_custom_printf-v" version ".tar.gz"))
4361 (sha256
4362 (base32
4363 "11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))))
4364 (build-system dune-build-system)
4365 (propagated-inputs
4366 `(("ocaml-base" ,ocaml4.07-base)
4367 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4368 ("ocaml-migrate-parsetree"
4369 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4370 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4371 (arguments
4372 `(#:ocaml ,ocaml-4.07
4373 #:findlib ,ocaml4.07-findlib))
4374 (properties `((upstream-name . "ppx_custom_printf")))
4375 (home-page "https://github.com/janestreet/ppx_custom_printf")
4376 (synopsis "Printf-style format-strings for user-defined string conversion")
4377 (description "Extensions to printf-style format-strings for user-defined
4378 string conversion.")
4379 (license license:asl2.0)))
4380
4381 (define-public ocaml4.07-bin-prot
4382 (package
4383 (name "ocaml4.07-bin-prot")
4384 (version "0.11.0")
4385 (source (origin
4386 (method url-fetch)
4387 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4388 (version-major+minor version)
4389 "/files/bin_prot-v" version ".tar.gz"))
4390 (sha256
4391 (base32
4392 "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
4393 (build-system dune-build-system)
4394 (inputs
4395 `(("ocaml-base" ,ocaml4.07-base)
4396 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4397 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4398 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4399 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4400 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4401 ("ocaml-migrate-parsetree"
4402 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
4403 (arguments
4404 `(#:ocaml ,ocaml-4.07
4405 #:findlib ,ocaml4.07-findlib))
4406 (properties `((upstream-name . "bin_prot")))
4407 (home-page "https://github.com/janestreet/bin_prot")
4408 (synopsis "Binary protocol generator")
4409 (description "This library contains functionality for reading and writing
4410 OCaml-values in a type-safe binary protocol. It is extremely efficient,
4411 typically supporting type-safe marshalling and unmarshalling of even highly
4412 structured values at speeds sufficient to saturate a gigabit connection. The
4413 protocol is also heavily optimized for size, making it ideal for long-term
4414 storage of large amounts of data.")
4415 (license (list
4416 license:asl2.0
4417 license:bsd-3))))
4418
4419 (define-public ocaml-octavius
4420 (package
4421 (name "ocaml-octavius")
4422 (version "1.2.2")
4423 (source (origin
4424 (method git-fetch)
4425 (uri (git-reference
4426 (url "https://github.com/ocaml-doc/octavius")
4427 (commit (string-append "v" version))))
4428 (file-name (git-file-name name version))
4429 (sha256
4430 (base32
4431 "1c5m51xcn2jv42kjjpklr6g63sgx1k885wfdp1yr4wrmiaj9cbpx"))))
4432 (build-system dune-build-system)
4433 (arguments
4434 `(#:phases
4435 (modify-phases %standard-phases
4436 (add-before 'build 'make-writable
4437 (lambda _
4438 (for-each (lambda (file)
4439 (chmod file #o644))
4440 (find-files "." "."))
4441 #t)))))
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)))