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 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
18 ;;; Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com>
19 ;;; Copyright © 2020 divoplade <d@divoplade.fr>
20 ;;; Copyright © 2020 pukkamustard <pukkamustard@posteo.net>
21 ;;; Copyright © 2021 aecepoglu <aecepoglu@fastmail.fm>
22 ;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages ocaml)
40 #:use-module (gnu packages)
41 #:use-module (gnu packages algebra)
42 #:use-module (gnu packages autotools)
43 #:use-module (gnu packages base)
44 #:use-module (gnu packages bison)
45 #:use-module (gnu packages boost)
46 #:use-module (gnu packages compression)
47 #:use-module (gnu packages curl)
48 #:use-module (gnu packages emacs)
49 #:use-module (gnu packages emacs-xyz)
50 #:use-module (gnu packages flex)
51 #:use-module (gnu packages gcc)
52 #:use-module (gnu packages ghostscript)
53 #:use-module (gnu packages glib)
54 #:use-module (gnu packages gnome)
55 #:use-module (gnu packages gtk)
56 #:use-module (gnu packages guile)
57 #:use-module (gnu packages libevent)
58 #:use-module (gnu packages libffi)
59 #:use-module (gnu packages llvm)
60 #:use-module (gnu packages m4)
61 #:use-module (gnu packages maths)
62 #:use-module (gnu packages multiprecision)
63 #:use-module (gnu packages ncurses)
64 #:use-module (gnu packages pcre)
65 #:use-module (gnu packages perl)
66 #:use-module (gnu packages pkg-config)
67 #:use-module (gnu packages protobuf)
68 #:use-module (gnu packages python)
69 #:use-module (gnu packages python-xyz)
70 #:use-module (gnu packages rsync)
71 #:use-module (gnu packages sdl)
72 #:use-module (gnu packages sqlite)
73 #:use-module (gnu packages tex)
74 #:use-module (gnu packages texinfo)
75 #:use-module (gnu packages time)
76 #:use-module (gnu packages tls)
77 #:use-module (gnu packages virtualization)
78 #:use-module (gnu packages web)
79 #:use-module (gnu packages web-browsers)
80 #:use-module (gnu packages xml)
81 #:use-module (gnu packages xorg)
82 #:use-module (guix build-system dune)
83 #:use-module (guix build-system emacs)
84 #:use-module (guix build-system gnu)
85 #:use-module (guix build-system ocaml)
86 #:use-module (guix download)
87 #:use-module (guix git-download)
88 #:use-module ((guix licenses) #:prefix license:)
89 #:use-module (guix packages)
90 #:use-module (guix svn-download)
91 #:use-module (guix utils)
92 #:use-module ((srfi srfi-1) #:hide (zip)))
94 ;; A shortcut for files from ocaml forge. Downloaded files are computed from
95 ;; their number, not their name.
96 (define (ocaml-forge-uri name version file-number)
97 (string-append "https://forge.ocamlcore.org/frs/download.php/"
98 (number->string file-number) "/" name "-" version
101 (define (janestreet-origin name version hash)
102 (origin (method url-fetch)
103 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
104 (version-major+minor version) "/files/"
105 name "-v" (version-major+minor+point version)
107 (sha256 (base32 hash))))
109 (define-public camlboot
110 (let ((commit "506280c6e0813e0e794988151a8e46be55373ebc")
114 (version (git-version "0.0.0" revision commit))
118 (url "https://github.com/Ekdohibs/camlboot")
121 (file-name (git-file-name name version))
124 "0vimxl4karw9ih3npyc5rhxg85cjh6fqjbq3dzj7j2iymlhwfbkv"))
125 (modules '((guix build utils)))
128 ;; Remove bootstrap binaries and pre-generated source files,
129 ;; to ensure we actually bootstrap properly.
130 (for-each delete-file (find-files "ocaml-src" "^.depend$"))
131 (delete-file "ocaml-src/boot/ocamlc")
132 (delete-file "ocaml-src/boot/ocamllex")
136 (chmod file (logior (stat:mode (stat file)) #o200)))
137 (find-files "." "."))))))
138 (build-system gnu-build-system)
140 `(#:make-flags (list "_boot/ocamlc") ; build target
141 #:tests? #f ; no tests
143 (modify-phases %standard-phases
145 (add-before 'build 'no-autocompile
147 ;; prevent a guile warning
148 (setenv "GUILE_AUTO_COMPILE" "0")))
150 (lambda* (#:key outputs #:allow-other-keys)
151 (let* ((out (assoc-ref outputs "out"))
152 (bin (string-append out "/bin")))
154 (install-file "_boot/ocamlc" bin)
155 (rename-file "miniml/interp/lex.byte" "ocamllex")
156 (install-file "ocamllex" bin)))))))
158 `(("guile" ,guile-3.0)))
160 `((max-silent-time . 14400))) ; 4 hours, expected even on x86_64
161 (home-page "https://github.com/Ekdohibs/camlboot")
162 (synopsis "OCaml source bootstrap")
163 (description "OCaml is written in OCaml. Its sources contain a pre-compiled
164 bytecode version of @command{ocamlc} and @command{ocamllex} that are used to
165 build the next version of the compiler. Camlboot implements a bootstrap for
166 the OCaml compiler and provides a bootstrapped equivalent to these files.
168 It contains a compiler for a small subset of OCaml written in Guile Scheme,
169 an interpreter for OCaml written in that subset and a manually-written lexer
170 for OCaml. These elements eliminate the need for the binary bootstrap in
171 OCaml and can effectively bootstrap OCaml 4.07.
173 This package produces a native @command{ocamlc} and a bytecode @command{ocamllex}.")
174 (license license:expat))))
176 (define-public ocaml-4.11
183 "http://caml.inria.fr/pub/distrib/ocaml-"
184 (version-major+minor version)
185 "/ocaml-" version ".tar.xz"))
188 "0k4521c0p10c5ams6vjv5qkkjhmpkb0bfn04llcz46ah0f3r2jpa"))))
189 (build-system gnu-build-system)
191 (list (search-path-specification
192 (variable "OCAMLPATH")
193 (files (list "lib/ocaml" "lib/ocaml/site-lib")))
194 (search-path-specification
195 (variable "CAML_LD_LIBRARY_PATH")
196 (files (list "lib/ocaml/site-lib/stubslibs"
197 "lib/ocaml/site-lib/stublibs")))))
200 ("pkg-config" ,pkg-config)))
203 ;; For libiberty, needed for objdump support.
204 ("gcc:lib" ,(canonical-package gcc) "lib")
205 ("zlib" ,zlib))) ;also needed for objdump support
208 (modify-phases %standard-phases
209 (add-after 'unpack 'patch-/bin/sh-references
210 (lambda* (#:key inputs #:allow-other-keys)
211 (let* ((sh (string-append (assoc-ref inputs "bash")
213 (quoted-sh (string-append "\"" sh "\"")))
214 (with-fluids ((%default-port-encoding #f))
220 (format (current-error-port) "\
221 patch-/bin/sh-references: ~a: changing `\"/bin/sh\"' to `~a'~%"
224 (find-files "." "\\.ml$"))
228 (invoke "make" "-j" (number->string (parallel-job-count))
232 (with-directory-excursion "testsuite"
233 (invoke "make" "all")))))))
234 (home-page "https://ocaml.org/")
235 (synopsis "The OCaml programming language")
237 "OCaml is a general purpose industrial-strength programming language with
238 an emphasis on expressiveness and safety. Developed for more than 20 years at
239 Inria it benefits from one of the most advanced type systems and supports
240 functional, imperative and object-oriented styles of programming.")
241 ;; The compiler is distributed under qpl1.0 with a change to choice of
242 ;; law: the license is governed by the laws of France. The library is
243 ;; distributed under lgpl2.0.
244 (license (list license:qpl license:lgpl2.0))))
246 (define-public ocaml-4.09
253 "http://caml.inria.fr/pub/distrib/ocaml-"
254 (version-major+minor version)
255 "/ocaml-" version ".tar.xz"))
258 "1v3z5ar326f3hzvpfljg4xj8b9lmbrl53fn57yih1bkbx3gr3yzj"))))))
260 ;; This package is a bootstrap package for ocaml-4.07. It builds from camlboot,
261 ;; using the upstream sources for ocaml 4.07. It installs a bytecode ocamllex
262 ;; and ocamlc, the bytecode interpreter ocamlrun, and generated .depend files
263 ;; that we otherwise remove for bootstrap purposes.
264 (define ocaml-4.07-boot
271 "http://caml.inria.fr/pub/distrib/ocaml-"
272 (version-major+minor version)
273 "/ocaml-" version ".tar.xz"))
276 "1f07hgj5k45cylj1q3k5mk8yi02cwzx849b1fwnwia8xlcfqpr6z"))
277 (modules '((guix build utils)))
280 ;; Remove bootstrap binaries and pre-generated source files,
281 ;; to ensure we actually bootstrap properly.
282 (for-each delete-file (find-files "." "^.depend$"))
283 (delete-file "boot/ocamlc")
284 (delete-file "boot/ocamllex")))))
288 (modify-phases %standard-phases
289 (add-before 'configure 'copy-bootstrap
290 (lambda* (#:key inputs #:allow-other-keys)
291 (let ((camlboot (assoc-ref inputs "camlboot")))
292 (copy-file (string-append camlboot "/bin/ocamllex") "boot/ocamllex")
293 (copy-file (string-append camlboot "/bin/ocamlc") "boot/ocamlc")
294 (chmod "boot/ocamllex" #o755)
295 (chmod "boot/ocamlc" #o755))))
297 (lambda* (#:key outputs #:allow-other-keys)
298 (let* ((out (assoc-ref outputs "out"))
299 (mandir (string-append out "/share/man")))
300 (invoke "./configure"
302 "--mandir" mandir))))
304 (lambda* (#:key parallel-build? #:allow-other-keys)
305 (define* (make . args)
307 (append (if parallel-build?
308 `("-j" ,(number->string (parallel-job-count)))
311 ;; create empty .depend files because they are included by various
312 ;; Makefiles, and they have no rule to generate them.
313 (invoke "touch" ".depend" "stdlib/.depend" "byterun/.depend"
314 "tools/.depend" "lex/.depend" "asmrun/.depend"
315 "debugger/.depend" "ocamltest/.depend" "ocamldoc/.depend"
316 "ocamldoc/stdlib_non_prefixed/.depend"
317 "otherlibs/bigarray/.depend" "otherlibs/graph/.depend"
318 "otherlibs/raw_spacetime_lib/.depend" "otherlibs/str/.depend"
319 "otherlibs/systhreads/.depend" "otherlibs/threads/.depend"
320 "otherlibs/unix/.depend" "otherlibs/win32unix/.depend")
321 ;; We cannot build ocamldep until we have created all the .depend
322 ;; files, so replace it with ocamlc -depend.
323 (substitute* "tools/Makefile"
324 (("\\$\\(CAMLRUN\\) ./ocamldep") "../boot/ocamlc -depend"))
325 (substitute* '("otherlibs/graph/Makefile"
326 "otherlibs/systhreads/Makefile"
327 "otherlibs/threads/Makefile"
328 "otherlibs/unix/Makefile")
329 (("\\$\\(CAMLRUN\\) ../../tools/ocamldep")
330 "../../boot/ocamlc -depend"))
331 (substitute* '("otherlibs/bigarray/Makefile"
332 "otherlibs/raw_spacetime_lib/Makefile"
333 "otherlibs/str/Makefile"
334 "otherlibs/win32unix/Makefile")
335 (("\\$\\(CAMLRUN\\) \\$\\(ROOTDIR\\)/tools/ocamldep")
336 "../../boot/ocamlc -depend"))
337 ;; Ensure we copy needed file, so we can generate a proper .depend
338 (substitute* "ocamldoc/Makefile"
339 (("include Makefile.unprefix")
340 "include Makefile.unprefix
341 depend: $(STDLIB_MLIS) $(STDLIB_DEPS)"))
342 ;; Generate required tools for `alldepend'
343 (make "-C" "byterun" "depend")
344 (make "-C" "byterun" "all")
345 (copy-file "byterun/ocamlrun" "boot/ocamlrun")
347 (copy-file "yacc/ocamlyacc" "boot/ocamlyacc")
348 (make "-C" "stdlib" "sys.ml")
349 (make "-C" "stdlib" "CAMLDEP=../boot/ocamlc -depend" "depend")
350 ;; Build and copy files later used by `tools'
351 (make "-C" "stdlib" "COMPILER="
352 "CAMLC=../boot/ocamlc -use-prims ../byterun/primitives"
356 (copy-file file (string-append "boot/" (basename file))))
357 (cons* "stdlib/stdlib.cma" "stdlib/std_exit.cmo" "stdlib/camlheader"
358 (find-files "stdlib" ".*.cmi$")))
359 (symlink "../byterun/libcamlrun.a" "boot/libcamlrun.a")
360 ;; required for ocamldoc/stdlib_non_prefixed
361 (make "parsing/parser.mli")
362 ;; required for dependencies
364 "CAMLC=../boot/ocamlc -nostdlib -I ../boot -use-prims ../byterun/primitives -I .."
365 "make_opcodes" "cvt_emit")
366 ;; generate all remaining .depend files
368 (string-append "ocamllex=" (getcwd) "/boot/ocamlrun "
369 (getcwd) "/boot/ocamllex")
370 (string-append "CAMLDEP=" (getcwd) "/boot/ocamlc -depend")
371 (string-append "OCAMLDEP=" (getcwd) "/boot/ocamlc -depend")
372 (string-append "ocamldep=" (getcwd) "/boot/ocamlc -depend"))
374 (make "CAMLC=boot/ocamlc -nostdlib -I boot -use-prims byterun/primitives"
378 "CAMLC=../boot/ocamlc -strict-sequence -nostdlib -I ../boot -use-prims ../byterun/primitives"
381 (lambda* (#:key outputs #:allow-other-keys)
382 (let* ((out (assoc-ref outputs "out"))
383 (bin (string-append out "/bin"))
384 (depends (string-append out "/share/depends")))
387 (install-file "ocamlc" bin)
388 (install-file "lex/ocamllex" bin)
391 (let ((dir (string-append depends "/" (dirname file))))
393 (install-file file dir)))
394 (find-files "." "^\\.depend$"))))))))
396 `(("camlboot" ,camlboot)
398 ("pkg-config" ,pkg-config)))))
400 (define-public ocaml-4.07
402 (inherit ocaml-4.07-boot)
404 (substitute-keyword-arguments (package-arguments ocaml-4.09)
406 `(modify-phases ,phases
407 (add-before 'configure 'copy-bootstrap
408 (lambda* (#:key inputs #:allow-other-keys)
409 (let ((ocaml (assoc-ref inputs "ocaml")))
410 (copy-file (string-append ocaml "/bin/ocamllex") "boot/ocamllex")
411 (copy-file (string-append ocaml "/bin/ocamlc") "boot/ocamlc")
412 (chmod "boot/ocamllex" #o755)
413 (chmod "boot/ocamlc" #o755)
414 (let ((rootdir (getcwd)))
415 (with-directory-excursion (string-append ocaml "/share/depends")
418 (copy-file file (string-append rootdir "/" file)))
419 (find-files "." ".")))))))
421 (lambda* (#:key outputs #:allow-other-keys)
422 (let* ((out (assoc-ref outputs "out"))
423 (mandir (string-append out "/share/man")))
424 ;; Custom configure script doesn't recognize
425 ;; --prefix=<PREFIX> syntax (with equals sign).
426 (invoke "./configure"
428 "--mandir" mandir))))))))
430 `(("ocaml" ,ocaml-4.07-boot)
432 ("pkg-config" ,pkg-config)))))
434 (define-public ocaml ocaml-4.11)
436 (define-public ocamlbuild
444 (url "https://github.com/ocaml/ocamlbuild")
446 (file-name (git-file-name name version))
448 (base32 "1hb5mcdz4wv7sh1pj7dq9q4fgz5h3zg7frpiya6s8zd3ypwzq0kh"))))
449 (build-system ocaml-build-system)
452 (list (string-append "OCAMLBUILD_PREFIX=" (assoc-ref %outputs "out"))
453 (string-append "OCAMLBUILD_BINDIR=" (assoc-ref %outputs "out")
455 (string-append "OCAMLBUILD_LIBDIR=" (assoc-ref %outputs "out")
456 "/lib/ocaml/site-lib")
457 (string-append "OCAMLBUILD_MANDIR=" (assoc-ref %outputs "out")
460 (modify-phases %standard-phases
462 ; some failures because of changes in OCaml's error message formating
464 (home-page "https://github.com/ocaml/ocamlbuild")
465 (synopsis "OCaml build tool")
466 (description "OCamlbuild is a generic build tool, that has built-in rules
467 for building OCaml library and programs.")
468 (license license:lgpl2.1+)))
470 (define-public camlidl
478 (url "https://github.com/xavierleroy/camlidl")
479 (commit "camlidl109")))
481 (base32 "0zrkaq7fk23b2b9vg6jwdjx7l0hdqp4synbbrw1zcg8gjf6n3c80"))
482 (file-name (git-file-name name version))))
483 (build-system gnu-build-system)
485 `(#:tests? #f ;; No test suite
489 "BINDIR=" (assoc-ref %outputs "out") "/bin")
491 "OCAMLLIB=" (assoc-ref %outputs "out") "/lib/ocaml/site-lib/camlidl"))
493 (modify-phases %standard-phases
497 (copy-file "config/Makefile.unix" "config/Makefile")
498 ;; Note: do not pass '-jN' as this appears to not be
499 ;; parallel-safe (race condition related to libcamlidl.a).
500 (invoke "make" "all")
502 (add-before 'install 'create-target-directories
503 (lambda* (#:key outputs #:allow-other-keys)
504 (let ((out (string-append (assoc-ref outputs "out"))))
506 (string-append out "/bin"))
508 (string-append out "/lib/ocaml/site-lib/camlidl/stublibs"))
510 (string-append out "/lib/ocaml/site-lib/camlidl/caml")))
512 (add-after 'install 'install-meta
513 (lambda* (#:key outputs #:allow-other-keys)
514 (let ((out (assoc-ref outputs "out")))
516 (string-append out "/lib/ocaml/site-lib/camlidl/META")
520 "description = \"Stub code generator for OCaml/C interface\"
521 version = \"" ,version "\"
523 archive(byte) = \"com.cma\"
524 archive(native) = \"com.cmxa\"")))))
528 (home-page "https://github.com/xavierleroy/camlidl")
529 (synopsis "Stub code generator for OCaml/C interface")
531 "Camlidl is a stub code generator for Objective Caml. It generates stub
532 code for interfacing Caml with C from an IDL description of the C functions.")
533 (license license:lgpl2.1)))
535 (define-public ocaml-extlib
537 (name "ocaml-extlib")
541 (uri (string-append "https://ygrek.org/p/release/ocaml-extlib/"
542 "extlib-" version ".tar.gz"))
545 "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1"))))
546 (build-system ocaml-build-system)
549 (modify-phases %standard-phases
550 (delete 'configure))))
552 `(("ocaml-cppo" ,ocaml-cppo)))
553 (home-page "https://github.com/ygrek/ocaml-extlib")
554 (synopsis "Complete and small extension for OCaml standard library")
555 (description "This library adds new functions to OCaml standard library
556 modules, modifies some functions in order to get better performances or
557 safety (tail-recursive) and also provides new modules which should be useful
558 for day to day programming.")
559 ;; With static-linking exception
560 (license license:lgpl2.1+)))
562 (define-public ocaml-cudf
569 (uri "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz")
572 "0771lwljqwwn3cryl0plny5a5dyyrj4z6bw66ha5n8yfbpcy8clr"))))
573 (build-system ocaml-build-system)
574 (propagated-inputs `(("ocaml-extlib" ,ocaml-extlib)))
577 ("ocamlbuild" ,ocamlbuild)
578 ("ocaml-ounit" ,ocaml-ounit)))
583 (string-append "BINDIR=" (assoc-ref %outputs "out")
586 (modify-phases %standard-phases
587 (delete 'configure))))
588 (home-page "https://www.mancoosi.org/cudf/")
589 (synopsis "CUDF library (part of the Mancoosi tools)")
590 (description "CUDF (for Common Upgradeability Description Format) is a
591 format for describing upgrade scenarios in package-based Free and Open Source
592 Software distribution.")
593 ;; With static-linking exception
594 (license license:lgpl2.1+)))
596 (define-public ocaml-mccs
603 (url "https://github.com/AltGr/ocaml-mccs")
605 (file-name (git-file-name name version))
608 "1gsad5cj03256i36wdjqk5pg51pyd48rpjazf0gfaakrn8lk438g"))))
609 (build-system dune-build-system)
610 (propagated-inputs `(("ocaml-cudf" ,ocaml-cudf)))
611 (home-page "https://www.i3s.unice.fr/~cpjm/misc/")
612 (synopsis "Upgrade path problem solver")
613 (description "Mccs (Multi Criteria CUDF Solver) is a CUDF problem solver.
614 Mccs take as input a CUDF problem and computes the best solution according to
615 a set of criteria. It relies on a Integer Programming solver or a
616 Pseudo Boolean solver to achieve its task. Mccs can use a wide set of
617 underlying solvers like Cplex, Gurobi, Lpsolver, Glpk, CbC, SCIP or WBO.")
621 ;; With static-linking exception
624 (define-public ocaml-dose3
630 (uri "https://gforge.inria.fr/frs/download.php/file/36063/dose3-5.0.1.tar.gz")
633 "00yvyfm4j423zqndvgc1ycnmiffaa2l9ab40cyg23pf51qmzk2jm"))
636 "ocaml-dose3-add-unix-dependency.patch"
637 "ocaml-dose3-Fix-for-ocaml-4.06.patch"
638 "ocaml-dose3-dont-make-printconf.patch"
639 "ocaml-dose3-Install-mli-cmx-etc.patch"))))
640 (build-system ocaml-build-system)
643 (list (string-append "SHELL="
644 (assoc-ref %build-inputs "bash")
647 (list (string-append "LIBDIR="
648 (assoc-ref %outputs "out")
649 "/lib/ocaml/site-lib"))))
651 `(("ocaml-graph" ,ocaml-graph)
652 ("ocaml-cudf" ,ocaml-cudf)
653 ("ocaml-extlib" ,ocaml-extlib)
654 ("ocaml-re" ,ocaml-re)))
657 ("python" ,python-2) ; for a test script
658 ("python2-pyyaml" ,python2-pyyaml) ; for a test script
659 ("ocaml-extlib" ,ocaml-extlib)
660 ("ocamlbuild" ,ocamlbuild)
661 ("ocaml-cppo" ,ocaml-cppo)))
662 (home-page "https://www.mancoosi.org/software/")
663 (synopsis "Package distribution management framework")
664 (description "Dose3 is a framework made of several OCaml libraries for
665 managing distribution packages and their dependencies. Though not tied to
666 any particular distribution, dose3 constitutes a pool of libraries which
667 enable analyzing packages coming from various distributions. Besides basic
668 functionalities for querying and setting package properties, dose3 also
669 implements algorithms for solving more complex problems such as monitoring
670 package evolutions, correct and complete dependency resolution and
671 repository-wide uninstallability checks.")
672 ;; with static-linking exception
673 (license license:lgpl2.1+)))
675 (define-public ocaml-down
682 (uri (string-append "https://erratique.ch/software/down/releases/down-"
686 "1nz2f5j17frgr2vrslcz9klmi6w9sm2vqwwwpi33ngcm3rgmsrlg"))))
687 (build-system ocaml-build-system)
689 `(#:tests? #f ;no tests
691 (modify-phases %standard-phases
694 (list "build" "--lib-dir"
695 (string-append (assoc-ref %outputs "out") "/lib/ocaml/site-lib"))))
697 `(("ocaml-findlib" ,ocaml-findlib)
698 ("ocamlbuild" ,ocamlbuild)
699 ("ocaml-topkg" ,ocaml-topkg)
701 (home-page "https://erratique.ch/software/down")
702 (synopsis "OCaml toplevel (REPL) upgrade")
703 (description "Down is an unintrusive user experience upgrade for the
704 @command{ocaml} toplevel (REPL).
706 Simply load the zero dependency @code{down} library in the @command{ocaml}
707 toplevel and you get line edition, history, session support and identifier
708 completion and documentation with @command{ocp-index}.
710 Add this to your @file{~/.ocamlinit}:
716 You may also need to add this to your @file{~/.ocamlinit} and declare
717 the environment variable @code{OCAML_TOPLEVEL_PATH}:
721 try Topdirs.dir_directory (Sys.getenv \"OCAML_TOPLEVEL_PATH\")
728 let () = String.split_on_char ':' (Sys.getenv \"OCAMLPATH\")
729 |> List.filter (fun x -> Filename.check_suffix x \"/site-lib\")
730 |> List.map (fun x -> x ^ \"/toplevel\")
731 (* remove the line below if you don't want to see the text
732 every time you start the toplevel *)
733 |> List.map (fun x -> Printf.printf \"adding directory %s\\n\" x; x)
734 |> List.iter Topdirs.dir_directory;;
736 (license license:isc)))
738 (define-public ocaml-opam-file-format
740 (name "ocaml-opam-file-format")
745 (url "https://github.com/ocaml/opam-file-format")
747 (file-name (git-file-name name version))
750 "0fqb99asnair0043hhc8r158d6krv5nzvymd0xwycr5y72yrp0hv"))))
751 (build-system ocaml-build-system)
753 `(#:tests? #f; No tests
754 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
755 "/lib/ocaml/site-lib"))
757 (modify-phases %standard-phases
758 (delete 'configure))))
759 (home-page "https://opam.ocaml.org")
760 (synopsis "Parser and printer for the opam file syntax")
761 (description "This package contains a parser and a pretty-printer for
762 the opam file format.")
763 ;; With static-linking exception
764 (license license:lgpl2.1+)))
773 (url "https://github.com/ocaml/opam")
775 (file-name (git-file-name name version))
778 "1z0ls6xxa4ws5xw0am5gxmh5apnmyhgkcphrncp53w34j8sfydsj"))))
779 (build-system ocaml-build-system)
782 (list (string-append "SHELL="
783 (assoc-ref %build-inputs "bash")
786 ;; For some reason, 'ocp-build' needs $TERM to be set.
789 (string-append "SHELL="
790 (assoc-ref %build-inputs "bash")
793 #:test-target "tests"
795 #:phases (modify-phases %standard-phases
796 (add-before 'build 'pre-build
797 (lambda* (#:key inputs make-flags #:allow-other-keys)
798 (let ((bash (assoc-ref inputs "bash"))
799 (bwrap (string-append (assoc-ref inputs "bubblewrap")
801 (substitute* "src/core/opamSystem.ml"
803 (string-append "\"" bash "/bin/sh\""))
806 ;; Use bwrap from the store directly.
807 (substitute* "src/state/shellscripts/bwrap.sh"
808 (("-v bwrap") (string-append "-v " bwrap))
809 (("exec bwrap") (string-append "exec " bwrap))
810 ;; Mount /gnu and /run/current-system in the
811 ;; isolated environment when building with opam.
812 ;; This is necessary for packages to find external
813 ;; dependencies, such as a C compiler, make, etc...
814 (("^add_sys_mounts /usr")
815 "add_sys_mounts /gnu /run/current-system /usr"))
816 (substitute* "src/client/opamInitDefaults.ml"
817 (("\"bwrap\"") (string-append "\"" bwrap "\"")))
818 ;; Generating the documentation needs write access
820 (lambda (f) (chmod f #o644))
821 (find-files "doc" "."))
823 (add-before 'check 'pre-check
825 ;; The "repo" test attempts to open some of these files O_WRONLY
826 ;; and fails with a bogus "OpamSystem.File_not_found" otherwise.
828 (lambda (f) (chmod f #o644))
829 (find-files "tests/packages" "\\.opam$"))
831 (substitute* "tests/Makefile"
834 ;; By default tests run twice: once with a "local" repository
835 ;; and once with a git repository: disable the git tests to
836 ;; avoid the dependency.
842 ("ocaml-cppo" ,ocaml-cppo)
846 ("python" ,python-wrapper)
854 ("bubblewrap" ,bubblewrap)))
856 `(("ocaml-cmdliner" ,ocaml-cmdliner)
857 ("ocaml-dose3" ,ocaml-dose3)
858 ("ocaml-mccs" ,ocaml-mccs)
859 ("ocaml-opam-file-format" ,ocaml-opam-file-format)
860 ("ocaml-re" ,ocaml-re)))
861 (home-page "http://opam.ocamlpro.com/")
862 (synopsis "Package manager for OCaml")
864 "OPAM is a tool to manage OCaml packages. It supports multiple
865 simultaneous compiler installations, flexible package constraints, and a
866 Git-friendly development workflow.")
868 ;; The 'LICENSE' file waives some requirements compared to LGPLv3.
869 (license license:lgpl3)))
871 (define-public camlp5
879 (url "https://github.com/camlp5/camlp5")
880 (commit (string-append "rel" (string-delete #\. version)))))
881 (file-name (git-file-name name version))
883 (base32 "1d9spy3f5ahixm8nxxk086kpslzva669a5scn49am0s7vx4i71kp"))))
884 (build-system gnu-build-system)
888 `(#:tests? #f ; XXX TODO figure out how to run the tests
890 (modify-phases %standard-phases
892 (lambda* (#:key outputs #:allow-other-keys)
893 (let* ((out (assoc-ref outputs "out"))
894 (mandir (string-append out "/share/man")))
895 ;; Custom configure script doesn't recognize
896 ;; --prefix=<PREFIX> syntax (with equals sign).
897 (invoke "./configure"
899 "--mandir" mandir))))
900 (add-before 'build 'fix-/bin-references
902 (substitute* "config/Makefile"
907 (invoke "make" "-j" (number->string
908 (parallel-job-count))
910 ;; Required for findlib to find camlp5's libraries
911 (add-after 'install 'install-meta
912 (lambda* (#:key outputs #:allow-other-keys)
913 (install-file "etc/META" (string-append (assoc-ref outputs "out")
914 "/lib/ocaml/camlp5/"))
916 (home-page "https://camlp5.github.io/")
917 (synopsis "Pre-processor Pretty Printer for OCaml")
919 "Camlp5 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers
920 tools for syntax (Stream Parsers and Grammars) and the ability to modify the
921 concrete syntax of the language (Quotations, Syntax Extensions).")
922 ;; Most files are distributed under bsd-3, but ocaml_stuff/* is under qpl.
923 (license (list license:bsd-3 license:qpl))))
931 (uri (string-append "http://hevea.inria.fr/old/"
932 "hevea-" version ".tar.gz"))
935 "1pzyszxw90klpcmhjqrjfc8cw6c0gm4w2blim8ydyxb6rq6qml1s"))))
936 (build-system gnu-build-system)
940 `(("ocamlbuild" ,ocamlbuild)))
942 `(#:tests? #f ; no test suite
943 #:make-flags (list (string-append "PREFIX=" %output))
944 #:phases (modify-phases %standard-phases
946 (add-before 'build 'patch-/bin/sh
949 (("/bin/sh") (which "sh")))
951 (home-page "http://hevea.inria.fr/")
952 (synopsis "LaTeX to HTML translator")
954 "HeVeA is a LaTeX to HTML translator that generates modern HTML 5. It is
955 written in Objective Caml.")
956 (license license:qpl)))
958 (define-public ocaml-num
966 (url "https://github.com/ocaml/num")
967 (commit (string-append "v" version))))
968 (file-name (git-file-name name version))
970 (base32 "0a4mhxgs5hi81d227aygjx35696314swas0vzy3ig809jb7zq4h0"))))
971 (build-system ocaml-build-system)
974 (modify-phases %standard-phases
976 (add-before 'build 'fix-makefile
977 (lambda* (#:key outputs #:allow-other-keys)
978 ;; This package supposes we install to the same directory as
979 ;; the ocaml package.
980 (substitute* "src/META"
981 (("\"\\^\"") (string-append "\"" (assoc-ref outputs "out")
982 "/lib/ocaml/site-lib\"")))
983 (substitute* "src/Makefile"
984 (("\\) \\$\\(STDLIBDIR\\)")
985 (string-append ") " (assoc-ref outputs "out")
986 "/lib/ocaml/site-lib")))
988 (add-after 'install 'fix-stubslib
989 (lambda* (#:key outputs #:allow-other-keys)
990 (format #t "~a~%" (find-files "." ".*.so"))
991 (let ((stubdir (string-append (assoc-ref outputs "out")
992 "/lib/ocaml/site-lib/stublibs")))
993 (delete-file stubdir)
995 (install-file "src/dllnums.so" stubdir))
997 (home-page "https://github.com/ocaml/num")
998 (synopsis "Arbitrary-precision integer and rational arithmetic")
999 (description "OCaml-Num contains the legacy Num library for
1000 arbitrary-precision integer and rational arithmetic that used to be part of
1001 the OCaml core distribution.")
1002 (license license:lgpl2.1+))); with linking exception
1004 (define-public emacs-tuareg
1005 ;; Last upstream release on Sept., 14th, 2018, since then "Package cl
1006 ;; deprecated" or 'lexical-binding' and others had been fixed.
1007 (let ((commit "ccde45bbc292123ec20617f1af7f7e19f7481545")
1010 (name "emacs-tuareg")
1011 (version (git-version "2.2.0" revision commit))
1016 (url "https://github.com/ocaml/tuareg")
1018 (file-name (git-file-name name version))
1020 (base32 "1yxv4bnqarilnpg5j7wywall8170hwvm0q4xx06yqjgcn8pq1lac"))))
1021 (build-system gnu-build-system)
1023 `(("emacs" ,emacs-minimal)
1027 (modify-phases %standard-phases
1028 (add-after 'unpack 'make-git-checkout-writable
1030 (for-each make-file-writable (find-files "."))
1033 (add-before 'install 'fix-install-path
1034 (lambda* (#:key outputs #:allow-other-keys)
1035 (substitute* "Makefile"
1036 (("/emacs/site-lisp")
1037 (string-append (assoc-ref %outputs "out")
1038 "/share/emacs/site-lisp/")))
1040 (add-after 'install 'post-install
1041 (lambda* (#:key outputs #:allow-other-keys)
1042 (symlink "tuareg.el"
1043 (string-append (assoc-ref outputs "out")
1044 "/share/emacs/site-lisp/"
1045 "tuareg-autoloads.el"))
1047 (home-page "https://github.com/ocaml/tuareg")
1048 (synopsis "OCaml programming mode, REPL, debugger for Emacs")
1049 (description "Tuareg helps editing OCaml code, to highlight important
1050 parts of the code, to run an OCaml REPL, and to run the OCaml debugger within
1052 (license license:gpl2+))))
1054 (define-public ocaml-menhir
1056 (name "ocaml-menhir")
1057 (version "20200211")
1062 (url "https://gitlab.inria.fr/fpottier/menhir.git")
1064 (file-name (git-file-name name version))
1066 (base32 "019izf51kdc7pzkw68zg8a2alc8lxw1gwdp7in970mr90n16b5zj"))))
1067 (build-system dune-build-system)
1069 `(("ocaml" ,ocaml)))
1071 `(#:tests? #f)) ; No check target
1072 (home-page "http://gallium.inria.fr/~fpottier/menhir/")
1073 (synopsis "Parser generator")
1074 (description "Menhir is a parser generator. It turns high-level grammar
1075 specifications, decorated with semantic actions expressed in the OCaml
1076 programming language into parsers, again expressed in OCaml. It is based on
1077 Knuth’s LR(1) parser construction technique.")
1078 ;; The file src/standard.mly and all files listed in src/mnehirLib.mlpack
1079 ;; that have an *.ml or *.mli extension are GPL licensed. All other files
1080 ;; are QPL licensed.
1081 (license (list license:gpl2+ license:qpl))))
1083 (define-public ocaml-bigarray-compat
1085 (name "ocaml-bigarray-compat")
1090 (url "https://github.com/mirage/bigarray-compat")
1091 (commit (string-append "v" version))))
1092 (file-name (git-file-name name version))
1095 "06j1dwlpisxshdd0nab4n4x266gg1s1n8na16lpgw3fvcznwnimz"))))
1096 (build-system dune-build-system)
1098 `(#:tests? #f)); no tests
1099 (home-page "https://github.com/mirage/bigarray-compat")
1100 (synopsis "OCaml compatibility library")
1101 (description "This package contains a compatibility library for
1102 @code{Stdlib.Bigarray} in OCaml.")
1103 (license license:isc)))
1105 (define-public lablgtk
1112 (url "https://github.com/garrigue/lablgtk")
1114 (file-name (git-file-name name version))
1117 "0w8cdfcv2wc19sd3qzj3qq77qc6rbnbynsz02gzbl15kgrvgrfxi"))))
1118 (build-system gnu-build-system)
1121 ("findlib" ,ocaml-findlib)
1122 ("pkg-config" ,pkg-config)))
1123 ;; FIXME: Add inputs gtkgl-2.0, libpanelapplet-2.0, gtkspell-2.0,
1124 ;; and gtk+-quartz-2.0 once available.
1127 ("gtksourceview" ,gtksourceview-2)
1128 ("libgnomecanvas" ,libgnomecanvas)
1129 ("libgnomeui" ,libgnomeui)
1130 ("libglade" ,libglade)
1131 ("librsvg" ,librsvg)))
1133 `(#:tests? #f ; no check target
1135 ;; opt: also install cmxa files
1136 #:make-flags (list "all" "opt"
1137 (string-append "FINDLIBDIR="
1138 (assoc-ref %outputs "out")
1140 ;; Occasionally we would get "Error: Unbound module GtkThread" when
1141 ;; compiling 'gtkThInit.ml', with 'make -j'. So build sequentially.
1142 #:parallel-build? #f
1145 (modify-phases %standard-phases
1146 (add-before 'install 'prepare-install
1147 (lambda* (#:key inputs outputs #:allow-other-keys)
1148 (let ((out (assoc-ref outputs "out"))
1149 (ocaml (assoc-ref inputs "ocaml")))
1150 ;; Install into the output and not the ocaml directory.
1151 (mkdir-p (string-append out "/lib/ocaml"))
1152 (substitute* "config.make"
1155 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-lablgtk))))
1156 (home-page "http://lablgtk.forge.ocamlcore.org/")
1157 (synopsis "GTK+ bindings for OCaml")
1159 "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides
1160 a strongly-typed object-oriented interface that is compatible with the
1161 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
1162 also provides bindings to
1163 gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas,
1164 gnomeui, gtksourceview, gtkspell,
1165 libglade (and it an generate OCaml code from .glade files),
1166 libpanel, librsvg and quartz.")
1167 (license license:lgpl2.1)))
1169 (define-public ocaml4.07-lablgtk
1172 (name "ocaml4.07-lablgtk")
1174 `(("ocaml" ,ocaml-4.07)
1175 ("findlib" ,ocaml4.07-findlib)
1176 ("pkg-config" ,pkg-config)))
1179 (define-public unison
1186 (url "https://github.com/bcpierce00/unison")
1187 (commit (string-append "v" version))))
1188 (file-name (git-file-name name version))
1191 "1bykiyc0dc5pkw8x370qkg2kygq9pq7yqzsgczd3y13b6ivm4sdq"))
1192 (patches (search-patches "unison-fix-ocaml-4.08.patch"))))
1193 (build-system gnu-build-system)
1195 "doc")) ; 1.9 MiB of documentation
1197 `(("ocaml" ,ocaml-4.09)
1198 ;; For documentation
1199 ("ghostscript" ,ghostscript)
1200 ("texlive" ,texlive-tiny)
1205 `(#:parallel-build? #f
1206 #:parallel-tests? #f
1207 #:test-target "selftest"
1208 #:tests? #f ; Tests require writing to $HOME.
1209 ; If some $HOME is provided, they fail with the message
1210 ; "Fatal error: Skipping some tests -- remove me!"
1212 (modify-phases %standard-phases
1214 (add-before 'install 'prepare-install
1215 (lambda* (#:key outputs #:allow-other-keys)
1216 (let* ((out (assoc-ref outputs "out"))
1217 (bin (string-append out "/bin")))
1219 (setenv "HOME" out) ; forces correct INSTALLDIR in Makefile
1221 (add-after 'install 'install-fsmonitor
1222 (lambda* (#:key outputs #:allow-other-keys)
1223 (let* ((out (assoc-ref outputs "out"))
1224 (bin (string-append out "/bin")))
1225 ;; 'unison-fsmonitor' is used in "unison -repeat watch" mode.
1226 (install-file "src/unison-fsmonitor" bin)
1228 (add-after 'install 'install-doc
1229 (lambda* (#:key outputs #:allow-other-keys)
1230 (let ((doc (string-append (assoc-ref outputs "doc")
1231 "/share/doc/unison")))
1233 ;; Remove an '\n' that prevents the doc to be generated
1234 ;; correctly with newer hevea.
1235 (substitute* "doc/local.tex"
1236 (("----SNIP----.*") "----SNIP----"))
1237 ;; This file needs write-permissions, because it's
1238 ;; overwritten by 'docs' during documentation generation.
1239 (chmod "src/strings.ml" #o600)
1240 (invoke "make" "docs"
1241 "TEXDIRECTIVES=\\\\draftfalse")
1242 (for-each (lambda (f)
1243 (install-file f doc))
1245 (string-append "doc/unison-manual." ext))
1246 ;; Install only html documentation,
1247 ;; since the build is currently
1248 ;; non-reproducible with the ps, pdf,
1250 '(;; "ps" "pdf" "dvi"
1253 (home-page "https://www.cis.upenn.edu/~bcpierce/unison/")
1254 (synopsis "File synchronizer")
1256 "Unison is a file-synchronization tool. It allows two replicas of
1257 a collection of files and directories to be stored on different hosts
1258 (or different disks on the same host), modified separately, and then
1259 brought up to date by propagating the changes in each replica
1261 (license license:gpl3+)))
1263 (define-public ocaml-findlib
1265 (name "ocaml-findlib")
1269 (uri (string-append "http://download.camlcity.org/download/"
1270 "findlib" "-" version ".tar.gz"))
1273 "00s3sfb02pnjmkax25pcnljcnhcggiliccfz69a72ic7gsjwz1cf"))))
1274 (build-system gnu-build-system)
1279 `(#:tests? #f ; no test suite
1280 #:parallel-build? #f
1281 #:make-flags (list "all" "opt")
1282 #:phases (modify-phases %standard-phases
1285 (lambda* (#:key inputs outputs #:allow-other-keys)
1286 (let ((out (assoc-ref outputs "out")))
1289 "-bindir" (string-append out "/bin")
1290 "-config" (string-append out "/etc/ocamfind.conf")
1291 "-mandir" (string-append out "/share/man")
1292 "-sitelib" (string-append out "/lib/ocaml/site-lib")
1295 (lambda* (#:key outputs #:allow-other-keys)
1296 (let ((out (assoc-ref outputs "out")))
1297 (invoke "make" "install"
1298 (string-append "OCAML_CORE_STDLIB="
1299 out "/lib/ocaml/site-lib"))))))))
1300 (home-page "http://projects.camlcity.org/projects/findlib.html")
1301 (synopsis "Management tool for OCaml libraries")
1303 "The \"findlib\" library provides a scheme to manage reusable software
1304 components (packages), and includes tools that support this scheme. Packages
1305 are collections of OCaml modules for which metainformation can be stored. The
1306 packages are kept in the file system hierarchy, but with strict directory
1307 structure. The library contains functions to look the directory up that
1308 stores a package, to query metainformation about a package, and to retrieve
1309 dependency information about multiple packages. There is also a tool that
1310 allows the user to enter queries on the command-line. In order to simplify
1311 compilation and linkage, there are new frontends of the various OCaml
1312 compilers that can directly deal with packages.")
1313 (license license:x11)))
1315 (define-public ocaml4.07-findlib
1317 (inherit ocaml-findlib)
1318 (name "ocaml4.07-findlib")
1321 ("ocaml" ,ocaml-4.07)))))
1323 (define-public ocaml4.09-findlib
1325 (inherit ocaml-findlib)
1326 (name "ocaml4.09-findlib")
1329 ("ocaml" ,ocaml-4.09)))))
1331 (define-public ocaml-ounit2
1333 (name "ocaml-ounit2")
1338 (url "https://github.com/gildor478/ounit.git")
1339 (commit (string-append "v" version))))
1340 (file-name (git-file-name name version))
1343 "0gxjw1bhmjcjzri6x6psqrkbbyq678b69bqfl9i1zswp7cj2lryg"))))
1344 (build-system dune-build-system)
1346 ;; XXX Should libev be a propagated-input of ocaml-lwt?
1347 `(("libev" ,libev)))
1349 `(("lwt" ,ocaml-lwt)
1350 ("ocaml-stdlib-shims" ,ocaml-stdlib-shims)))
1351 (home-page "https://github.com/gildor478/ounit")
1352 (synopsis "Unit testing framework for OCaml")
1353 (description "OUnit2 is a unit testing framework for OCaml. It is similar
1354 to JUnit and other XUnit testing frameworks.")
1355 (license license:expat)))
1357 ;; note that some tests may hang for no obvious reason.
1358 (define-public ocaml-ounit
1360 (name "ocaml-ounit")
1364 (uri (ocaml-forge-uri "ounit" version 1749))
1367 "03ifp9hjcxg4m5j190iy373jcn4039d3vy10kmd8p4lfciwzwc1f"))))
1368 (build-system ocaml-build-system)
1370 `(("libxml2" ,libxml2) ; for xmllint
1371 ("ocamlbuild" ,ocamlbuild)))
1374 (modify-phases %standard-phases
1375 (delete 'check)))) ; tests are run during build
1376 (home-page "http://ounit.forge.ocamlcore.org")
1377 (synopsis "Unit testing framework for OCaml")
1378 (description "Unit testing framework for OCaml. It is similar to JUnit and
1379 other XUnit testing frameworks.")
1380 (license license:expat)))
1382 (define-public camlzip
1388 (uri (ocaml-forge-uri name version 1616))
1391 "0m6gyjw46w3qnhxfsyqyag42znl5lwargks7w7rfchr9jzwpff68"))))
1392 (build-system ocaml-build-system)
1397 (modify-phases %standard-phases
1399 (add-after 'install 'install-camlzip
1400 (lambda* (#:key outputs #:allow-other-keys)
1401 (let* ((out (assoc-ref outputs "out"))
1402 (dir (string-append out "/lib/ocaml/site-lib/camlzip")))
1404 (call-with-output-file (string-append dir "/META")
1406 (format port "version=\"1.06\"\n")
1407 (format port "requires=\"unix\"\n")
1408 (format port "archive(byte)=\"zip.cma\"\n")
1409 (format port "archive(native)=\"zip.cmxa\"\n")
1410 (format port "archive(native,plugin)=\"zip.cmxs\"\n")
1411 (format port "directory=\"../zip\"\n")))))))
1412 #:install-target "install-findlib"
1414 (list "all" "allopt"
1415 (string-append "INSTALLDIR=" (assoc-ref %outputs "out")
1417 (home-page "https://github.com/xavierleroy/camlzip")
1418 (synopsis "Provides easy access to compressed files")
1419 (description "Provides easy access to compressed files in ZIP, GZIP and
1420 JAR format. It provides functions for reading from and writing to compressed
1421 files in these formats.")
1422 (license license:lgpl2.1+)))
1424 (define-public ocamlmod
1430 (uri (ocaml-forge-uri name version 1702))
1433 "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa"))))
1434 (build-system ocaml-build-system)
1436 `(("ounit" ,ocaml-ounit)
1437 ("ocamlbuild" ,ocamlbuild)))
1440 (modify-phases %standard-phases
1441 ;; Tests are done during build.
1443 (home-page "https://forge.ocamlcore.org/projects/ocamlmod")
1444 (synopsis "Generate modules from OCaml source files")
1445 (description "Generate modules from OCaml source files.")
1446 (license license:lgpl2.1+))) ; with an exception
1448 (define-public ocaml-zarith
1450 (name "ocaml-zarith")
1455 (url "https://github.com/ocaml/Zarith")
1456 (commit (string-append "release-" version))))
1457 (file-name (git-file-name name version))
1460 "0hv5ywz1q2cgn8apfz490clwk5hcynr937g2v8i13x2ax4bnv0lz"))))
1461 (build-system ocaml-build-system)
1467 `(#:tests? #f ; no test target
1469 (modify-phases %standard-phases
1471 (lambda _ (invoke "./configure"))))))
1472 (home-page "https://forge.ocamlcore.org/projects/zarith/")
1473 (synopsis "Implements arbitrary-precision integers")
1474 (description "Implements arithmetic and logical operations over
1475 arbitrary-precision integers. It uses GMP to efficiently implement arithmetic
1476 over big integers. Small integers are represented as Caml unboxed integers,
1477 for speed and space economy.")
1478 (license license:lgpl2.1+))) ; with an exception
1480 (define-public ocaml-frontc
1482 (name "ocaml-frontc")
1487 (url "https://github.com/BinaryAnalysisPlatform/FrontC")
1488 (commit (string-append
1489 "V_" (string-join (string-split version #\.) "_")))))
1490 (file-name (git-file-name name version))
1493 "0k7jk9hkglnkk27s62xl493jyqc017gyvwqb1lyc0ywbb001s102"))))
1494 (build-system ocaml-build-system)
1497 (modify-phases %standard-phases
1499 (add-after 'install 'install-meta
1500 (lambda* (#:key outputs #:allow-other-keys)
1501 (let ((out (assoc-ref outputs "out")))
1502 (with-output-to-file
1503 (string-append out "/lib/ocaml/frontc/META")
1507 "description = \"Parser for the C language\"
1508 version = \"" ,version "\"
1510 archive(byte) = \"frontc.cma\"
1511 archive(native) = \"frontc.cmxa\""))))
1512 (symlink (string-append out "/lib/ocaml/frontc")
1513 (string-append out "/lib/ocaml/FrontC"))))))
1514 #:make-flags (list (string-append "PREFIX="
1515 (assoc-ref %outputs "out"))
1516 "OCAML_SITE=$(LIB_DIR)/ocaml/")))
1517 (properties `((upstream-name . "FrontC")))
1518 (home-page "https://www.irit.fr/FrontC")
1519 (synopsis "C parser and lexer library")
1520 (description "FrontC is an OCAML library providing a C parser and lexer.
1521 The result is a syntactic tree easy to process with usual OCAML tree management.
1522 It provides support for ANSI C syntax, old-C K&R style syntax and the standard
1523 GNU CC attributes. It provides also a C pretty printer as an example of use.")
1524 (license license:lgpl2.1)))
1526 (define-public ocaml-qcheck
1528 (name "ocaml-qcheck")
1534 (url "https://github.com/c-cube/qcheck")
1536 (file-name (git-file-name name version))
1538 (base32 "1llnfynhlndwyjig7wrayjnds2b3mggp5lw20dwxhn2i2lkkb22m"))))
1539 (build-system dune-build-system)
1543 (modify-phases %standard-phases
1544 (add-before 'build 'fix-deprecated
1546 (substitute* "src/core/QCheck.ml"
1547 (("Pervasives.compare") "compare"))
1550 `(("ocaml-alcotest" ,ocaml-alcotest)
1551 ("ocaml-ounit" ,ocaml-ounit)))
1553 `(("ocamlbuild" ,ocamlbuild)))
1554 (home-page "https://github.com/c-cube/qcheck")
1555 (synopsis "QuickCheck inspired property-based testing for OCaml")
1556 (description "QuickCheck inspired property-based testing for OCaml. This
1557 module checks invariants (properties of some types) over randomly
1558 generated instances of the type. It provides combinators for generating
1559 instances and printing them.")
1560 (license license:lgpl3+)))
1562 (define-public ocaml-qtest
1564 (name "ocaml-qtest")
1569 (url "https://github.com/vincent-hugot/qtest/")
1570 (commit (string-append "v" version))))
1571 (file-name (git-file-name name version))
1574 "0gddzan4vzs0vklsxhirdjrvx3rp7hhh2yr20vi13nq8rwkn9w29"))))
1575 (build-system dune-build-system)
1577 `(#:test-target "tests"))
1579 `(("ounit" ,ocaml-ounit)
1580 ("qcheck" ,ocaml-qcheck)))
1581 (home-page "https://github.com/vincent-hugot/qtest")
1582 (synopsis "Inline (Unit) Tests for OCaml")
1583 (description "Qtest extracts inline unit tests written using a special
1584 syntax in comments. Those tests are then run using the oUnit framework and the
1585 qcheck library. The possibilities range from trivial tests -- extremely simple
1586 to use -- to sophisticated random generation of test cases.")
1587 (license license:lgpl3+)))
1589 (define-public ocaml-stringext
1591 (name "ocaml-stringext")
1596 (url "https://github.com/rgrinberg/stringext")
1598 (file-name (git-file-name name version))
1601 "1m09cmn3vrk3gdm60fb730qsygcfyxsyv7gl9xfzck08q1x2x9qx"))))
1602 (build-system dune-build-system)
1604 `(#:test-target "."))
1606 `(("ocamlbuild" ,ocamlbuild)
1607 ("qtest" ,ocaml-qtest)))
1608 (home-page "https://github.com/rgrinberg/stringext")
1609 (synopsis "Extra string functions for OCaml")
1610 (description "Provides a single module named Stringext that provides a grab
1611 bag of often used but missing string functions from the stdlib. E.g, split,
1612 full_split, cut, rcut, etc..")
1613 ;; the only mention of a license in this project is in its `opam' file
1614 ;; where it says `mit'.
1615 (license license:expat)))
1617 (define dune-bootstrap
1624 (url "https://github.com/ocaml/dune")
1626 (file-name (git-file-name name version))
1629 "10qgx83fq8b522y9mpllrp0l5cgmr2bs5s7aix5img21hlbm34in"))))
1630 (build-system ocaml-build-system)
1632 `(#:tests? #f; require odoc
1633 #:make-flags (list "release"
1634 (string-append "PREFIX=" (assoc-ref %outputs "out"))
1635 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1636 "/lib/ocaml/site-lib"))
1638 (modify-phases %standard-phases
1640 (lambda* (#:key outputs #:allow-other-keys)
1641 (mkdir-p "src/dune")
1642 (invoke "./configure")
1644 (home-page "https://github.com/ocaml/dune")
1645 (synopsis "OCaml build system")
1646 (description "Dune is a build system that was designed to simplify the
1647 release of Jane Street packages. It reads metadata from @file{dune} files
1648 following a very simple s-expression syntax.")
1649 (license license:expat)))
1651 (define ocaml4.09-dune-bootstrap
1652 (package-with-ocaml4.09 dune-bootstrap))
1654 (define-public dune-configurator
1656 (inherit dune-bootstrap)
1657 (name "dune-configurator")
1658 (build-system dune-build-system)
1660 `(#:package "dune-configurator"
1661 #:dune ,dune-bootstrap
1662 ; require ppx_expect
1665 `(("ocaml-csexp" ,ocaml-csexp)))
1666 (properties `((ocaml4.09-variant . ,(delay ocaml4.09-dune-configurator))))
1667 (synopsis "Dune helper library for gathering system configuration")
1668 (description "Dune-configurator is a small library that helps writing
1669 OCaml scripts that test features available on the system, in order to generate
1670 config.h files for instance. Among other things, dune-configurator allows one to:
1673 @item test if a C program compiles
1674 @item query pkg-config
1675 @item import #define from OCaml header files
1676 @item generate config.h file
1679 (define-public ocaml4.09-dune-configurator
1681 (inherit dune-configurator)
1682 (name "ocaml4.09-dune-configurator")
1684 `(#:package "dune-configurator"
1686 #:dune ,ocaml4.09-dune-bootstrap
1688 #:findlib ,ocaml4.09-findlib))
1690 `(("ocaml-csexp" ,ocaml4.09-csexp)))))
1694 (inherit dune-bootstrap)
1696 `(("dune-configurator" ,dune-configurator)))
1697 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-dune))
1698 (ocaml4.09-variant . ,(delay ocaml4.09-dune))))))
1700 (define-public ocaml4.09-dune
1702 (inherit ocaml4.09-dune-bootstrap)
1704 `(("dune-configurator" ,dune-configurator)))))
1706 (define-public ocaml4.07-dune
1708 (inherit (package-with-ocaml4.07 dune-bootstrap))
1713 (url "https://github.com/ocaml/dune")
1715 (file-name (git-file-name "dune" version))
1718 "0l4x0x2fz135pljv88zj8y6w1ninsqw0gn1mdxzprd6wbxbyn8wr"))))))
1720 (define-public ocaml-csexp
1722 (name "ocaml-csexp")
1727 (url "https://github.com/ocaml-dune/csexp")
1729 (file-name (git-file-name name version))
1732 "190zppgvdjgghmrnx67ayzzk86qdjy3yn5fcrcw08wsh93384pl0"))))
1733 (build-system dune-build-system)
1735 `(#:tests? #f; FIXME: needs ppx_expect, but which version?
1736 #:dune ,dune-bootstrap
1738 (modify-phases %standard-phases
1739 (add-before 'build 'chmod
1741 (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*"))
1744 `(("ocaml-result" ,ocaml-result)))
1745 (properties `((ocaml4.09-variant . ,(delay ocaml4.09-csexp))))
1746 (home-page "https://github.com/ocaml-dune/csexp")
1747 (synopsis "Parsing and printing of S-expressions in Canonical form")
1748 (description "This library provides minimal support for Canonical
1749 S-expressions. Canonical S-expressions are a binary encoding of
1750 S-expressions that is super simple and well suited for communication
1753 This library only provides a few helpers for simple applications. If
1754 you need more advanced support, such as parsing from more fancy input
1755 sources, you should consider copying the code of this library given
1756 how simple parsing S-expressions in canonical form is.
1758 To avoid a dependency on a particular S-expression library, the only
1759 module of this library is parameterised by the type of S-expressions.")
1760 (license license:expat)))
1762 (define-public ocaml4.09-csexp
1764 (inherit ocaml-csexp)
1765 (name "ocaml4.09-csexp")
1767 `(#:ocaml ,ocaml-4.09
1768 #:findlib ,ocaml4.09-findlib
1769 ,@(substitute-keyword-arguments (package-arguments ocaml-csexp)
1770 ((#:dune _) ocaml4.09-dune-bootstrap))))
1772 `(("ocaml-result" ,ocaml4.09-result)))))
1774 (define-public ocaml-migrate-parsetree
1776 (name "ocaml-migrate-parsetree")
1778 (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
1783 (url (string-append home-page ".git"))
1784 (commit (string-append "v" version))))
1785 (file-name (git-file-name name version))
1788 "0336vz0galjnsazbmkxjwdv1qvdqsx2rgrvp778xgq2fzasz45cx"))))
1789 (build-system dune-build-system)
1793 `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
1794 ("ocamlbuild" ,ocamlbuild)
1795 ("ocaml-result" ,ocaml-result)))
1796 (properties `((upstream-name . "ocaml-migrate-parsetree")))
1797 (synopsis "OCaml parsetree converter")
1798 (description "This library converts between parsetrees of different OCaml
1799 versions. For each version, there is a snapshot of the parsetree and conversion
1800 functions to the next and/or previous version.")
1801 (license license:lgpl2.1+)))
1803 (define-public ocaml-ppx-tools-versioned
1805 (name "ocaml-ppx-tools-versioned")
1810 (url "https://github.com/ocaml-ppx/ppx_tools_versioned")
1812 (file-name (git-file-name name version))
1815 "07lnj4yzwvwyh5fhpp1dxrys4ddih15jhgqjn59pmgxinbnddi66"))))
1816 (build-system dune-build-system)
1819 #:package "ppx_tools_versioned"))
1821 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
1822 (properties `((upstream-name . "ppx_tools_versioned")))
1823 (home-page "https://github.com/let-def/ppx_tools_versioned")
1824 (synopsis "Variant of ppx_tools")
1825 (description "This package is a variant of ppx_tools based on
1826 ocaml-migrate-parsetree")
1827 (license license:expat)))
1829 (define-public ocaml-bitstring
1831 (name "ocaml-bitstring")
1835 (uri (string-append "https://bitbucket.org/thanatonauts/bitstring/"
1836 "get/v" version ".tar.gz"))
1837 (file-name (string-append name "-" version ".tar.gz"))
1840 "15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps"))))
1841 (build-system dune-build-system)
1844 ("autoconf" ,autoconf)
1845 ("automake" ,automake)))
1847 `(("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
1849 `(#:package "bitstring"
1850 #:tests? #f; Tests fail to build
1852 (modify-phases %standard-phases
1853 (add-before 'build 'upgrade
1855 (invoke "dune" "upgrade")
1857 (home-page "https://github.com/xguerin/bitstring")
1858 (synopsis "Bitstrings and bitstring matching for OCaml")
1859 (description "Adds Erlang-style bitstrings and matching over bitstrings as
1860 a syntax extension and library for OCaml. You can use this module to both parse
1861 and generate binary formats, files and protocols. Bitstring handling is added
1862 as primitives to the language, making it exceptionally simple to use and very
1864 (license license:isc)))
1866 (define-public ocaml-result
1868 (name "ocaml-result")
1873 (url "https://github.com/janestreet/result")
1875 (file-name (git-file-name name version))
1878 "166laj8qk7466sdl037c6cjs4ac571hglw4l5qpyll6df07h6a7q"))))
1879 (build-system dune-build-system)
1882 #:dune ,dune-bootstrap))
1883 (properties `((ocaml4.09-variant . ,(delay ocaml4.09-result))))
1884 (home-page "https://github.com/janestreet/result")
1885 (synopsis "Compatibility Result module")
1886 (description "Uses the new result type defined in OCaml >= 4.03 while
1887 staying compatible with older version of OCaml should use the Result module
1888 defined in this library.")
1889 (license license:bsd-3)))
1891 (define-public ocaml4.09-result
1893 (inherit ocaml-result)
1894 (name "ocaml4.09-result")
1897 #:dune ,ocaml4.09-dune-bootstrap
1899 #:findlib ,ocaml4.09-findlib))))
1901 (define-public ocaml-topkg
1903 (name "ocaml-topkg")
1907 (uri (string-append "http://erratique.ch/software/topkg/releases/"
1908 "topkg-" version ".tbz"))
1911 "1df61vw6v5bg2mys045682ggv058yqkqb67w7r2gz85crs04d5fw"))))
1912 (build-system ocaml-build-system)
1915 ("ocamlbuild" ,ocamlbuild)))
1917 `(("result" ,ocaml-result)))
1920 #:build-flags '("build")
1922 (modify-phases %standard-phases
1923 (delete 'configure))))
1924 (home-page "https://erratique.ch/software/topkg")
1925 (synopsis "Transitory OCaml software packager")
1926 (description "Topkg is a packager for distributing OCaml software. It
1927 provides an API to describe the files a package installs in a given build
1928 configuration and to specify information about the package's distribution,
1929 creation and publication procedures.")
1930 (license license:isc)))
1932 (define-public ocaml-rresult
1934 (name "ocaml-rresult")
1938 (uri (string-append "http://erratique.ch/software/rresult/releases/"
1939 "rresult-" version ".tbz"))
1942 "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm"))))
1943 (build-system ocaml-build-system)
1946 ("ocamlbuild" ,ocamlbuild)))
1948 `(("topkg" ,ocaml-topkg)))
1951 #:build-flags '("build")
1953 (modify-phases %standard-phases
1954 (delete 'configure))))
1955 (home-page "https://erratique.ch/software/rresult")
1956 (synopsis "Result value combinators for OCaml")
1957 (description "Handle computation results and errors in an explicit and
1958 declarative manner, without resorting to exceptions. It defines combinators
1959 to operate on the result type available from OCaml 4.03 in the standard
1961 (license license:isc)))
1963 (define-public ocaml4.07-sqlite3
1965 (name "ocaml4.07-sqlite3")
1971 (url "https://github.com/mmottl/sqlite3-ocaml")
1973 (file-name (git-file-name name version))
1976 "1536agm5fgcqysszhpd3kmw7lkc5n5ni7gmlyglrbvmnmrwf3av2"))))
1977 (build-system dune-build-system)
1979 `(#:ocaml ,ocaml-4.07
1980 #:findlib ,ocaml4.07-findlib
1981 #:dune ,ocaml4.07-dune))
1983 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
1984 ("ocaml-stdio" ,ocaml4.07-stdio)
1985 ("pkg-config" ,pkg-config)))
1987 `(("sqlite" ,sqlite)))
1988 (home-page "https://mmottl.github.io/sqlite3-ocaml")
1989 (synopsis "SQLite3 Bindings for OCaml")
1991 "SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client
1992 API. Sqlite3 is a self-contained, serverless, zero-configuration,
1993 transactional SQL database engine with outstanding performance for many use
1994 cases. These bindings are written in a way that enables a friendly
1995 coexistence with the old (version 2) SQLite and its OCaml wrapper
1996 @code{ocaml-sqlite}.")
1997 (license license:expat)))
1999 (define-public ocaml-csv
2007 (url "https://github.com/Chris00/ocaml-csv")
2009 (file-name (git-file-name name version))
2012 "19k48517s8y1zb91a1312a0n94cbh5i5dixndcrqjmf87kkz61zx"))))
2013 (build-system dune-build-system)
2017 (home-page "https://github.com/Chris00/ocaml-csv")
2018 (synopsis "Pure OCaml functions to read and write CSV")
2020 "@dfn{Comma separated values} (CSV) is a simple tabular format supported
2021 by all major spreadsheets. This library implements pure OCaml functions to
2022 read and write files in this format as well as some convenience functions to
2023 manipulate such data.")
2024 ;; This is LGPLv2.1 with an exception that allows packages statically-linked
2025 ;; against the library to be released under any terms.
2026 (license license:lgpl2.1)))
2028 (define-public ocaml-mtime
2030 (name "ocaml-mtime")
2034 (uri (string-append "http://erratique.ch/software/mtime/releases/"
2035 "mtime-" version ".tbz"))
2038 "1qb4ljwirrc3g8brh97s76rjky2cpmy7zm87y7iqd6pxix52ydk3"))))
2039 (build-system ocaml-build-system)
2041 `(("ocamlbuild" ,ocamlbuild)
2044 `(("topkg" ,ocaml-topkg)))
2047 #:build-flags (list "build" "--with-js_of_ocaml" "false")
2049 (modify-phases %standard-phases
2050 (delete 'configure))))
2051 (home-page "https://erratique.ch/software/mtime")
2052 (synopsis "Monotonic wall-clock time for OCaml")
2053 (description "Access monotonic wall-clock time. It measures time
2054 spans without being subject to operating system calendar time adjustments.")
2055 (license license:isc)))
2057 (define-public ocaml-cmdliner
2059 (name "ocaml-cmdliner")
2063 (uri (string-append "http://erratique.ch/software/cmdliner/releases/"
2064 "cmdliner-" version ".tbz"))
2067 "0g3w4hvc1cx9x2yp5aqn6m2rl8lf9x1dn754hfq8m1sc1102lxna"))))
2068 (build-system ocaml-build-system)
2070 `(("ocaml-result" ,ocaml-result)))
2072 `(("ocamlbuild" ,ocamlbuild)))
2075 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
2076 "/lib/ocaml/site-lib/cmdliner"))
2078 (modify-phases %standard-phases
2080 (add-before 'build 'fix-source-file-order
2082 (substitute* "build.ml"
2083 (("Sys.readdir dir")
2084 "let a = Sys.readdir dir in Array.sort String.compare a; a"))
2086 (home-page "https://erratique.ch/software/cmdliner")
2087 (synopsis "Declarative definition of command line interfaces for OCaml")
2088 (description "Cmdliner is a module for the declarative definition of command
2089 line interfaces. It provides a simple and compositional mechanism to convert
2090 command line arguments to OCaml values and pass them to your functions. The
2091 module automatically handles syntax errors, help messages and UNIX man page
2092 generation. It supports programs with single or multiple commands and respects
2093 most of the POSIX and GNU conventions.")
2094 (license license:bsd-3)))
2096 (define-public ocaml-fmt
2103 (uri (string-append "http://erratique.ch/software/fmt/releases/fmt-"
2106 "0gkkkj4x678vxdda4xaw2dd44qjacavsvn5nx8gydfwah6pjbkxk"))))
2107 (build-system ocaml-build-system)
2109 `(("ocamlbuild" ,ocamlbuild)
2111 ("topkg" ,ocaml-topkg)))
2113 `(("cmdliner" ,ocaml-cmdliner)
2114 ("ocaml-stdlib-shims" ,ocaml-stdlib-shims)
2115 ("ocaml-uchar" ,ocaml-uchar)))
2116 (arguments `(#:tests? #f
2117 #:build-flags (list "build" "--with-base-unix" "true"
2118 "--with-cmdliner" "true")
2120 (modify-phases %standard-phases
2121 (delete 'configure))))
2122 (home-page "https://erratique.ch/software/fmt")
2123 (synopsis "OCaml Format pretty-printer combinators")
2124 (description "Fmt exposes combinators to devise Format pretty-printing
2126 (license license:isc)))
2128 (define-public ocaml-astring
2130 (name "ocaml-astring")
2135 (uri (string-append "http://erratique.ch/software/astring/releases/astring-"
2138 "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0"))))
2139 (build-system ocaml-build-system)
2141 `(("ocamlbuild" ,ocamlbuild)
2143 ("topkg" ,ocaml-topkg)))
2146 #:build-flags (list "build")
2148 (modify-phases %standard-phases
2149 (delete 'configure))))
2150 (home-page "https://erratique.ch/software/astring")
2151 (synopsis "Alternative String module for OCaml")
2152 (description "Astring exposes an alternative String module for OCaml. This
2153 module balances minimality and expressiveness for basic, index-free, string
2154 processing and provides types and functions for substrings, string sets and
2155 string maps. The String module exposed by Astring has exception safe functions,
2156 removes deprecated and rarely used functions, alters some signatures and names,
2157 adds a few missing functions and fully exploits OCaml's newfound string
2159 (license license:isc)))
2161 (define-public ocaml-alcotest
2163 (name "ocaml-alcotest")
2167 (uri (string-append "https://github.com/mirage/alcotest/releases/"
2168 "download/" version "/alcotest-" version ".tbz"))
2171 "1a43ilhwnj58pq3bi78ni46l9wh6klmmgfc93i94mvyx48bzzayx"))))
2172 (build-system dune-build-system)
2174 `(#:package "alcotest"
2177 `(("ocamlbuild" ,ocamlbuild)))
2179 `(("ocaml-astring" ,ocaml-astring)
2180 ("ocaml-cmdliner" ,ocaml-cmdliner)
2181 ("ocaml-fmt" ,ocaml-fmt)
2182 ("ocaml-re" ,ocaml-re)
2183 ("ocaml-stdlib-shims" ,ocaml-stdlib-shims)
2184 ("ocaml-uuidm" ,ocaml-uuidm)
2185 ("ocaml-uutf" ,ocaml-uutf)))
2186 (home-page "https://github.com/mirage/alcotest")
2187 (synopsis "Lightweight OCaml test framework")
2188 (description "Alcotest exposes simple interface to perform unit tests. It
2189 exposes a simple TESTABLE module type, a check function to assert test
2190 predicates and a run function to perform a list of unit -> unit test callbacks.
2191 Alcotest provides a quiet and colorful output where only faulty runs are fully
2192 displayed at the end of the run (with the full logs ready to inspect), with a
2193 simple (yet expressive) query language to select the tests to run.")
2194 (license license:isc)))
2196 (define-public ocaml4.07-ppx-tools
2198 (name "ocaml4.07-ppx-tools")
2199 (version "5.1+4.06.0")
2204 (url "https://github.com/alainfrisch/ppx_tools")
2206 (file-name (git-file-name name version))
2208 "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"))))
2209 (build-system ocaml-build-system)
2211 `(#:phases (modify-phases %standard-phases (delete 'configure))
2214 #:findlib ,ocaml4.07-findlib))
2215 (properties `((upstream-name . "ppx_tools")))
2216 (home-page "https://github.com/alainfrisch/ppx_tools")
2217 (synopsis "Tools for authors of ppx rewriters and other syntactic tools")
2218 (description "Tools for authors of ppx rewriters and other syntactic tools.")
2219 (license license:expat)))
2221 (define-public ocaml-react
2223 (name "ocaml-react")
2228 (uri (string-append "http://erratique.ch/software/react/releases/react-"
2231 "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v"))))
2232 (build-system ocaml-build-system)
2234 `(("ocamlbuild" ,ocamlbuild)
2236 ("ocaml-topkg" ,ocaml-topkg)))
2239 #:build-flags (list "build")
2241 (modify-phases %standard-phases
2242 (delete 'configure))))
2243 (home-page "https://erratique.ch/software/react")
2244 (synopsis "Declarative events and signals for OCaml")
2245 (description "React is an OCaml module for functional reactive programming
2246 (FRP). It provides support to program with time varying values: declarative
2247 events and signals. React doesn't define any primitive event or signal, it
2248 lets the client choose the concrete timeline.")
2249 (license license:bsd-3)))
2251 (define-public ocaml-ssl
2259 (url "https://github.com/savonet/ocaml-ssl")
2261 (file-name (git-file-name name version))
2263 "04h02rvzrwp886n5hsx84rnc9b150iggy38g5v1x1rwz3pkdnmf0"))))
2264 (build-system dune-build-system)
2266 `(#:test-target "."))
2268 `(("autoconf" ,autoconf)
2269 ("automake" ,automake)
2271 (propagated-inputs `(("openssl" ,openssl)))
2272 (home-page "https://github.com/savonet/ocaml-ssl/")
2273 (synopsis "OCaml bindings for OpenSSL")
2275 "OCaml-SSL is a set of bindings for OpenSSL, a library for communicating
2276 through Transport Layer Security (@dfn{TLS}) encrypted connections.")
2277 (license license:lgpl2.1)))
2279 (define-public ocaml-mmap
2286 (url "https://github.com/mirage/mmap")
2287 (commit (string-append "v" version))))
2288 (file-name (git-file-name name version))
2291 "1jaismy5d1bhbbanysmr2k79px0yv6ya265dri3949nha1l23i60"))))
2292 (build-system dune-build-system)
2293 (home-page "https://github.com/mirage/mmap")
2294 (synopsis "File mapping for OCaml")
2295 (description "This project provides a @command{Mmap.map_file} function
2296 for mapping files in memory. This function is the same as the
2297 @command{Unix.map_file} function added in OCaml >= 4.06.")
2298 (license (list license:qpl license:lgpl2.0))))
2300 (define-public ocaml-lwt
2308 (url "https://github.com/ocsigen/lwt")
2310 (file-name (git-file-name name version))
2312 "1nl7rdnwfdhwcsm5zpay1nr9y5cbapd9x1qzily7zk9ab4v52m8g"))))
2313 (build-system dune-build-system)
2317 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
2318 ("ocaml-cppo" ,ocaml-cppo)
2319 ("pkg-config" ,pkg-config)))
2324 `(("ocaml-mmap" ,ocaml-mmap)
2325 ("ocaml-ocplib-endian" ,ocaml-ocplib-endian)
2326 ("ocaml-result" ,ocaml-result)
2327 ("ocaml-seq" ,ocaml-seq)))
2328 (home-page "https://github.com/ocsigen/lwt")
2329 (synopsis "Cooperative threads and I/O in monadic style")
2330 (description "Lwt provides typed, composable cooperative threads. These
2331 make it easy to run normally-blocking I/O operations concurrently in a single
2332 process. Also, in many cases, Lwt threads can interact without the need for
2333 locks or other synchronization primitives.")
2334 (license license:lgpl2.1)))
2336 (define-public ocaml-lwt-react
2339 (name "ocaml-lwt-react")
2344 (url "https://github.com/ocsigen/lwt")
2345 ;; Version from opam
2347 (file-name (git-file-name name version))
2350 "0f7036srqz7zmnz0n164734smgkrqz78r1i35cg30x31kkr3pnn4"))))
2352 `(#:package "lwt_react"))
2353 (properties `((upstream-name . "lwt_react")))
2355 `(("ocaml-lwt" ,ocaml-lwt)
2356 ("ocaml-react" ,ocaml-react)))))
2358 (define-public ocaml-lwt-log
2360 (name "ocaml-lwt-log")
2365 (url "https://github.com/aantron/lwt_log")
2367 (file-name (git-file-name name version))
2370 "1n12i1rmn9cjn6p8yr6qn5dwbrwvym7ckr7bla04a1xnq8qlcyj7"))))
2371 (build-system dune-build-system)
2373 `(#:tests? #f)); require lwt_ppx
2375 `(("lwt" ,ocaml-lwt)))
2376 (properties `((upstream-name . "lwt_log")))
2377 (home-page "https://github.com/aantron/lwt_log")
2378 (synopsis "Logging library")
2379 (description "This package provides a deprecated logging component for
2381 (license license:lgpl2.1)))
2383 (define-public ocaml-logs
2389 (uri (string-append "http://erratique.ch/software/logs/releases/"
2390 "logs-" version ".tbz"))
2393 "1jnmd675wmsmdwyb5mx5b0ac66g4c6gpv5s4mrx2j6pb0wla1x46"))))
2394 (build-system ocaml-build-system)
2397 #:build-flags (list "build" "--with-js_of_ocaml" "false")
2399 (modify-phases %standard-phases
2400 (delete 'configure))))
2402 `(("ocamlbuild" ,ocamlbuild)
2405 `(("fmt" ,ocaml-fmt)
2407 ("mtime" ,ocaml-mtime)
2408 ("result" ,ocaml-result)
2409 ("cmdliner" ,ocaml-cmdliner)
2410 ("topkg" ,ocaml-topkg)))
2411 (home-page "https://erratique.ch/software/logs")
2412 (synopsis "Logging infrastructure for OCaml")
2413 (description "Logs provides a logging infrastructure for OCaml. Logging is
2414 performed on sources whose reporting level can be set independently. Log
2415 message report is decoupled from logging and is handled by a reporter.")
2416 (license license:isc)))
2418 (define-public ocaml-fpath
2420 (name "ocaml-fpath")
2424 (uri (string-append "http://erratique.ch/software/fpath/releases/"
2425 "fpath-" version ".tbz"))
2428 "1hr05d8bpqmqcfdavn4rjk9rxr7v2zl84866f5knjifrm60sxqic"))))
2429 (build-system ocaml-build-system)
2432 #:build-flags (list "build")
2434 (modify-phases %standard-phases
2435 (delete 'configure))))
2437 `(("ocamlbuild" ,ocamlbuild)
2440 `(("topkg" ,ocaml-topkg)
2441 ("astring" ,ocaml-astring)))
2442 (home-page "https://erratique.ch/software/fpath")
2443 (synopsis "File system paths for OCaml")
2444 (description "Fpath is an OCaml module for handling file system paths with
2445 POSIX or Windows conventions. Fpath processes paths without accessing the
2446 file system and is independent from any system library.")
2447 (license license:isc)))
2449 (define-public ocaml-bos
2455 (uri (string-append "http://erratique.ch/software/bos/releases/"
2456 "bos-" version ".tbz"))
2459 "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"))))
2460 (build-system ocaml-build-system)
2463 #:build-flags (list "build")
2465 (modify-phases %standard-phases
2466 (delete 'configure))))
2468 `(("ocamlbuild" ,ocamlbuild)
2471 `(("topkg" ,ocaml-topkg)
2472 ("astring" ,ocaml-astring)
2474 ("fpath" ,ocaml-fpath)
2475 ("logs" ,ocaml-logs)
2476 ("rresult" ,ocaml-rresult)))
2477 (home-page "https://erratique.ch/software/bos")
2478 (synopsis "Basic OS interaction for OCaml")
2479 (description "Bos provides support for basic and robust interaction with
2480 the operating system in OCaml. It has functions to access the process
2481 environment, parse command line arguments, interact with the file system and
2482 run command line programs.")
2483 (license license:isc)))
2485 (define-public ocaml-xmlm
2491 (uri (string-append "http://erratique.ch/software/xmlm/releases/"
2492 "xmlm-" version ".tbz"))
2495 "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n"))))
2496 (build-system ocaml-build-system)
2499 #:build-flags (list "build")
2501 (modify-phases %standard-phases
2502 (delete 'configure))))
2504 `(("ocamlbuild" ,ocamlbuild)
2505 ("ocaml-topkg" ,ocaml-topkg)
2507 (home-page "https://erratique.ch/software/xmlm")
2508 (synopsis "Streaming XML codec for OCaml")
2509 (description "Xmlm is a streaming codec to decode and encode the XML data
2510 format. It can process XML documents without a complete in-memory
2511 representation of the data.")
2512 (license license:isc)))
2514 (define-public ocaml4.07-gen
2516 (name "ocaml4.07-gen")
2521 (url "https://github.com/c-cube/gen")
2523 (file-name (git-file-name name version))
2526 "1h9g508rnj2j8va5nvhamzscp954vrkh0hdf4pn3d10pcfyslfg2"))))
2527 (build-system dune-build-system)
2529 `(#:tests? #f; no tests
2532 #:findlib ,ocaml4.07-findlib
2533 #:dune ,ocaml4.07-dune))
2535 `(("ocaml-odoc" ,(package-with-ocaml4.07 ocaml4.07-odoc))))
2537 `(("ocaml-qtest" ,(package-with-ocaml4.07 ocaml-qtest))
2538 ("ocaml-qcheck" ,(package-with-ocaml4.07 ocaml-qcheck))))
2539 (home-page "https://github.com/c-cube/gen/")
2540 (synopsis "Iterators for OCaml, both restartable and consumable")
2541 (description "Gen implements iterators of OCaml, that are both restartable
2543 (license license:bsd-2)))
2545 (define-public ocaml4.07-sedlex
2547 (name "ocaml4.07-sedlex")
2552 (url "https://github.com/ocaml-community/sedlex")
2553 (commit (string-append "v" version))))
2554 (file-name (git-file-name name version))
2557 "05f6qa8x3vhpdz1fcnpqk37fpnyyq13icqsk2gww5idjnh6kng26"))))
2558 (build-system dune-build-system)
2560 `(#:tests? #f; no tests
2563 (modify-phases %standard-phases
2564 (add-before 'build 'copy-resources
2565 (lambda* (#:key inputs #:allow-other-keys)
2566 (with-directory-excursion "src/generator/data"
2569 (copy-file (assoc-ref inputs file) file))
2570 '("DerivedCoreProperties.txt" "DerivedGeneralCategory.txt"
2573 (add-before 'build 'chmod
2575 (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*"))
2578 #:findlib ,ocaml4.07-findlib
2579 #:dune ,ocaml4.07-dune))
2581 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
2583 `(("ocaml-gen" ,ocaml4.07-gen)
2584 ("ocaml-ppx-tools-versioned"
2585 ,(package-with-ocaml4.07 ocaml-ppx-tools-versioned))
2586 ("ocaml-uchar" ,(package-with-ocaml4.07 ocaml-uchar))))
2587 ;; These three files are needed by src/generator/data/dune, but would be
2588 ;; downloaded using curl at build time.
2590 `(("DerivedCoreProperties.txt"
2593 (uri "https://www.unicode.org/Public/12.1.0/ucd/DerivedCoreProperties.txt")
2596 "0s6sn1yr9qmb2i6gf8dir2zpsbjv1frdfzy3i2yjylzvf637msx6"))))
2597 ("DerivedGeneralCategory.txt"
2600 (uri "https://www.unicode.org/Public/12.1.0/ucd/extracted/DerivedGeneralCategory.txt")
2603 "1rifzq9ba6c58dn0lrmcb5l5k4ksx3zsdkira3m5p6h4i2wriy3q"))))
2607 (uri "https://www.unicode.org/Public/12.1.0/ucd/PropList.txt")
2610 "0gsb1jpj3mnqbjgbavi4l95gl6g4agq58j82km22fdfg63j3w3fk"))))))
2611 (home-page "https://www.cduce.org/download.html#side")
2612 (synopsis "Lexer generator for Unicode and OCaml")
2613 (description "Lexer generator for Unicode and OCaml.")
2614 (license license:expat)))
2616 (define-public ocaml-uchar
2618 (name "ocaml-uchar")
2623 (uri (string-append "https://github.com/ocaml/uchar/releases/download/v"
2624 version "/uchar-" version ".tbz"))
2626 "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"))))
2627 (build-system ocaml-build-system)
2630 #:build-flags (list "native=true" "native-dynlink=true")
2632 (modify-phases %standard-phases
2633 (delete 'configure))))
2635 `(("ocamlbuild" ,ocamlbuild)
2637 (home-page "https://github.com/ocaml/uchar")
2638 (synopsis "Compatibility library for OCaml's Uchar module")
2639 (description "The uchar package provides a compatibility library for the
2640 `Uchar` module introduced in OCaml 4.03.")
2641 (license license:lgpl2.1)))
2643 (define-public ocaml-uutf
2649 (uri (string-append "http://erratique.ch/software/uutf/releases/"
2650 "uutf-" version ".tbz"))
2653 "1gp96dcggq7s84934vimxh89caaxa77lqiff1yywbwkilkkjcfqj"))))
2654 (build-system ocaml-build-system)
2657 #:build-flags (list "build")
2659 (modify-phases %standard-phases
2660 (delete 'configure))))
2662 `(("ocamlbuild" ,ocamlbuild)
2664 ("topkg" ,ocaml-topkg)))
2666 `(("uchar" ,ocaml-uchar)
2667 ("cmdliner" ,ocaml-cmdliner)))
2668 (home-page "https://erratique.ch/software/uutf")
2669 (synopsis "Non-blocking streaming Unicode codec for OCaml")
2670 (description "Uutf is a non-blocking streaming codec to decode and encode
2671 the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
2672 work character by character without blocking on IO. Decoders perform character
2673 position tracking and support newline normalization.
2675 Functions are also provided to fold over the characters of UTF encoded OCaml
2676 string values and to directly encode characters in OCaml Buffer.t values.")
2677 (license license:isc)))
2679 (define-public ocaml-jsonm
2681 (name "ocaml-jsonm")
2685 (uri (string-append "http://erratique.ch/software/jsonm/releases/"
2686 "jsonm-" version ".tbz"))
2689 "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w"))))
2690 (build-system ocaml-build-system)
2693 #:build-flags (list "build")
2695 (modify-phases %standard-phases
2696 (delete 'configure))))
2698 `(("ocamlbuild" ,ocamlbuild)
2700 ("topkg" ,ocaml-topkg)))
2702 `(("uutf" ,ocaml-uutf)
2703 ("cmdliner" ,ocaml-cmdliner)))
2704 (home-page "https://erratique.ch/software/jsonm")
2705 (synopsis "Non-blocking streaming JSON codec for OCaml")
2706 (description "Jsonm is a non-blocking streaming codec to decode and encode
2707 the JSON data format. It can process JSON text without blocking on IO and
2708 without a complete in-memory representation of the data.")
2709 (license license:isc)))
2711 (define-public ocaml-ocp-indent
2713 (name "ocaml-ocp-indent")
2719 (url "https://github.com/OCamlPro/ocp-indent")
2721 (file-name (git-file-name name version))
2724 "1dvcl108ir9nqkk4mjm9xhhj4p9dx9bmg8bnms54fizs1x3x8ar3"))))
2725 (build-system dune-build-system)
2727 `(#:test-target "tests"
2728 #:build-flags (list "--profile=release")))
2730 `(("ocaml-cmdliner" ,ocaml-cmdliner)))
2731 (home-page "https://www.typerex.org/ocp-indent.html")
2732 (synopsis "Tool to indent OCaml programs")
2734 "Ocp-indent is based on an approximate, tolerant OCaml parser
2735 and a simple stack machine. Presets and configuration options are available,
2736 with the possibility to set them project-wide. It supports the most common
2737 syntax extensions, and it is extensible for others.
2739 This package includes:
2742 @item An indentor program, callable from the command-line or from within editors,
2743 @item Bindings for popular editors,
2744 @item A library that can be directly used by editor writers, or just for
2745 fault-tolerant and approximate parsing.
2747 (license license:lgpl2.1)))
2749 (define-public ocaml-ocp-index
2751 (name "ocaml-ocp-index")
2757 (url "https://github.com/OCamlPro/ocp-index")
2759 (file-name (git-file-name name version))
2762 "08r7mxdnxmhff37fw4hmrpjgckgi5kaiiiirwp4rmdl594z0h9c8"))))
2763 (build-system dune-build-system)
2765 `(#:package "ocp-index"))
2767 `(("ocaml-ocp-indent" ,ocaml-ocp-indent)
2768 ("ocaml-re" ,ocaml-re)
2769 ("ocaml-cmdliner" ,ocaml-cmdliner)))
2771 `(("ocaml-cppo" ,ocaml-cppo)))
2772 (home-page "https://www.typerex.org/ocp-index.html")
2773 (synopsis "Lightweight completion and documentation browsing for OCaml libraries")
2774 (description "This package includes only the @code{ocp-index} library
2775 and command-line tool.")
2776 ;; All files in libs/ are GNU lgpl2.1
2777 ;; For static linking, clause 6 of LGPL is lifted
2778 ;; All other files under GNU gpl3
2779 (license (list license:gpl3+
2780 license:lgpl2.1+))))
2782 (define-public ocaml-ocurl
2784 (name "ocaml-ocurl")
2788 (uri (string-append "http://ygrek.org.ua/p/release/ocurl/ocurl-"
2792 "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6"))))
2793 (build-system ocaml-build-system)
2796 (modify-phases %standard-phases
2797 (add-before 'configure 'fix-/bin/sh
2798 (lambda* (#:key inputs #:allow-other-keys)
2799 (substitute* "configure"
2800 (("-/bin/sh") (string-append "-" (which "bash")))))))))
2802 `(("pkg-config" ,pkg-config)))
2803 (inputs `(("curl" ,curl)))
2804 (home-page "http://ocurl.forge.ocamlcore.org/")
2805 (synopsis "OCaml bindings for libcurl")
2806 (description "Client-side URL transfer library, supporting HTTP and a
2807 multitude of other network protocols (FTP/SMTP/RTSP/etc).")
2808 (license license:isc)))
2810 (define-public ocaml-base64
2812 (name "ocaml-base64")
2817 (url "https://github.com/mirage/ocaml-base64")
2818 (commit (string-append "v" version))))
2819 (file-name (git-file-name name version))
2822 "0aa1m1sr8p1hgc10p96mij7p22r3qcysvzy6fz2jqamfgswchgqc"))))
2823 (build-system dune-build-system)
2826 (modify-phases %standard-phases
2827 (add-before 'build 'fix-dune
2829 ;; This package expects dune 2, which unbundled its configurator
2830 ;; module. We still use dune 1, so we need to let it know we need
2831 ;; its internal module.
2832 (substitute* "config/dune"
2833 (("dune-configurator") "dune.configurator"))
2836 `(("ocaml-alcotest" ,ocaml-alcotest)
2837 ("ocaml-bos" ,ocaml-bos)
2838 ("ocaml-rresult" ,ocaml-rresult)))
2839 (home-page "https://github.com/mirage/ocaml-base64")
2840 (synopsis "Base64 encoding for OCaml")
2841 (description "Base64 is a group of similar binary-to-text encoding schemes
2842 that represent binary data in an ASCII string format by translating it into a
2843 radix-64 representation. It is specified in RFC 4648.")
2844 (license license:isc)))
2846 (define-public ocamlify
2853 (uri (string-append "https://download.ocamlcore.org/ocamlify/ocamlify/"
2854 version "/ocamlify-" version ".tar.gz"))
2856 (base32 "1f0fghvlbfryf5h3j4as7vcqrgfjb4c8abl5y0y5h069vs4kp5ii"))))
2857 (build-system ocaml-build-system)
2859 `(#:tests? #f; no tests
2861 (modify-phases %standard-phases
2864 ;; This package uses pre-generated setup.ml by oasis, but is
2865 ;; a dependency of oasis. the pre-generated setup.ml is broken
2866 ;; with recent versions of OCaml, so we perform a bootstrap instead.
2868 (substitute* "src/OCamlifyConfig.ml.ab"
2869 (("$pkg_version") ,version))
2870 (rename-file "src/OCamlifyConfig.ml.ab" "src/OCamlifyConfig.ml")
2871 (with-directory-excursion "src"
2872 (invoke "ocamlc" "OCamlifyConfig.ml" "ocamlify.ml" "-o"
2876 (lambda* (#:key outputs #:allow-other-keys)
2877 (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
2879 (install-file "src/ocamlify" bin)
2881 (home-page "https://forge.ocamlcore.org/projects/ocamlify")
2882 (synopsis "Include files in OCaml code")
2883 (description "OCamlify creates OCaml source code by including
2884 whole files into OCaml string or string list. The code generated can be
2885 compiled as a standard OCaml file. It allows embedding external resources as
2887 (license license:lgpl2.1+))); with the OCaml static compilation exception
2889 (define-public omake
2895 (uri (string-append "http://download.camlcity.org/download/"
2896 "omake-" version ".tar.gz"))
2899 "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz"))
2900 (patches (search-patches "omake-fix-non-determinism.patch"))))
2901 (build-system ocaml-build-system)
2904 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2905 #:tests? #f ; no test target
2907 (modify-phases %standard-phases
2908 (add-before 'configure 'fix-makefile
2909 (lambda* (#:key outputs #:allow-other-keys)
2910 (substitute* "mk/osconfig_unix.mk"
2911 (("CC = cc") "CC = gcc")))))))
2912 (native-inputs `(("hevea" ,hevea)))
2913 (home-page "http://projects.camlcity.org/projects/omake.html")
2914 (synopsis "Build system designed for scalability and portability")
2915 (description "Similar to make utilities you may have used, but it features
2916 many additional enhancements, including:
2919 @item Support for projects spanning several directories or directory hierarchies.
2920 @item Fast, reliable, automated, scriptable dependency analysis using MD5 digests,
2921 with full support for incremental builds.
2922 @item Dependency analysis takes the command lines into account — whenever the
2923 command line used to build a target changes, the target is considered
2925 @item Fully scriptable, includes a library that providing support for standard
2926 tasks in C, C++, OCaml, and LaTeX projects, or a mixture thereof.
2928 (license (list license:lgpl2.1 ; libmojave
2929 license:expat ; OMake scripts
2930 license:gpl2)))) ; OMake itself, with ocaml linking exception
2933 (define-public ocaml-batteries
2935 (name "ocaml-batteries")
2939 (uri (string-append "https://github.com/ocaml-batteries-team/"
2940 "batteries-included/releases/download/v"
2941 version "/batteries-" version ".tar.gz"))
2944 "08ghw87d56h1a6y1nnh3x2wy9xj25jqfk5sp6ma9nsyd37babb0h"))))
2945 (build-system ocaml-build-system)
2947 `(("ocamlbuild" ,ocamlbuild)
2948 ("qtest" ,ocaml-qtest)))
2950 `(("ocaml-num" ,ocaml-num)))
2953 (modify-phases %standard-phases
2954 (delete 'check) ; tests are run by the build phase
2955 (add-before 'build 'fix-nondeterminism
2957 (substitute* "setup.ml"
2958 (("Sys.readdir dirname")
2959 "let a = Sys.readdir dirname in Array.sort String.compare a; a"))
2962 (lambda* (#:key inputs outputs #:allow-other-keys)
2965 (substring str 0 (- (string-length str) 1)))
2967 (find-files "src" ".*.mliv")
2968 (find-files "src" ".*.mlv")
2969 (find-files "src" ".*.mlp")))))
2970 (apply invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2971 "-lflag" "-dllpath-all" files)
2972 (for-each (lambda (file)
2973 (copy-file (string-append "_build/" file) file))
2975 (invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2976 "-lflag" "-dllpath-all" "build/mkconf.byte")
2977 (copy-file "_build/build/mkconf.byte" "build/mkconf.byte")
2978 (invoke "make" "all")
2980 (home-page "http://batteries.forge.ocamlcore.org/")
2981 (synopsis "Development platform for the OCaml programming language")
2982 (description "Define a standard set of libraries which may be expected on
2983 every compliant installation of OCaml and organize these libraries into a
2984 hierarchy of modules.")
2985 (license license:lgpl2.1+)))
2987 (define-public ocaml4.07-pcre
2989 (name "ocaml4.07-pcre")
2994 (url "https://github.com/mmottl/pcre-ocaml")
2996 (file-name (git-file-name name version))
2999 "11sd8g668h48790lamz0riw9jgnfkaif5qdfa0akcndwa6aj07jf"))))
3000 (build-system dune-build-system)
3004 #:findlib ,ocaml4.07-findlib
3005 #:dune ,ocaml4.07-dune))
3007 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
3008 ("pcre:bin" ,pcre "bin")))
3009 (propagated-inputs `(("pcre" ,pcre)))
3010 (home-page "https://mmottl.github.io/pcre-ocaml")
3011 (synopsis "Bindings to the Perl Compatibility Regular Expressions library")
3012 (description "Pcre-ocaml offers library functions for string pattern
3013 matching and substitution, similar to the functionality offered by the Perl
3015 (license license:lgpl2.1+))); with the OCaml link exception
3017 (define-public ocaml4.07-expect
3019 (name "ocaml4.07-expect")
3023 (uri (ocaml-forge-uri name version 1736))
3026 "098qvg9d4yrqzr5ax291y3whrpax0m3sx4gi6is0mblc96r9yqk0"))))
3030 #:findlib ,ocaml4.07-findlib))
3031 (build-system ocaml-build-system)
3033 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))
3034 ("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
3035 ("ocaml-pcre" ,ocaml4.07-pcre)
3036 ("ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
3038 `(("batteries" ,(package-with-ocaml4.07 ocaml-batteries))))
3039 (home-page "https://forge.ocamlcore.org/projects/ocaml-expect/")
3040 (synopsis "Simple implementation of expect")
3041 (description "Help building unitary testing of interactive program. You
3042 can match the question using a regular expression or a timeout.")
3043 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
3045 (define-public ocaml-stdlib-shims
3047 (name "ocaml-stdlib-shims")
3052 (url "https://github.com/ocaml/stdlib-shims")
3054 (file-name (git-file-name name version))
3057 "007dwywsr5285z0np6a9nr0h8iqmyzfrlx6s5xaqcwj69zabsrjm"))))
3058 (build-system dune-build-system)
3059 (home-page "https://github.com/ocaml/stdlib-shims")
3060 (synopsis "OCaml stdlib features backport to older OCaml compilers")
3061 (description "This package backports some of the new stdlib features to
3062 older compilers, such as the Stdlib module. This allows projects that require
3063 compatibility with older compiler to use these new features in their code.")
3064 ;; with ocaml-linking exception
3065 (license license:lgpl2.1+)))
3067 (define-public ocaml-fileutils
3069 (name "ocaml-fileutils")
3074 (url "https://github.com/gildor478/ocaml-fileutils")
3075 (commit (string-append "v" version))))
3076 (file-name (git-file-name name version))
3079 "01qf51b8pb7vyfba7y0kb7ajwj1950im25d7f59821zwsibns3d9"))))
3080 (build-system dune-build-system)
3082 `(("ocaml-stdlib-shims" ,ocaml-stdlib-shims)))
3084 `(("ocaml-ounit" ,ocaml-ounit)))
3085 (home-page "http://ocaml-fileutils.forge.ocamlcore.org")
3086 (synopsis "Pure OCaml functions to manipulate real file and filename")
3087 (description "Library to provide pure OCaml functions to manipulate real
3088 file (POSIX like) and filename.")
3089 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
3091 (define-public ocaml-oasis
3093 (name "ocaml-oasis")
3097 (uri (ocaml-forge-uri name version 1757))
3100 "0bn13mzfa98dq3y0jwzzndl55mnywaxv693z6f1rlvpdykp3vdqq"))
3101 (modules '((guix build utils)))
3104 (substitute* "test/test-main/Test.ml"
3105 ;; most of these tests fail because ld cannot find crti.o, but according
3106 ;; to the log file, the environment variables {LD_,}LIBRARY_PATH
3107 ;; are set correctly when LD_LIBRARY_PATH is defined beforhand.
3108 (("TestBaseCompat.tests;") "")
3109 (("TestExamples.tests;") "")
3110 (("TestFull.tests;") "")
3111 (("TestPluginDevFiles.tests;") "")
3112 (("TestPluginInternal.tests;") "")
3113 (("TestPluginOCamlbuild.tests;") "")
3114 (("TestPluginOMake.tests;") ""))
3116 (build-system ocaml-build-system)
3120 `(("ocamlbuild" ,ocamlbuild)
3121 ("ocamlify" ,ocamlify)
3122 ("ocamlmod" ,ocamlmod)))
3123 (home-page "https://oasis.forge.ocamlcore.org")
3124 (synopsis "Integrates a configure, build, install system in OCaml projects")
3125 (description "OASIS is a tool to integrate a configure, build and install
3126 system in your OCaml projects. It helps to create standard entry points in your
3127 build system and allows external tools to analyse your project easily.")
3128 (license license:lgpl2.1+))) ; with ocaml static compilation exception
3130 (define-public ocaml-cppo
3138 (url "https://github.com/mjambon/cppo")
3139 (commit (string-append "v" version))))
3140 (file-name (git-file-name name version))
3142 "1smcc0l6fh2n0y6bp96c69j5nw755jja99w0b206wx3yb2m4w2hs"))))
3143 (build-system dune-build-system)
3146 #:build-flags (list "--profile" "release")))
3148 `(("ocamlbuild" ,ocamlbuild)))
3149 (home-page "https://github.com/mjambon/cppo")
3150 (synopsis "Equivalent of the C preprocessor for OCaml programs")
3151 (description "Cppo is an equivalent of the C preprocessor for OCaml
3152 programs. It allows the definition of simple macros and file inclusion. Cppo is:
3154 @item more OCaml-friendly than @command{cpp}
3155 @item easy to learn without consulting a manual
3156 @item reasonably fast
3157 @item simple to install and to maintain.
3159 (license license:bsd-3)))
3161 (define-public ocaml-seq
3169 (url "https://github.com/c-cube/seq")
3171 (file-name (git-file-name name version))
3173 (base32 "1cjpsc7q76yfgq9iyvswxgic4kfq2vcqdlmxjdjgd4lx87zvcwrv"))))
3174 (build-system ocaml-build-system)
3178 (modify-phases %standard-phases
3182 (lambda* (#:key outputs #:allow-other-keys)
3183 (let ((install-dir (string-append (assoc-ref outputs "out")
3184 "/lib/ocaml/site-lib/seq")))
3185 (mkdir-p install-dir)
3186 (with-output-to-file (string-append install-dir "/META")
3188 (display "name=\"seq\"
3189 version=\"[distributed with ocaml]\"
3190 description=\"dummy package for compatibility\"
3193 (home-page "https://github.com/c-cube/seq")
3194 (synopsis "OCaml's standard iterator type")
3195 (description "This package is a compatibility package for OCaml's
3196 standard iterator type starting from 4.07.")
3197 (license license:lgpl2.1+)))
3199 (define-public ocaml-re
3207 (url "https://github.com/ocaml/ocaml-re")
3209 (file-name (git-file-name name version))
3211 (base32 "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss"))))
3212 (build-system dune-build-system)
3215 #:build-flags (list "--profile" "release")))
3217 `(("ocaml-seq" ,ocaml-seq)))
3219 `(("ounit" ,ocaml-ounit)))
3220 (home-page "https://github.com/ocaml/ocaml-re/")
3221 (synopsis "Regular expression library for OCaml")
3222 (description "Pure OCaml regular expressions with:
3224 @item Perl-style regular expressions (module Re_perl)
3225 @item Posix extended regular expressions (module Re_posix)
3226 @item Emacs-style regular expressions (module Re_emacs)
3227 @item Shell-style file globbing (module Re_glob)
3228 @item Compatibility layer for OCaml's built-in Str module (module Re_str)
3230 (license license:expat)))
3232 (define-public ocaml-ocplib-endian
3234 (name "ocaml-ocplib-endian")
3239 (url "https://github.com/OCamlPro/ocplib-endian/")
3243 "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw"))
3244 (file-name (git-file-name name version))))
3245 (build-system ocaml-build-system)
3247 `(("cppo" ,ocaml-cppo)
3248 ("ocamlbuild" ,ocamlbuild)))
3249 (home-page "https://github.com/OCamlPro/ocplib-endian")
3250 (synopsis "Optimised functions to read and write int16/32/64 from strings
3252 (description "Optimised functions to read and write int16/32/64 from strings
3253 and bigarrays, based on new primitives added in version 4.01. It works on
3254 strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
3255 big- and little-endian, with their unsafe counter-parts.")
3256 (license license:lgpl2.1)))
3258 (define-public ocaml-cstruct
3260 (name "ocaml-cstruct")
3265 (url "https://github.com/mirage/ocaml-cstruct")
3266 (commit (string-append "v" version))))
3267 (file-name (git-file-name name version))
3270 "0m4bz0digcsc8l2msfikwcbi1y371kccx6xnkwrz212mf5mp98bv"))))
3271 (build-system dune-build-system)
3273 `(#:package "cstruct"
3276 `(("ocaml-alcotest" ,ocaml-alcotest)))
3277 (home-page "https://github.com/mirage/ocaml-cstruct")
3278 (synopsis "Access C structures via a camlp4 extension")
3279 (description "Cstruct is a library and syntax extension to make it easier
3280 to access C-like structures directly from OCaml. It supports both reading and
3281 writing to these structures, and they are accessed via the Bigarray module.")
3282 (license license:isc)))
3284 (define-public ocaml-hex
3291 (url "https://github.com/mirage/ocaml-hex")
3292 (commit (string-append "v" version))))
3293 (file-name (git-file-name name version))
3296 "0c8nhibcwy0ykzca4jn3gqb8ylq21ff88y82gl60wyzijr64rn0q"))))
3297 (build-system dune-build-system)
3299 `(#:test-target "."))
3301 `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat)
3302 ("cstruct" ,ocaml-cstruct)))
3303 (home-page "https://github.com/mirage/ocaml-hex/")
3304 (synopsis "Minimal library providing hexadecimal converters")
3305 (description "Hex is a minimal library providing hexadecimal converters.")
3306 (license license:isc)))
3308 (define-public ocaml4.07-ezjsonm
3310 (name "ocaml4.07-ezjsonm")
3316 (url "https://github.com/mirage/ezjsonm")
3317 (commit (string-append "v" version))))
3318 (file-name (git-file-name name version))
3320 (base32 "064j9pzy01p3dv947khqyn7fkjbs3jmrqsg8limb4abnlaqxxs2s"))))
3321 (build-system dune-build-system)
3323 `(#:package "ezjsonm"
3326 #:findlib ,ocaml4.07-findlib
3327 #:dune ,ocaml4.07-dune))
3329 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))))
3331 `(("ocaml-hex" ,(package-with-ocaml4.07 ocaml-hex))
3332 ("ocaml-jsonm" ,(package-with-ocaml4.07 ocaml-jsonm))
3333 ("ocaml-sexplib" ,(package-with-ocaml4.07 ocaml-sexplib))))
3334 (home-page "https://github.com/mirage/ezjsonm/")
3335 (synopsis "Read and write JSON data")
3336 (description "Ezjsonm provides more convenient (but far less flexible) input
3337 and output functions that go to and from [string] values than jsonm. This avoids
3338 the need to write signal code, which is useful for quick scripts that manipulate
3340 (license license:isc)))
3342 (define-public ocaml4.07-uri
3344 (name "ocaml4.07-uri")
3350 (url "https://github.com/mirage/ocaml-uri")
3351 (commit (string-append "v" version))))
3352 (file-name (git-file-name name version))
3354 (base32 "1ppbav41mszpjcl0zi3fyg958cxyfs57i7kvha4ds9ydn89bjmrh"))))
3355 (build-system dune-build-system)
3359 (modify-phases %standard-phases
3360 (add-before 'build 'update-deprecated
3362 (substitute* "lib/uri.ml"
3363 (("Re.get") "Re.Group.get")))))
3365 #:findlib ,ocaml4.07-findlib
3366 #:dune ,ocaml4.07-dune))
3368 `(("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))
3369 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)))
3371 `(("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
3372 ("ocaml-sexplib0" ,(package-with-ocaml4.07 ocaml-sexplib0))
3373 ("ocaml-stringext" ,(package-with-ocaml4.07 ocaml-stringext))))
3374 (home-page "https://github.com/mirage/ocaml-uri")
3375 (synopsis "RFC3986 URI/URL parsing library")
3376 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.")
3377 (license license:isc)))
3379 (define-public ocaml-easy-format
3381 (name "ocaml-easy-format")
3386 (url "https://github.com/mjambon/easy-format")
3388 (file-name (git-file-name name version))
3391 "1fc95q2ypck6m6rv3kiawwilh5ac93v2hcp823mj608d5kj79xkb"))))
3392 (build-system dune-build-system)
3394 `(#:package "easy-format"
3396 (modify-phases %standard-phases
3397 (add-before 'build 'make-writable
3402 (find-files "." "."))
3404 (home-page "https://github.com/mjambon/easy-format")
3405 (synopsis "Interface to the Format module")
3406 (description "Easy-format is a high-level and functional interface to the
3407 Format module of the OCaml standard library.")
3408 (license license:bsd-3)))
3410 (define-public ocaml4.07-piqilib
3412 (name "ocaml4.07-piqilib")
3418 (url "https://github.com/alavrik/piqi")
3419 (commit (string-append "v" version))))
3420 (file-name (git-file-name name version))
3422 (base32 "0v04hs85xv6d4ysqxyv1dik34dx49yab9shpi4x7iv19qlzl7csb"))))
3423 (build-system ocaml-build-system)
3426 (modify-phases %standard-phases
3427 (add-before 'configure 'fix-ocamlpath
3429 (substitute* '("Makefile" "make/Makefile.ocaml")
3430 (("OCAMLPATH := ") "OCAMLPATH := $(OCAMLPATH):"))
3433 (lambda* (#:key outputs #:allow-other-keys)
3434 (let ((out (assoc-ref outputs "out")))
3435 (substitute* "make/OCamlMakefile"
3436 (("/bin/sh") (which "bash")))
3437 (invoke "./configure" "--prefix" out "--ocaml-libdir"
3438 (string-append out "/lib/ocaml/site-lib")))
3440 (add-after 'build 'build-ocaml
3441 (lambda* (#:key outputs #:allow-other-keys)
3442 (invoke "make" "ocaml")
3444 (add-after 'install 'install-ocaml
3445 (lambda* (#:key outputs #:allow-other-keys)
3446 (invoke "make" "ocaml-install")
3448 (add-after 'install-ocaml 'link-stubs
3449 (lambda* (#:key outputs #:allow-other-keys)
3450 (let* ((out (assoc-ref outputs "out"))
3451 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
3452 (lib (string-append out "/lib/ocaml/site-lib/piqilib")))
3454 (symlink (string-append lib "/dllpiqilib_stubs.so")
3455 (string-append stubs "/dllpiqilib_stubs.so"))
3458 #:findlib ,ocaml4.07-findlib))
3460 `(("which" ,which)))
3462 `(("ocaml-xmlm" ,(package-with-ocaml4.07 ocaml-xmlm))
3463 ("ocaml-sedlex" ,ocaml4.07-sedlex)
3464 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))
3465 ("ocaml-base64" ,(package-with-ocaml4.07 ocaml-base64))))
3466 (home-page "http://piqi.org")
3467 (synopsis "Data serialization and conversion library")
3468 (description "Piqilib is the common library used by the piqi command-line
3469 tool and piqi-ocaml.")
3470 (license license:asl2.0)))
3472 (define-public ocaml-uuidm
3474 (name "ocaml-uuidm")
3478 (uri (string-append "http://erratique.ch/software/uuidm/"
3479 "releases/uuidm-" version ".tbz"))
3482 "0hz4fdx0x16k0pw9995vkz5d1hmzz6b16wck9li399rcbfnv5jlc"))))
3483 (build-system ocaml-build-system)
3486 (list "build" "--tests" "true" "--with-cmdliner" "true")
3488 (modify-phases %standard-phases
3489 (delete 'configure))))
3491 `(("ocamlbuild" ,ocamlbuild)
3494 `(("cmdliner" ,ocaml-cmdliner)
3495 ("topkg" ,ocaml-topkg)))
3496 (home-page "https://erratique.ch/software/uuidm")
3497 (synopsis "Universally unique identifiers for OCaml")
3498 (description "Uuidm is an OCaml module implementing 128 bits universally
3499 unique identifiers (UUIDs) version 3, 5 (named based with MD5, SHA-1 hashing)
3500 and 4 (random based) according to RFC 4122.")
3501 (license license:isc)))
3503 (define-public ocaml-graph
3505 (name "ocaml-graph")
3509 (uri (string-append "http://ocamlgraph.lri.fr/download/"
3510 "ocamlgraph-" version ".tar.gz"))
3513 "0m9g16wrrr86gw4fz2fazrh8nkqms0n863w7ndcvrmyafgxvxsnr"))))
3514 (build-system ocaml-build-system)
3516 `(#:install-target "install-findlib"
3519 (modify-phases %standard-phases
3520 (add-before 'configure 'set-shell
3521 (lambda* (#:key inputs #:allow-other-keys)
3522 (setenv "CONFIG_SHELL" (string-append (assoc-ref inputs "bash")
3524 (inputs `(("lablgtk" ,lablgtk)))
3525 (properties `((upstream-name . "ocamlgraph")))
3526 (home-page "http://ocamlgraph.lri.fr/")
3527 (synopsis "Graph library for OCaml")
3528 (description "OCamlgraph is a generic graph library for OCaml.")
3529 (license license:lgpl2.1)))
3531 (define-public ocaml4.07-piqi
3533 (name "ocaml4.07-piqi")
3538 (url "https://github.com/alavrik/piqi-ocaml")
3539 (commit (string-append "v" version))))
3540 (file-name (git-file-name name version))
3543 "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm"))))
3544 (build-system ocaml-build-system)
3547 (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
3548 (string-append "SHELL=" (assoc-ref %build-inputs "bash")
3551 (modify-phases %standard-phases
3552 (add-after 'unpack 'make-files-writable
3554 (for-each make-file-writable (find-files "."))
3556 (delete 'configure))
3558 #:findlib ,ocaml4.07-findlib))
3561 ("protobuf" ,protobuf))) ; for tests
3563 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
3564 ("ocaml-piqilib" ,ocaml4.07-piqilib)
3565 ("ocaml-stdlib-shims" ,(package-with-ocaml4.07 ocaml-stdlib-shims))))
3566 (home-page "https://github.com/alavrik/piqi-ocaml")
3567 (synopsis "Protocol serialization system for OCaml")
3568 (description "Piqi is a multi-format data serialization system for OCaml.
3569 It provides a uniform interface for serializing OCaml data structures to JSON,
3570 XML and Protocol Buffers formats.")
3571 (license license:asl2.0)))
3577 (home-page "https://github.com/BinaryAnalysisPlatform/bap")
3582 (commit (string-append "v" version))))
3583 (file-name (git-file-name name version))
3586 "0lb9xkfp67wjjqr75p6krivmjra7l5673236v9ny4gp0xi0755bk"))))
3587 (build-system ocaml-build-system)
3589 `(("ocaml-oasis" ,(package-with-ocaml4.07 ocaml-oasis))
3590 ("clang" ,clang-3.8)
3591 ("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
3593 `(("camlzip" ,(package-with-ocaml4.07 camlzip))
3594 ("ocaml-bitstring" ,(package-with-ocaml4.07 ocaml-bitstring))
3595 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
3596 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
3597 ("ocaml-ezjsonm" ,ocaml4.07-ezjsonm)
3598 ("ocaml-fileutils" ,(package-with-ocaml4.07 ocaml-fileutils))
3599 ("ocaml-frontc" ,(package-with-ocaml4.07 ocaml-frontc))
3600 ("ocaml-graph" ,(package-with-ocaml4.07 ocaml-graph))
3601 ("ocaml-ocurl" ,(package-with-ocaml4.07 ocaml-ocurl))
3602 ("ocaml-piqi" ,ocaml4.07-piqi)
3603 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
3604 ("ocaml-utop" ,ocaml4.07-utop)
3605 ("ocaml-uuidm" ,(package-with-ocaml4.07 ocaml-uuidm))
3606 ("ocaml-uri" ,ocaml4.07-uri)
3607 ("ocaml-zarith" ,(package-with-ocaml4.07 ocaml-zarith))))
3611 ("ncurses" ,ncurses)))
3615 (modify-phases %standard-phases
3616 (add-before 'configure 'fix-ncurses
3618 (substitute* "oasis/llvm"
3619 (("-lcurses") "-lncurses"))
3622 (lambda* (#:key outputs inputs #:allow-other-keys)
3623 ;; add write for user, to prevent a failure in the install phase
3626 (let ((stat (stat file)))
3627 (chmod file (+ #o200 (stat:mode stat)))))
3628 (find-files "." "."))
3629 (invoke "./configure" "--prefix"
3630 (assoc-ref outputs "out")
3633 (assoc-ref outputs "out")
3634 "/lib/ocaml/site-lib")
3635 "--with-llvm-version=3.8"
3636 "--with-llvm-config=llvm-config"
3637 "--enable-everything"))))
3639 #:findlib ,ocaml4.07-findlib))
3640 (synopsis "Binary Analysis Platform")
3641 (description "Binary Analysis Platform is a framework for writing program
3642 analysis tools, that target binary files. The framework consists of a plethora
3643 of libraries, plugins, and frontends. The libraries provide code reusability,
3644 the plugins facilitate extensibility, and the frontends serve as entry points.")
3645 (license license:expat)))
3647 (define-public ocaml-camomile
3649 (name "ocaml-camomile")
3651 (home-page "https://github.com/yoriyuki/Camomile")
3654 (uri (string-append home-page "/releases/download/" version
3655 "/camomile-" version ".tbz"))
3658 "0chn7ldqb3wyf95yhmsxxq65cif56smgz1mhhc7m0dpwmyq1k97h"))))
3659 (build-system dune-build-system)
3661 `(#:build-flags (list "--profile" "release")
3662 #:test-target "camomile-test"
3663 #:tests? #f; Tests fail, see https://github.com/yoriyuki/Camomile/issues/82
3665 (modify-phases %standard-phases
3666 (add-before 'build 'fix-usr-share
3667 (lambda* (#:key outputs #:allow-other-keys)
3668 (substitute* '("Camomile/dune" "configure.ml")
3669 (("/usr/share") (string-append (assoc-ref outputs "out") "/share")))
3671 (synopsis "Comprehensive Unicode library")
3672 (description "Camomile is a Unicode library for OCaml. Camomile provides
3673 Unicode character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about
3674 200 encodings, collation and locale-sensitive case mappings, and more. The
3675 library is currently designed for Unicode Standard 3.2.")
3676 ;; with an exception for linked libraries to use a different license
3677 (license license:lgpl2.0+)))
3679 (define-public ocaml4.07-charinfo-width
3681 (name "ocaml4.07-charinfo-width")
3685 (uri (string-append "https://bitbucket.org/zandoye/charinfo_width"
3686 "/get/" version ".tar.gz"))
3687 (file-name (string-append name "-" version ".tar.gz"))
3690 "00bv4p1yqs8y0z4z07wd9w9yyv669dikp9b04dcjbwpiy2wy0086"))))
3691 (build-system dune-build-system)
3693 `(#:ocaml ,ocaml-4.07
3694 #:findlib ,ocaml4.07-findlib
3695 #:dune ,ocaml4.07-dune))
3697 `(("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
3698 ("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))))
3700 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
3702 `((upstream-name . "charInfo_width")))
3703 (home-page "https://bitbucket.org/zandoye/charinfo_width/")
3704 (synopsis "Determine column width for a character")
3705 (description "This module is implements purely in OCaml a character width
3706 function that follows the prototype of POSIX's wcwidth.")
3707 (license license:expat)))
3709 (define-public ocaml4.07-zed
3711 (name "ocaml4.07-zed")
3717 (url "https://github.com/diml/zed")
3719 (file-name (git-file-name name version))
3721 (base32 "0pa9awinqr0plp4b2az78dwpvh01pwaljnn5ydg8mc6hi7rmir55"))))
3722 (build-system dune-build-system)
3726 #:findlib ,ocaml4.07-findlib
3727 #:dune ,ocaml4.07-dune))
3729 `(("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3730 ("ocaml-charinfo-width" ,ocaml4.07-charinfo-width)
3731 ("ocaml-react" ,(package-with-ocaml4.07 ocaml-react))))
3732 (home-page "https://github.com/diml/zed")
3733 (synopsis "Abstract engine for text editing in OCaml")
3734 (description "Zed is an abstract engine for text edition. It can be used
3735 to write text editors, edition widgets, readlines, etc. You just have to
3736 connect an engine to your inputs and rendering functions to get an editor.")
3737 (license license:bsd-3)))
3739 (define-public ocaml4.07-lambda-term
3741 (name "ocaml4.07-lambda-term")
3747 (url "https://github.com/diml/lambda-term")
3749 (file-name (git-file-name name version))
3751 (base32 "0zcjy6fvf0d3i2ssz96asl889n3r6bplyzk7xvb2s3dkxbgcisyy"))))
3752 (build-system dune-build-system)
3754 `(#:build-flags (list "--profile" "release")
3757 #:findlib ,ocaml4.07-findlib
3758 #:dune ,ocaml4.07-dune))
3760 `(("ocaml-lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3761 ("ocaml-lwt-log" ,(package-with-ocaml4.07 ocaml-lwt-log))
3762 ("ocaml-lwt-react" ,(package-with-ocaml4.07 ocaml-lwt-react))
3763 ("ocaml-zed" ,ocaml4.07-zed)))
3765 `(("libev" ,libev)))
3766 (home-page "https://github.com/diml/lambda-term")
3767 (synopsis "Terminal manipulation library for OCaml")
3768 (description "Lambda-Term is a cross-platform library for manipulating the
3769 terminal. It provides an abstraction for keys, mouse events, colors, as well as
3770 a set of widgets to write curses-like applications. The main objective of
3771 Lambda-Term is to provide a higher level functional interface to terminal
3772 manipulation than, for example, ncurses, by providing a native OCaml interface
3773 instead of bindings to a C library.")
3774 (license license:bsd-3)))
3776 (define-public ocaml4.07-utop
3778 (name "ocaml4.07-utop")
3784 (url "https://github.com/ocaml-community/utop")
3786 (file-name (git-file-name name version))
3788 (base32 "1bl4943qpi3qy152dbdm5glhx19zsiylmn4rcxi8l66g58hikyjp"))))
3789 (build-system dune-build-system)
3793 #:findlib ,ocaml4.07-findlib
3794 #:dune ,ocaml4.07-dune))
3796 `(("cppo" ,(package-with-ocaml4.07 ocaml-cppo))))
3798 `(("lambda-term" ,ocaml4.07-lambda-term)
3799 ("lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3800 ("react" ,(package-with-ocaml4.07 ocaml-react))
3801 ("camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3802 ("zed" ,ocaml4.07-zed)))
3803 (home-page "https://github.com/ocaml-community/utop")
3804 (synopsis "Improved interface to the OCaml toplevel")
3805 (description "UTop is an improved toplevel for OCaml. It can run in a
3806 terminal or in Emacs. It supports line editing, history, real-time and context
3807 sensitive completion, colors, and more.")
3808 (license license:bsd-3)))
3810 (define-public ocaml-integers
3812 (name "ocaml-integers")
3814 (home-page "https://github.com/ocamllabs/ocaml-integers")
3817 (uri (string-append home-page
3818 "/releases/download/v0.2.2/integers-"
3820 (file-name (string-append name "-" version ".tbz"))
3823 "08b1ljw88ny3l0mdq6xmffjk8anfc77igryva5jz1p6f4f746ywk"))))
3824 (build-system ocaml-build-system)
3826 `(#:tests? #f; no tests
3827 #:build-flags (list "build")
3829 (modify-phases %standard-phases
3830 (delete 'configure))))
3832 `(("ocamlbuild" ,ocamlbuild)))
3834 `(("topkg" ,ocaml-topkg)
3836 (synopsis "Various signed and unsigned integer types for OCaml")
3837 (description "The ocaml-integers library provides a number of 8-, 16-, 32-
3838 and 64-bit signed and unsigned integer types, together with aliases such as
3839 long and size_t whose sizes depend on the host platform.")
3840 (license license:expat)))
3842 (define-public ocaml-ctypes
3844 (name "ocaml-ctypes")
3846 (home-page "https://github.com/ocamllabs/ocaml-ctypes")
3852 (file-name (git-file-name name version))
3855 "1b2q3h63ngf4x9qp65qwapf2dg9q0mcdah6qjm2q0c7v2p5vysv9"))))
3856 (build-system ocaml-build-system)
3858 `(#:tests? #f; require an old lwt
3860 (list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
3862 (modify-phases %standard-phases
3863 (add-after 'unpack 'make-writable
3867 (let ((stat (stat file)))
3868 (chmod file (+ #o200 (stat:mode stat)))))
3869 (find-files "." "."))
3871 (delete 'configure))))
3873 `(("pkg-config" ,pkg-config)))
3875 `(("libffi" ,libffi)
3876 ("ounit" ,ocaml-ounit)
3877 ("integers" ,ocaml-integers)
3879 ("topkg" ,ocaml-topkg)
3881 (synopsis "Library for binding to C libraries using pure OCaml")
3882 (description "Ctypes is a library for binding to C libraries using pure
3883 OCaml. The primary aim is to make writing C extensions as straightforward as
3884 possible. The core of ctypes is a set of combinators for describing the
3885 structure of C types -- numeric types, arrays, pointers, structs, unions and
3886 functions. You can use these combinators to describe the types of the
3887 functions that you want to call, then bind directly to those functions -- all
3888 without writing or generating any C!")
3889 (license license:expat)))
3891 (define-public ocaml-ocb-stubblr
3893 (name "ocaml-ocb-stubblr")
3895 (home-page "https://github.com/pqwy/ocb-stubblr")
3899 home-page "/releases/download/v0.1.1/ocb-stubblr-"
3901 (file-name (string-append name "-" version ".tbz"))
3904 "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
3905 (build-system ocaml-build-system)
3907 `(#:build-flags (list "build" "--tests" "true")
3909 (modify-phases %standard-phases
3911 (add-before 'build 'fix-for-guix
3913 (substitute* "src/ocb_stubblr.ml"
3914 ;; Do not fail when opam is not present or initialized
3915 (("error_msgf \"error running opam\"") "\"\"")
3916 ;; Guix doesn't have cc, but it has gcc
3917 (("\"cc\"") "\"gcc\""))
3920 `(("topkg" ,ocaml-topkg)
3923 `(("astring" ,ocaml-astring)
3924 ("ocamlbuild" ,ocamlbuild)))
3925 (synopsis "OCamlbuild plugin for C stubs")
3926 (description "Ocb-stubblr is about ten lines of code that you need to
3927 repeat over, over, over and over again if you are using ocamlbuild to build
3928 OCaml projects that contain C stubs.")
3929 (license license:isc)))
3931 (define-public ocaml-tsdl
3935 (home-page "https://erratique.ch/software/tsdl")
3938 (uri (string-append home-page "/releases/tsdl-"
3940 (file-name (string-append name "-" version ".tar.gz"))
3943 "1zwv0ixkigh1gzk5n49rwvz2f2m62jdkkqg40j7dclg4gri7691f"))))
3944 (build-system ocaml-build-system)
3946 `(#:build-flags '("build")
3947 #:tests? #f; tests require a display device
3949 (modify-phases %standard-phases
3950 (delete 'configure))))
3952 `(("ocamlbuild" ,ocamlbuild)
3953 ("ocaml-astring" ,ocaml-astring)
3955 ("pkg-config" ,pkg-config)))
3957 `(("topkg" ,ocaml-topkg)
3959 ("integers" ,ocaml-integers)
3960 ("ctypes" ,ocaml-ctypes)))
3961 (synopsis "Thin bindings to SDL for OCaml")
3962 (description "Tsdl is an OCaml library providing thin bindings to the
3963 cross-platform SDL C library.")
3964 (license license:isc)))
3966 (define-public dedukti
3970 (home-page "https://deducteam.github.io/")
3975 (url "https://github.com/deducteam/dedukti")
3976 (commit (string-append "v" version))))
3977 (file-name (git-file-name name version))
3980 "0frl3diff033i4fmq304b8wbsdnc9mvlhmwd7a3zd699ng2lzbxb"))))
3982 `(("menhir" ,ocaml-menhir)))
3984 `(("ocamlbuild" ,ocamlbuild)))
3985 (build-system ocaml-build-system)
3988 (modify-phases %standard-phases
3996 (invoke "make" "tests")
3998 (add-before 'install 'set-binpath
3999 ;; Change binary path in the makefile
4001 (let ((out (assoc-ref %outputs "out")))
4002 (substitute* "GNUmakefile"
4004 (string-append "BINDIR = " out "/bin"))))
4008 (invoke "make" "install")
4010 (synopsis "Proof-checker for the λΠ-calculus modulo theory, an extension of
4012 (description "Dedukti is a proof-checker for the λΠ-calculus modulo
4013 theory. The λΠ-calculus is an extension of the simply typed λ-calculus with
4014 dependent types. The λΠ-calculus modulo theory is itself an extension of the
4015 λΠ-calculus where the context contains variable declaration as well as rewrite
4016 rules. This system is not designed to develop proofs, but to check proofs
4017 developed in other systems. In particular, it enjoys a minimalistic syntax.")
4018 (license license:cecill-c)))
4020 (define-public emacs-dedukti-mode
4021 (let ((commit "d7c3505a1046187de3c3aeb144455078d514594e"))
4023 (name "emacs-dedukti-mode")
4024 (version (git-version "0" "0" commit))
4025 (home-page "https://github.com/rafoo/dedukti-mode")
4033 "1842wikq24c8rg0ac84vb1qby9ng1nssxswyyni4kq85lng5lcrp"))
4034 (file-name (git-file-name name version))))
4036 `(("dedukti" ,dedukti)))
4037 (build-system emacs-build-system)
4040 (modify-phases %standard-phases
4041 (add-before 'install 'patch-dkpath
4043 (let ((dkcheck-path (which "dkcheck")))
4044 (substitute* "dedukti-mode.el"
4045 (("dedukti-path \"(.*)\"")
4046 (string-append "dedukti-path \"" dkcheck-path "\"")))))))))
4047 (synopsis "Emacs major mode for Dedukti files")
4048 (description "This package provides an Emacs major mode for editing
4050 (license license:cecill-b))))
4052 (define-public emacs-flycheck-dedukti
4053 (let ((commit "3dbff5646355f39d57a3ec514f560a6b0082a1cd"))
4055 (name "emacs-flycheck-dedukti")
4056 (version (git-version "0" "0" commit))
4057 (home-page "https://github.com/rafoo/flycheck-dedukti")
4065 "1ffpxnwl3wx244n44mbw81g00nhnykd0lnid29f4aw1av7w6nw8l"))
4066 (file-name (git-file-name name version))))
4067 (build-system emacs-build-system)
4069 `(("dedukti-mode" ,emacs-dedukti-mode)
4070 ("flycheck-mode" ,emacs-flycheck)))
4071 (synopsis "Flycheck integration for the dedukti language")
4072 (description "This package provides a frontend for Flycheck to perform
4073 syntax checking on dedukti files.")
4074 (license license:cecill-b))))
4076 (define-public ocaml4.07-ppx-inline-test
4078 (name "ocaml4.07-ppx-inline-test")
4080 (home-page "https://github.com/janestreet/ppx_inline_test")
4085 (url (string-append home-page ".git"))
4086 (commit (string-append "v" version))))
4087 (file-name (git-file-name name version))
4090 "0nyz411zim94pzbxm2l2v2l9jishcxwvxhh142792g2s18r4vn50"))))
4091 (build-system dune-build-system)
4093 ;see home page README for further information
4096 #:findlib ,ocaml4.07-findlib
4097 #:dune ,ocaml4.07-dune))
4099 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
4100 ("ocaml-migrate-parsetree"
4101 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4102 ("ocaml-compiler-libs" ,ocaml4.07-compiler-libs)
4103 ("ocaml-sexplib0" ,(package-with-ocaml4.07 ocaml-sexplib0))
4104 ("ocaml-stdio" ,ocaml4.07-stdio)
4105 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4106 (properties `((upstream-name . "ppx_inline_test")))
4107 (synopsis "Syntax extension for writing in-line tests in ocaml code")
4108 (description "This package contains a syntax extension for writing
4109 in-line tests in ocaml code. It is part of Jane Street's PPX rewriters
4111 (license license:expat)))
4113 (define-public ocaml-bindlib
4115 (name "ocaml-bindlib")
4121 (url "https://github.com/rlepigre/ocaml-bindlib")
4122 (commit (string-append "ocaml-bindlib_" version))))
4123 (file-name (git-file-name name version))
4126 "1f8kr81w8vsi4gv61xn1qbc6zrzkjp8l9ix0942vjh4gjxc74v75"))))
4127 (build-system ocaml-build-system)
4129 `(#:tests? #f ;no tests
4132 (modify-phases %standard-phases
4139 (invoke "make" "install"))))))
4141 `(("ocamlbuild" ,ocamlbuild)
4142 ("ocaml-findlib" ,ocaml-findlib)))
4143 (home-page "https://rlepigre.github.io/ocaml-bindlib/")
4144 (synopsis "OCaml Bindlib library for bound variables")
4145 (description "Bindlib is a library allowing the manipulation of data
4146 structures with bound variables. It is particularly useful when writing ASTs
4147 for programming languages, but also for manipulating terms of the λ-calculus
4148 or quantified formulas.")
4149 (license license:gpl3+)))
4151 (define-public ocaml4.07-earley
4153 (name "ocaml4.07-earley")
4155 (home-page "https://github.com/rlepigre/ocaml-earley")
4160 (url (string-append home-page ".git"))
4162 (file-name (git-file-name name version))
4165 "18k7bi7krc4bvqnhijz1q0pfr0nfahghfjifci8rh1q4i5zd0xz5"))))
4166 (build-system dune-build-system)
4170 #:findlib ,ocaml4.07-findlib
4171 #:dune ,ocaml4.07-dune))
4172 (synopsis "Parsing library based on Earley Algorithm")
4173 (description "Earley is a parser combinator library base on Earley's
4174 algorithm. It is intended to be used in conjunction with an OCaml syntax
4175 extension which allows the definition of parsers inside the language. There
4176 is also support for writing OCaml syntax extensions in a camlp4 style.")
4177 (license license:cecill-b)))
4179 (define-public ocaml-timed
4181 (name "ocaml-timed")
4183 (home-page "https://github.com/rlepigre/ocaml-timed")
4187 (url (string-append home-page ".git"))
4188 (commit (string-append name "_" version))))
4191 "0hfxz710faxy5yk97bkfnw87r732jcxxhmjppwrbfdb6pd0wks96"))
4192 (file-name (git-file-name name version))))
4193 (build-system ocaml-build-system)
4196 (modify-phases %standard-phases
4203 (invoke "make" "install")))
4206 (invoke "make" "tests"))))))
4207 (synopsis "Timed references for imperative state")
4208 (description "Timed references for imperative state. This module provides
4209 an alternative type for references (or mutable cells) supporting undo/redo
4210 operations. In particular, an abstract notion of time is used to capture the
4211 state of the references at any given point, so that it can be restored. Note
4212 that usual reference operations only have a constant time / memory overhead
4213 (compared to those of the standard library).
4215 Moreover, we provide an alternative implementation based on the references
4216 of the standard library (Pervasives module). However, it is less efficient
4217 than the first one.")
4218 (license license:expat)))
4220 (define-public ocaml-biniou
4222 (name "ocaml-biniou")
4224 (home-page "https://github.com/mjambon/biniou")
4229 (url (string-append home-page ".git"))
4231 (file-name (git-file-name name version))
4234 "0x2kiy809n1j0yf32l7hj102y628jp5jdrkbi3z7ld8jq04h1790"))))
4235 (build-system dune-build-system)
4238 (modify-phases %standard-phases
4239 (add-before 'build 'make-writable
4244 (find-files "." "."))
4247 `(("ocaml-easy-format" ,ocaml-easy-format)))
4249 `(("which" ,which)))
4250 (synopsis "Data format designed for speed, safety, ease of use and backward
4252 (description "Biniou (pronounced \"be new\" is a binary data format
4253 designed for speed, safety, ease of use and backward compatibility as
4254 protocols evolve. Biniou is vastly equivalent to JSON in terms of
4255 functionality but allows implementations several times faster (4 times faster
4256 than yojson), with 25-35% space savings.")
4257 (license license:bsd-3)))
4259 (define-public ocaml-yojson
4261 (name "ocaml-yojson")
4263 (home-page "https://github.com/ocaml-community/yojson")
4268 (url (string-append home-page ".git"))
4270 (file-name (git-file-name name version))
4273 "0zncsw8bgbkh1pfvfc7nh628hfj84lgx6jwhp9ashj3z1z0w3xjn"))))
4274 (build-system dune-build-system)
4276 `(#:test-target "."))
4278 `(("ocaml-biniou" ,ocaml-biniou)
4279 ("ocaml-easy-format" ,ocaml-easy-format)))
4281 `(("ocaml-alcotest" ,ocaml-alcotest)
4282 ("ocaml-cppo" ,ocaml-cppo)))
4283 (synopsis "Low-level JSON library for OCaml")
4284 (description "Yojson is an optimized parsing and printing library for the
4285 JSON format. It addresses a few shortcomings of json-wheel including 2x
4286 speedup, polymorphic variants and optional syntax for tuples and variants.
4287 @code{ydump} is a pretty printing command-line program provided with the
4288 yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
4289 serializers and deserializers from type definitions.")
4290 (license license:bsd-3)))
4292 (define-public ocaml-craml
4294 (name "ocaml-craml")
4296 (home-page "https://github.com/realworldocaml/craml")
4301 (url (string-append home-page ".git"))
4303 (file-name (git-file-name name version))
4306 "197xjp4vmzdymf2ndinw271ihpf45h04mx8gqj8ypspxdr5fj1a5"))))
4307 (build-system dune-build-system)
4310 (modify-phases %standard-phases
4311 (add-before 'build 'upgrade
4313 (invoke "dune" "upgrade")
4316 `(("ocaml-fmt" ,ocaml-fmt)
4317 ("ocaml-astring" ,ocaml-astring)
4318 ("ocaml-logs" ,ocaml-logs)
4319 ("ocaml-cmdliner" ,ocaml-cmdliner)))
4321 "CRAM-testing framework for testing command line applications")
4322 (description "CRAM is a is functional testing framework for command line
4323 applications. @code{craml} is freely inspired by the
4324 Mercurial's @code{https://www.selenic.com/blog/?p=663, unified test
4325 format}. @code{craml} is released as a single binary (called @code{craml}).")
4326 (license license:isc)))
4328 (define-public ocaml-dot-merlin-reader
4330 (name "ocaml-dot-merlin-reader")
4336 (url "https://github.com/ocaml/merlin")
4337 (commit (string-append "v" version))))
4338 (file-name (git-file-name name version))
4341 "0i2nwkdh6cfzmnsdsr8aw86vs8j1k5jkjzrs61b9384wnffdbbmj"))))
4342 (build-system dune-build-system)
4343 (arguments '(#:package "dot-merlin-reader"
4344 #:tests? #f)) ; no tests
4346 `(("ocaml-yojson" ,ocaml-yojson)
4347 ("ocaml-csexp" ,ocaml-csexp)
4348 ("ocaml-result" ,ocaml-result)))
4349 (home-page "https://ocaml.github.io/merlin/")
4350 (synopsis "Reads config files for @code{ocaml-merlin}")
4351 (description "@code{ocaml-dot-merlin-reader} is an external reader for
4352 @code{ocaml-merlin} configurations.")
4353 (license license:expat)))
4355 (define-public ocaml-merlin
4357 (name "ocaml-merlin")
4363 (url "https://github.com/ocaml/merlin")
4364 (commit (string-append "v" version))))
4365 (file-name (git-file-name name version))
4368 "0i2nwkdh6cfzmnsdsr8aw86vs8j1k5jkjzrs61b9384wnffdbbmj"))))
4369 (build-system dune-build-system)
4370 (arguments '(#:package "merlin"
4371 #:test-target "tests"))
4373 `(("ocaml-yojson" ,ocaml-yojson)
4374 ("ocaml-csexp" ,ocaml-csexp)
4375 ("ocaml-result" ,ocaml-result)))
4377 `(("ocaml-dot-merlin-reader" ,ocaml-dot-merlin-reader) ; required for tests
4378 ("ocaml-mdx" ,ocaml-mdx)
4380 (home-page "https://ocaml.github.io/merlin/")
4381 (synopsis "Context sensitive completion for OCaml in Vim and Emacs")
4382 (description "Merlin is an editor service that provides modern IDE
4383 features for OCaml. Emacs and Vim support is provided out-of-the-box.
4384 External contributors added support for Visual Studio Code, Sublime Text and
4386 (license license:expat)))
4388 ;; ocaml-merlin 3.4.2 can not be built with old version of dune used in
4389 ;; package-with-ocaml4.07
4390 (define-public ocaml4.07-merlin
4391 (package-with-ocaml4.07
4393 (inherit ocaml-merlin)
4394 (name "ocaml-merlin")
4400 (url "https://github.com/ocaml/merlin")
4401 (commit (string-append "v" version))))
4402 (file-name (git-file-name name version))
4405 "15ssgmwdxylbwhld9p1cq8x6kadxyhll5bfyf11dddj6cldna3hb"))))
4406 (build-system dune-build-system)
4408 `(("ocaml-yojson" ,ocaml-yojson)))
4410 `(("ocaml-findlib" ,ocaml-findlib)))
4412 `(#:package "merlin"
4413 ;; Errors in tests in version 3.2.2
4416 (define-public ocaml4.07-gsl
4418 (name "ocaml4.07-gsl")
4425 "https://github.com/mmottl/gsl-ocaml/releases/download/"
4426 version "/gsl-" version ".tbz"))
4429 "1l5zkkkg8sglsihrbf10ivq9s8xzl1y6ag89i4jqpnmi4m43fy34"))))
4430 (build-system dune-build-system)
4434 (modify-phases %standard-phases
4435 (add-after 'unpack 'fix-gsl-directory
4436 (lambda* (#:key inputs #:allow-other-keys)
4437 (substitute* "src/config/discover.ml"
4438 (("/usr") (assoc-ref inputs "gsl")))
4441 #:findlib ,ocaml4.07-findlib
4442 #:dune ,ocaml4.07-dune))
4446 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
4447 ("ocaml-stdio" ,ocaml4.07-stdio)))
4448 (home-page "https://mmottl.github.io/gsl-ocaml")
4449 (synopsis "Bindings to the GNU Scientific Library")
4451 "GSL-OCaml is an interface to the @dfn{GNU scientific library} (GSL) for
4452 the OCaml language.")
4453 (license license:gpl3+)))
4455 (define-public ocaml4.07-gsl-1
4457 (inherit ocaml4.07-gsl)
4461 (uri (string-append "https://github.com/mmottl/gsl-ocaml"
4462 "/releases/download/v"
4463 version "/gsl-ocaml-" version ".tar.gz"))
4466 "0nzp43hp8pbjqkrxnwp5lgjrabxayf61h18fjaydi0s5faq6f3xh"))))
4467 (build-system ocaml-build-system)
4471 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
4473 `(#:ocaml ,ocaml-4.07
4474 #:findlib ,ocaml4.07-findlib))
4475 (propagated-inputs '())))
4477 (define-public cubicle
4483 (uri (string-append "http://cubicle.lri.fr/cubicle-"
4487 "10kk80jdmpdvql88sdjsh7vqzlpaphd8vip2lp47aarxjkwjlz1q"))))
4488 (build-system gnu-build-system)
4490 `(("automake" ,automake)
4492 ("which" ,(@@ (gnu packages base) which))))
4494 `(("ocaml-num" ,ocaml-num)
4497 `(#:configure-flags (list "--with-z3")
4498 #:make-flags (list "QUIET=")
4501 (modify-phases %standard-phases
4502 (add-before 'configure 'configure-for-release
4504 (substitute* "Makefile.in"
4505 (("SVNREV=") "#SVNREV="))
4507 (add-before 'configure 'fix-/bin/sh
4509 (substitute* "configure"
4510 (("-/bin/sh") (string-append "-" (which "sh"))))
4512 (add-before 'configure 'fix-smt-z3wrapper.ml
4514 (substitute* "Makefile.in"
4517 (add-before 'configure 'fix-ocaml-num
4518 (lambda* (#:key inputs #:allow-other-keys)
4519 (substitute* "Makefile.in"
4520 (("= \\$\\(FUNCTORYLIB\\)")
4521 (string-append "= -I "
4522 (assoc-ref inputs "ocaml-num")
4523 "/lib/ocaml/site-lib"
4524 " $(FUNCTORYLIB)")))
4526 (home-page "http://cubicle.lri.fr/")
4527 (synopsis "Model checker for array-based systems")
4528 (description "Cubicle is a model checker for verifying safety properties
4529 of array-based systems. This is a syntactically restricted class of
4530 parametrized transition systems with states represented as arrays indexed by
4531 an arbitrary number of processes. Cache coherence protocols and mutual
4532 exclusion algorithms are typical examples of such systems.")
4533 (license license:asl2.0)))
4535 (define-public ocaml-sexplib0
4537 (name "ocaml-sexplib0")
4539 (home-page "https://github.com/janestreet/sexplib0")
4541 (janestreet-origin "sexplib0" version
4542 "0adrc0r1vvvr41dcpj8jwkzh1dfgqf0mks9xlnnskqfm3a51iavg"))
4543 (build-system dune-build-system)
4544 (arguments `(#:tests? #f)) ;no tests
4545 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-sexplib0))))
4546 (synopsis "Library containing the definition of S-expressions and some
4548 (description "Part of Jane Street's Core library The Core suite of
4549 libraries is an industrial strength alternative to OCaml's standard library
4550 that was developed by Jane Street, the largest industrial user of OCaml.")
4551 (license license:expat)))
4553 (define-public ocaml4.07-sexplib0
4554 (package-with-ocaml4.07
4556 (inherit ocaml-sexplib0)
4557 (name "ocaml-sexplib0")
4560 (janestreet-origin "sexplib0" version
4561 "1p06p2s7p9xsjn0z9qicniv1ai54d8sj11k8j633di2mm7jzxpin"))
4562 (arguments `(#:tests? #f)) ; no tests
4565 (define-public ocaml-parsexp
4567 (name "ocaml-parsexp")
4569 (home-page "https://github.com/janestreet/parsexp")
4571 (janestreet-origin "parsexp" version
4572 "158znj19dvfdcwsgzs3rdhxpj1g4aw0d4nkfr8c05bahf0lnshlb"))
4573 (build-system dune-build-system)
4575 `(("ocaml-sexplib0" ,ocaml-sexplib0)
4576 ("ocaml-base" ,ocaml-base)))
4577 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-parsexp))))
4578 (synopsis "S-expression parsing library")
4580 "This library provides generic parsers for parsing S-expressions from
4581 strings or other medium.
4583 The library is focused on performances but still provide full generic
4584 parsers that can be used with strings, bigstrings, lexing buffers,
4585 character streams or any other sources effortlessly.
4587 It provides three different class of parsers:
4590 the normal parsers, producing [Sexp.t] or [Sexp.t list] values
4592 the parsers with positions, building compact position sequences so
4593 that one can recover original positions in order to report properly
4594 located errors at little cost
4596 the Concrete Syntax Tree parsers, produce values of type
4597 @code{Parsexp.Cst.t} which record the concrete layout of the s-expression
4598 syntax, including comments
4601 This library is portable and doesn't provide IO functions. To read
4602 s-expressions from files or other external sources, you should use
4604 (license license:expat)))
4606 (define-public ocaml4.07-parsexp
4607 (package-with-ocaml4.07
4609 (inherit ocaml-parsexp)
4610 (name "ocaml-parsexp")
4613 (janestreet-origin "parsexp" version
4614 "11a30zkfgbi6pb4whq22k1zc8ghdp9bwxl5s5cdlmx1z8s4yxsf0"))
4617 (define-public ocaml-sexplib
4619 (name "ocaml-sexplib")
4621 (home-page "https://github.com/janestreet/sexplib")
4623 (janestreet-origin "sexplib" version
4624 "12rlnc6fcrjfdn3gs2agi418sj54ighhs6dfll37zcv7mgywblm2"))
4625 (build-system dune-build-system)
4627 `(("ocaml-base" ,ocaml-base)
4628 ("ocaml-num" ,ocaml-num)
4629 ("ocaml-parsexp" ,ocaml-parsexp)
4630 ("ocaml-sexplib0" ,ocaml-sexplib0)))
4631 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-sexplib))))
4633 "Library for serializing OCaml values to and from S-expressions")
4635 "This package is part of Jane Street's Core library. Sexplib contains
4636 functionality for parsing and pretty-printing s-expressions.")
4637 (license license:expat)))
4639 (define-public ocaml4.07-sexplib
4640 (package-with-ocaml4.07
4642 (inherit ocaml-sexplib)
4645 (janestreet-origin "sexplib" version
4646 "0ksx62zsxhz8xmdrsn41n2hbc2qbyh3bxxc6946xisvgwh42h3q3"))
4649 (define-public ocaml-base
4653 (home-page "https://github.com/janestreet/base")
4655 (janestreet-origin "base" version
4656 "1rkdhsgbcv0a8p29mwvpd2ldz8cjk97pixl43izm54wyin4lp778"))
4657 (build-system dune-build-system)
4659 `(("ocaml-sexplib0" ,ocaml-sexplib0)))
4660 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-base))))
4662 "Full standard library replacement for OCaml")
4664 "Base is a complete and portable alternative to the OCaml standard
4665 library. It provides all standard functionalities one would expect
4666 from a language standard library. It uses consistent conventions
4667 across all of its module.
4669 Base aims to be usable in any context. As a result system dependent
4670 features such as I/O are not offered by Base. They are instead
4671 provided by companion libraries such as
4672 @url{https://github.com/janestreet/stdio, ocaml-stdio}.")
4673 (license license:expat)))
4675 (define-public ocaml4.07-base
4676 (package-with-ocaml4.07
4678 (inherit ocaml-base)
4683 ;; version 0.11.1 is not released on ocaml.janestreet.org.
4686 (url "https://github.com/janestreet/base.git")
4687 (commit (string-append "v" version))))
4688 (file-name (git-file-name name version))
4691 "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
4694 (modify-phases %standard-phases
4696 ;; make warnings non fatal (jbuilder behaviour)
4698 (invoke "dune" "build" "@install" "--profile=release"))))
4700 #:findlib ,ocaml4.07-findlib
4701 #:dune ,ocaml4.07-dune))
4704 (define-public ocaml4.07-compiler-libs
4706 (name "ocaml4.07-compiler-libs")
4708 (home-page "https://github.com/janestreet/ocaml-compiler-libs")
4713 (url (string-append home-page ".git"))
4714 (commit (string-append "v" version))))
4715 (file-name (git-file-name name version))
4718 "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
4719 (build-system dune-build-system)
4721 `(#:tests? #f ;no tests
4723 #:findlib ,ocaml4.07-findlib
4724 #:dune ,ocaml4.07-dune))
4725 (properties `((upstream-name . "ocaml-compiler-libs")))
4726 (synopsis "Compiler libraries repackaged")
4727 (description "This package simply repackages the OCaml compiler libraries
4728 so they don't expose everything at toplevel. For instance, @code{Ast_helper}
4729 is now @code{Ocaml_common.Ast_helper}.")
4730 (license license:expat)))
4732 (define-public ocaml4.07-stdio
4734 (name "ocaml4.07-stdio")
4736 (home-page "https://github.com/janestreet/stdio")
4741 (url (string-append home-page ".git"))
4742 (commit (string-append "v" version))))
4743 (file-name (git-file-name name version))
4746 "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
4747 (build-system dune-build-system)
4749 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
4750 ("ocaml-sexplib0" ,(package-with-ocaml4.07 ocaml-sexplib0))))
4752 `(#:tests? #f ;no tests
4754 #:findlib ,ocaml4.07-findlib
4755 #:dune ,ocaml4.07-dune))
4756 (synopsis "Standard IO library for OCaml")
4758 "Stdio implements simple input/output functionalities for OCaml. It
4759 re-exports the input/output functions of the OCaml standard libraries using
4760 a more consistent API.")
4761 (license license:expat)))
4763 (define-public ocaml-ppx-derivers
4765 (name "ocaml-ppx-derivers")
4768 "https://github.com/ocaml-ppx/ppx_derivers")
4773 (url (string-append home-page ".git"))
4775 (file-name (git-file-name name version))
4778 "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"))))
4779 (build-system dune-build-system)
4781 '(#:tests? #f)) ;no tests
4782 (properties `((upstream-name . "ppx_derivers")))
4783 (synopsis "Shared @code{@@deriving} plugin registry")
4785 "Ppx_derivers is a tiny package whose sole purpose is to allow
4786 ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
4787 as part of the same ocaml-migrate-parsetree driver.")
4788 (license license:bsd-3)))
4790 (define-public ocaml4.07-ppxlib
4792 (name "ocaml4.07-ppxlib")
4794 (home-page "https://github.com/ocaml-ppx/ppxlib")
4799 (url (string-append home-page ".git"))
4801 (file-name (git-file-name name version))
4804 "0my9x7sxb329h0lzshppdaawiyfbaw6g5f41yiy7bhl071rnlvbv"))))
4805 (build-system dune-build-system)
4807 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
4808 ("ocaml-compiler-libs" ,ocaml4.07-compiler-libs)
4809 ("ocaml-migrate-parsetree"
4810 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4811 ("ocaml-ppx-derivers" ,(package-with-ocaml4.07 ocaml-ppx-derivers))
4812 ("ocaml-stdio" ,ocaml4.07-stdio)
4813 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
4814 ("ocaml-sexplib0" ,(package-with-ocaml4.07 ocaml-sexplib0))))
4817 (modify-phases %standard-phases
4818 (add-before 'check 'set-topfind
4819 (lambda* (#:key inputs #:allow-other-keys)
4820 ;; add the line #directory ".." at the top of each file
4821 ;; using #use "topfind";; to be able to find topfind
4822 (let* ((findlib-path (assoc-ref inputs "findlib"))
4824 (string-append findlib-path "/lib/ocaml/site-lib")))
4825 (substitute* '("test/base/test.ml"
4826 "test/code_path/test.ml"
4827 "test/deriving/test.ml"
4828 "test/driver/attributes/test.ml"
4829 "test/driver/non-compressible-suffix/test.ml"
4830 "test/driver/transformations/test.ml")
4831 (("#use \"topfind\";;" all)
4832 (string-append "#directory \"" findlib-libdir "\"\n"
4836 #:findlib ,ocaml4.07-findlib
4837 #:dune ,ocaml4.07-dune))
4839 "Base library and tools for ppx rewriters")
4841 "A comprehensive toolbox for ppx development. It features:
4843 @item an OCaml AST / parser / pretty-printer snapshot, to create a full frontend
4844 independent of the version of OCaml;
4845 @item a library for library for ppx rewriters in general, and type-driven code
4846 generators in particular;
4848 a feature-full driver for OCaml AST transformers;
4849 @item a quotation mechanism allowing to write values representing the
4850 OCaml AST in the OCaml syntax;
4851 @item a generator of open recursion classes from type definitions.
4853 (license license:expat)))
4855 (define-public ocaml4.07-ppx-compare
4857 (name "ocaml4.07-ppx-compare")
4862 (url "https://github.com/janestreet/ppx_compare")
4863 (commit (string-append "v" version))))
4864 (file-name (git-file-name name version))
4867 "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
4868 (build-system dune-build-system)
4870 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
4871 ("ocaml-migrate-parsetree"
4872 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4873 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4875 `(#:ocaml ,ocaml-4.07
4876 #:findlib ,ocaml4.07-findlib
4877 #:dune ,ocaml4.07-dune))
4878 (properties `((upstream-name . "ppx_compare")))
4879 (home-page "https://github.com/janestreet/ppx_compare")
4880 (synopsis "Generation of comparison functions from types")
4881 (description "Generation of fast comparison functions from type expressions
4882 and definitions. Ppx_compare is a ppx rewriter that derives comparison functions
4883 from type representations. The scaffolded functions are usually much faster
4884 than ocaml's Pervasives.compare. Scaffolding functions also gives you more
4885 flexibility by allowing you to override them for a specific type and more safety
4886 by making sure that you only compare comparable values.")
4887 (license license:asl2.0)))
4889 (define-public ocaml4.07-fieldslib
4891 (name "ocaml4.07-fieldslib")
4895 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4896 (version-major+minor version) "/files/"
4897 "fieldslib-v" version ".tar.gz"))
4900 "12948pzxrl360lybm9fzyvplgcl87zjbn4m3sk1aw75zk85p1388"))))
4901 (build-system dune-build-system)
4906 #:findlib ,ocaml4.07-findlib
4907 #:dune ,ocaml4.07-dune))
4909 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
4910 ("ocaml-migrate-parsetree"
4911 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4912 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4913 (properties `((upstream-name . "fieldslib")))
4914 (home-page "https://github.com/janestreet/fieldslib")
4915 (synopsis "Syntax extension to record fields")
4916 (description "Syntax extension to define first class values representing
4917 record fields, to get and set record fields, iterate and fold over all fields
4918 of a record and create new record values.")
4919 (license license:asl2.0)))
4921 (define-public ocaml4.07-variantslib
4923 (name "ocaml4.07-variantslib")
4927 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4928 (version-major+minor version)
4929 "/files/variantslib-v" version ".tar.gz"))
4932 "1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
4933 (build-system dune-build-system)
4938 #:findlib ,ocaml4.07-findlib
4939 #:dune ,ocaml4.07-dune))
4941 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
4942 ("ocaml-migrate-parsetree"
4943 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4944 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4945 (properties `((upstream-name . "variantslib")))
4946 (home-page "https://github.com/janestreet/variantslib")
4947 (synopsis "OCaml variants as first class values")
4948 (description "The Core suite of libraries is an alternative to OCaml's
4950 (license license:asl2.0)))
4952 (define-public ocaml4.07-ppx-fields-conv
4954 (name "ocaml4.07-ppx-fields-conv")
4958 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4959 (version-major+minor version)
4960 "/files/ppx_fields_conv-v" version ".tar.gz"))
4963 "07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
4964 (build-system dune-build-system)
4966 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
4967 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
4968 ("ocaml-migrate-parsetree"
4969 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4970 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4972 `(#:ocaml ,ocaml-4.07
4973 #:findlib ,ocaml4.07-findlib
4974 #:dune ,ocaml4.07-dune))
4975 (properties `((upstream-name . "ppx_fields_conv")))
4976 (home-page "https://github.com/janestreet/ppx_fields_conv")
4977 (synopsis "Generation of accessor and iteration functions for ocaml records")
4978 (description "Ppx_fields_conv is a ppx rewriter that can be used to define
4979 first class values representing record fields, and additional routines, to get
4980 and set record fields, iterate and fold over all fields of a record and create
4981 new record values.")
4982 (license license:asl2.0)))
4984 (define-public ocaml4.07-ppx-sexp-conv
4986 (name "ocaml4.07-ppx-sexp-conv")
4991 (url "https://github.com/janestreet/ppx_sexp_conv")
4992 (commit (string-append "v" version))))
4993 (file-name (git-file-name name version))
4996 "0pqwnqy1xp309wvdcaax4lg02yk64lq2w03mbgfvf6ps5ry4gis9"))))
4997 (build-system dune-build-system)
4999 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5000 ("ocaml-migrate-parsetree"
5001 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5002 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5004 `(#:ocaml ,ocaml-4.07
5005 #:findlib ,ocaml4.07-findlib
5006 #:dune ,ocaml4.07-dune))
5007 (properties `((upstream-name . "ppx_sexp_conv")))
5008 (home-page "https://github.com/janestreet/ppx_sexp_conv")
5009 (synopsis "Generation of S-expression conversion functions from type definitions")
5010 (description "This package generates S-expression conversion functions from type
5012 (license license:asl2.0)))
5014 (define-public ocaml4.07-ppx-variants-conv
5016 (name "ocaml4.07-ppx-variants-conv")
5021 (url "https://github.com/janestreet/ppx_variants_conv")
5022 (commit (string-append "v" version))))
5023 (file-name (git-file-name name version))
5026 "1yc0gsds5m2nv39zga8nnrca2n75rkqy5dz4xj1635ybz20hhbjd"))))
5027 (build-system dune-build-system)
5029 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5030 ("ocaml-variantslib" ,ocaml4.07-variantslib)
5031 ("ocaml-migrate-parsetree"
5032 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5033 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5035 `(#:ocaml ,ocaml-4.07
5036 #:findlib ,ocaml4.07-findlib
5037 #:dune ,ocaml4.07-dune))
5039 `((upstream-name . "ppx_variants_conv")))
5041 "https://github.com/janestreet/ppx_variants_conv")
5042 (synopsis "Generation of accessor and iteration functions for OCaml variant types")
5044 "This package generates accessors and iteration functions for OCaml
5046 (license license:asl2.0)))
5048 (define-public ocaml4.07-ppx-custom-printf
5050 (name "ocaml4.07-ppx-custom-printf")
5054 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5055 (version-major+minor version)
5056 "/files/ppx_custom_printf-v" version ".tar.gz"))
5059 "11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))))
5060 (build-system dune-build-system)
5062 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5063 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5064 ("ocaml-migrate-parsetree"
5065 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5066 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5068 `(#:ocaml ,ocaml-4.07
5069 #:findlib ,ocaml4.07-findlib
5070 #:dune ,ocaml4.07-dune))
5071 (properties `((upstream-name . "ppx_custom_printf")))
5072 (home-page "https://github.com/janestreet/ppx_custom_printf")
5073 (synopsis "Printf-style format-strings for user-defined string conversion")
5074 (description "Extensions to printf-style format-strings for user-defined
5075 string conversion.")
5076 (license license:asl2.0)))
5078 (define-public ocaml4.07-bin-prot
5080 (name "ocaml4.07-bin-prot")
5084 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5085 (version-major+minor version)
5086 "/files/bin_prot-v" version ".tar.gz"))
5089 "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
5090 (build-system dune-build-system)
5092 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5093 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
5094 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
5095 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
5096 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5097 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
5098 ("ocaml-migrate-parsetree"
5099 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5101 `(#:ocaml ,ocaml-4.07
5102 #:findlib ,ocaml4.07-findlib
5103 #:dune ,ocaml4.07-dune))
5104 (properties `((upstream-name . "bin_prot")))
5105 (home-page "https://github.com/janestreet/bin_prot")
5106 (synopsis "Binary protocol generator")
5107 (description "This library contains functionality for reading and writing
5108 OCaml-values in a type-safe binary protocol. It is extremely efficient,
5109 typically supporting type-safe marshalling and unmarshalling of even highly
5110 structured values at speeds sufficient to saturate a gigabit connection. The
5111 protocol is also heavily optimized for size, making it ideal for long-term
5112 storage of large amounts of data.")
5117 (define-public ocaml-octavius
5119 (name "ocaml-octavius")
5124 (url "https://github.com/ocaml-doc/octavius")
5125 (commit (string-append "v" version))))
5126 (file-name (git-file-name name version))
5129 "1c5m51xcn2jv42kjjpklr6g63sgx1k885wfdp1yr4wrmiaj9cbpx"))))
5130 (build-system dune-build-system)
5133 (modify-phases %standard-phases
5134 (add-before 'build 'make-writable
5136 (for-each (lambda (file)
5138 (find-files "." "."))
5140 (properties `((upstream-name . "octavius")))
5141 (home-page "https://github.com/ocaml-doc/octavius")
5142 (synopsis "Ocamldoc comment syntax parser")
5143 (description "Octavius is a library to parse the `ocamldoc` comment syntax.")
5144 (license license:isc)))
5146 (define-public ocaml4.07-ppx-hash
5148 (name "ocaml4.07-ppx-hash")
5153 (url "https://github.com/janestreet/ppx_hash")
5154 (commit (string-append "v" version))))
5155 (file-name (git-file-name name version))
5158 "1p0ic6aijxlrdggpmycj12q3cy9xksbq2vq727215maz4snvlf5p"))))
5159 (build-system dune-build-system)
5161 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5162 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
5163 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5164 ("ocaml-migrate-parsetree"
5165 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5166 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5168 `(#:ocaml ,ocaml-4.07
5169 #:findlib ,ocaml4.07-findlib
5170 #:dune ,ocaml4.07-dune))
5171 (properties `((upstream-name . "ppx_hash")))
5172 (home-page "https://github.com/janestreet/ppx_hash")
5173 (synopsis "Generation of hash functions from type expressions and definitions")
5174 (description "This package is a collection of ppx rewriters that generate
5175 hash functions from type exrpessions and definitions.")
5176 (license license:asl2.0)))
5178 (define-public ocaml4.07-ppx-enumerate
5180 (name "ocaml4.07-ppx-enumerate")
5185 (url "https://github.com/janestreet/ppx_enumerate")
5186 (commit (string-append "v" version))))
5187 (file-name (git-file-name name version))
5190 "0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
5191 (build-system dune-build-system)
5193 `(#:tests? #f; no test suite
5195 #:findlib ,ocaml4.07-findlib
5196 #:dune ,ocaml4.07-dune))
5198 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5199 ("ocaml-migrate-parsetree"
5200 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5201 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5202 (properties `((upstream-name . "ppx_enumerate")))
5203 (home-page "https://github.com/janestreet/ppx_enumerate")
5204 (synopsis "Generate a list containing all values of a finite type")
5205 (description "Ppx_enumerate is a ppx rewriter which generates a definition
5206 for the list of all values of a type (for a type which only has finitely
5208 (license license:asl2.0)))
5210 (define-public ocaml4.07-ppx-bench
5212 (name "ocaml4.07-ppx-bench")
5216 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5217 (version-major+minor version)
5218 "/files/ppx_bench-v" version ".tar.gz"))
5221 "0ys4pblbcjbk9dn073rqiwm7r6rc7fah03j7riklkwnb5n44andl"))))
5222 (build-system dune-build-system)
5227 #:findlib ,ocaml4.07-findlib
5228 #:dune ,ocaml4.07-dune))
5230 `(("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5231 ("ocaml-migrate-parsetree"
5232 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5233 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5234 (properties `((upstream-name . "ppx_bench")))
5235 (home-page "https://github.com/janestreet/ppx_bench")
5236 (synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
5237 (description "Syntax extension for writing in-line benchmarks in ocaml code.")
5238 (license license:asl2.0)))
5240 (define-public ocaml4.07-ppx-here
5242 (name "ocaml4.07-ppx-here")
5246 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5247 (version-major+minor version)
5248 "/files/ppx_here-v" version ".tar.gz"))
5251 "0wxcak3ay4jpigm3pfdcpr65qw4hxfa8whhkryhcd8gy71x056z5"))))
5252 (build-system dune-build-system)
5257 #:findlib ,ocaml4.07-findlib
5258 #:dune ,ocaml4.07-dune))
5260 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5261 ("ocaml-migrate-parsetree"
5262 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5263 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5264 (properties `((upstream-name . "ppx_here")))
5265 (home-page "https://github.com/janestreet/ppx_here")
5266 (synopsis "Expands [%here] into its location")
5268 "Part of the Jane Street's PPX rewriters collection.")
5269 (license license:asl2.0)))
5271 (define-public ocaml4.07-typerep
5273 (name "ocaml4.07-typerep")
5277 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5278 (version-major+minor version)
5279 "/files/typerep-v" version ".tar.gz"))
5282 "1zi7hy0prpgzqhr4lkacr04wvlvbp21jfbdfvffhrm6cd400rb5v"))))
5283 (build-system dune-build-system)
5287 #:findlib ,ocaml4.07-findlib
5288 #:dune ,ocaml4.07-dune))
5289 (propagated-inputs `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))))
5290 (home-page "https://github.com/janestreet/typerep")
5291 (synopsis "Typerep is a library for runtime types")
5292 (description "Typerep is a library for runtime types.")
5293 (license license:asl2.0)))
5295 (define-public ocaml4.07-ppx-sexp-value
5297 (name "ocaml4.07-ppx-sexp-value")
5301 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5302 (version-major+minor version)
5303 "/files/ppx_sexp_value-v" version ".tar.gz"))
5306 "1xnalfrln6k5khsyxvxkg6v32q8fpr4cqamsjqfih29jdv486xrs"))))
5307 (build-system dune-build-system)
5309 `(#:ocaml ,ocaml-4.07
5310 #:findlib ,ocaml4.07-findlib
5311 #:dune ,ocaml4.07-dune))
5313 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5314 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5315 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5316 ("ocaml-migrate-parsetree"
5317 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5318 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5319 (properties `((upstream-name . "ppx_sexp_value")))
5320 (home-page "https://github.com/janestreet/ppx_sexp_value")
5321 (synopsis "Simplify building s-expressions from ocaml values")
5322 (description "A ppx rewriter that simplifies building s-expressions from
5324 (license license:asl2.0)))
5326 (define-public ocaml4.07-ppx-sexp-message
5328 (name "ocaml4.07-ppx-sexp-message")
5332 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5333 (version-major+minor version)
5334 "/files/ppx_sexp_message-v" version ".tar.gz"))
5337 "1yh440za0w9cvrbxbmqacir8715kdaw6sw24ys9xj80av9nqpiw7"))))
5338 (build-system dune-build-system)
5340 `(#:ocaml ,ocaml-4.07
5341 #:findlib ,ocaml4.07-findlib
5342 #:dune ,ocaml4.07-dune))
5344 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5345 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5346 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5347 ("ocaml-migrate-parsetree"
5348 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5349 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5350 (properties `((upstream-name . "ppx_sexp_message")))
5351 (home-page "https://github.com/janestreet/ppx_sexp_message")
5352 (synopsis "A ppx rewriter for easy construction of s-expressions")
5353 (description "Ppx_sexp_message aims to ease the creation of s-expressions
5354 in OCaml. This is mainly motivated by writing error and debugging messages,
5355 where one needs to construct a s-expression based on various element of the
5356 context such as function arguments.")
5357 (license license:asl2.0)))
5359 (define-public ocaml4.07-ppx-pipebang
5361 (name "ocaml4.07-ppx-pipebang")
5365 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5366 (version-major+minor version)
5367 "/files/ppx_pipebang-v" version ".tar.gz"))
5370 "1wrrzlb4kdvkkcmzi01fw25jar38r2jlnyn0i6pn4z0lq4gpm9m0"))))
5371 (build-system dune-build-system)
5376 #:findlib ,ocaml4.07-findlib
5377 #:dune ,ocaml4.07-dune))
5379 `(("ocaml-migrate-parsetree"
5380 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5381 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5382 (properties `((upstream-name . "ppx_pipebang")))
5383 (home-page "https://github.com/janestreet/ppx_pipebang")
5384 (synopsis "Inline reverse application operators `|>` and `|!`")
5385 (description "A ppx rewriter that inlines reverse application operators
5386 @code{|>} and @code{|!}.")
5387 (license license:asl2.0)))
5389 (define-public ocaml4.07-ppx-optional
5391 (name "ocaml4.07-ppx-optional")
5395 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5396 (version-major+minor version)
5397 "/files/ppx_optional-v" version ".tar.gz"))
5400 "1z8z2bga95k2vksljljfglg10vygkjd24kn1b37sk4z3nmp47x0h"))))
5401 (build-system dune-build-system)
5406 #:findlib ,ocaml4.07-findlib
5407 #:dune ,ocaml4.07-dune))
5409 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5410 ("ocaml-migrate-parsetree"
5411 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5412 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5413 (properties `((upstream-name . "ppx_optional")))
5414 (home-page "https://github.com/janestreet/ppx_optional")
5415 (synopsis "Pattern matching on flat options")
5417 "A ppx rewriter that rewrites simple match statements with an if then
5419 (license license:asl2.0)))
5421 (define-public ocaml4.07-ppx-optcomp
5423 (name "ocaml4.07-ppx-optcomp")
5427 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5428 (version-major+minor version)
5429 "/files/ppx_optcomp-v" version ".tar.gz"))
5432 "1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))))
5433 (build-system dune-build-system)
5435 `(#:ocaml ,ocaml-4.07
5436 #:findlib ,ocaml4.07-findlib
5437 #:dune ,ocaml4.07-dune))
5439 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5440 ("ocaml-stdio" ,ocaml4.07-stdio)
5441 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5442 (properties `((upstream-name . "ppx_optcomp")))
5443 (home-page "https://github.com/janestreet/ppx_optcomp")
5444 (synopsis "Optional compilation for OCaml")
5445 (description "Ppx_optcomp stands for Optional Compilation. It is a tool
5446 used to handle optional compilations of pieces of code depending of the word
5447 size, the version of the compiler, ...")
5448 (license license:asl2.0)))
5450 (define-public ocaml4.07-ppx-let
5452 (name "ocaml4.07-ppx-let")
5456 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5457 (version-major+minor version)
5458 "/files/ppx_let-v" version ".tar.gz"))
5461 "1wdfw6w4xbg97a35yg6bif9gggxniy9ddnrjfw1a0inkl2yamxkj"))))
5462 (build-system dune-build-system)
5464 `(#:ocaml ,ocaml-4.07
5465 #:findlib ,ocaml4.07-findlib
5466 #:dune ,ocaml4.07-dune))
5468 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5469 ("ocaml-migrate-parsetree"
5470 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5471 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5472 (properties `((upstream-name . "ppx_let")))
5473 (home-page "https://github.com/janestreet/ppx_let")
5474 (synopsis "Monadic let-bindings")
5475 (description "A ppx rewriter for monadic and applicative let bindings,
5476 match expressions, and if expressions.")
5477 (license license:asl2.0)))
5479 (define-public ocaml4.07-ppx-fail
5481 (name "ocaml4.07-ppx-fail")
5485 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5486 (version-major+minor version)
5487 "/files/ppx_fail-v" version ".tar.gz"))
5490 "07plqsvljiwvngggfypwq55g46s5my55y45mvlmalrxyppzr03s8"))))
5491 (build-system dune-build-system)
5493 `(#:ocaml ,ocaml-4.07
5494 #:findlib ,ocaml4.07-findlib
5495 #:dune ,ocaml4.07-dune))
5497 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5498 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5499 ("ocaml-migrate-parsetree"
5500 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5501 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5502 (properties `((upstream-name . "ppx_fail")))
5503 (home-page "https://github.com/janestreet/ppx_fail")
5504 (synopsis "Add location to calls to failwiths")
5505 (description "Syntax extension that makes [failwiths] always include a
5507 (license license:asl2.0)))
5509 (define-public ocaml4.07-ppx-assert
5511 (name "ocaml4.07-ppx-assert")
5515 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5516 (version-major+minor version)
5517 "/files/ppx_assert-v" version ".tar.gz"))
5520 "17kd311n0l9f72gblf9kv8i5rghr106w37x4f0m5qwh6nlgl0j9k"))))
5521 (build-system dune-build-system)
5523 `(#:ocaml ,ocaml-4.07
5524 #:findlib ,ocaml4.07-findlib
5525 #:dune ,ocaml4.07-dune))
5527 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5528 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
5529 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5530 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5531 ("ocaml-migrate-parsetree"
5532 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5533 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5534 (properties `((upstream-name . "ppx_assert")))
5535 (home-page "https://github.com/janestreet/ppx_assert")
5536 (synopsis "Assert-like extension nodes that raise useful errors on failure")
5537 (description "This package contains assert-like extension nodes that raise
5538 useful errors on failure.")
5539 (license license:asl2.0)))
5541 (define-public ocaml4.07-ppx-expect
5543 (name "ocaml4.07-ppx-expect")
5548 (url "https://github.com/janestreet/ppx_expect")
5549 (commit (string-append "v" version))))
5550 (file-name (git-file-name name version))
5553 "1wawsbjfkri4sw52n8xqrzihxc3xfpdicv3ahz83a1rsn4lb8j5q"))))
5554 (build-system dune-build-system)
5556 `(#:ocaml ,ocaml-4.07
5557 #:findlib ,ocaml4.07-findlib
5558 #:dune ,ocaml4.07-dune))
5560 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5561 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5562 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
5563 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
5564 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
5565 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5566 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5567 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5568 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
5569 ("ocaml-stdio" ,ocaml4.07-stdio)
5570 ("ocaml-migrate-parsetree"
5571 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5572 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)
5573 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))))
5574 (properties `((upstream-name . "ppx_expect")))
5575 (home-page "https://github.com/janestreet/ppx_expect")
5576 (synopsis "Cram like framework for OCaml")
5577 (description "Expect-test is a framework for writing tests in OCaml, similar
5578 to Cram. Expect-tests mimics the existing inline tests framework with the
5579 @code{let%expect_test} construct. The body of an expect-test can contain
5580 output-generating code, interleaved with @code{%expect} extension expressions
5581 to denote the expected output.")
5582 (license license:asl2.0)))
5584 (define-public ocaml4.07-ppx-js-style
5586 (name "ocaml4.07-ppx-js-style")
5590 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5591 (version-major+minor version)
5592 "/files/ppx_js_style-v" version ".tar.gz"))
5595 "0z3fc55jdjhhsblla6z4fqc13kljpcz29q79rvs5h2vsraqrldr2"))))
5596 (build-system dune-build-system)
5601 #:findlib ,ocaml4.07-findlib
5602 #:dune ,ocaml4.07-dune))
5604 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5605 ("ocaml-migrate-parsetree"
5606 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5607 ("ocaml-octavius" ,(package-with-ocaml4.07 ocaml-octavius))
5608 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5609 (properties `((upstream-name . "ppx_js_style")))
5610 (home-page "https://github.com/janestreet/ppx_js_style")
5611 (synopsis "Code style checker for Jane Street Packages")
5612 (description "This package is a no-op ppx rewriter. It is used as a
5613 @code{lint} tool to enforce some coding conventions across all Jane Street
5615 (license license:asl2.0)))
5617 (define-public ocaml4.07-ppx-typerep-conv
5619 (name "ocaml4.07-ppx-typerep-conv")
5624 (url "https://github.com/janestreet/ppx_typerep_conv")
5625 (commit (string-append "v" version))))
5626 (file-name (git-file-name name version))
5629 "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))
5630 (build-system dune-build-system)
5634 #:findlib ,ocaml4.07-findlib
5635 #:dune ,ocaml4.07-dune))
5637 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5638 ("ocaml-typerep" ,ocaml4.07-typerep)
5639 ("ocaml-migrate-parsetree"
5640 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5641 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5642 (properties `((upstream-name . "ppx_typerep_conv")))
5643 (home-page "https://github.com/janestreet/ppx_typerep_conv")
5644 (synopsis "Generation of runtime types from type declarations")
5645 (description "This package can automatically generate runtime types
5646 from type definitions.")
5647 (license license:asl2.0)))
5649 (define-public ocaml4.07-ppx-base
5651 (name "ocaml4.07-ppx-base")
5655 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5656 (version-major+minor version)
5657 "/files/ppx_base-v" version ".tar.gz"))
5660 "0aq206pg330jmj7lhcagiiwm3a0b3gsqm801m8ajd4ysyw7idkym"))))
5661 (build-system dune-build-system)
5665 #:findlib ,ocaml4.07-findlib
5666 #:dune ,ocaml4.07-dune))
5668 `(("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
5669 ("ocaml-ppx-enumerate" ,ocaml4.07-ppx-enumerate)
5670 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
5671 ("ocaml-ppx-js-style" ,ocaml4.07-ppx-js-style)
5672 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5673 ("ocaml-migrate-parsetree"
5674 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5675 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5676 (properties `((upstream-name . "ppx_base")))
5677 (home-page "https://github.com/janestreet/ppx_base")
5678 (synopsis "Base set of ppx rewriters")
5679 (description "Ppx_base is the set of ppx rewriters used for Base.
5681 Note that Base doesn't need ppx to build, it is only used as a
5682 verification tool.")
5683 (license license:asl2.0)))
5685 (define-public ocaml4.07-ppx-bin-prot
5687 (name "ocaml4.07-ppx-bin-prot")
5692 (url "https://github.com/janestreet/ppx_bin_prot")
5693 (commit (string-append "v" version))))
5694 (file-name (git-file-name name version))
5697 "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
5698 (build-system dune-build-system)
5700 ;; Cyclic dependency with ocaml-ppx-jane
5703 #:findlib ,ocaml4.07-findlib
5704 #:dune ,ocaml4.07-dune))
5706 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5707 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
5708 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5709 ("ocaml-migrate-parsetree"
5710 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5711 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5712 (properties `((upstream-name . "ppx_bin_prot")))
5713 (home-page "https://github.com/janestreet/ppx_bin_prot")
5714 (synopsis "Generation of bin_prot readers and writers from types")
5715 (description "Generation of binary serialization and deserialization
5716 functions from type definitions.")
5717 (license license:asl2.0)))
5719 (define-public ocaml4.07-ppx-jane
5721 (name "ocaml4.07-ppx-jane")
5725 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5726 (version-major+minor version)
5727 "/files/ppx_jane-v" version ".tar.gz"))
5730 "0lgppkw3aixrfnixihrsz2ipafv8fpvkdpy3pw8n0r615gg8x8la"))))
5731 (build-system dune-build-system)
5735 #:findlib ,ocaml4.07-findlib
5736 #:dune ,ocaml4.07-dune))
5738 `(("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5739 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5740 ("ocaml-ppx-bench" ,ocaml4.07-ppx-bench)
5741 ("ocaml-ppx-bin-prot" ,ocaml4.07-ppx-bin-prot)
5742 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
5743 ("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)
5744 ("ocaml-ppx-fail" ,ocaml4.07-ppx-fail)
5745 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
5746 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5747 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5748 ("ocaml-ppx-let" ,ocaml4.07-ppx-let)
5749 ("ocaml-ppx-optcomp" ,ocaml4.07-ppx-optcomp)
5750 ("ocaml-ppx-optional" ,ocaml4.07-ppx-optional)
5751 ("ocaml-ppx-pipebang" ,ocaml4.07-ppx-pipebang)
5752 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5753 ("ocaml-ppx-sexp-value" ,ocaml4.07-ppx-sexp-value)
5754 ("ocaml-ppx-typerep-conv" ,ocaml4.07-ppx-typerep-conv)
5755 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
5756 ("ocaml-migrate-parsetree"
5757 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5758 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5759 (properties `((upstream-name . "ppx_jane")))
5760 (home-page "https://github.com/janestreet/ppx_jane")
5761 (synopsis "Standard Jane Street ppx rewriters")
5762 (description "This package installs a ppx-jane executable, which is a ppx
5763 driver including all standard Jane Street ppx rewriters.")
5764 (license license:asl2.0)))
5766 (define-public ocaml4.07-splittable-random
5768 (name "ocaml4.07-splittable-random")
5772 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5773 (version-major+minor version)
5774 "/files/splittable_random-v" version ".tar.gz"))
5777 "0l1wbd881mymlnpzlq5q53mmdz3g5d7qjhyc7lfaq1x0iaccn5lc"))))
5778 (build-system dune-build-system)
5780 `(#:ocaml ,ocaml-4.07
5781 #:findlib ,ocaml4.07-findlib
5782 #:dune ,ocaml4.07-dune))
5784 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5785 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5786 ("ocaml-migrate-parsetree"
5787 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5788 (properties `((upstream-name . "splittable_random")))
5789 (home-page "https://github.com/janestreet/splittable_random")
5790 (synopsis "PRNG that can be split into independent streams")
5791 (description "This package provides a splittable
5792 @acronym{PRNG,pseudo-random number generator} functions like a PRNG that can
5793 be used as a stream of random values; it can also be split to produce a
5794 second, independent stream of random values.
5796 This library implements a splittable pseudo-random number generator that sacrifices
5797 cryptographic-quality randomness in favor of performance.")
5798 (license license:asl2.0)))
5800 (define-public ocaml4.07-jane-street-headers
5802 (name "ocaml4.07-jane-street-headers")
5806 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5807 (version-major+minor version)
5808 "/files/jane-street-headers-v" version ".tar.gz"))
5811 "0afhzm08l9v883fhpqqh2lmy7az609pxif40bp7x1sk8c0yszqsh"))))
5812 (build-system dune-build-system)
5816 #:findlib ,ocaml4.07-findlib
5817 #:dune ,ocaml4.07-dune))
5818 (home-page "https://github.com/janestreet/jane-street-headers")
5819 (synopsis "Jane Street C header files")
5820 (description "This package provides C header files shared between the
5821 various Jane Street packages.")
5822 (license license:asl2.0)))
5824 (define-public ocaml4.07-configurator
5826 (name "ocaml4.07-configurator")
5830 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5831 (version-major+minor version)
5832 "/files/configurator-v" version ".tar.gz"))
5835 "0kwgi3sh92v4n242dk5hgpwd85zzgnczgbkqi0q0kr6m93zgbf7p"))))
5836 (build-system dune-build-system)
5841 #:findlib ,ocaml4.07-findlib
5842 #:dune ,ocaml4.07-dune))
5844 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5845 ("ocaml-stdio" ,ocaml4.07-stdio)))
5846 (home-page "https://github.com/janestreet/configurator")
5847 (synopsis "Helper library for gathering system configuration")
5848 (description "Configurator is a small library that helps writing OCaml
5849 scripts that test features available on the system, in order to generate config.h
5852 Configurator allows one to:
5854 @item test if a C program compiles
5855 @item query pkg-config
5856 @item import #define from OCaml header files
5857 @item generate config.h file
5859 (license license:asl2.0)))
5861 (define-public ocaml4.07-spawn
5863 (name "ocaml4.07-spawn")
5868 (url "https://github.com/janestreet/spawn")
5869 (commit (string-append "v" version))))
5870 (file-name (git-file-name name version))
5873 "1w003k1kw1lmyiqlk58gkxx8rac7dchiqlz6ah7aj7bh49b36ppf"))))
5874 (build-system dune-build-system)
5877 (modify-phases %standard-phases
5878 (add-before 'check 'fix-tests
5880 (substitute* "test/tests.ml"
5881 (("/bin/pwd") (which "pwd"))
5882 (("/bin/echo") (which "echo")))
5885 #:findlib ,ocaml4.07-findlib
5886 #:dune ,ocaml4.07-dune))
5888 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
5889 (home-page "https://github.com/janestreet/spawn")
5890 (synopsis "Spawning sub-processes")
5892 "Spawn is a small library exposing only one functionality: spawning sub-process.
5894 It has three main goals:
5897 @item provide missing features of Unix.create_process such as providing a
5899 @item provide better errors when a system call fails in the
5900 sub-process. For instance if a command is not found, you get a proper
5901 @code{Unix.Unix_error} exception,
5902 @item improve performances by using vfork when available. It is often
5903 claimed that nowadays fork is as fast as vfork, however in practice
5904 fork takes time proportional to the process memory while vfork is
5905 constant time. In application using a lot of memory, vfork can be
5906 thousands of times faster than fork.
5908 (license license:asl2.0)))
5910 (define-public ocaml4.07-core
5912 (name "ocaml4.07-core")
5917 (url "https://github.com/janestreet/core")
5918 (commit (string-append "v" version))))
5919 (file-name (git-file-name name version))
5922 "0pzl8n09z4f3i7z2wq4cjxfqrr8mj6xcdp7rbg0nxap2zdhjgvrq"))))
5923 (build-system dune-build-system)
5926 #:tests? #f; Require a cyclic dependency: core_extended
5928 #:findlib ,ocaml4.07-findlib
5929 #:dune ,ocaml4.07-dune))
5931 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5932 ("ocaml-configurator" ,ocaml4.07-configurator)
5933 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
5934 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5935 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5936 ("ocaml-sexplib" ,(package-with-ocaml4.07 ocaml-sexplib))
5937 ("ocaml-spawn" ,ocaml4.07-spawn)
5938 ("ocaml-stdio" ,ocaml4.07-stdio)
5939 ("ocaml-migrate-parsetree"
5940 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5941 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5942 (home-page "https://github.com/janestreet/core")
5943 (synopsis "Alternative to OCaml's standard library")
5944 (description "The Core suite of libraries is an alternative to OCaml's
5945 standard library that was developed by Jane Street.")
5946 ;; Also contains parts of OCaml, relicensed to asl2.0, as permitted
5947 ;; by OCaml's license for consortium members (see THIRD-PARTY.txt).
5948 (license license:asl2.0)))
5950 (define-public ocaml4.07-core-kernel
5952 (name "ocaml4.07-core-kernel")
5957 (url "https://github.com/janestreet/core_kernel")
5958 (commit (string-append "v" version))))
5959 (file-name (git-file-name name version))
5962 "1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
5963 (build-system dune-build-system)
5965 ;; Cyclic dependency with ocaml-core
5968 #:findlib ,ocaml4.07-findlib
5969 #:dune ,ocaml4.07-dune))
5971 `(("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
5972 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
5973 ("ocaml-configurator" ,ocaml4.07-configurator)
5974 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
5975 ("ocaml-jane-street-headers" ,ocaml4.07-jane-street-headers)
5976 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5977 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5978 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
5979 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5980 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5981 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5982 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5983 ("ocaml-sexplib" ,(package-with-ocaml4.07 ocaml-sexplib))
5984 ("ocaml-splittable-random" ,ocaml4.07-splittable-random)
5985 ("ocaml-stdio" ,ocaml4.07-stdio)
5986 ("ocaml-typerep" ,ocaml4.07-typerep)
5987 ("ocaml-variantslib" ,ocaml4.07-variantslib)
5988 ("ocaml-migrate-parsetree"
5989 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5990 (properties `((upstream-name . "core_kernel")))
5991 (home-page "https://github.com/janestreet/core_kernel")
5992 (synopsis "Portable standard library for OCaml")
5993 (description "Core is an alternative to the OCaml standard library.
5995 Core_kernel is the system-independent part of Core. It is aimed for cases when
5996 the full Core is not available, such as in Javascript.")
5998 ;; this package and parts of OCaml, relicensed by janestreet
6003 (define-public ocaml-markup
6005 (name "ocaml-markup")
6007 (home-page "https://github.com/aantron/markup.ml")
6012 (url (string-append home-page ".git"))
6014 (file-name (git-file-name name version))
6017 "09hkrf9pw6hpb9j06p5bddklpnjwdjpqza3bx2179l970yl67an9"))))
6018 (build-system dune-build-system)
6020 `(#:package "markup"))
6022 `(("libev" ,libev)))
6024 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
6025 ("ocaml-uchar" ,ocaml-uchar)
6026 ("ocaml-uutf" ,ocaml-uutf)
6027 ("ocaml-lwt" ,ocaml-lwt)))
6029 `(("ocaml-ounit2" ,ocaml-ounit2)
6030 ("pkg-config" ,pkg-config)))
6032 `((ocaml4.07-variant . ,(delay (package-with-ocaml4.07 ocaml-markup0.8.0)))))
6033 (synopsis "Error-recovering functional HTML5 and XML parsers and writers")
6034 (description "Markup.ml provides an HTML parser and an XML parser. The
6035 parsers are wrapped in a simple interface: they are functions that transform
6036 byte streams to parsing signal streams. Streams can be manipulated in various
6037 ways, such as processing by fold, filter, and map, assembly into DOM tree
6038 structures, or serialization back to HTML or XML.
6040 Both parsers are based on their respective standards. The HTML parser, in
6041 particular, is based on the state machines defined in HTML5.
6043 The parsers are error-recovering by default, and accept fragments. This makes
6044 it very easy to get a best-effort parse of some input. The parsers can,
6045 however, be easily configured to be strict, and to accept only full documents.
6047 Apart from this, the parsers are streaming (do not build up a document in
6048 memory), non-blocking (can be used with threading libraries), lazy (do not
6049 consume input unless the signal stream is being read), and process the input in
6050 a single pass. They automatically detect the character encoding of the input
6051 stream, and convert everything to UTF-8.")
6052 (license license:bsd-3)))
6054 ;; ocaml-markup 1.0.0 can not be built with old version of dune used in
6055 ;; package-with-ocaml4.07
6056 (define-public ocaml-markup0.8.0
6058 (inherit ocaml-markup)
6059 (name "ocaml-markup")
6061 (home-page "https://github.com/aantron/markup.ml")
6066 (url (string-append home-page ".git"))
6068 (file-name (git-file-name name version))
6071 "0aif4abvfmi9xc1pvw5n5rbm6rzkkpsxyvdn0lanr33rjpvkwdlm"))))
6074 (define-public ocaml-tyxml
6076 (name "ocaml-tyxml")
6082 (url "https://github.com/ocsigen/tyxml")
6084 (file-name (git-file-name name version))
6087 "1hw4phyadcfgywgh5sj87i76gp56qwxzwlcpfdwjbf6ggag9clmd"))))
6088 (build-system dune-build-system)
6090 `(("ocaml-re" ,ocaml-re)
6091 ("ocaml-seq" ,ocaml-seq)
6092 ("ocaml-uutf" ,ocaml-uutf)
6093 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
6094 ("ocaml-markup" ,ocaml-markup)))
6096 `(("ocaml-alcotest" ,ocaml-alcotest)))
6097 (arguments `(#:package "tyxml"))
6098 (home-page "https://github.com/ocsigen/tyxml/")
6099 (synopsis "TyXML is a library for building correct HTML and SVG documents")
6100 (description "TyXML provides a set of convenient combinators that uses the
6101 OCaml type system to ensure the validity of the generated documents. TyXML can
6102 be used with any representation of HTML and SVG: the textual one, provided
6103 directly by this package, or DOM trees (@code{js_of_ocaml-tyxml}) virtual DOM
6104 (@code{virtual-dom}) and reactive or replicated trees (@code{eliom}). You can
6105 also create your own representation and use it to instantiate a new set of
6107 (license license:lgpl2.1)))
6109 (define-public ocaml-bisect-ppx
6111 (name "ocaml-bisect-ppx")
6117 (url "https://github.com/aantron/bisect_ppx")
6119 (file-name (git-file-name name version))
6122 "0900vli5kw7s5kdam0n4cqsfsfqb7mdb3azn3i55595gilg1vyn8"))))
6123 (build-system dune-build-system)
6125 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
6126 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
6127 ("ocaml-ounit" ,ocaml-ounit)))
6130 (modify-phases %standard-phases
6131 (add-before 'build 'fix-deprecated
6133 ;; Fixed upstream in 22dd1ad9a0c9629f60599c22d82c6488394d6d32, but
6134 ;; not in a release yet.
6135 (substitute* "src/ppx/instrument.ml"
6136 (("module Ast = Ast_405")
6137 "module Ast = Migrate_parsetree.Ast_405
6138 module Ast_405 = Ast"))
6140 (home-page "https://github.com/aantron/bisect_ppx")
6141 (synopsis "Code coverage for OCaml")
6142 (description "Bisect_ppx helps you test thoroughly. It is a small
6143 preprocessor that inserts instrumentation at places in your code, such as
6144 if-then-else and match expressions. After you run tests, Bisect_ppx gives a
6145 nice HTML report showing which places were visited and which were missed.
6147 Usage is simple - add package bisect_ppx when building tests, run your tests,
6148 then run the Bisect_ppx report tool on the generated visitation files.")
6149 (license license:mpl2.0)))
6151 (define-public ocaml-odoc
6159 (url "https://github.com/ocaml/odoc")
6161 (file-name (git-file-name name version))
6163 (base32 "0fqfyz48q7ss5bc4c5phmp4s3ka3vc08b8gfk8fvyryvb4bq27jm"))))
6164 (build-system dune-build-system)
6166 `(("ocaml-alcotest" ,ocaml-alcotest)
6167 ("ocaml-markup" ,ocaml-markup)
6168 ("ocaml-sexplib" ,ocaml-sexplib)
6169 ("ocaml-re" ,ocaml-re)
6170 ("ocaml-uutf" ,ocaml-uutf)))
6172 `(("ocaml-astring" ,ocaml-astring)
6173 ("ocaml-cmdliner" ,ocaml-cmdliner)
6174 ("ocaml-cppo" ,ocaml-cppo)
6175 ("ocaml-fpath" ,ocaml-fpath)
6176 ("ocaml-result" ,ocaml-result)
6177 ("ocaml-tyxml" ,ocaml-tyxml)
6178 ("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
6179 ("tidy-html" ,tidy-html)))
6180 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-odoc))))
6181 (home-page "https://github.com/ocaml/odoc")
6182 (synopsis "OCaml documentation generator")
6183 (description "Odoc is a documentation generator for OCaml. It reads
6184 @emph{doc comments}, delimited with @code{(** ... *)}, and outputs
6187 Text inside doc comments is marked up in ocamldoc syntax. Odoc's main
6188 advantage over ocamldoc is an accurate cross-referencer, which handles the
6189 complexity of the OCaml module system.")
6190 (license license:isc)))
6192 ;; version 1.5.2 requires ocaml-markdown 1.0.0 which does not compile
6193 ;; with old version of dune used in package-with-ocaml4.07
6194 (define-public ocaml4.07-odoc
6195 (package-with-ocaml4.07
6197 (inherit ocaml-odoc)
6204 (url "https://github.com/ocaml/odoc")
6206 (file-name (git-file-name name version))
6208 (base32 "0z2nisg1vb5xlk41hqw8drvj90v52wli7zvnih6a844cg6xsvvj2"))))
6211 (define-public ocaml4.07-fftw3
6213 (name "ocaml4.07-fftw3")
6219 (url "https://github.com/Chris00/fftw-ocaml")
6221 (file-name (git-file-name name version))
6224 "0l66yagjkwdcib6q55wd8wiap50vi23qiahkghlvm28z7nvbclfk"))))
6225 (build-system dune-build-system)
6228 #:test-target "tests"
6230 #:findlib ,ocaml4.07-findlib
6231 #:dune ,ocaml4.07-dune))
6236 `(("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
6237 ("ocaml-lacaml" ,ocaml4.07-lacaml)))
6239 "https://github.com/Chris00/fftw-ocaml")
6241 "Bindings to FFTW3")
6243 "Bindings providing OCaml support for the seminal Fast Fourier Transform
6245 (license license:lgpl2.1))) ; with static linking exception.
6247 (define-public ocaml4.07-lacaml
6249 (name "ocaml4.07-lacaml")
6255 (url "https://github.com/mmottl/lacaml")
6257 (file-name (git-file-name name version))
6260 "180yb79a3qgx067qcpm50q12hrimjygf06rgkzbish9d1zfm670c"))))
6261 (build-system dune-build-system)
6263 `(#:tests? #f ; No test target.
6265 #:findlib ,ocaml4.07-findlib
6266 #:dune ,ocaml4.07-dune))
6268 `(("openblas" ,openblas)
6270 ("ocaml-base" ,(package-with-ocaml4.07 ocaml-base))
6271 ("ocaml-stdio" ,ocaml4.07-stdio)))
6272 (home-page "https://mmottl.github.io/lacaml/")
6274 "OCaml-bindings to BLAS and LAPACK")
6276 "Lacaml interfaces the BLAS-library (Basic Linear Algebra Subroutines) and
6277 LAPACK-library (Linear Algebra routines). It also contains many additional
6278 convenience functions for vectors and matrices.")
6279 (license license:lgpl2.1)))
6281 (define-public ocaml-cairo2
6283 (name "ocaml-cairo2")
6288 (url "https://github.com/Chris00/ocaml-cairo")
6290 (file-name (git-file-name name version))
6293 ;; NOTE: This patch will be obsolete on the
6294 ;; next tagged release. Remove it at that
6296 "ocaml-cairo2-caml_ba_array-fix.patch"))
6299 "0wzysis9fa850s68qh8vrvqc6svgllhwra3kzll2ibv0wmdqrich"))))
6300 (build-system dune-build-system)
6302 `(#:test-target "tests"))
6306 ("lablgtk" ,lablgtk)))
6308 `(("pkg-config" ,pkg-config)))
6309 (home-page "https://github.com/Chris00/ocaml-cairo")
6310 (synopsis "Binding to Cairo, a 2D Vector Graphics Library")
6311 (description "Ocaml-cairo2 is a binding to Cairo, a 2D graphics library
6312 with support for multiple output devices. Currently supported output targets
6313 include the X Window System, Quartz, Win32, image buffers, PostScript, PDF,
6314 and SVG file output.")
6315 (license license:lgpl3+)))
6317 (define-public ocaml-version
6319 (name "ocaml-version")
6325 (url "https://github.com/ocurrent/ocaml-version")
6326 (commit (string-append "v" version))))
6327 (file-name (git-file-name name version))
6330 "13770mp6adjjbx63zsbh6506dqxz241chw8c3y403sxpw45hnaw6"))))
6331 (build-system dune-build-system)
6332 (arguments `(#:tests? #f)) ; no tests
6334 "https://github.com/ocurrent/ocaml-version")
6336 "Manipulate, parse and generate OCaml compiler version strings")
6338 "This library provides facilities to parse version numbers of the OCaml
6339 compiler, and enumerates the various official OCaml releases and configuration
6341 (license license:isc)))
6343 (define-public ocaml-mdx
6350 (url "https://github.com/realworldocaml/mdx")
6352 (file-name (git-file-name name version))
6355 "10avyv99xkfqdq3gmq8gps770jpibbfslg97sbhgmp0dpwikz49d"))))
6356 (build-system dune-build-system)
6358 `(("ocaml-fmt" ,ocaml-fmt)
6359 ("ocaml-astring" ,ocaml-astring)
6360 ("ocaml-logs" ,ocaml-logs)
6361 ("ocaml-cmdliner" ,ocaml-cmdliner)
6362 ("ocaml-re" ,ocaml-re)
6363 ("ocaml-result" ,ocaml-result)
6364 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
6365 ("ocaml-odoc" ,ocaml-odoc)
6366 ("ocaml-version" ,ocaml-version)))
6368 `(("ocaml-cppo" ,ocaml-cppo)
6369 ("ocaml-lwt" ,ocaml-lwt)
6370 ("ocaml-alcotest" ,ocaml-alcotest)))
6372 "https://github.com/realworldocaml/mdx")
6374 "Executable code blocks inside markdown files")
6376 "@code{ocaml-mdx} executes code blocks inside markdown files.
6377 There are (currently) two sub-commands, corresponding
6378 to two modes of operations: pre-processing (@code{ocaml-mdx pp})
6379 and tests (@code{ocaml-mdx test}]).
6381 The pre-processor mode allows mixing documentation and code,
6382 and to practice @dfn{literate programming} using markdown and OCaml.
6384 The test mode ensures that shell scripts and OCaml fragments
6385 in the documentation always stays up-to-date.
6387 @code{ocaml-mdx} is released as two binaries called @code{ocaml-mdx} and
6388 @code{mdx} which are the same, mdx being the deprecated name, kept for now for
6390 (license license:isc)))
6392 (define-public lablgtk3
6399 (url "https://github.com/garrigue/lablgtk")
6401 (file-name (git-file-name name version))
6404 "11qfc39cmwfwfpwmjh6wh98zwdv6p73bv8hqwcsss869vs1r7gmn"))))
6405 (build-system dune-build-system)
6410 (modify-phases %standard-phases
6411 (add-before 'build 'make-writable
6413 (for-each (lambda (file)
6415 (find-files "." "."))
6418 `(("ocaml-cairo2" ,ocaml-cairo2)))
6420 `(("camlp5" ,camlp5)
6422 ("gtksourceview-3" ,gtksourceview-3)
6423 ("gtkspell3" ,gtkspell3)))
6425 `(("pkg-config" ,pkg-config)))
6426 (home-page "https://github.com/garrigue/lablgtk")
6427 (synopsis "OCaml interface to GTK+3")
6428 (description "LablGtk is an OCaml interface to GTK+ 1.2, 2.x and 3.x. It
6429 provides a strongly-typed object-oriented interface that is compatible with the
6430 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
6431 also provides bindings to gdk-pixbuf, the GLArea widget (in combination with
6432 LablGL), gnomecanvas, gnomeui, gtksourceview, gtkspell, libglade (and it can
6433 generate OCaml code from .glade files), libpanel, librsvg and quartz.")
6434 ;; Version 2 only, with linking exception.
6435 (license license:lgpl2.0)))
6437 (define-public ocaml-reactivedata
6438 ;; Future releases will use dune.
6440 (name "ocaml-reactivedata")
6445 (url "https://github.com/ocsigen/reactiveData")
6447 (file-name (git-file-name name version))
6450 "0l5z0fsckqkywjbn2nwy3s55h85yx8scc4hq9qzr9ig3hrq1mfb0"))))
6453 (modify-phases %standard-phases
6455 (add-before 'build 'fix-deprecated
6458 "src/reactiveData.ml"
6459 (("Pervasives.compare") "compare"))
6461 (add-before 'install 'forget-makefile
6462 ;; Ensure we use opam to install files
6464 (delete-file "Makefile")
6466 (build-system ocaml-build-system)
6467 (properties `((upstream-name . "reactiveData")))
6469 `(("ocamlbuild" ,ocamlbuild)
6472 `(("ocaml-react" ,ocaml-react)))
6473 (home-page "https://github.com/ocsigen/reactiveData")
6474 (synopsis "Declarative events and signals for OCaml")
6476 "React is an OCaml module for functional reactive programming (FRP). It
6477 provides support to program with time varying values: declarative events and
6478 signals. React doesn't define any primitive event or signal, it lets the
6479 client chooses the concrete timeline.")
6480 (license license:lgpl2.1+)))