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>
19 ;;; This file is part of GNU Guix.
21 ;;; GNU Guix is free software; you can redistribute it and/or modify it
22 ;;; under the terms of the GNU General Public License as published by
23 ;;; the Free Software Foundation; either version 3 of the License, or (at
24 ;;; your option) any later version.
26 ;;; GNU Guix is distributed in the hope that it will be useful, but
27 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 ;;; GNU General Public License for more details.
31 ;;; You should have received a copy of the GNU General Public License
32 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34 (define-module (gnu packages ocaml)
35 #:use-module (gnu packages)
36 #:use-module (gnu packages algebra)
37 #:use-module (gnu packages autotools)
38 #:use-module (gnu packages base)
39 #:use-module (gnu packages bison)
40 #:use-module (gnu packages boost)
41 #:use-module (gnu packages compression)
42 #:use-module (gnu packages curl)
43 #:use-module (gnu packages emacs)
44 #:use-module (gnu packages emacs-xyz)
45 #:use-module (gnu packages flex)
46 #:use-module (gnu packages gcc)
47 #:use-module (gnu packages ghostscript)
48 #:use-module (gnu packages glib)
49 #:use-module (gnu packages gnome)
50 #:use-module (gnu packages gtk)
51 #:use-module (gnu packages libevent)
52 #:use-module (gnu packages libffi)
53 #:use-module (gnu packages llvm)
54 #:use-module (gnu packages m4)
55 #:use-module (gnu packages maths)
56 #:use-module (gnu packages multiprecision)
57 #:use-module (gnu packages ncurses)
58 #:use-module (gnu packages pcre)
59 #:use-module (gnu packages perl)
60 #:use-module (gnu packages pkg-config)
61 #:use-module (gnu packages protobuf)
62 #:use-module (gnu packages python)
63 #:use-module (gnu packages python-xyz)
64 #:use-module (gnu packages rsync)
65 #:use-module (gnu packages sdl)
66 #:use-module (gnu packages sqlite)
67 #:use-module (gnu packages tex)
68 #:use-module (gnu packages texinfo)
69 #:use-module (gnu packages time)
70 #:use-module (gnu packages tls)
71 #:use-module (gnu packages virtualization)
72 #:use-module (gnu packages web-browsers)
73 #:use-module (gnu packages xml)
74 #:use-module (gnu packages xorg)
75 #:use-module (guix build-system dune)
76 #:use-module (guix build-system emacs)
77 #:use-module (guix build-system gnu)
78 #:use-module (guix build-system ocaml)
79 #:use-module (guix download)
80 #:use-module (guix git-download)
81 #:use-module ((guix licenses) #:prefix license:)
82 #:use-module (guix packages)
83 #:use-module (guix svn-download)
84 #:use-module (guix utils)
85 #:use-module ((srfi srfi-1) #:hide (zip)))
87 ;; A shortcut for files from ocaml forge. Downloaded files are computed from
88 ;; their number, not their name.
89 (define (ocaml-forge-uri name version file-number)
90 (string-append "https://forge.ocamlcore.org/frs/download.php/"
91 (number->string file-number) "/" name "-" version
94 ;; Janestreet packages are found in a similar way and all need the same patch.
95 (define (janestreet-origin name version hash)
96 (origin (method url-fetch)
97 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/"
98 (version-major+minor version) "/files/"
99 name "-" version ".tar.gz"))
100 (sha256 (base32 hash))
101 (modules '((guix build utils)))
103 (let ((pattern (string-append "lib/" name)))
105 ;; install.ml contains an invalid reference to the ppx file and
106 ;; propagates this error to the generated META file. It
107 ;; looks for it in the "lib" directory, but it is installed in
108 ;; "lib/ocaml/site-lib/package". This substitute does not change
109 ;; this file for non ppx packages.
110 (substitute* "install.ml"
111 ((,pattern) (string-append "lib/ocaml/site-lib/" ,name)))
112 ;; The standard Makefile would try to install janestreet modules
113 ;; in OCaml's directory in the store, which is read-only.
114 (substitute* "Makefile"
116 "--libdir $(LIBDIR) --prefix"))
119 ;; They also require almost the same set of arguments
120 (define janestreet-arguments
123 (list (string-append "CONFIGUREFLAGS=--prefix "
124 (assoc-ref %outputs "out")
126 (string-append "LIBDIR="
127 (assoc-ref %outputs "out")
128 "/lib/ocaml/site-lib")
129 ;; for ocaml-bin-prot, otherwise ignored
130 (string-append "OCAML_TOPLEVEL_PATH="
131 (assoc-ref %build-inputs "findlib")
132 "/lib/ocaml/site-lib"))
133 #:phases (modify-phases %standard-phases (delete 'configure))))
135 (define-public ocaml-4.09
142 "http://caml.inria.fr/pub/distrib/ocaml-"
143 (version-major+minor version)
144 "/ocaml-" version ".tar.xz"))
147 "1v3z5ar326f3hzvpfljg4xj8b9lmbrl53fn57yih1bkbx3gr3yzj"))))
148 (build-system gnu-build-system)
150 (list (search-path-specification
151 (variable "OCAMLPATH")
152 (files (list "lib/ocaml" "lib/ocaml/site-lib")))
153 (search-path-specification
154 (variable "CAML_LD_LIBRARY_PATH")
155 (files (list "lib/ocaml/site-lib/stubslibs"
156 "lib/ocaml/site-lib/stublibs")))))
159 ("pkg-config" ,pkg-config)))
162 ;; For libiberty, needed for objdump support.
163 ("gcc:lib" ,(canonical-package gcc) "lib")
164 ("zlib" ,zlib))) ;also needed for objdump support
167 (modify-phases %standard-phases
168 (add-after 'unpack 'patch-/bin/sh-references
169 (lambda* (#:key inputs #:allow-other-keys)
170 (let* ((sh (string-append (assoc-ref inputs "bash")
172 (quoted-sh (string-append "\"" sh "\"")))
173 (with-fluids ((%default-port-encoding #f))
179 (format (current-error-port) "\
180 patch-/bin/sh-references: ~a: changing `\"/bin/sh\"' to `~a'~%"
183 (find-files "." "\\.ml$"))
187 (invoke "make" "-j" (number->string (parallel-job-count))
191 (with-directory-excursion "testsuite"
192 (invoke "make" "all")))))))
193 (home-page "https://ocaml.org/")
194 (synopsis "The OCaml programming language")
196 "OCaml is a general purpose industrial-strength programming language with
197 an emphasis on expressiveness and safety. Developed for more than 20 years at
198 Inria it benefits from one of the most advanced type systems and supports
199 functional, imperative and object-oriented styles of programming.")
200 ;; The compiler is distributed under qpl1.0 with a change to choice of
201 ;; law: the license is governed by the laws of France. The library is
202 ;; distributed under lgpl2.0.
203 (license (list license:qpl license:lgpl2.0))))
205 (define-public ocaml-4.07
212 "http://caml.inria.fr/pub/distrib/ocaml-"
213 (version-major+minor version)
214 "/ocaml-" version ".tar.xz"))
217 "1f07hgj5k45cylj1q3k5mk8yi02cwzx849b1fwnwia8xlcfqpr6z"))))
219 (substitute-keyword-arguments (package-arguments ocaml-4.09)
221 `(modify-phases ,phases
223 (lambda* (#:key outputs #:allow-other-keys)
224 (let* ((out (assoc-ref outputs "out"))
225 (mandir (string-append out "/share/man")))
226 ;; Custom configure script doesn't recognize
227 ;; --prefix=<PREFIX> syntax (with equals sign).
228 (invoke "./configure"
230 "--mandir" mandir))))))))))
232 (define-public ocaml ocaml-4.09)
234 (define-public ocamlbuild
242 (url "https://github.com/ocaml/ocamlbuild")
244 (file-name (git-file-name name version))
246 (base32 "1hb5mcdz4wv7sh1pj7dq9q4fgz5h3zg7frpiya6s8zd3ypwzq0kh"))))
247 (build-system ocaml-build-system)
250 (list (string-append "OCAMLBUILD_PREFIX=" (assoc-ref %outputs "out"))
251 (string-append "OCAMLBUILD_BINDIR=" (assoc-ref %outputs "out")
253 (string-append "OCAMLBUILD_LIBDIR=" (assoc-ref %outputs "out")
254 "/lib/ocaml/site-lib")
255 (string-append "OCAMLBUILD_MANDIR=" (assoc-ref %outputs "out")
258 (modify-phases %standard-phases
260 ; some failures because of changes in OCaml's error message formating
262 (home-page "https://github.com/ocaml/ocamlbuild")
263 (synopsis "OCaml build tool")
264 (description "OCamlbuild is a generic build tool, that has built-in rules
265 for building OCaml library and programs.")
266 (license license:lgpl2.1+)))
268 (define-public ocaml-extlib
270 (name "ocaml-extlib")
274 (uri (string-append "https://ygrek.org/p/release/ocaml-extlib/"
275 "extlib-" version ".tar.gz"))
278 "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1"))))
279 (build-system ocaml-build-system)
282 (modify-phases %standard-phases
283 (delete 'configure))))
285 `(("ocaml-cppo" ,ocaml-cppo)))
286 (home-page "https://github.com/ygrek/ocaml-extlib")
287 (synopsis "Complete and small extension for OCaml standard library")
288 (description "This library adds new functions to OCaml standard library
289 modules, modifies some functions in order to get better performances or
290 safety (tail-recursive) and also provides new modules which should be useful
291 for day to day programming.")
292 ;; With static-linking exception
293 (license license:lgpl2.1+)))
295 (define-public ocaml-cudf
302 (uri "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz")
305 "0771lwljqwwn3cryl0plny5a5dyyrj4z6bw66ha5n8yfbpcy8clr"))))
306 (build-system ocaml-build-system)
307 (propagated-inputs `(("ocaml-extlib" ,ocaml-extlib)))
310 ("ocamlbuild" ,ocamlbuild)
311 ("ocaml-ounit" ,ocaml-ounit)))
316 (string-append "BINDIR=" (assoc-ref %outputs "out")
319 (modify-phases %standard-phases
320 (delete 'configure))))
321 (home-page "http://www.mancoosi.org/cudf/")
322 (synopsis "CUDF library (part of the Mancoosi tools)")
323 (description "CUDF (for Common Upgradeability Description Format) is a
324 format for describing upgrade scenarios in package-based Free and Open Source
325 Software distribution.")
326 ;; With static-linking exception
327 (license license:lgpl2.1+)))
329 (define-public ocaml-mccs
336 (url "https://github.com/AltGr/ocaml-mccs")
338 (file-name (git-file-name name version))
341 "1gsad5cj03256i36wdjqk5pg51pyd48rpjazf0gfaakrn8lk438g"))))
342 (build-system dune-build-system)
343 (propagated-inputs `(("ocaml-cudf" ,ocaml-cudf)))
344 (home-page "https://www.i3s.unice.fr/~cpjm/misc/")
345 (synopsis "Upgrade path problem solver")
346 (description "Mccs (Multi Criteria CUDF Solver) is a CUDF problem solver.
347 Mccs take as input a CUDF problem and computes the best solution according to
348 a set of criteria. It relies on a Integer Programming solver or a
349 Pseudo Boolean solver to achieve its task. Mccs can use a wide set of
350 underlying solvers like Cplex, Gurobi, Lpsolver, Glpk, CbC, SCIP or WBO.")
354 ;; With static-linking exception
357 (define-public ocaml-dose3
363 (uri "https://gforge.inria.fr/frs/download.php/file/36063/dose3-5.0.1.tar.gz")
366 "00yvyfm4j423zqndvgc1ycnmiffaa2l9ab40cyg23pf51qmzk2jm"))
369 "ocaml-dose3-add-unix-dependency.patch"
370 "ocaml-dose3-Fix-for-ocaml-4.06.patch"
371 "ocaml-dose3-dont-make-printconf.patch"
372 "ocaml-dose3-Install-mli-cmx-etc.patch"))))
373 (build-system ocaml-build-system)
376 (list (string-append "SHELL="
377 (assoc-ref %build-inputs "bash")
380 (list (string-append "LIBDIR="
381 (assoc-ref %outputs "out")
382 "/lib/ocaml/site-lib"))))
384 `(("ocaml-graph" ,ocaml-graph)
385 ("ocaml-cudf" ,ocaml-cudf)
386 ("ocaml-extlib" ,ocaml-extlib)
387 ("ocaml-re" ,ocaml-re)))
390 ("python" ,python-2) ; for a test script
391 ("python2-pyyaml" ,python2-pyyaml) ; for a test script
392 ("ocaml-extlib" ,ocaml-extlib)
393 ("ocamlbuild" ,ocamlbuild)
394 ("ocaml-cppo" ,ocaml-cppo)))
395 (home-page "http://www.mancoosi.org/software/")
396 (synopsis "Package distribution management framework")
397 (description "Dose3 is a framework made of several OCaml libraries for
398 managing distribution packages and their dependencies. Though not tied to
399 any particular distribution, dose3 constitutes a pool of libraries which
400 enable analyzing packages coming from various distributions. Besides basic
401 functionalities for querying and setting package properties, dose3 also
402 implements algorithms for solving more complex problems such as monitoring
403 package evolutions, correct and complete dependency resolution and
404 repository-wide uninstallability checks.")
405 ;; with static-linking exception
406 (license license:lgpl2.1+)))
408 (define-public ocaml-opam-file-format
410 (name "ocaml-opam-file-format")
415 (url "https://github.com/ocaml/opam-file-format")
417 (file-name (git-file-name name version))
420 "0fqb99asnair0043hhc8r158d6krv5nzvymd0xwycr5y72yrp0hv"))))
421 (build-system ocaml-build-system)
423 `(#:tests? #f; No tests
424 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
425 "/lib/ocaml/site-lib"))
427 (modify-phases %standard-phases
428 (delete 'configure))))
429 (home-page "https://opam.ocaml.org")
430 (synopsis "Parser and printer for the opam file syntax")
431 (description "This package contains a parser and a pretty-printer for
432 the opam file format.")
433 ;; With static-linking exception
434 (license license:lgpl2.1+)))
443 (url "https://github.com/ocaml/opam")
445 (file-name (git-file-name name version))
448 "1p719ccn9wnzk6impsnwr809yh507h8f37dx9nn64b1hsyb5z8ax"))))
449 (build-system ocaml-build-system)
452 (list (string-append "SHELL="
453 (assoc-ref %build-inputs "bash")
456 ;; For some reason, 'ocp-build' needs $TERM to be set.
459 (string-append "SHELL="
460 (assoc-ref %build-inputs "bash")
463 #:test-target "tests"
465 #:phases (modify-phases %standard-phases
466 (add-before 'build 'pre-build
467 (lambda* (#:key inputs make-flags #:allow-other-keys)
468 (let ((bash (assoc-ref inputs "bash"))
469 (bwrap (string-append (assoc-ref inputs "bubblewrap")
471 (substitute* "src/core/opamSystem.ml"
473 (string-append "\"" bash "/bin/sh\""))
476 ;; Use bwrap from the store directly.
477 (substitute* "src/state/shellscripts/bwrap.sh"
478 (("-v bwrap") (string-append "-v " bwrap))
479 (("exec bwrap") (string-append "exec " bwrap))
480 ;; Mount /gnu and /run/current-system in the
481 ;; isolated environment when building with opam.
482 ;; This is necessary for packages to find external
483 ;; dependencies, such as a C compiler, make, etc...
484 (("^add_sys_mounts /usr")
485 "add_sys_mounts /gnu /run/current-system /usr"))
486 (substitute* "src/client/opamInitDefaults.ml"
487 (("\"bwrap\"") (string-append "\"" bwrap "\"")))
488 ;; Generating the documentation needs write access
490 (lambda (f) (chmod f #o644))
491 (find-files "doc" "."))
493 (add-before 'check 'pre-check
495 ;; The "repo" test attempts to open some of these files O_WRONLY
496 ;; and fails with a bogus "OpamSystem.File_not_found" otherwise.
498 (lambda (f) (chmod f #o644))
499 (find-files "tests/packages" "\\.opam$"))
501 (substitute* "tests/Makefile"
504 ;; By default tests run twice: once with a "local" repository
505 ;; and once with a git repository: disable the git tests to
506 ;; avoid the dependency.
512 ("ocaml-cppo" ,ocaml-cppo)
516 ("python" ,python-wrapper)
524 ("bubblewrap" ,bubblewrap)))
526 `(("ocaml-cmdliner" ,ocaml-cmdliner)
527 ("ocaml-dose3" ,ocaml-dose3)
528 ("ocaml-mccs" ,ocaml-mccs)
529 ("ocaml-opam-file-format" ,ocaml-opam-file-format)
530 ("ocaml-re" ,ocaml-re)))
531 (home-page "http://opam.ocamlpro.com/")
532 (synopsis "Package manager for OCaml")
534 "OPAM is a tool to manage OCaml packages. It supports multiple
535 simultaneous compiler installations, flexible package constraints, and a
536 Git-friendly development workflow.")
538 ;; The 'LICENSE' file waives some requirements compared to LGPLv3.
539 (license license:lgpl3)))
541 (define-public camlp5
549 (url "https://github.com/camlp5/camlp5")
550 (commit (string-append "rel" (string-delete #\. version)))))
551 (file-name (git-file-name name version))
553 (base32 "1d9spy3f5ahixm8nxxk086kpslzva669a5scn49am0s7vx4i71kp"))))
554 (build-system gnu-build-system)
558 `(#:tests? #f ; XXX TODO figure out how to run the tests
560 (modify-phases %standard-phases
562 (lambda* (#:key outputs #:allow-other-keys)
563 (let* ((out (assoc-ref outputs "out"))
564 (mandir (string-append out "/share/man")))
565 ;; Custom configure script doesn't recognize
566 ;; --prefix=<PREFIX> syntax (with equals sign).
567 (invoke "./configure"
569 "--mandir" mandir))))
570 (add-before 'build 'fix-/bin-references
572 (substitute* "config/Makefile"
577 (invoke "make" "-j" (number->string
578 (parallel-job-count))
580 ;; Required for findlib to find camlp5's libraries
581 (add-after 'install 'install-meta
582 (lambda* (#:key outputs #:allow-other-keys)
583 (install-file "etc/META" (string-append (assoc-ref outputs "out")
584 "/lib/ocaml/camlp5/"))
586 (home-page "https://camlp5.github.io/")
587 (synopsis "Pre-processor Pretty Printer for OCaml")
589 "Camlp5 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers
590 tools for syntax (Stream Parsers and Grammars) and the ability to modify the
591 concrete syntax of the language (Quotations, Syntax Extensions).")
592 ;; Most files are distributed under bsd-3, but ocaml_stuff/* is under qpl.
593 (license (list license:bsd-3 license:qpl))))
601 (uri (string-append "http://hevea.inria.fr/old/"
602 "hevea-" version ".tar.gz"))
605 "1pzyszxw90klpcmhjqrjfc8cw6c0gm4w2blim8ydyxb6rq6qml1s"))))
606 (build-system gnu-build-system)
610 `(("ocamlbuild" ,ocamlbuild)))
612 `(#:tests? #f ; no test suite
613 #:make-flags (list (string-append "PREFIX=" %output))
614 #:phases (modify-phases %standard-phases
616 (add-before 'build 'patch-/bin/sh
619 (("/bin/sh") (which "sh")))
621 (home-page "http://hevea.inria.fr/")
622 (synopsis "LaTeX to HTML translator")
624 "HeVeA is a LaTeX to HTML translator that generates modern HTML 5. It is
625 written in Objective Caml.")
626 (license license:qpl)))
628 (define-public ocaml-num
636 (url "https://github.com/ocaml/num")
637 (commit (string-append "v" version))))
638 (file-name (git-file-name name version))
640 (base32 "0a4mhxgs5hi81d227aygjx35696314swas0vzy3ig809jb7zq4h0"))))
641 (build-system ocaml-build-system)
644 (modify-phases %standard-phases
646 (add-before 'build 'fix-makefile
647 (lambda* (#:key outputs #:allow-other-keys)
648 ;; This package supposes we install to the same directory as
649 ;; the ocaml package.
650 (substitute* "src/META"
651 (("\"\\^\"") (string-append "\"" (assoc-ref outputs "out")
652 "/lib/ocaml/site-lib\"")))
653 (substitute* "src/Makefile"
654 (("\\) \\$\\(STDLIBDIR\\)")
655 (string-append ") " (assoc-ref outputs "out")
656 "/lib/ocaml/site-lib")))
658 (add-after 'install 'fix-stubslib
659 (lambda* (#:key outputs #:allow-other-keys)
660 (format #t "~a~%" (find-files "." ".*.so"))
661 (let ((stubdir (string-append (assoc-ref outputs "out")
662 "/lib/ocaml/site-lib/stublibs")))
663 (delete-file stubdir)
665 (install-file "src/dllnums.so" stubdir))
667 (home-page "https://github.com/ocaml/num")
668 (synopsis "Arbitrary-precision integer and rational arithmetic")
669 (description "OCaml-Num contains the legacy Num library for
670 arbitrary-precision integer and rational arithmetic that used to be part of
671 the OCaml core distribution.")
672 (license license:lgpl2.1+))); with linking exception
674 (define-public emacs-tuareg
676 (name "emacs-tuareg")
682 (url "https://github.com/ocaml/tuareg")
684 (file-name (git-file-name name version))
686 (base32 "06zxnn85fk5087iq0zxc5l5n9fz8r0367wylmynbfhc9711vccy6"))))
687 (build-system gnu-build-system)
688 (native-inputs `(("emacs" ,emacs-minimal)
692 (modify-phases %standard-phases
693 (add-after 'unpack 'make-git-checkout-writable
695 (for-each make-file-writable (find-files "."))
698 (add-before 'install 'fix-install-path
699 (lambda* (#:key outputs #:allow-other-keys)
700 (substitute* "Makefile"
701 (("/emacs/site-lisp")
702 (string-append (assoc-ref %outputs "out")
703 "/share/emacs/site-lisp/")))
705 (add-after 'install 'post-install
706 (lambda* (#:key outputs #:allow-other-keys)
708 (string-append (assoc-ref outputs "out")
709 "/share/emacs/site-lisp/"
710 "tuareg-autoloads.el"))
712 (home-page "https://github.com/ocaml/tuareg")
713 (synopsis "OCaml programming mode, REPL, debugger for Emacs")
714 (description "Tuareg helps editing OCaml code, to highlight important
715 parts of the code, to run an OCaml REPL, and to run the OCaml debugger within
717 (license license:gpl2+)))
719 (define-public ocaml-menhir
721 (name "ocaml-menhir")
722 ;; More recent versions can be built after we have dune >= 2.0
728 (url "https://gitlab.inria.fr/fpottier/menhir.git")
730 (file-name (git-file-name name version))
732 (base32 "0v8av4pw6rykzb7wx54xhbsx0jhh8xyb4x0k4yrxi0w5ylkck6mb"))))
733 (build-system ocaml-build-system)
737 `(("ocamlbuild" ,ocamlbuild)))
739 `(#:make-flags `("USE_OCAMLFIND=true"
740 ,(string-append "PREFIX=" (assoc-ref %outputs "out")))
741 #:tests? #f ; No check target
743 (modify-phases %standard-phases
744 (delete 'configure))))
745 (home-page "http://gallium.inria.fr/~fpottier/menhir/")
746 (synopsis "Parser generator")
747 (description "Menhir is a parser generator. It turns high-level grammar
748 specifications, decorated with semantic actions expressed in the OCaml
749 programming language into parsers, again expressed in OCaml. It is based on
750 Knuth’s LR(1) parser construction technique.")
751 ;; The file src/standard.mly and all files listed in src/mnehirLib.mlpack
752 ;; that have an *.ml or *.mli extension are GPL licensed. All other files
754 (license (list license:gpl2+ license:qpl))))
756 (define-public ocaml-bigarray-compat
758 (name "ocaml-bigarray-compat")
763 (url "https://github.com/mirage/bigarray-compat")
764 (commit (string-append "v" version))))
765 (file-name (git-file-name name version))
768 "06j1dwlpisxshdd0nab4n4x266gg1s1n8na16lpgw3fvcznwnimz"))))
769 (build-system dune-build-system)
771 `(#:tests? #f)); no tests
772 (home-page "https://github.com/mirage/bigarray-compat")
773 (synopsis "OCaml compatibility library")
774 (description "This package contains a compatibility library for
775 @code{Stdlib.Bigarray} in OCaml.")
776 (license license:isc)))
778 (define-public lablgtk
785 (url "https://github.com/garrigue/lablgtk")
787 (file-name (git-file-name name version))
790 "0w8cdfcv2wc19sd3qzj3qq77qc6rbnbynsz02gzbl15kgrvgrfxi"))))
791 (build-system gnu-build-system)
794 ("findlib" ,ocaml-findlib)
795 ("pkg-config" ,pkg-config)))
796 ;; FIXME: Add inputs gtkgl-2.0, libpanelapplet-2.0, gtkspell-2.0,
797 ;; and gtk+-quartz-2.0 once available.
800 ("gtksourceview" ,gtksourceview-2)
801 ("libgnomecanvas" ,libgnomecanvas)
802 ("libgnomeui" ,libgnomeui)
803 ("libglade" ,libglade)
804 ("librsvg" ,librsvg)))
806 `(#:tests? #f ; no check target
808 ;; opt: also install cmxa files
809 #:make-flags (list "all" "opt"
810 (string-append "FINDLIBDIR="
811 (assoc-ref %outputs "out")
813 ;; Occasionally we would get "Error: Unbound module GtkThread" when
814 ;; compiling 'gtkThInit.ml', with 'make -j'. So build sequentially.
818 (modify-phases %standard-phases
819 (add-before 'install 'prepare-install
820 (lambda* (#:key inputs outputs #:allow-other-keys)
821 (let ((out (assoc-ref outputs "out"))
822 (ocaml (assoc-ref inputs "ocaml")))
823 ;; Install into the output and not the ocaml directory.
824 (mkdir-p (string-append out "/lib/ocaml"))
825 (substitute* "config.make"
828 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-lablgtk))))
829 (home-page "http://lablgtk.forge.ocamlcore.org/")
830 (synopsis "GTK+ bindings for OCaml")
832 "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides
833 a strongly-typed object-oriented interface that is compatible with the
834 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
835 also provides bindings to
836 gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas,
837 gnomeui, gtksourceview, gtkspell,
838 libglade (and it an generate OCaml code from .glade files),
839 libpanel, librsvg and quartz.")
840 (license license:lgpl2.1)))
842 (define-public ocaml4.07-lablgtk
845 (name "ocaml4.07-lablgtk")
847 `(("ocaml" ,ocaml-4.07)
848 ("findlib" ,ocaml4.07-findlib)
849 ("pkg-config" ,pkg-config)))
852 (define-public unison
859 (url "https://github.com/bcpierce00/unison")
860 (commit (string-append "v" version))))
861 (file-name (git-file-name name version))
864 "1bykiyc0dc5pkw8x370qkg2kygq9pq7yqzsgczd3y13b6ivm4sdq"))
865 (patches (search-patches "unison-fix-ocaml-4.08.patch"))))
866 (build-system gnu-build-system)
868 "doc")) ; 1.9 MiB of documentation
870 `(("ocaml" ,ocaml-4.09)
872 ("ghostscript" ,ghostscript)
873 ("texlive" ,texlive-tiny)
878 `(#:parallel-build? #f
880 #:test-target "selftest"
881 #:tests? #f ; Tests require writing to $HOME.
882 ; If some $HOME is provided, they fail with the message
883 ; "Fatal error: Skipping some tests -- remove me!"
885 (modify-phases %standard-phases
887 (add-before 'install 'prepare-install
888 (lambda* (#:key outputs #:allow-other-keys)
889 (let* ((out (assoc-ref outputs "out"))
890 (bin (string-append out "/bin")))
892 (setenv "HOME" out) ; forces correct INSTALLDIR in Makefile
894 (add-after 'install 'install-fsmonitor
895 (lambda* (#:key outputs #:allow-other-keys)
896 (let* ((out (assoc-ref outputs "out"))
897 (bin (string-append out "/bin")))
898 ;; 'unison-fsmonitor' is used in "unison -repeat watch" mode.
899 (install-file "src/unison-fsmonitor" bin)
901 (add-after 'install 'install-doc
902 (lambda* (#:key outputs #:allow-other-keys)
903 (let ((doc (string-append (assoc-ref outputs "doc")
904 "/share/doc/unison")))
906 ;; Remove an '\n' that prevents the doc to be generated
907 ;; correctly with newer hevea.
908 (substitute* "doc/local.tex"
909 (("----SNIP----.*") "----SNIP----"))
910 ;; This file needs write-permissions, because it's
911 ;; overwritten by 'docs' during documentation generation.
912 (chmod "src/strings.ml" #o600)
913 (invoke "make" "docs"
914 "TEXDIRECTIVES=\\\\draftfalse")
915 (for-each (lambda (f)
916 (install-file f doc))
918 (string-append "doc/unison-manual." ext))
919 ;; Install only html documentation,
920 ;; since the build is currently
921 ;; non-reproducible with the ps, pdf,
923 '(;; "ps" "pdf" "dvi"
926 (home-page "https://www.cis.upenn.edu/~bcpierce/unison/")
927 (synopsis "File synchronizer")
929 "Unison is a file-synchronization tool. It allows two replicas of
930 a collection of files and directories to be stored on different hosts
931 (or different disks on the same host), modified separately, and then
932 brought up to date by propagating the changes in each replica
934 (license license:gpl3+)))
936 (define-public ocaml-findlib
938 (name "ocaml-findlib")
942 (uri (string-append "http://download.camlcity.org/download/"
943 "findlib" "-" version ".tar.gz"))
946 "00s3sfb02pnjmkax25pcnljcnhcggiliccfz69a72ic7gsjwz1cf"))))
947 (build-system gnu-build-system)
952 `(#:tests? #f ; no test suite
954 #:make-flags (list "all" "opt")
955 #:phases (modify-phases %standard-phases
958 (lambda* (#:key inputs outputs #:allow-other-keys)
959 (let ((out (assoc-ref outputs "out")))
962 "-bindir" (string-append out "/bin")
963 "-config" (string-append out "/etc/ocamfind.conf")
964 "-mandir" (string-append out "/share/man")
965 "-sitelib" (string-append out "/lib/ocaml/site-lib")
968 (lambda* (#:key outputs #:allow-other-keys)
969 (let ((out (assoc-ref outputs "out")))
970 (invoke "make" "install"
971 (string-append "OCAML_CORE_STDLIB="
972 out "/lib/ocaml/site-lib"))))))))
973 (home-page "http://projects.camlcity.org/projects/findlib.html")
974 (synopsis "Management tool for OCaml libraries")
976 "The \"findlib\" library provides a scheme to manage reusable software
977 components (packages), and includes tools that support this scheme. Packages
978 are collections of OCaml modules for which metainformation can be stored. The
979 packages are kept in the file system hierarchy, but with strict directory
980 structure. The library contains functions to look the directory up that
981 stores a package, to query metainformation about a package, and to retrieve
982 dependency information about multiple packages. There is also a tool that
983 allows the user to enter queries on the command-line. In order to simplify
984 compilation and linkage, there are new frontends of the various OCaml
985 compilers that can directly deal with packages.")
986 (license license:x11)))
988 (define-public ocaml4.07-findlib
990 (inherit ocaml-findlib)
991 (name "ocaml4.07-findlib")
994 ("ocaml" ,ocaml-4.07)))))
996 ;; note that some tests may hang for no obvious reason.
997 (define-public ocaml-ounit
1003 (uri (ocaml-forge-uri "ounit" version 1749))
1006 "03ifp9hjcxg4m5j190iy373jcn4039d3vy10kmd8p4lfciwzwc1f"))))
1007 (build-system ocaml-build-system)
1009 `(("libxml2" ,libxml2) ; for xmllint
1010 ("ocamlbuild" ,ocamlbuild)))
1013 (modify-phases %standard-phases
1014 (delete 'check)))) ; tests are run during build
1015 (home-page "http://ounit.forge.ocamlcore.org")
1016 (synopsis "Unit testing framework for OCaml")
1017 (description "Unit testing framework for OCaml. It is similar to JUnit and
1018 other XUnit testing frameworks.")
1019 (license license:expat)))
1021 (define-public camlzip
1027 (uri (ocaml-forge-uri name version 1616))
1030 "0m6gyjw46w3qnhxfsyqyag42znl5lwargks7w7rfchr9jzwpff68"))))
1031 (build-system ocaml-build-system)
1036 (modify-phases %standard-phases
1038 (add-after 'install 'install-camlzip
1039 (lambda* (#:key outputs #:allow-other-keys)
1040 (let* ((out (assoc-ref outputs "out"))
1041 (dir (string-append out "/lib/ocaml/site-lib/camlzip")))
1043 (call-with-output-file (string-append dir "/META")
1045 (format port "version=\"1.06\"\n")
1046 (format port "requires=\"unix\"\n")
1047 (format port "archive(byte)=\"zip.cma\"\n")
1048 (format port "archive(native)=\"zip.cmxa\"\n")
1049 (format port "archive(native,plugin)=\"zip.cmxs\"\n")
1050 (format port "directory=\"../zip\"\n")))))))
1051 #:install-target "install-findlib"
1053 (list "all" "allopt"
1054 (string-append "INSTALLDIR=" (assoc-ref %outputs "out")
1056 (home-page "https://github.com/xavierleroy/camlzip")
1057 (synopsis "Provides easy access to compressed files")
1058 (description "Provides easy access to compressed files in ZIP, GZIP and
1059 JAR format. It provides functions for reading from and writing to compressed
1060 files in these formats.")
1061 (license license:lgpl2.1+)))
1063 (define-public ocamlmod
1069 (uri (ocaml-forge-uri name version 1702))
1072 "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa"))))
1073 (build-system ocaml-build-system)
1075 `(("ounit" ,ocaml-ounit)
1076 ("ocamlbuild" ,ocamlbuild)))
1079 (modify-phases %standard-phases
1080 ;; Tests are done during build.
1082 (home-page "https://forge.ocamlcore.org/projects/ocamlmod")
1083 (synopsis "Generate modules from OCaml source files")
1084 (description "Generate modules from OCaml source files.")
1085 (license license:lgpl2.1+))) ; with an exception
1087 (define-public ocaml-zarith
1089 (name "ocaml-zarith")
1094 (url "https://github.com/ocaml/Zarith")
1095 (commit (string-append "release-" version))))
1096 (file-name (git-file-name name version))
1099 "0hv5ywz1q2cgn8apfz490clwk5hcynr937g2v8i13x2ax4bnv0lz"))))
1100 (build-system ocaml-build-system)
1106 `(#:tests? #f ; no test target
1108 (modify-phases %standard-phases
1110 (lambda _ (invoke "./configure"))))))
1111 (home-page "https://forge.ocamlcore.org/projects/zarith/")
1112 (synopsis "Implements arbitrary-precision integers")
1113 (description "Implements arithmetic and logical operations over
1114 arbitrary-precision integers. It uses GMP to efficiently implement arithmetic
1115 over big integers. Small integers are represented as Caml unboxed integers,
1116 for speed and space economy.")
1117 (license license:lgpl2.1+))) ; with an exception
1119 (define-public ocaml-frontc
1121 (name "ocaml-frontc")
1126 (url "https://github.com/BinaryAnalysisPlatform/FrontC")
1127 (commit (string-append
1128 "V_" (string-join (string-split version #\.) "_")))))
1129 (file-name (git-file-name name version))
1132 "0k7jk9hkglnkk27s62xl493jyqc017gyvwqb1lyc0ywbb001s102"))))
1133 (build-system ocaml-build-system)
1136 (modify-phases %standard-phases
1138 (add-after 'install 'install-meta
1139 (lambda* (#:key outputs #:allow-other-keys)
1140 (let ((out (assoc-ref outputs "out")))
1141 (with-output-to-file
1142 (string-append out "/lib/ocaml/frontc/META")
1146 "description = \"Parser for the C language\"
1147 version = \"" ,version "\"
1149 archive(byte) = \"frontc.cma\"
1150 archive(native) = \"frontc.cmxa\""))))
1151 (symlink (string-append out "/lib/ocaml/frontc")
1152 (string-append out "/lib/ocaml/FrontC"))))))
1153 #:make-flags (list (string-append "PREFIX="
1154 (assoc-ref %outputs "out"))
1155 "OCAML_SITE=$(LIB_DIR)/ocaml/")))
1156 (properties `((upstream-name . "FrontC")))
1157 (home-page "https://www.irit.fr/FrontC")
1158 (synopsis "C parser and lexer library")
1159 (description "FrontC is an OCAML library providing a C parser and lexer.
1160 The result is a syntactic tree easy to process with usual OCAML tree management.
1161 It provides support for ANSI C syntax, old-C K&R style syntax and the standard
1162 GNU CC attributes. It provides also a C pretty printer as an example of use.")
1163 (license license:lgpl2.1)))
1165 (define-public ocaml-qcheck
1167 (name "ocaml-qcheck")
1173 (url "https://github.com/c-cube/qcheck")
1175 (file-name (git-file-name name version))
1177 (base32 "1llnfynhlndwyjig7wrayjnds2b3mggp5lw20dwxhn2i2lkkb22m"))))
1178 (build-system dune-build-system)
1182 (modify-phases %standard-phases
1183 (add-before 'build 'fix-deprecated
1185 (substitute* "src/core/QCheck.ml"
1186 (("Pervasives.compare") "compare"))
1189 `(("ocaml-alcotest" ,ocaml-alcotest)
1190 ("ocaml-ounit" ,ocaml-ounit)))
1192 `(("ocamlbuild" ,ocamlbuild)))
1193 (home-page "https://github.com/c-cube/qcheck")
1194 (synopsis "QuickCheck inspired property-based testing for OCaml")
1195 (description "QuickCheck inspired property-based testing for OCaml. This
1196 module checks invariants (properties of some types) over randomly
1197 generated instances of the type. It provides combinators for generating
1198 instances and printing them.")
1199 (license license:lgpl3+)))
1201 (define-public ocaml-qtest
1203 (name "ocaml-qtest")
1208 (url "https://github.com/vincent-hugot/qtest/")
1209 (commit (string-append "v" version))))
1210 (file-name (git-file-name name version))
1213 "0gddzan4vzs0vklsxhirdjrvx3rp7hhh2yr20vi13nq8rwkn9w29"))))
1214 (build-system dune-build-system)
1216 `(#:test-target "tests"))
1218 `(("ounit" ,ocaml-ounit)
1219 ("qcheck" ,ocaml-qcheck)))
1220 (home-page "https://github.com/vincent-hugot/qtest")
1221 (synopsis "Inline (Unit) Tests for OCaml")
1222 (description "Qtest extracts inline unit tests written using a special
1223 syntax in comments. Those tests are then run using the oUnit framework and the
1224 qcheck library. The possibilities range from trivial tests -- extremely simple
1225 to use -- to sophisticated random generation of test cases.")
1226 (license license:lgpl3+)))
1228 (define-public ocaml-stringext
1230 (name "ocaml-stringext")
1235 (url "https://github.com/rgrinberg/stringext")
1237 (file-name (git-file-name name version))
1240 "1m09cmn3vrk3gdm60fb730qsygcfyxsyv7gl9xfzck08q1x2x9qx"))))
1241 (build-system dune-build-system)
1243 `(#:test-target "."))
1245 `(("ocamlbuild" ,ocamlbuild)
1246 ("qtest" ,ocaml-qtest)))
1247 (home-page "https://github.com/rgrinberg/stringext")
1248 (synopsis "Extra string functions for OCaml")
1249 (description "Provides a single module named Stringext that provides a grab
1250 bag of often used but missing string functions from the stdlib. E.g, split,
1251 full_split, cut, rcut, etc..")
1252 ;; the only mention of a license in this project is in its `opam' file
1253 ;; where it says `mit'.
1254 (license license:expat)))
1263 (url "https://github.com/ocaml/dune")
1265 (file-name (git-file-name name version))
1268 "0l4x0x2fz135pljv88zj8y6w1ninsqw0gn1mdxzprd6wbxbyn8wr"))))
1269 (build-system ocaml-build-system)
1271 `(#:tests? #f; require odoc
1272 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1273 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1274 "/lib/ocaml/site-lib"))
1276 (modify-phases %standard-phases
1278 (lambda* (#:key outputs #:allow-other-keys)
1279 (invoke "./configure")
1281 (home-page "https://github.com/ocaml/dune")
1282 (synopsis "OCaml build system")
1283 (description "Dune is a build system that was designed to simplify the
1284 release of Jane Street packages. It reads metadata from @file{dune} files
1285 following a very simple s-expression syntax.")
1286 (license license:expat)))
1288 (define-public ocaml4.07-dune
1289 (package-with-ocaml4.07 dune))
1291 (define-public ocaml-csexp
1293 (name "ocaml-csexp")
1298 (url "https://github.com/ocaml-dune/csexp")
1300 (file-name (git-file-name name version))
1303 "190zppgvdjgghmrnx67ayzzk86qdjy3yn5fcrcw08wsh93384pl0"))))
1304 (build-system dune-build-system)
1306 `(#:tests? #f; FIXME: needs ppx_expect, but which version?
1308 (modify-phases %standard-phases
1309 (add-before 'build 'chmod
1311 (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*"))
1315 ("ocaml-result" ,ocaml-result)))
1316 (home-page "https://github.com/ocaml-dune/csexp")
1317 (synopsis "Parsing and printing of S-expressions in Canonical form")
1318 (description "This library provides minimal support for Canonical
1319 S-expressions. Canonical S-expressions are a binary encoding of
1320 S-expressions that is super simple and well suited for communication
1323 This library only provides a few helpers for simple applications. If
1324 you need more advanced support, such as parsing from more fancy input
1325 sources, you should consider copying the code of this library given
1326 how simple parsing S-expressions in canonical form is.
1328 To avoid a dependency on a particular S-expression library, the only
1329 module of this library is parameterised by the type of S-expressions.")
1330 (license license:expat)))
1332 (define-public ocaml-migrate-parsetree
1334 (name "ocaml-migrate-parsetree")
1336 (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
1341 (url (string-append home-page ".git"))
1342 (commit (string-append "v" version))))
1343 (file-name (git-file-name name version))
1346 "0336vz0galjnsazbmkxjwdv1qvdqsx2rgrvp778xgq2fzasz45cx"))))
1347 (build-system dune-build-system)
1351 `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
1352 ("ocamlbuild" ,ocamlbuild)
1353 ("ocaml-result" ,ocaml-result)))
1354 (properties `((upstream-name . "ocaml-migrate-parsetree")))
1355 (synopsis "OCaml parsetree converter")
1356 (description "This library converts between parsetrees of different OCaml
1357 versions. For each version, there is a snapshot of the parsetree and conversion
1358 functions to the next and/or previous version.")
1359 (license license:lgpl2.1+)))
1361 (define-public ocaml-ppx-tools-versioned
1363 (name "ocaml-ppx-tools-versioned")
1368 (url "https://github.com/ocaml-ppx/ppx_tools_versioned")
1370 (file-name (git-file-name name version))
1373 "07lnj4yzwvwyh5fhpp1dxrys4ddih15jhgqjn59pmgxinbnddi66"))))
1374 (build-system dune-build-system)
1376 `(#:test-target "."))
1378 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
1379 (properties `((upstream-name . "ppx_tools_versioned")))
1380 (home-page "https://github.com/let-def/ppx_tools_versioned")
1381 (synopsis "Variant of ppx_tools")
1382 (description "This package is a variant of ppx_tools based on
1383 ocaml-migrate-parsetree")
1384 (license license:expat)))
1386 (define-public ocaml-bitstring
1388 (name "ocaml-bitstring")
1392 (uri (string-append "https://bitbucket.org/thanatonauts/bitstring/"
1393 "get/v" version ".tar.gz"))
1394 (file-name (string-append name "-" version ".tar.gz"))
1397 "15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps"))))
1398 (build-system dune-build-system)
1401 ("autoconf" ,autoconf)
1402 ("automake" ,automake)))
1404 `(("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
1406 `(#:package "bitstring"
1407 #:tests? #f)); Tests fail to build
1408 (home-page "https://github.com/xguerin/bitstring")
1409 (synopsis "Bitstrings and bitstring matching for OCaml")
1410 (description "Adds Erlang-style bitstrings and matching over bitstrings as
1411 a syntax extension and library for OCaml. You can use this module to both parse
1412 and generate binary formats, files and protocols. Bitstring handling is added
1413 as primitives to the language, making it exceptionally simple to use and very
1415 (license license:isc)))
1417 (define-public ocaml-result
1419 (name "ocaml-result")
1424 (url "https://github.com/janestreet/result")
1426 (file-name (git-file-name name version))
1429 "166laj8qk7466sdl037c6cjs4ac571hglw4l5qpyll6df07h6a7q"))))
1430 (build-system dune-build-system)
1432 `(#:test-target "."))
1433 (home-page "https://github.com/janestreet/result")
1434 (synopsis "Compatibility Result module")
1435 (description "Uses the new result type defined in OCaml >= 4.03 while
1436 staying compatible with older version of OCaml should use the Result module
1437 defined in this library.")
1438 (license license:bsd-3)))
1440 (define-public ocaml-topkg
1442 (name "ocaml-topkg")
1446 (uri (string-append "http://erratique.ch/software/topkg/releases/"
1447 "topkg-" version ".tbz"))
1450 "1df61vw6v5bg2mys045682ggv058yqkqb67w7r2gz85crs04d5fw"))))
1451 (build-system ocaml-build-system)
1454 ("ocamlbuild" ,ocamlbuild)))
1456 `(("result" ,ocaml-result)))
1459 #:build-flags '("build")
1461 (modify-phases %standard-phases
1462 (delete 'configure))))
1463 (home-page "http://erratique.ch/software/topkg")
1464 (synopsis "Transitory OCaml software packager")
1465 (description "Topkg is a packager for distributing OCaml software. It
1466 provides an API to describe the files a package installs in a given build
1467 configuration and to specify information about the package's distribution,
1468 creation and publication procedures.")
1469 (license license:isc)))
1471 (define-public ocaml-rresult
1473 (name "ocaml-rresult")
1477 (uri (string-append "http://erratique.ch/software/rresult/releases/"
1478 "rresult-" version ".tbz"))
1481 "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm"))))
1482 (build-system ocaml-build-system)
1485 ("ocamlbuild" ,ocamlbuild)))
1487 `(("topkg" ,ocaml-topkg)))
1490 #:build-flags '("build")
1492 (modify-phases %standard-phases
1493 (delete 'configure))))
1494 (home-page "http://erratique.ch/software/rresult")
1495 (synopsis "Result value combinators for OCaml")
1496 (description "Handle computation results and errors in an explicit and
1497 declarative manner, without resorting to exceptions. It defines combinators
1498 to operate on the result type available from OCaml 4.03 in the standard
1500 (license license:isc)))
1502 (define-public ocaml4.07-sqlite3
1504 (name "ocaml4.07-sqlite3")
1510 (url "https://github.com/mmottl/sqlite3-ocaml")
1512 (file-name (git-file-name name version))
1515 "1536agm5fgcqysszhpd3kmw7lkc5n5ni7gmlyglrbvmnmrwf3av2"))))
1516 (build-system dune-build-system)
1518 `(#:ocaml ,ocaml-4.07
1519 #:findlib ,ocaml4.07-findlib
1520 #:dune ,ocaml4.07-dune))
1522 `(("ocaml-base" ,ocaml4.07-base)
1523 ("ocaml-stdio" ,ocaml4.07-stdio)
1524 ("pkg-config" ,pkg-config)))
1526 `(("sqlite" ,sqlite)))
1527 (home-page "https://mmottl.github.io/sqlite3-ocaml")
1528 (synopsis "SQLite3 Bindings for OCaml")
1530 "SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client
1531 API. Sqlite3 is a self-contained, serverless, zero-configuration,
1532 transactional SQL database engine with outstanding performance for many use
1533 cases. These bindings are written in a way that enables a friendly
1534 coexistence with the old (version 2) SQLite and its OCaml wrapper
1535 @code{ocaml-sqlite}.")
1536 (license license:expat)))
1538 (define-public ocaml-csv
1546 (url "https://github.com/Chris00/ocaml-csv")
1548 (file-name (git-file-name name version))
1551 "19k48517s8y1zb91a1312a0n94cbh5i5dixndcrqjmf87kkz61zx"))))
1552 (build-system dune-build-system)
1556 (home-page "https://github.com/Chris00/ocaml-csv")
1557 (synopsis "Pure OCaml functions to read and write CSV")
1559 "@dfn{Comma separated values} (CSV) is a simple tabular format supported
1560 by all major spreadsheets. This library implements pure OCaml functions to
1561 read and write files in this format as well as some convenience functions to
1562 manipulate such data.")
1563 ;; This is LGPLv2.1 with an exception that allows packages statically-linked
1564 ;; against the library to be released under any terms.
1565 (license license:lgpl2.1)))
1567 (define-public ocaml-mtime
1569 (name "ocaml-mtime")
1573 (uri (string-append "http://erratique.ch/software/mtime/releases/"
1574 "mtime-" version ".tbz"))
1577 "1qb4ljwirrc3g8brh97s76rjky2cpmy7zm87y7iqd6pxix52ydk3"))))
1578 (build-system ocaml-build-system)
1580 `(("ocamlbuild" ,ocamlbuild)
1583 `(("topkg" ,ocaml-topkg)))
1586 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1588 (modify-phases %standard-phases
1589 (delete 'configure))))
1590 (home-page "http://erratique.ch/software/mtime")
1591 (synopsis "Monotonic wall-clock time for OCaml")
1592 (description "Access monotonic wall-clock time. It measures time
1593 spans without being subject to operating system calendar time adjustments.")
1594 (license license:isc)))
1596 (define-public ocaml-cmdliner
1598 (name "ocaml-cmdliner")
1602 (uri (string-append "http://erratique.ch/software/cmdliner/releases/"
1603 "cmdliner-" version ".tbz"))
1606 "0g3w4hvc1cx9x2yp5aqn6m2rl8lf9x1dn754hfq8m1sc1102lxna"))))
1607 (build-system ocaml-build-system)
1609 `(("ocaml-result" ,ocaml-result)))
1611 `(("ocamlbuild" ,ocamlbuild)))
1614 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
1615 "/lib/ocaml/site-lib/cmdliner"))
1617 (modify-phases %standard-phases
1619 (add-before 'build 'fix-source-file-order
1621 (substitute* "build.ml"
1622 (("Sys.readdir dir")
1623 "let a = Sys.readdir dir in Array.sort String.compare a; a"))
1625 (home-page "http://erratique.ch/software/cmdliner")
1626 (synopsis "Declarative definition of command line interfaces for OCaml")
1627 (description "Cmdliner is a module for the declarative definition of command
1628 line interfaces. It provides a simple and compositional mechanism to convert
1629 command line arguments to OCaml values and pass them to your functions. The
1630 module automatically handles syntax errors, help messages and UNIX man page
1631 generation. It supports programs with single or multiple commands and respects
1632 most of the POSIX and GNU conventions.")
1633 (license license:bsd-3)))
1635 (define-public ocaml-fmt
1642 (uri (string-append "http://erratique.ch/software/fmt/releases/fmt-"
1645 "0gkkkj4x678vxdda4xaw2dd44qjacavsvn5nx8gydfwah6pjbkxk"))))
1646 (build-system ocaml-build-system)
1648 `(("ocamlbuild" ,ocamlbuild)
1650 ("topkg" ,ocaml-topkg)))
1652 `(("cmdliner" ,ocaml-cmdliner)
1653 ("ocaml-stdlib-shims" ,ocaml-stdlib-shims)
1654 ("ocaml-uchar" ,ocaml-uchar)))
1655 (arguments `(#:tests? #f
1656 #:build-flags (list "build" "--with-base-unix" "true"
1657 "--with-cmdliner" "true")
1659 (modify-phases %standard-phases
1660 (delete 'configure))))
1661 (home-page "http://erratique.ch/software/fmt")
1662 (synopsis "OCaml Format pretty-printer combinators")
1663 (description "Fmt exposes combinators to devise Format pretty-printing
1665 (license license:isc)))
1667 (define-public ocaml-astring
1669 (name "ocaml-astring")
1674 (uri (string-append "http://erratique.ch/software/astring/releases/astring-"
1677 "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0"))))
1678 (build-system ocaml-build-system)
1680 `(("ocamlbuild" ,ocamlbuild)
1682 ("topkg" ,ocaml-topkg)))
1685 #:build-flags (list "build")
1687 (modify-phases %standard-phases
1688 (delete 'configure))))
1689 (home-page "http://erratique.ch/software/astring")
1690 (synopsis "Alternative String module for OCaml")
1691 (description "Astring exposes an alternative String module for OCaml. This
1692 module balances minimality and expressiveness for basic, index-free, string
1693 processing and provides types and functions for substrings, string sets and
1694 string maps. The String module exposed by Astring has exception safe functions,
1695 removes deprecated and rarely used functions, alters some signatures and names,
1696 adds a few missing functions and fully exploits OCaml's newfound string
1698 (license license:isc)))
1700 (define-public ocaml-alcotest
1702 (name "ocaml-alcotest")
1706 (uri (string-append "https://github.com/mirage/alcotest/releases/"
1707 "download/" version "/alcotest-" version ".tbz"))
1710 "1a43ilhwnj58pq3bi78ni46l9wh6klmmgfc93i94mvyx48bzzayx"))))
1711 (build-system dune-build-system)
1713 `(#:package "alcotest"
1716 `(("ocamlbuild" ,ocamlbuild)))
1718 `(("ocaml-astring" ,ocaml-astring)
1719 ("ocaml-cmdliner" ,ocaml-cmdliner)
1720 ("ocaml-fmt" ,ocaml-fmt)
1721 ("ocaml-re" ,ocaml-re)
1722 ("ocaml-stdlib-shims" ,ocaml-stdlib-shims)
1723 ("ocaml-uuidm" ,ocaml-uuidm)
1724 ("ocaml-uutf" ,ocaml-uutf)))
1725 (home-page "https://github.com/mirage/alcotest")
1726 (synopsis "Lightweight OCaml test framework")
1727 (description "Alcotest exposes simple interface to perform unit tests. It
1728 exposes a simple TESTABLE module type, a check function to assert test
1729 predicates and a run function to perform a list of unit -> unit test callbacks.
1730 Alcotest provides a quiet and colorful output where only faulty runs are fully
1731 displayed at the end of the run (with the full logs ready to inspect), with a
1732 simple (yet expressive) query language to select the tests to run.")
1733 (license license:isc)))
1735 (define-public ocaml4.07-ppx-tools
1737 (name "ocaml4.07-ppx-tools")
1738 (version "5.1+4.06.0")
1743 (url "https://github.com/alainfrisch/ppx_tools")
1745 (file-name (git-file-name name version))
1747 "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"))))
1748 (build-system ocaml-build-system)
1750 `(#:phases (modify-phases %standard-phases (delete 'configure))
1753 #:findlib ,ocaml4.07-findlib))
1754 (properties `((upstream-name . "ppx_tools")))
1755 (home-page "https://github.com/alainfrisch/ppx_tools")
1756 (synopsis "Tools for authors of ppx rewriters and other syntactic tools")
1757 (description "Tools for authors of ppx rewriters and other syntactic tools.")
1758 (license license:expat)))
1760 (define-public ocaml-react
1762 (name "ocaml-react")
1767 (uri (string-append "http://erratique.ch/software/react/releases/react-"
1770 "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v"))))
1771 (build-system ocaml-build-system)
1773 `(("ocamlbuild" ,ocamlbuild)
1775 ("ocaml-topkg" ,ocaml-topkg)))
1778 #:build-flags (list "build")
1780 (modify-phases %standard-phases
1781 (delete 'configure))))
1782 (home-page "http://erratique.ch/software/react")
1783 (synopsis "Declarative events and signals for OCaml")
1784 (description "React is an OCaml module for functional reactive programming
1785 (FRP). It provides support to program with time varying values: declarative
1786 events and signals. React doesn't define any primitive event or signal, it
1787 lets the client choose the concrete timeline.")
1788 (license license:bsd-3)))
1790 (define-public ocaml-ssl
1798 (url "https://github.com/savonet/ocaml-ssl")
1800 (file-name (git-file-name name version))
1802 "04h02rvzrwp886n5hsx84rnc9b150iggy38g5v1x1rwz3pkdnmf0"))))
1803 (build-system dune-build-system)
1805 `(#:test-target "."))
1807 `(("autoconf" ,autoconf)
1808 ("automake" ,automake)
1810 (propagated-inputs `(("openssl" ,openssl)))
1811 (home-page "https://github.com/savonet/ocaml-ssl/")
1812 (synopsis "OCaml bindings for OpenSSL")
1814 "OCaml-SSL is a set of bindings for OpenSSL, a library for communicating
1815 through Transport Layer Security (@dfn{TLS}) encrypted connections.")
1816 (license license:lgpl2.1)))
1818 (define-public ocaml-mmap
1825 (url "https://github.com/mirage/mmap")
1826 (commit (string-append "v" version))))
1827 (file-name (git-file-name name version))
1830 "1jaismy5d1bhbbanysmr2k79px0yv6ya265dri3949nha1l23i60"))))
1831 (build-system dune-build-system)
1832 (home-page "https://github.com/mirage/mmap")
1833 (synopsis "File mapping for OCaml")
1834 (description "This project provides a @command{Mmap.map_file} function
1835 for mapping files in memory. This function is the same as the
1836 @command{Unix.map_file} function added in OCaml >= 4.06.")
1837 (license (list license:qpl license:lgpl2.0))))
1839 (define-public ocaml-lwt
1847 (url "https://github.com/ocsigen/lwt")
1849 (file-name (git-file-name name version))
1851 "1nl7rdnwfdhwcsm5zpay1nr9y5cbapd9x1qzily7zk9ab4v52m8g"))))
1852 (build-system dune-build-system)
1856 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
1857 ("ocaml-cppo" ,ocaml-cppo)
1858 ("pkg-config" ,pkg-config)))
1863 `(("ocaml-mmap" ,ocaml-mmap)
1864 ("ocaml-ocplib-endian" ,ocaml-ocplib-endian)
1865 ("ocaml-result" ,ocaml-result)
1866 ("ocaml-seq" ,ocaml-seq)))
1867 (home-page "https://github.com/ocsigen/lwt")
1868 (synopsis "Cooperative threads and I/O in monadic style")
1869 (description "Lwt provides typed, composable cooperative threads. These
1870 make it easy to run normally-blocking I/O operations concurrently in a single
1871 process. Also, in many cases, Lwt threads can interact without the need for
1872 locks or other synchronization primitives.")
1873 (license license:lgpl2.1)))
1875 (define-public ocaml-lwt-react
1878 (name "ocaml-lwt-react")
1883 (url "https://github.com/ocsigen/lwt")
1884 ;; Version from opam
1886 (file-name (git-file-name name version))
1889 "0f7036srqz7zmnz0n164734smgkrqz78r1i35cg30x31kkr3pnn4"))))
1891 `(#:package "lwt_react"))
1892 (properties `((upstream-name . "lwt_react")))
1894 `(("ocaml-lwt" ,ocaml-lwt)
1895 ("ocaml-react" ,ocaml-react)))))
1897 (define-public ocaml-lwt-log
1899 (name "ocaml-lwt-log")
1904 (url "https://github.com/aantron/lwt_log")
1906 (file-name (git-file-name name version))
1909 "1n12i1rmn9cjn6p8yr6qn5dwbrwvym7ckr7bla04a1xnq8qlcyj7"))))
1910 (build-system dune-build-system)
1912 `(#:tests? #f)); require lwt_ppx
1914 `(("lwt" ,ocaml-lwt)))
1915 (properties `((upstream-name . "lwt_log")))
1916 (home-page "https://github.com/aantron/lwt_log")
1917 (synopsis "Logging library")
1918 (description "This package provides a deprecated logging component for
1920 (license license:lgpl2.1)))
1922 (define-public ocaml-logs
1928 (uri (string-append "http://erratique.ch/software/logs/releases/"
1929 "logs-" version ".tbz"))
1932 "1jnmd675wmsmdwyb5mx5b0ac66g4c6gpv5s4mrx2j6pb0wla1x46"))))
1933 (build-system ocaml-build-system)
1936 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1938 (modify-phases %standard-phases
1939 (delete 'configure))))
1941 `(("ocamlbuild" ,ocamlbuild)
1944 `(("fmt" ,ocaml-fmt)
1946 ("mtime" ,ocaml-mtime)
1947 ("result" ,ocaml-result)
1948 ("cmdliner" ,ocaml-cmdliner)
1949 ("topkg" ,ocaml-topkg)))
1950 (home-page "http://erratique.ch/software/logs")
1951 (synopsis "Logging infrastructure for OCaml")
1952 (description "Logs provides a logging infrastructure for OCaml. Logging is
1953 performed on sources whose reporting level can be set independently. Log
1954 message report is decoupled from logging and is handled by a reporter.")
1955 (license license:isc)))
1957 (define-public ocaml-fpath
1959 (name "ocaml-fpath")
1963 (uri (string-append "http://erratique.ch/software/fpath/releases/"
1964 "fpath-" version ".tbz"))
1967 "1hr05d8bpqmqcfdavn4rjk9rxr7v2zl84866f5knjifrm60sxqic"))))
1968 (build-system ocaml-build-system)
1971 #:build-flags (list "build")
1973 (modify-phases %standard-phases
1974 (delete 'configure))))
1976 `(("ocamlbuild" ,ocamlbuild)
1979 `(("topkg" ,ocaml-topkg)
1980 ("astring" ,ocaml-astring)))
1981 (home-page "http://erratique.ch/software/fpath")
1982 (synopsis "File system paths for OCaml")
1983 (description "Fpath is an OCaml module for handling file system paths with
1984 POSIX or Windows conventions. Fpath processes paths without accessing the
1985 file system and is independent from any system library.")
1986 (license license:isc)))
1988 (define-public ocaml-bos
1994 (uri (string-append "http://erratique.ch/software/bos/releases/"
1995 "bos-" version ".tbz"))
1998 "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"))))
1999 (build-system ocaml-build-system)
2002 #:build-flags (list "build")
2004 (modify-phases %standard-phases
2005 (delete 'configure))))
2007 `(("ocamlbuild" ,ocamlbuild)
2010 `(("topkg" ,ocaml-topkg)
2011 ("astring" ,ocaml-astring)
2013 ("fpath" ,ocaml-fpath)
2014 ("logs" ,ocaml-logs)
2015 ("rresult" ,ocaml-rresult)))
2016 (home-page "http://erratique.ch/software/bos")
2017 (synopsis "Basic OS interaction for OCaml")
2018 (description "Bos provides support for basic and robust interaction with
2019 the operating system in OCaml. It has functions to access the process
2020 environment, parse command line arguments, interact with the file system and
2021 run command line programs.")
2022 (license license:isc)))
2024 (define-public ocaml-xmlm
2030 (uri (string-append "http://erratique.ch/software/xmlm/releases/"
2031 "xmlm-" version ".tbz"))
2034 "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n"))))
2035 (build-system ocaml-build-system)
2038 #:build-flags (list "build")
2040 (modify-phases %standard-phases
2041 (delete 'configure))))
2043 `(("ocamlbuild" ,ocamlbuild)
2044 ("ocaml-topkg" ,ocaml-topkg)
2046 (home-page "http://erratique.ch/software/xmlm")
2047 (synopsis "Streaming XML codec for OCaml")
2048 (description "Xmlm is a streaming codec to decode and encode the XML data
2049 format. It can process XML documents without a complete in-memory
2050 representation of the data.")
2051 (license license:isc)))
2053 (define-public ocaml4.07-gen
2055 (name "ocaml4.07-gen")
2060 (url "https://github.com/c-cube/gen")
2062 (file-name (git-file-name name version))
2065 "1h9g508rnj2j8va5nvhamzscp954vrkh0hdf4pn3d10pcfyslfg2"))))
2066 (build-system dune-build-system)
2068 `(#:tests? #f; no tests
2071 #:findlib ,ocaml4.07-findlib))
2073 `(("ocaml-odoc" ,ocaml4.07-odoc)))
2075 `(("ocaml-qtest" ,(package-with-ocaml4.07 ocaml-qtest))
2076 ("ocaml-qcheck" ,(package-with-ocaml4.07 ocaml-qcheck))))
2077 (home-page "https://github.com/c-cube/gen/")
2078 (synopsis "Iterators for OCaml, both restartable and consumable")
2079 (description "Gen implements iterators of OCaml, that are both restartable
2081 (license license:bsd-2)))
2083 (define-public ocaml4.07-sedlex
2085 (name "ocaml4.07-sedlex")
2090 (url "https://github.com/ocaml-community/sedlex")
2091 (commit (string-append "v" version))))
2092 (file-name (git-file-name name version))
2095 "05f6qa8x3vhpdz1fcnpqk37fpnyyq13icqsk2gww5idjnh6kng26"))))
2096 (build-system dune-build-system)
2098 `(#:tests? #f; no tests
2101 (modify-phases %standard-phases
2102 (add-before 'build 'copy-resources
2103 (lambda* (#:key inputs #:allow-other-keys)
2104 (with-directory-excursion "src/generator/data"
2107 (copy-file (assoc-ref inputs file) file))
2108 '("DerivedCoreProperties.txt" "DerivedGeneralCategory.txt"
2111 (add-before 'build 'chmod
2113 (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*"))
2116 #:findlib ,ocaml4.07-findlib))
2118 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
2120 `(("ocaml-gen" ,ocaml4.07-gen)
2121 ("ocaml-ppx-tools-versioned"
2122 ,(package-with-ocaml4.07 ocaml-ppx-tools-versioned))
2123 ("ocaml-uchar" ,(package-with-ocaml4.07 ocaml-uchar))))
2124 ;; These three files are needed by src/generator/data/dune, but would be
2125 ;; downloaded using curl at build time.
2127 `(("DerivedCoreProperties.txt"
2130 (uri "https://www.unicode.org/Public/12.1.0/ucd/DerivedCoreProperties.txt")
2133 "0s6sn1yr9qmb2i6gf8dir2zpsbjv1frdfzy3i2yjylzvf637msx6"))))
2134 ("DerivedGeneralCategory.txt"
2137 (uri "https://www.unicode.org/Public/12.1.0/ucd/extracted/DerivedGeneralCategory.txt")
2140 "1rifzq9ba6c58dn0lrmcb5l5k4ksx3zsdkira3m5p6h4i2wriy3q"))))
2144 (uri "https://www.unicode.org/Public/12.1.0/ucd/PropList.txt")
2147 "0gsb1jpj3mnqbjgbavi4l95gl6g4agq58j82km22fdfg63j3w3fk"))))))
2148 (home-page "https://www.cduce.org/download.html#side")
2149 (synopsis "Lexer generator for Unicode and OCaml")
2150 (description "Lexer generator for Unicode and OCaml.")
2151 (license license:expat)))
2153 (define-public ocaml-uchar
2155 (name "ocaml-uchar")
2160 (uri (string-append "https://github.com/ocaml/uchar/releases/download/v"
2161 version "/uchar-" version ".tbz"))
2163 "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"))))
2164 (build-system ocaml-build-system)
2167 #:build-flags (list "native=true" "native-dynlink=true")
2169 (modify-phases %standard-phases
2170 (delete 'configure))))
2172 `(("ocamlbuild" ,ocamlbuild)
2174 (home-page "https://github.com/ocaml/uchar")
2175 (synopsis "Compatibility library for OCaml's Uchar module")
2176 (description "The uchar package provides a compatibility library for the
2177 `Uchar` module introduced in OCaml 4.03.")
2178 (license license:lgpl2.1)))
2180 (define-public ocaml-uutf
2186 (uri (string-append "http://erratique.ch/software/uutf/releases/"
2187 "uutf-" version ".tbz"))
2190 "1gp96dcggq7s84934vimxh89caaxa77lqiff1yywbwkilkkjcfqj"))))
2191 (build-system ocaml-build-system)
2194 #:build-flags (list "build")
2196 (modify-phases %standard-phases
2197 (delete 'configure))))
2199 `(("ocamlbuild" ,ocamlbuild)
2201 ("topkg" ,ocaml-topkg)))
2203 `(("uchar" ,ocaml-uchar)
2204 ("cmdliner" ,ocaml-cmdliner)))
2205 (home-page "http://erratique.ch/software/uutf")
2206 (synopsis "Non-blocking streaming Unicode codec for OCaml")
2207 (description "Uutf is a non-blocking streaming codec to decode and encode
2208 the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
2209 work character by character without blocking on IO. Decoders perform character
2210 position tracking and support newline normalization.
2212 Functions are also provided to fold over the characters of UTF encoded OCaml
2213 string values and to directly encode characters in OCaml Buffer.t values.")
2214 (license license:isc)))
2216 (define-public ocaml-jsonm
2218 (name "ocaml-jsonm")
2222 (uri (string-append "http://erratique.ch/software/jsonm/releases/"
2223 "jsonm-" version ".tbz"))
2226 "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w"))))
2227 (build-system ocaml-build-system)
2230 #:build-flags (list "build")
2232 (modify-phases %standard-phases
2233 (delete 'configure))))
2235 `(("ocamlbuild" ,ocamlbuild)
2237 ("topkg" ,ocaml-topkg)))
2239 `(("uutf" ,ocaml-uutf)
2240 ("cmdliner" ,ocaml-cmdliner)))
2241 (home-page "http://erratique.ch/software/jsonm")
2242 (synopsis "Non-blocking streaming JSON codec for OCaml")
2243 (description "Jsonm is a non-blocking streaming codec to decode and encode
2244 the JSON data format. It can process JSON text without blocking on IO and
2245 without a complete in-memory representation of the data.")
2246 (license license:isc)))
2248 (define-public ocaml-ocurl
2250 (name "ocaml-ocurl")
2254 (uri (string-append "http://ygrek.org.ua/p/release/ocurl/ocurl-"
2258 "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6"))))
2259 (build-system ocaml-build-system)
2262 (modify-phases %standard-phases
2263 (add-before 'configure 'fix-/bin/sh
2264 (lambda* (#:key inputs #:allow-other-keys)
2265 (substitute* "configure"
2266 (("-/bin/sh") (string-append "-" (which "bash")))))))))
2268 `(("pkg-config" ,pkg-config)))
2269 (inputs `(("curl" ,curl)))
2270 (home-page "http://ocurl.forge.ocamlcore.org/")
2271 (synopsis "OCaml bindings for libcurl")
2272 (description "Client-side URL transfer library, supporting HTTP and a
2273 multitude of other network protocols (FTP/SMTP/RTSP/etc).")
2274 (license license:isc)))
2276 (define-public ocaml-base64
2278 (name "ocaml-base64")
2283 (url "https://github.com/mirage/ocaml-base64")
2284 (commit (string-append "v" version))))
2285 (file-name (git-file-name name version))
2288 "0aa1m1sr8p1hgc10p96mij7p22r3qcysvzy6fz2jqamfgswchgqc"))))
2289 (build-system dune-build-system)
2292 (modify-phases %standard-phases
2293 (add-before 'build 'fix-dune
2295 ;; This package expects dune 2, which unbundled its configurator
2296 ;; module. We still use dune 1, so we need to let it know we need
2297 ;; its internal module.
2298 (substitute* "config/dune"
2299 (("dune-configurator") "dune.configurator"))
2302 `(("ocaml-alcotest" ,ocaml-alcotest)
2303 ("ocaml-bos" ,ocaml-bos)
2304 ("ocaml-rresult" ,ocaml-rresult)))
2305 (home-page "https://github.com/mirage/ocaml-base64")
2306 (synopsis "Base64 encoding for OCaml")
2307 (description "Base64 is a group of similar binary-to-text encoding schemes
2308 that represent binary data in an ASCII string format by translating it into a
2309 radix-64 representation. It is specified in RFC 4648.")
2310 (license license:isc)))
2312 (define-public ocamlify
2319 (uri (string-append "https://download.ocamlcore.org/ocamlify/ocamlify/"
2320 version "/ocamlify-" version ".tar.gz"))
2322 (base32 "1f0fghvlbfryf5h3j4as7vcqrgfjb4c8abl5y0y5h069vs4kp5ii"))))
2323 (build-system ocaml-build-system)
2326 (modify-phases %standard-phases
2327 (add-after 'unpack 'disable-safe-string
2328 ;; Work around ‘Error: This expression has type string but an
2329 ;; expression was expected of type bytes’ since OCaml 4.06.
2331 (setenv "OCAMLPARAM" "safe-string=0,_")
2333 (delete 'check) ; tests are run during the build
2335 (lambda* (#:key outputs #:allow-other-keys)
2336 (invoke "ocaml" "setup.ml" "-configure" "--prefix"
2337 (assoc-ref outputs "out")))))))
2339 `(("ocamlbuild" ,ocamlbuild)))
2340 (home-page "https://forge.ocamlcore.org/projects/ocamlify")
2341 (synopsis "Include files in OCaml code")
2342 (description "OCamlify creates OCaml source code by including
2343 whole files into OCaml string or string list. The code generated can be
2344 compiled as a standard OCaml file. It allows embedding external resources as
2346 (license license:lgpl2.1+))); with the OCaml static compilation exception
2348 (define-public omake
2354 (uri (string-append "http://download.camlcity.org/download/"
2355 "omake-" version ".tar.gz"))
2358 "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz"))
2359 (patches (search-patches "omake-fix-non-determinism.patch"))))
2360 (build-system ocaml-build-system)
2363 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2364 #:tests? #f ; no test target
2366 (modify-phases %standard-phases
2367 (add-before 'configure 'fix-makefile
2368 (lambda* (#:key outputs #:allow-other-keys)
2369 (substitute* "mk/osconfig_unix.mk"
2370 (("CC = cc") "CC = gcc")))))))
2371 (native-inputs `(("hevea" ,hevea)))
2372 (home-page "http://projects.camlcity.org/projects/omake.html")
2373 (synopsis "Build system designed for scalability and portability")
2374 (description "Similar to make utilities you may have used, but it features
2375 many additional enhancements, including:
2378 @item Support for projects spanning several directories or directory hierarchies.
2379 @item Fast, reliable, automated, scriptable dependency analysis using MD5 digests,
2380 with full support for incremental builds.
2381 @item Dependency analysis takes the command lines into account — whenever the
2382 command line used to build a target changes, the target is considered
2384 @item Fully scriptable, includes a library that providing support for standard
2385 tasks in C, C++, OCaml, and LaTeX projects, or a mixture thereof.
2387 (license (list license:lgpl2.1 ; libmojave
2388 license:expat ; OMake scripts
2389 license:gpl2)))) ; OMake itself, with ocaml linking exception
2392 (define-public ocaml-batteries
2394 (name "ocaml-batteries")
2398 (uri (string-append "https://github.com/ocaml-batteries-team/"
2399 "batteries-included/releases/download/v"
2400 version "/batteries-" version ".tar.gz"))
2403 "08ghw87d56h1a6y1nnh3x2wy9xj25jqfk5sp6ma9nsyd37babb0h"))))
2404 (build-system ocaml-build-system)
2406 `(("ocamlbuild" ,ocamlbuild)
2407 ("qtest" ,ocaml-qtest)))
2409 `(("ocaml-num" ,ocaml-num)))
2412 (modify-phases %standard-phases
2413 (delete 'check) ; tests are run by the build phase
2414 (add-before 'build 'fix-nondeterminism
2416 (substitute* "setup.ml"
2417 (("Sys.readdir dirname")
2418 "let a = Sys.readdir dirname in Array.sort String.compare a; a"))
2421 (lambda* (#:key inputs outputs #:allow-other-keys)
2424 (substring str 0 (- (string-length str) 1)))
2426 (find-files "src" ".*.mliv")
2427 (find-files "src" ".*.mlv")
2428 (find-files "src" ".*.mlp")))))
2429 (apply invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2430 "-lflag" "-dllpath-all" files)
2431 (for-each (lambda (file)
2432 (copy-file (string-append "_build/" file) file))
2434 (invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2435 "-lflag" "-dllpath-all" "build/mkconf.byte")
2436 (copy-file "_build/build/mkconf.byte" "build/mkconf.byte")
2437 (invoke "make" "all")
2439 (home-page "http://batteries.forge.ocamlcore.org/")
2440 (synopsis "Development platform for the OCaml programming language")
2441 (description "Define a standard set of libraries which may be expected on
2442 every compliant installation of OCaml and organize these libraries into a
2443 hierarchy of modules.")
2444 (license license:lgpl2.1+)))
2446 (define-public ocaml4.07-pcre
2448 (name "ocaml4.07-pcre")
2453 (url "https://github.com/mmottl/pcre-ocaml")
2455 (file-name (git-file-name name version))
2458 "11sd8g668h48790lamz0riw9jgnfkaif5qdfa0akcndwa6aj07jf"))))
2459 (build-system dune-build-system)
2463 #:findlib ,ocaml4.07-findlib
2464 #:dune ,ocaml4.07-dune))
2466 `(("ocaml-base" ,ocaml4.07-base)
2467 ("pcre:bin" ,pcre "bin")))
2468 (propagated-inputs `(("pcre" ,pcre)))
2469 (home-page "https://mmottl.github.io/pcre-ocaml")
2470 (synopsis "Bindings to the Perl Compatibility Regular Expressions library")
2471 (description "Pcre-ocaml offers library functions for string pattern
2472 matching and substitution, similar to the functionality offered by the Perl
2474 (license license:lgpl2.1+))); with the OCaml link exception
2476 (define-public ocaml4.07-expect
2478 (name "ocaml4.07-expect")
2482 (uri (ocaml-forge-uri name version 1736))
2485 "098qvg9d4yrqzr5ax291y3whrpax0m3sx4gi6is0mblc96r9yqk0"))))
2489 #:findlib ,ocaml4.07-findlib))
2490 (build-system ocaml-build-system)
2492 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))
2493 ("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
2494 ("ocaml-pcre" ,ocaml4.07-pcre)
2495 ("ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
2497 `(("batteries" ,(package-with-ocaml4.07 ocaml-batteries))))
2498 (home-page "https://forge.ocamlcore.org/projects/ocaml-expect/")
2499 (synopsis "Simple implementation of expect")
2500 (description "Help building unitary testing of interactive program. You
2501 can match the question using a regular expression or a timeout.")
2502 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2504 (define-public ocaml-stdlib-shims
2506 (name "ocaml-stdlib-shims")
2511 (url "https://github.com/ocaml/stdlib-shims")
2513 (file-name (git-file-name name version))
2516 "007dwywsr5285z0np6a9nr0h8iqmyzfrlx6s5xaqcwj69zabsrjm"))))
2517 (build-system dune-build-system)
2518 (home-page "https://github.com/ocaml/stdlib-shims")
2519 (synopsis "OCaml stdlib features backport to older OCaml compilers")
2520 (description "This package backports some of the new stdlib features to
2521 older compilers, such as the Stdlib module. This allows projects that require
2522 compatibility with older compiler to use these new features in their code.")
2523 ;; with ocaml-linking exception
2524 (license license:lgpl2.1+)))
2526 (define-public ocaml-fileutils
2528 (name "ocaml-fileutils")
2533 (url "https://github.com/gildor478/ocaml-fileutils")
2534 (commit (string-append "v" version))))
2535 (file-name (git-file-name name version))
2538 "01qf51b8pb7vyfba7y0kb7ajwj1950im25d7f59821zwsibns3d9"))))
2539 (build-system dune-build-system)
2541 `(("ocaml-stdlib-shims" ,ocaml-stdlib-shims)))
2543 `(("ocaml-ounit" ,ocaml-ounit)))
2544 (home-page "http://ocaml-fileutils.forge.ocamlcore.org")
2545 (synopsis "Pure OCaml functions to manipulate real file and filename")
2546 (description "Library to provide pure OCaml functions to manipulate real
2547 file (POSIX like) and filename.")
2548 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2550 (define-public ocaml-oasis
2552 (name "ocaml-oasis")
2556 (uri (ocaml-forge-uri name version 1757))
2559 "0bn13mzfa98dq3y0jwzzndl55mnywaxv693z6f1rlvpdykp3vdqq"))
2560 (modules '((guix build utils)))
2563 (substitute* "test/test-main/Test.ml"
2564 ;; most of these tests fail because ld cannot find crti.o, but according
2565 ;; to the log file, the environment variables {LD_,}LIBRARY_PATH
2566 ;; are set correctly when LD_LIBRARY_PATH is defined beforhand.
2567 (("TestBaseCompat.tests;") "")
2568 (("TestExamples.tests;") "")
2569 (("TestFull.tests;") "")
2570 (("TestPluginDevFiles.tests;") "")
2571 (("TestPluginInternal.tests;") "")
2572 (("TestPluginOCamlbuild.tests;") "")
2573 (("TestPluginOMake.tests;") ""))
2575 (build-system ocaml-build-system)
2579 `(("ocamlbuild" ,ocamlbuild)
2580 ("ocamlify" ,ocamlify)
2581 ("ocamlmod" ,ocamlmod)))
2582 (home-page "https://oasis.forge.ocamlcore.org")
2583 (synopsis "Integrates a configure, build, install system in OCaml projects")
2584 (description "OASIS is a tool to integrate a configure, build and install
2585 system in your OCaml projects. It helps to create standard entry points in your
2586 build system and allows external tools to analyse your project easily.")
2587 (license license:lgpl2.1+))) ; with ocaml static compilation exception
2589 (define-public ocaml-js-build-tools
2591 (name "ocaml-js-build-tools")
2592 (version "113.33.06")
2593 (source (janestreet-origin "js-build-tools" version
2594 "0r8z4fz8iy5y6hkdlkpwf6rk4qigcr3dzyv35585xgg2ahf12zy6"))
2596 `(("oasis" ,ocaml-oasis)
2597 ("ocamlbuild" ,ocamlbuild)
2599 (build-system ocaml-build-system)
2600 (arguments janestreet-arguments)
2601 (home-page "https://github.com/janestreet/js-build-tools")
2602 (synopsis "Collection of tools to help building Jane Street Packages")
2603 (description "This package contains tools to help building Jane Street
2604 packages, but can be used for other purposes. It contains:
2606 @item an @command{oasis2opam-install} tool to produce a @file{.install} file
2607 from the oasis build log
2608 @item a @code{js_build_tools} ocamlbuild plugin with various goodies.
2610 (license license:asl2.0)))
2612 (define-public ocaml-cppo
2620 (url "https://github.com/mjambon/cppo")
2621 (commit (string-append "v" version))))
2622 (file-name (git-file-name name version))
2624 "1smcc0l6fh2n0y6bp96c69j5nw755jja99w0b206wx3yb2m4w2hs"))))
2625 (build-system dune-build-system)
2628 #:build-flags (list "--profile" "release")))
2630 `(("ocamlbuild" ,ocamlbuild)))
2631 (home-page "https://github.com/mjambon/cppo")
2632 (synopsis "Equivalent of the C preprocessor for OCaml programs")
2633 (description "Cppo is an equivalent of the C preprocessor for OCaml
2634 programs. It allows the definition of simple macros and file inclusion. Cppo is:
2636 @item more OCaml-friendly than @command{cpp}
2637 @item easy to learn without consulting a manual
2638 @item reasonably fast
2639 @item simple to install and to maintain.
2641 (license license:bsd-3)))
2643 (define-public ocaml-seq
2651 (url "https://github.com/c-cube/seq")
2653 (file-name (git-file-name name version))
2655 (base32 "1cjpsc7q76yfgq9iyvswxgic4kfq2vcqdlmxjdjgd4lx87zvcwrv"))))
2656 (build-system ocaml-build-system)
2660 (modify-phases %standard-phases
2664 (lambda* (#:key outputs #:allow-other-keys)
2665 (let ((install-dir (string-append (assoc-ref outputs "out")
2666 "/lib/ocaml/site-lib/seq")))
2667 (mkdir-p install-dir)
2668 (with-output-to-file (string-append install-dir "/META")
2670 (display "name=\"seq\"
2671 version=\"[distributed with ocaml]\"
2672 description=\"dummy package for compatibility\"
2675 (home-page "https://github.com/c-cube/seq")
2676 (synopsis "OCaml's standard iterator type")
2677 (description "This package is a compatibility package for OCaml's
2678 standard iterator type starting from 4.07.")
2679 (license license:lgpl2.1+)))
2681 (define-public ocaml-re
2689 (url "https://github.com/ocaml/ocaml-re")
2691 (file-name (git-file-name name version))
2693 (base32 "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss"))))
2694 (build-system dune-build-system)
2697 #:build-flags (list "--profile" "release")))
2699 `(("ocaml-seq" ,ocaml-seq)))
2701 `(("ounit" ,ocaml-ounit)))
2702 (home-page "https://github.com/ocaml/ocaml-re/")
2703 (synopsis "Regular expression library for OCaml")
2704 (description "Pure OCaml regular expressions with:
2706 @item Perl-style regular expressions (module Re_perl)
2707 @item Posix extended regular expressions (module Re_posix)
2708 @item Emacs-style regular expressions (module Re_emacs)
2709 @item Shell-style file globbing (module Re_glob)
2710 @item Compatibility layer for OCaml's built-in Str module (module Re_str)
2712 (license license:expat)))
2714 (define-public ocaml-ocplib-endian
2716 (name "ocaml-ocplib-endian")
2721 (url "https://github.com/OCamlPro/ocplib-endian/")
2725 "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw"))
2726 (file-name (git-file-name name version))))
2727 (build-system ocaml-build-system)
2729 `(("cppo" ,ocaml-cppo)
2730 ("ocamlbuild" ,ocamlbuild)))
2731 (home-page "https://github.com/OCamlPro/ocplib-endian")
2732 (synopsis "Optimised functions to read and write int16/32/64 from strings
2734 (description "Optimised functions to read and write int16/32/64 from strings
2735 and bigarrays, based on new primitives added in version 4.01. It works on
2736 strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
2737 big- and little-endian, with their unsafe counter-parts.")
2738 (license license:lgpl2.1)))
2740 (define-public ocaml-cstruct
2742 (name "ocaml-cstruct")
2747 (url "https://github.com/mirage/ocaml-cstruct")
2748 (commit (string-append "v" version))))
2749 (file-name (git-file-name name version))
2752 "0m4bz0digcsc8l2msfikwcbi1y371kccx6xnkwrz212mf5mp98bv"))))
2753 (build-system dune-build-system)
2755 `(#:package "cstruct"
2758 `(("ocaml-alcotest" ,ocaml-alcotest)))
2759 (home-page "https://github.com/mirage/ocaml-cstruct")
2760 (synopsis "Access C structures via a camlp4 extension")
2761 (description "Cstruct is a library and syntax extension to make it easier
2762 to access C-like structures directly from OCaml. It supports both reading and
2763 writing to these structures, and they are accessed via the Bigarray module.")
2764 (license license:isc)))
2766 (define-public ocaml-hex
2773 (url "https://github.com/mirage/ocaml-hex")
2774 (commit (string-append "v" version))))
2775 (file-name (git-file-name name version))
2778 "0c8nhibcwy0ykzca4jn3gqb8ylq21ff88y82gl60wyzijr64rn0q"))))
2779 (build-system dune-build-system)
2781 `(#:test-target "."))
2783 `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat)
2784 ("cstruct" ,ocaml-cstruct)))
2785 (home-page "https://github.com/mirage/ocaml-hex/")
2786 (synopsis "Minimal library providing hexadecimal converters")
2787 (description "Hex is a minimal library providing hexadecimal converters.")
2788 (license license:isc)))
2790 (define-public ocaml4.07-ezjsonm
2792 (name "ocaml4.07-ezjsonm")
2798 (url "https://github.com/mirage/ezjsonm")
2799 (commit (string-append "v" version))))
2800 (file-name (git-file-name name version))
2802 (base32 "064j9pzy01p3dv947khqyn7fkjbs3jmrqsg8limb4abnlaqxxs2s"))))
2803 (build-system dune-build-system)
2805 `(#:package "ezjsonm"
2808 #:findlib ,ocaml4.07-findlib))
2810 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))))
2812 `(("ocaml-hex" ,(package-with-ocaml4.07 ocaml-hex))
2813 ("ocaml-jsonm" ,(package-with-ocaml4.07 ocaml-jsonm))
2814 ("ocaml-sexplib" ,ocaml4.07-sexplib)))
2815 (home-page "https://github.com/mirage/ezjsonm/")
2816 (synopsis "Read and write JSON data")
2817 (description "Ezjsonm provides more convenient (but far less flexible) input
2818 and output functions that go to and from [string] values than jsonm. This avoids
2819 the need to write signal code, which is useful for quick scripts that manipulate
2821 (license license:isc)))
2823 (define-public ocaml4.07-uri
2825 (name "ocaml4.07-uri")
2831 (url "https://github.com/mirage/ocaml-uri")
2832 (commit (string-append "v" version))))
2833 (file-name (git-file-name name version))
2835 (base32 "1ppbav41mszpjcl0zi3fyg958cxyfs57i7kvha4ds9ydn89bjmrh"))))
2836 (build-system dune-build-system)
2840 (modify-phases %standard-phases
2841 (add-before 'build 'update-deprecated
2843 (substitute* "lib/uri.ml"
2844 (("Re.get") "Re.Group.get")))))
2846 #:findlib ,ocaml4.07-findlib))
2848 `(("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))
2849 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)))
2851 `(("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
2852 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
2853 ("ocaml-stringext" ,(package-with-ocaml4.07 ocaml-stringext))))
2854 (home-page "https://github.com/mirage/ocaml-uri")
2855 (synopsis "RFC3986 URI/URL parsing library")
2856 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.")
2857 (license license:isc)))
2859 (define-public ocaml-easy-format
2861 (name "ocaml-easy-format")
2866 (url "https://github.com/mjambon/easy-format")
2868 (file-name (git-file-name name version))
2871 "1fc95q2ypck6m6rv3kiawwilh5ac93v2hcp823mj608d5kj79xkb"))))
2872 (build-system dune-build-system)
2874 `(#:package "easy-format"
2876 (modify-phases %standard-phases
2877 (add-before 'build 'make-writable
2882 (find-files "." "."))
2884 (home-page "https://github.com/mjambon/easy-format")
2885 (synopsis "Interface to the Format module")
2886 (description "Easy-format is a high-level and functional interface to the
2887 Format module of the OCaml standard library.")
2888 (license license:bsd-3)))
2890 (define-public ocaml4.07-piqilib
2892 (name "ocaml4.07-piqilib")
2898 (url "https://github.com/alavrik/piqi")
2899 (commit (string-append "v" version))))
2900 (file-name (git-file-name name version))
2902 (base32 "0v04hs85xv6d4ysqxyv1dik34dx49yab9shpi4x7iv19qlzl7csb"))))
2903 (build-system ocaml-build-system)
2906 (modify-phases %standard-phases
2907 (add-before 'configure 'fix-ocamlpath
2909 (substitute* '("Makefile" "make/Makefile.ocaml")
2910 (("OCAMLPATH := ") "OCAMLPATH := $(OCAMLPATH):"))
2913 (lambda* (#:key outputs #:allow-other-keys)
2914 (let ((out (assoc-ref outputs "out")))
2915 (substitute* "make/OCamlMakefile"
2916 (("/bin/sh") (which "bash")))
2917 (invoke "./configure" "--prefix" out "--ocaml-libdir"
2918 (string-append out "/lib/ocaml/site-lib")))
2920 (add-after 'build 'build-ocaml
2921 (lambda* (#:key outputs #:allow-other-keys)
2922 (invoke "make" "ocaml")
2924 (add-after 'install 'install-ocaml
2925 (lambda* (#:key outputs #:allow-other-keys)
2926 (invoke "make" "ocaml-install")
2928 (add-after 'install-ocaml 'link-stubs
2929 (lambda* (#:key outputs #:allow-other-keys)
2930 (let* ((out (assoc-ref outputs "out"))
2931 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
2932 (lib (string-append out "/lib/ocaml/site-lib/piqilib")))
2934 (symlink (string-append lib "/dllpiqilib_stubs.so")
2935 (string-append stubs "/dllpiqilib_stubs.so"))
2938 #:findlib ,ocaml4.07-findlib))
2940 `(("which" ,which)))
2942 `(("ocaml-xmlm" ,(package-with-ocaml4.07 ocaml-xmlm))
2943 ("ocaml-sedlex" ,ocaml4.07-sedlex)
2944 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))
2945 ("ocaml-base64" ,(package-with-ocaml4.07 ocaml-base64))))
2946 (home-page "http://piqi.org")
2947 (synopsis "Data serialization and conversion library")
2948 (description "Piqilib is the common library used by the piqi command-line
2949 tool and piqi-ocaml.")
2950 (license license:asl2.0)))
2952 (define-public ocaml-uuidm
2954 (name "ocaml-uuidm")
2958 (uri (string-append "http://erratique.ch/software/uuidm/"
2959 "releases/uuidm-" version ".tbz"))
2962 "0hz4fdx0x16k0pw9995vkz5d1hmzz6b16wck9li399rcbfnv5jlc"))))
2963 (build-system ocaml-build-system)
2966 (list "build" "--tests" "true" "--with-cmdliner" "true")
2968 (modify-phases %standard-phases
2969 (delete 'configure))))
2971 `(("ocamlbuild" ,ocamlbuild)
2974 `(("cmdliner" ,ocaml-cmdliner)
2975 ("topkg" ,ocaml-topkg)))
2976 (home-page "http://erratique.ch/software/uuidm")
2977 (synopsis "Universally unique identifiers for OCaml")
2978 (description "Uuidm is an OCaml module implementing 128 bits universally
2979 unique identifiers (UUIDs) version 3, 5 (named based with MD5, SHA-1 hashing)
2980 and 4 (random based) according to RFC 4122.")
2981 (license license:isc)))
2983 (define-public ocaml-graph
2985 (name "ocaml-graph")
2989 (uri (string-append "http://ocamlgraph.lri.fr/download/"
2990 "ocamlgraph-" version ".tar.gz"))
2993 "0m9g16wrrr86gw4fz2fazrh8nkqms0n863w7ndcvrmyafgxvxsnr"))))
2994 (build-system ocaml-build-system)
2996 `(#:install-target "install-findlib"
2999 (modify-phases %standard-phases
3000 (add-before 'configure 'set-shell
3001 (lambda* (#:key inputs #:allow-other-keys)
3002 (setenv "CONFIG_SHELL" (string-append (assoc-ref inputs "bash")
3004 (inputs `(("lablgtk" ,lablgtk)))
3005 (properties `((upstream-name . "ocamlgraph")))
3006 (home-page "http://ocamlgraph.lri.fr/")
3007 (synopsis "Graph library for OCaml")
3008 (description "OCamlgraph is a generic graph library for OCaml.")
3009 (license license:lgpl2.1)))
3011 (define-public ocaml4.07-piqi
3013 (name "ocaml4.07-piqi")
3018 (url "https://github.com/alavrik/piqi-ocaml")
3019 (commit (string-append "v" version))))
3020 (file-name (git-file-name name version))
3023 "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm"))))
3024 (build-system ocaml-build-system)
3027 (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
3028 (string-append "SHELL=" (assoc-ref %build-inputs "bash")
3031 (modify-phases %standard-phases
3032 (add-after 'unpack 'make-files-writable
3034 (for-each make-file-writable (find-files "."))
3036 (delete 'configure))
3038 #:findlib ,ocaml4.07-findlib))
3041 ("protobuf" ,protobuf))) ; for tests
3043 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
3044 ("ocaml-piqilib" ,ocaml4.07-piqilib)
3045 ("ocaml-stdlib-shims" ,(package-with-ocaml4.07 ocaml-stdlib-shims))))
3046 (home-page "https://github.com/alavrik/piqi-ocaml")
3047 (synopsis "Protocol serialization system for OCaml")
3048 (description "Piqi is a multi-format data serialization system for OCaml.
3049 It provides a uniform interface for serializing OCaml data structures to JSON,
3050 XML and Protocol Buffers formats.")
3051 (license license:asl2.0)))
3057 (home-page "https://github.com/BinaryAnalysisPlatform/bap")
3062 (commit (string-append "v" version))))
3063 (file-name (git-file-name name version))
3066 "0lb9xkfp67wjjqr75p6krivmjra7l5673236v9ny4gp0xi0755bk"))))
3067 (build-system ocaml-build-system)
3069 `(("ocaml-oasis" ,(package-with-ocaml4.07 ocaml-oasis))
3070 ("clang" ,clang-3.8)
3071 ("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
3073 `(("camlzip" ,(package-with-ocaml4.07 camlzip))
3074 ("ocaml-bitstring" ,(package-with-ocaml4.07 ocaml-bitstring))
3075 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
3076 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
3077 ("ocaml-ezjsonm" ,ocaml4.07-ezjsonm)
3078 ("ocaml-fileutils" ,(package-with-ocaml4.07 ocaml-fileutils))
3079 ("ocaml-frontc" ,(package-with-ocaml4.07 ocaml-frontc))
3080 ("ocaml-graph" ,(package-with-ocaml4.07 ocaml-graph))
3081 ("ocaml-ocurl" ,(package-with-ocaml4.07 ocaml-ocurl))
3082 ("ocaml-piqi" ,ocaml4.07-piqi)
3083 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
3084 ("ocaml-utop" ,ocaml4.07-utop)
3085 ("ocaml-uuidm" ,(package-with-ocaml4.07 ocaml-uuidm))
3086 ("ocaml-uri" ,ocaml4.07-uri)
3087 ("ocaml-zarith" ,(package-with-ocaml4.07 ocaml-zarith))))
3091 ("ncurses" ,ncurses)))
3095 (modify-phases %standard-phases
3096 (add-before 'configure 'fix-ncurses
3098 (substitute* "oasis/llvm"
3099 (("-lcurses") "-lncurses"))
3102 (lambda* (#:key outputs inputs #:allow-other-keys)
3103 ;; add write for user, to prevent a failure in the install phase
3106 (let ((stat (stat file)))
3107 (chmod file (+ #o200 (stat:mode stat)))))
3108 (find-files "." "."))
3109 (invoke "./configure" "--prefix"
3110 (assoc-ref outputs "out")
3113 (assoc-ref outputs "out")
3114 "/lib/ocaml/site-lib")
3115 "--with-llvm-version=3.8"
3116 "--with-llvm-config=llvm-config"
3117 "--enable-everything"))))
3119 #:findlib ,ocaml4.07-findlib))
3120 (synopsis "Binary Analysis Platform")
3121 (description "Binary Analysis Platform is a framework for writing program
3122 analysis tools, that target binary files. The framework consists of a plethora
3123 of libraries, plugins, and frontends. The libraries provide code reusability,
3124 the plugins facilitate extensibility, and the frontends serve as entry points.")
3125 (license license:expat)))
3127 (define-public ocaml-camomile
3129 (name "ocaml-camomile")
3131 (home-page "https://github.com/yoriyuki/Camomile")
3134 (uri (string-append home-page "/releases/download/" version
3135 "/camomile-" version ".tbz"))
3138 "0chn7ldqb3wyf95yhmsxxq65cif56smgz1mhhc7m0dpwmyq1k97h"))))
3139 (build-system dune-build-system)
3141 `(#:build-flags (list "--profile" "release")
3142 #:test-target "camomile-test"
3143 #:tests? #f; Tests fail, see https://github.com/yoriyuki/Camomile/issues/82
3145 (modify-phases %standard-phases
3146 (add-before 'build 'fix-usr-share
3147 (lambda* (#:key outputs #:allow-other-keys)
3148 (substitute* '("Camomile/dune" "configure.ml")
3149 (("/usr/share") (string-append (assoc-ref outputs "out") "/share")))
3151 (synopsis "Comprehensive Unicode library")
3152 (description "Camomile is a Unicode library for OCaml. Camomile provides
3153 Unicode character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about
3154 200 encodings, collation and locale-sensitive case mappings, and more. The
3155 library is currently designed for Unicode Standard 3.2.")
3156 ;; with an exception for linked libraries to use a different license
3157 (license license:lgpl2.0+)))
3159 (define-public ocaml4.07-charinfo-width
3161 (name "ocaml4.07-charinfo-width")
3165 (uri (string-append "https://bitbucket.org/zandoye/charinfo_width"
3166 "/get/" version ".tar.gz"))
3167 (file-name (string-append name "-" version ".tar.gz"))
3170 "00bv4p1yqs8y0z4z07wd9w9yyv669dikp9b04dcjbwpiy2wy0086"))))
3171 (build-system dune-build-system)
3173 `(#:ocaml ,ocaml-4.07
3174 #:findlib ,ocaml4.07-findlib))
3176 `(("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
3177 ("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))))
3179 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
3181 `((upstream-name . "charInfo_width")))
3182 (home-page "https://bitbucket.org/zandoye/charinfo_width/")
3183 (synopsis "Determine column width for a character")
3184 (description "This module is implements purely in OCaml a character width
3185 function that follows the prototype of POSIX's wcwidth.")
3186 (license license:expat)))
3188 (define-public ocaml4.07-zed
3190 (name "ocaml4.07-zed")
3196 (url "https://github.com/diml/zed")
3198 (file-name (git-file-name name version))
3200 (base32 "0pa9awinqr0plp4b2az78dwpvh01pwaljnn5ydg8mc6hi7rmir55"))))
3201 (build-system dune-build-system)
3205 #:findlib ,ocaml4.07-findlib))
3207 `(("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3208 ("ocaml-charinfo-width" ,ocaml4.07-charinfo-width)
3209 ("ocaml-react" ,(package-with-ocaml4.07 ocaml-react))))
3210 (home-page "https://github.com/diml/zed")
3211 (synopsis "Abstract engine for text editing in OCaml")
3212 (description "Zed is an abstract engine for text edition. It can be used
3213 to write text editors, edition widgets, readlines, etc. You just have to
3214 connect an engine to your inputs and rendering functions to get an editor.")
3215 (license license:bsd-3)))
3217 (define-public ocaml4.07-lambda-term
3219 (name "ocaml4.07-lambda-term")
3225 (url "https://github.com/diml/lambda-term")
3227 (file-name (git-file-name name version))
3229 (base32 "0zcjy6fvf0d3i2ssz96asl889n3r6bplyzk7xvb2s3dkxbgcisyy"))))
3230 (build-system dune-build-system)
3232 `(#:build-flags (list "--profile" "release")
3235 #:findlib ,ocaml4.07-findlib))
3237 `(("ocaml-lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3238 ("ocaml-lwt-log" ,(package-with-ocaml4.07 ocaml-lwt-log))
3239 ("ocaml-lwt-react" ,(package-with-ocaml4.07 ocaml-lwt-react))
3240 ("ocaml-zed" ,ocaml4.07-zed)))
3242 `(("libev" ,libev)))
3243 (home-page "https://github.com/diml/lambda-term")
3244 (synopsis "Terminal manipulation library for OCaml")
3245 (description "Lambda-Term is a cross-platform library for manipulating the
3246 terminal. It provides an abstraction for keys, mouse events, colors, as well as
3247 a set of widgets to write curses-like applications. The main objective of
3248 Lambda-Term is to provide a higher level functional interface to terminal
3249 manipulation than, for example, ncurses, by providing a native OCaml interface
3250 instead of bindings to a C library.")
3251 (license license:bsd-3)))
3253 (define-public ocaml4.07-utop
3255 (name "ocaml4.07-utop")
3261 (url "https://github.com/ocaml-community/utop")
3263 (file-name (git-file-name name version))
3265 (base32 "1bl4943qpi3qy152dbdm5glhx19zsiylmn4rcxi8l66g58hikyjp"))))
3266 (build-system dune-build-system)
3270 #:findlib ,ocaml4.07-findlib))
3272 `(("cppo" ,(package-with-ocaml4.07 ocaml-cppo))))
3274 `(("lambda-term" ,ocaml4.07-lambda-term)
3275 ("lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3276 ("react" ,(package-with-ocaml4.07 ocaml-react))
3277 ("camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3278 ("zed" ,ocaml4.07-zed)))
3279 (home-page "https://github.com/ocaml-community/utop")
3280 (synopsis "Improved interface to the OCaml toplevel")
3281 (description "UTop is an improved toplevel for OCaml. It can run in a
3282 terminal or in Emacs. It supports line editing, history, real-time and context
3283 sensitive completion, colors, and more.")
3284 (license license:bsd-3)))
3286 (define-public ocaml-integers
3288 (name "ocaml-integers")
3290 (home-page "https://github.com/ocamllabs/ocaml-integers")
3293 (uri (string-append home-page
3294 "/releases/download/v0.2.2/integers-"
3296 (file-name (string-append name "-" version ".tbz"))
3299 "08b1ljw88ny3l0mdq6xmffjk8anfc77igryva5jz1p6f4f746ywk"))))
3300 (build-system ocaml-build-system)
3302 `(#:tests? #f; no tests
3303 #:build-flags (list "build")
3305 (modify-phases %standard-phases
3306 (delete 'configure))))
3308 `(("ocamlbuild" ,ocamlbuild)))
3310 `(("topkg" ,ocaml-topkg)
3312 (synopsis "Various signed and unsigned integer types for OCaml")
3313 (description "The ocaml-integers library provides a number of 8-, 16-, 32-
3314 and 64-bit signed and unsigned integer types, together with aliases such as
3315 long and size_t whose sizes depend on the host platform.")
3316 (license license:expat)))
3318 (define-public ocaml-ctypes
3320 (name "ocaml-ctypes")
3322 (home-page "https://github.com/ocamllabs/ocaml-ctypes")
3328 (file-name (git-file-name name version))
3331 "1b2q3h63ngf4x9qp65qwapf2dg9q0mcdah6qjm2q0c7v2p5vysv9"))))
3332 (build-system ocaml-build-system)
3334 `(#:tests? #f; require an old lwt
3336 (list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
3338 (modify-phases %standard-phases
3339 (add-after 'unpack 'make-writable
3343 (let ((stat (stat file)))
3344 (chmod file (+ #o200 (stat:mode stat)))))
3345 (find-files "." "."))
3347 (delete 'configure))))
3349 `(("pkg-config" ,pkg-config)))
3351 `(("libffi" ,libffi)
3352 ("ounit" ,ocaml-ounit)
3353 ("integers" ,ocaml-integers)
3355 ("topkg" ,ocaml-topkg)
3357 (synopsis "Library for binding to C libraries using pure OCaml")
3358 (description "Ctypes is a library for binding to C libraries using pure
3359 OCaml. The primary aim is to make writing C extensions as straightforward as
3360 possible. The core of ctypes is a set of combinators for describing the
3361 structure of C types -- numeric types, arrays, pointers, structs, unions and
3362 functions. You can use these combinators to describe the types of the
3363 functions that you want to call, then bind directly to those functions -- all
3364 without writing or generating any C!")
3365 (license license:expat)))
3367 (define-public ocaml-ocb-stubblr
3369 (name "ocaml-ocb-stubblr")
3371 (home-page "https://github.com/pqwy/ocb-stubblr")
3375 home-page "/releases/download/v0.1.1/ocb-stubblr-"
3377 (file-name (string-append name "-" version ".tbz"))
3380 "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
3381 (build-system ocaml-build-system)
3383 `(#:build-flags (list "build" "--tests" "true")
3385 (modify-phases %standard-phases
3387 (add-before 'build 'fix-for-guix
3389 (substitute* "src/ocb_stubblr.ml"
3390 ;; Do not fail when opam is not present or initialized
3391 (("error_msgf \"error running opam\"") "\"\"")
3392 ;; Guix doesn't have cc, but it has gcc
3393 (("\"cc\"") "\"gcc\""))
3396 `(("topkg" ,ocaml-topkg)
3399 `(("astring" ,ocaml-astring)
3400 ("ocamlbuild" ,ocamlbuild)))
3401 (synopsis "OCamlbuild plugin for C stubs")
3402 (description "Ocb-stubblr is about ten lines of code that you need to
3403 repeat over, over, over and over again if you are using ocamlbuild to build
3404 OCaml projects that contain C stubs.")
3405 (license license:isc)))
3407 (define-public ocaml-tsdl
3411 (home-page "https://erratique.ch/software/tsdl")
3414 (uri (string-append home-page "/releases/tsdl-"
3416 (file-name (string-append name "-" version ".tar.gz"))
3419 "1zwv0ixkigh1gzk5n49rwvz2f2m62jdkkqg40j7dclg4gri7691f"))))
3420 (build-system ocaml-build-system)
3422 `(#:build-flags '("build")
3423 #:tests? #f; tests require a display device
3425 (modify-phases %standard-phases
3426 (delete 'configure))))
3428 `(("ocamlbuild" ,ocamlbuild)
3429 ("ocaml-astring" ,ocaml-astring)
3431 ("pkg-config" ,pkg-config)))
3433 `(("topkg" ,ocaml-topkg)
3435 ("integers" ,ocaml-integers)
3436 ("ctypes" ,ocaml-ctypes)))
3437 (synopsis "Thin bindings to SDL for OCaml")
3438 (description "Tsdl is an OCaml library providing thin bindings to the
3439 cross-platform SDL C library.")
3440 (license license:isc)))
3442 (define-public dedukti
3446 (home-page "https://deducteam.github.io/")
3451 (url "https://github.com/deducteam/dedukti")
3452 (commit (string-append "v" version))))
3453 (file-name (git-file-name name version))
3456 "0frl3diff033i4fmq304b8wbsdnc9mvlhmwd7a3zd699ng2lzbxb"))))
3458 `(("menhir" ,ocaml-menhir)))
3460 `(("ocamlbuild" ,ocamlbuild)))
3461 (build-system ocaml-build-system)
3464 (modify-phases %standard-phases
3472 (invoke "make" "tests")
3474 (add-before 'install 'set-binpath
3475 ;; Change binary path in the makefile
3477 (let ((out (assoc-ref %outputs "out")))
3478 (substitute* "GNUmakefile"
3480 (string-append "BINDIR = " out "/bin"))))
3484 (invoke "make" "install")
3486 (synopsis "Proof-checker for the λΠ-calculus modulo theory, an extension of
3488 (description "Dedukti is a proof-checker for the λΠ-calculus modulo
3489 theory. The λΠ-calculus is an extension of the simply typed λ-calculus with
3490 dependent types. The λΠ-calculus modulo theory is itself an extension of the
3491 λΠ-calculus where the context contains variable declaration as well as rewrite
3492 rules. This system is not designed to develop proofs, but to check proofs
3493 developed in other systems. In particular, it enjoys a minimalistic syntax.")
3494 (license license:cecill-c)))
3496 (define-public emacs-dedukti-mode
3497 (let ((commit "d7c3505a1046187de3c3aeb144455078d514594e"))
3499 (name "emacs-dedukti-mode")
3500 (version (git-version "0" "0" commit))
3501 (home-page "https://github.com/rafoo/dedukti-mode")
3509 "1842wikq24c8rg0ac84vb1qby9ng1nssxswyyni4kq85lng5lcrp"))
3510 (file-name (git-file-name name version))))
3512 `(("dedukti" ,dedukti)))
3513 (build-system emacs-build-system)
3516 (modify-phases %standard-phases
3517 (add-before 'install 'patch-dkpath
3519 (let ((dkcheck-path (which "dkcheck")))
3520 (substitute* "dedukti-mode.el"
3521 (("dedukti-path \"(.*)\"")
3522 (string-append "dedukti-path \"" dkcheck-path "\"")))))))))
3523 (synopsis "Emacs major mode for Dedukti files")
3524 (description "This package provides an Emacs major mode for editing
3526 (license license:cecill-b))))
3528 (define-public emacs-flycheck-dedukti
3529 (let ((commit "3dbff5646355f39d57a3ec514f560a6b0082a1cd"))
3531 (name "emacs-flycheck-dedukti")
3532 (version (git-version "0" "0" commit))
3533 (home-page "https://github.com/rafoo/flycheck-dedukti")
3541 "1ffpxnwl3wx244n44mbw81g00nhnykd0lnid29f4aw1av7w6nw8l"))
3542 (file-name (git-file-name name version))))
3543 (build-system emacs-build-system)
3545 `(("dedukti-mode" ,emacs-dedukti-mode)
3546 ("flycheck-mode" ,emacs-flycheck)))
3547 (synopsis "Flycheck integration for the dedukti language")
3548 (description "This package provides a frontend for Flycheck to perform
3549 syntax checking on dedukti files.")
3550 (license license:cecill-b))))
3552 (define-public ocaml4.07-ppx-inline-test
3554 (name "ocaml4.07-ppx-inline-test")
3556 (home-page "https://github.com/janestreet/ppx_inline_test")
3561 (url (string-append home-page ".git"))
3562 (commit (string-append "v" version))))
3563 (file-name (git-file-name name version))
3566 "0nyz411zim94pzbxm2l2v2l9jishcxwvxhh142792g2s18r4vn50"))))
3567 (build-system dune-build-system)
3569 ;see home page README for further information
3572 #:findlib ,ocaml4.07-findlib))
3574 `(("ocaml-base" ,ocaml4.07-base)
3575 ("ocaml-migrate-parsetree"
3576 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
3577 ("ocaml-compiler-libs" ,ocaml4.07-compiler-libs)
3578 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
3579 ("ocaml-stdio" ,ocaml4.07-stdio)
3580 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
3581 (properties `((upstream-name . "ppx_inline_test")))
3582 (synopsis "Syntax extension for writing in-line tests in ocaml code")
3583 (description "This package contains a syntax extension for writing
3584 in-line tests in ocaml code. It is part of Jane Street's PPX rewriters
3586 (license license:expat)))
3588 (define-public ocaml-bindlib
3590 (name "ocaml-bindlib")
3596 (url "https://github.com/rlepigre/ocaml-bindlib")
3597 (commit (string-append "ocaml-bindlib_" version))))
3598 (file-name (git-file-name name version))
3601 "1f8kr81w8vsi4gv61xn1qbc6zrzkjp8l9ix0942vjh4gjxc74v75"))))
3602 (build-system ocaml-build-system)
3604 `(#:tests? #f ;no tests
3607 (modify-phases %standard-phases
3614 (invoke "make" "install"))))))
3616 `(("ocamlbuild" ,ocamlbuild)
3617 ("ocaml-findlib" ,ocaml-findlib)))
3618 (home-page "https://rlepigre.github.io/ocaml-bindlib/")
3619 (synopsis "OCaml Bindlib library for bound variables")
3620 (description "Bindlib is a library allowing the manipulation of data
3621 structures with bound variables. It is particularly useful when writing ASTs
3622 for programming languages, but also for manipulating terms of the λ-calculus
3623 or quantified formulas.")
3624 (license license:gpl3+)))
3626 (define-public ocaml4.07-earley
3628 (name "ocaml4.07-earley")
3630 (home-page "https://github.com/rlepigre/ocaml-earley")
3635 (url (string-append home-page ".git"))
3637 (file-name (git-file-name name version))
3640 "18k7bi7krc4bvqnhijz1q0pfr0nfahghfjifci8rh1q4i5zd0xz5"))))
3641 (build-system dune-build-system)
3645 #:findlib ,ocaml4.07-findlib))
3646 (synopsis "Parsing library based on Earley Algorithm")
3647 (description "Earley is a parser combinator library base on Earley's
3648 algorithm. It is intended to be used in conjunction with an OCaml syntax
3649 extension which allows the definition of parsers inside the language. There
3650 is also support for writing OCaml syntax extensions in a camlp4 style.")
3651 (license license:cecill-b)))
3653 (define-public ocaml-timed
3655 (name "ocaml-timed")
3657 (home-page "https://github.com/rlepigre/ocaml-timed")
3661 (url (string-append home-page ".git"))
3662 (commit (string-append name "_" version))))
3665 "0hfxz710faxy5yk97bkfnw87r732jcxxhmjppwrbfdb6pd0wks96"))
3666 (file-name (git-file-name name version))))
3667 (build-system ocaml-build-system)
3670 (modify-phases %standard-phases
3677 (invoke "make" "install")))
3680 (invoke "make" "tests"))))))
3681 (synopsis "Timed references for imperative state")
3682 (description "Timed references for imperative state. This module provides
3683 an alternative type for references (or mutable cells) supporting undo/redo
3684 operations. In particular, an abstract notion of time is used to capture the
3685 state of the references at any given point, so that it can be restored. Note
3686 that usual reference operations only have a constant time / memory overhead
3687 (compared to those of the standard library).
3689 Moreover, we provide an alternative implementation based on the references
3690 of the standard library (Pervasives module). However, it is less efficient
3691 than the first one.")
3692 (license license:expat)))
3694 (define-public ocaml-biniou
3696 (name "ocaml-biniou")
3698 (home-page "https://github.com/mjambon/biniou")
3703 (url (string-append home-page ".git"))
3705 (file-name (git-file-name name version))
3708 "0x2kiy809n1j0yf32l7hj102y628jp5jdrkbi3z7ld8jq04h1790"))))
3709 (build-system dune-build-system)
3712 (modify-phases %standard-phases
3713 (add-before 'build 'make-writable
3718 (find-files "." "."))
3721 `(("ocaml-easy-format" ,ocaml-easy-format)))
3723 `(("which" ,which)))
3724 (synopsis "Data format designed for speed, safety, ease of use and backward
3726 (description "Biniou (pronounced \"be new\" is a binary data format
3727 designed for speed, safety, ease of use and backward compatibility as
3728 protocols evolve. Biniou is vastly equivalent to JSON in terms of
3729 functionality but allows implementations several times faster (4 times faster
3730 than yojson), with 25-35% space savings.")
3731 (license license:bsd-3)))
3733 (define-public ocaml-yojson
3735 (name "ocaml-yojson")
3737 (home-page "https://github.com/ocaml-community/yojson")
3742 (url (string-append home-page ".git"))
3744 (file-name (git-file-name name version))
3747 "0zncsw8bgbkh1pfvfc7nh628hfj84lgx6jwhp9ashj3z1z0w3xjn"))))
3748 (build-system dune-build-system)
3750 `(#:test-target "."))
3752 `(("ocaml-biniou" ,ocaml-biniou)
3753 ("ocaml-easy-format" ,ocaml-easy-format)))
3755 `(("ocaml-alcotest" ,ocaml-alcotest)
3756 ("ocaml-cppo" ,ocaml-cppo)))
3757 (synopsis "Low-level JSON library for OCaml")
3758 (description "Yojson is an optimized parsing and printing library for the
3759 JSON format. It addresses a few shortcomings of json-wheel including 2x
3760 speedup, polymorphic variants and optional syntax for tuples and variants.
3761 @code{ydump} is a pretty printing command-line program provided with the
3762 yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
3763 serializers and deserializers from type definitions.")
3764 (license license:bsd-3)))
3766 (define-public ocaml-craml
3768 (name "ocaml-craml")
3770 (home-page "https://github.com/realworldocaml/craml")
3775 (url (string-append home-page ".git"))
3777 (file-name (git-file-name name version))
3780 "197xjp4vmzdymf2ndinw271ihpf45h04mx8gqj8ypspxdr5fj1a5"))))
3781 (build-system dune-build-system)
3783 `(("ocaml-fmt" ,ocaml-fmt)
3784 ("ocaml-astring" ,ocaml-astring)
3785 ("ocaml-logs" ,ocaml-logs)
3786 ("ocaml-cmdliner" ,ocaml-cmdliner)))
3788 "CRAM-testing framework for testing command line applications")
3789 (description "CRAM is a is functional testing framework for command line
3790 applications. @code{craml} is freely inspired by the
3791 Mercurial's @code{https://www.selenic.com/blog/?p=663, unified test
3792 format}. @code{craml} is released as a single binary (called @code{craml}).")
3793 (license license:isc)))
3795 (define-public ocaml4.07-merlin
3797 (name "ocaml4.07-merlin")
3799 (home-page "https://ocaml.github.io/merlin/")
3804 (url "https://github.com/ocaml/merlin")
3805 (commit (string-append "v" version))))
3806 (file-name (git-file-name name version))
3809 "15ssgmwdxylbwhld9p1cq8x6kadxyhll5bfyf11dddj6cldna3hb"))))
3810 (build-system dune-build-system)
3812 `(("ocaml-biniou" ,(package-with-ocaml4.07 ocaml-biniou))
3813 ("ocaml-yojson" ,(package-with-ocaml4.07 ocaml-yojson))
3814 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))))
3816 `(("ocaml-findlib" ,ocaml-findlib)))
3818 `(#:package "merlin"
3819 #:tests? #f ;; Errors in tests in version 3.2.2
3821 #:findlib ,ocaml4.07-findlib))
3822 (synopsis "Context sensitive completion for OCaml in Vim and Emacs")
3823 (description "Merlin is an editor service that provides modern IDE
3824 features for OCaml. Emacs and Vim support is provided out-of-the-box.
3825 External contributors added support for Visual Studio Code, Sublime Text and
3827 (license license:expat)))
3829 (define-public ocaml4.07-gsl
3831 (name "ocaml4.07-gsl")
3838 "https://github.com/mmottl/gsl-ocaml/releases/download/"
3839 version "/gsl-" version ".tbz"))
3842 "1l5zkkkg8sglsihrbf10ivq9s8xzl1y6ag89i4jqpnmi4m43fy34"))))
3843 (build-system dune-build-system)
3847 (modify-phases %standard-phases
3848 (add-after 'unpack 'fix-gsl-directory
3849 (lambda* (#:key inputs #:allow-other-keys)
3850 (substitute* "src/config/discover.ml"
3851 (("/usr") (assoc-ref inputs "gsl")))
3854 #:findlib ,ocaml4.07-findlib
3855 #:dune ,ocaml4.07-dune))
3859 `(("ocaml-base" ,ocaml4.07-base)
3860 ("ocaml-stdio" ,ocaml4.07-stdio)))
3861 (home-page "https://mmottl.github.io/gsl-ocaml")
3862 (synopsis "Bindings to the GNU Scientific Library")
3864 "GSL-OCaml is an interface to the @dfn{GNU scientific library} (GSL) for
3865 the OCaml language.")
3866 (license license:gpl3+)))
3868 (define-public ocaml4.07-gsl-1
3870 (inherit ocaml4.07-gsl)
3874 (uri (string-append "https://github.com/mmottl/gsl-ocaml"
3875 "/releases/download/v"
3876 version "/gsl-ocaml-" version ".tar.gz"))
3879 "0nzp43hp8pbjqkrxnwp5lgjrabxayf61h18fjaydi0s5faq6f3xh"))))
3880 (build-system ocaml-build-system)
3884 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
3886 `(#:ocaml ,ocaml-4.07
3887 #:findlib ,ocaml4.07-findlib))
3888 (propagated-inputs '())))
3890 (define-public cubicle
3896 (uri (string-append "http://cubicle.lri.fr/cubicle-"
3900 "10kk80jdmpdvql88sdjsh7vqzlpaphd8vip2lp47aarxjkwjlz1q"))))
3901 (build-system gnu-build-system)
3903 `(("automake" ,automake)
3905 ("which" ,(@@ (gnu packages base) which))))
3907 `(("ocaml-num" ,ocaml-num)
3910 `(#:configure-flags (list "--with-z3")
3911 #:make-flags (list "QUIET=")
3914 (modify-phases %standard-phases
3915 (add-before 'configure 'configure-for-release
3917 (substitute* "Makefile.in"
3918 (("SVNREV=") "#SVNREV="))
3920 (add-before 'configure 'fix-/bin/sh
3922 (substitute* "configure"
3923 (("-/bin/sh") (string-append "-" (which "sh"))))
3925 (add-before 'configure 'fix-smt-z3wrapper.ml
3927 (substitute* "Makefile.in"
3930 (add-before 'configure 'fix-ocaml-num
3931 (lambda* (#:key inputs #:allow-other-keys)
3932 (substitute* "Makefile.in"
3933 (("= \\$\\(FUNCTORYLIB\\)")
3934 (string-append "= -I "
3935 (assoc-ref inputs "ocaml-num")
3936 "/lib/ocaml/site-lib"
3937 " $(FUNCTORYLIB)")))
3939 (home-page "http://cubicle.lri.fr/")
3940 (synopsis "Model checker for array-based systems")
3941 (description "Cubicle is a model checker for verifying safety properties
3942 of array-based systems. This is a syntactically restricted class of
3943 parametrized transition systems with states represented as arrays indexed by
3944 an arbitrary number of processes. Cache coherence protocols and mutual
3945 exclusion algorithms are typical examples of such systems.")
3946 (license license:asl2.0)))
3948 (define-public ocaml4.07-sexplib0
3950 (name "ocaml4.07-sexplib0")
3952 (home-page "https://github.com/janestreet/sexplib0")
3957 (url (string-append home-page ".git"))
3958 (commit (string-append "v" version))))
3959 (file-name (git-file-name name version))
3962 "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
3963 (build-system dune-build-system)
3965 `(#:tests? #f ;no tests
3967 #:findlib ,ocaml4.07-findlib))
3968 (synopsis "Library containing the definition of S-expressions and some
3970 (description "Part of Jane Street's Core library The Core suite of
3971 libraries is an industrial strength alternative to OCaml's standard library
3972 that was developed by Jane Street, the largest industrial user of OCaml.")
3973 (license license:expat)))
3975 (define-public ocaml4.07-parsexp
3977 (name "ocaml4.07-parsexp")
3979 (home-page "https://github.com/janestreet/parsexp")
3984 (url (string-append home-page ".git"))
3985 (commit (string-append "v" version))))
3986 (file-name (git-file-name name version))
3989 "1nyq23s5igd8cf3n4qxprjvhbmb6ighb3fy5mw7hxl0mdgsw5fvz"))))
3990 (build-system dune-build-system)
3992 `(#:ocaml ,ocaml-4.07
3993 #:findlib ,ocaml4.07-findlib))
3995 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3996 (synopsis "S-expression parsing library")
3998 "This library provides generic parsers for parsing S-expressions from
3999 strings or other medium.
4001 The library is focused on performances but still provide full generic
4002 parsers that can be used with strings, bigstrings, lexing buffers,
4003 character streams or any other sources effortlessly.
4005 It provides three different class of parsers:
4008 the normal parsers, producing [Sexp.t] or [Sexp.t list] values
4010 the parsers with positions, building compact position sequences so
4011 that one can recover original positions in order to report properly
4012 located errors at little cost
4014 the Concrete Syntax Tree parsers, produce values of type
4015 @code{Parsexp.Cst.t} which record the concrete layout of the s-expression
4016 syntax, including comments
4019 This library is portable and doesn't provide IO functions. To read
4020 s-expressions from files or other external sources, you should use
4022 (license license:expat)))
4024 (define-public ocaml4.07-sexplib
4026 (name "ocaml4.07-sexplib")
4028 (home-page "https://github.com/janestreet/sexplib")
4033 (url (string-append home-page ".git"))
4034 (commit (string-append "v" version))))
4035 (file-name (git-file-name name version))
4038 "1qfl0m04rpcjvc4yw1hzh6r16jpwmap0sa9ax6zjji67dz4szpyb"))))
4039 (build-system dune-build-system)
4041 `(#:ocaml ,ocaml-4.07
4042 #:findlib ,ocaml4.07-findlib))
4044 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
4045 ("ocaml-parsexp" ,ocaml4.07-parsexp)
4046 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4048 "Library for serializing OCaml values to and from S-expressions")
4050 "This package is part of Jane Street's Core library. Sexplib contains
4051 functionality for parsing and pretty-printing s-expressions.")
4052 (license license:expat)))
4054 (define-public ocaml4.07-base
4056 (name "ocaml4.07-base")
4058 (home-page "https://github.com/janestreet/base")
4063 (url (string-append home-page ".git"))
4064 (commit (string-append "v" version))))
4065 (file-name (git-file-name name version))
4068 "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
4069 (build-system dune-build-system)
4071 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4074 (modify-phases %standard-phases
4076 ;; make warnings non fatal (jbuilder behaviour)
4078 (invoke "dune" "build" "@install" "--profile=release"))))
4080 #:findlib ,ocaml4.07-findlib))
4082 "Full standard library replacement for OCaml")
4084 "Base is a complete and portable alternative to the OCaml standard
4085 library. It provides all standard functionalities one would expect
4086 from a language standard library. It uses consistent conventions
4087 across all of its module.
4089 Base aims to be usable in any context. As a result system dependent
4090 features such as I/O are not offered by Base. They are instead
4091 provided by companion libraries such as
4092 @url{https://github.com/janestreet/stdio, ocaml-stdio}.")
4093 (license license:expat)))
4095 (define-public ocaml4.07-compiler-libs
4097 (name "ocaml4.07-compiler-libs")
4099 (home-page "https://github.com/janestreet/ocaml-compiler-libs")
4104 (url (string-append home-page ".git"))
4105 (commit (string-append "v" version))))
4106 (file-name (git-file-name name version))
4109 "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
4110 (build-system dune-build-system)
4112 `(#:tests? #f ;no tests
4114 #:findlib ,ocaml4.07-findlib
4115 #:dune ,ocaml4.07-dune))
4116 (properties `((upstream-name . "ocaml-compiler-libs")))
4117 (synopsis "Compiler libraries repackaged")
4118 (description "This package simply repackages the OCaml compiler libraries
4119 so they don't expose everything at toplevel. For instance, @code{Ast_helper}
4120 is now @code{Ocaml_common.Ast_helper}.")
4121 (license license:expat)))
4123 (define-public ocaml4.07-stdio
4125 (name "ocaml4.07-stdio")
4127 (home-page "https://github.com/janestreet/stdio")
4132 (url (string-append home-page ".git"))
4133 (commit (string-append "v" version))))
4134 (file-name (git-file-name name version))
4137 "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
4138 (build-system dune-build-system)
4140 `(("ocaml-base" ,ocaml4.07-base)
4141 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4143 `(#:tests? #f ;no tests
4145 #:findlib ,ocaml4.07-findlib))
4146 (synopsis "Standard IO library for OCaml")
4148 "Stdio implements simple input/output functionalities for OCaml. It
4149 re-exports the input/output functions of the OCaml standard libraries using
4150 a more consistent API.")
4151 (license license:expat)))
4153 (define-public ocaml-ppx-derivers
4155 (name "ocaml-ppx-derivers")
4158 "https://github.com/ocaml-ppx/ppx_derivers")
4163 (url (string-append home-page ".git"))
4165 (file-name (git-file-name name version))
4168 "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"))))
4169 (build-system dune-build-system)
4171 '(#:tests? #f)) ;no tests
4172 (properties `((upstream-name . "ppx_derivers")))
4173 (synopsis "Shared @code{@@deriving} plugin registry")
4175 "Ppx_derivers is a tiny package whose sole purpose is to allow
4176 ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
4177 as part of the same ocaml-migrate-parsetree driver.")
4178 (license license:bsd-3)))
4180 (define-public ocaml4.07-ppxlib
4182 (name "ocaml4.07-ppxlib")
4184 (home-page "https://github.com/ocaml-ppx/ppxlib")
4189 (url (string-append home-page ".git"))
4191 (file-name (git-file-name name version))
4194 "0my9x7sxb329h0lzshppdaawiyfbaw6g5f41yiy7bhl071rnlvbv"))))
4195 (build-system dune-build-system)
4197 `(("ocaml-base" ,ocaml4.07-base)
4198 ("ocaml-compiler-libs" ,ocaml4.07-compiler-libs)
4199 ("ocaml-migrate-parsetree"
4200 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4201 ("ocaml-ppx-derivers" ,(package-with-ocaml4.07 ocaml-ppx-derivers))
4202 ("ocaml-stdio" ,ocaml4.07-stdio)
4203 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
4204 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4207 (modify-phases %standard-phases
4208 (add-before 'check 'set-topfind
4209 (lambda* (#:key inputs #:allow-other-keys)
4210 ;; add the line #directory ".." at the top of each file
4211 ;; using #use "topfind";; to be able to find topfind
4212 (let* ((findlib-path (assoc-ref inputs "findlib"))
4214 (string-append findlib-path "/lib/ocaml/site-lib")))
4215 (substitute* '("test/base/test.ml"
4216 "test/code_path/test.ml"
4217 "test/deriving/test.ml"
4218 "test/driver/attributes/test.ml"
4219 "test/driver/non-compressible-suffix/test.ml"
4220 "test/driver/transformations/test.ml")
4221 (("#use \"topfind\";;" all)
4222 (string-append "#directory \"" findlib-libdir "\"\n"
4226 #:findlib ,ocaml4.07-findlib))
4228 "Base library and tools for ppx rewriters")
4230 "A comprehensive toolbox for ppx development. It features:
4232 @item an OCaml AST / parser / pretty-printer snapshot, to create a full frontend
4233 independent of the version of OCaml;
4234 @item a library for library for ppx rewriters in general, and type-driven code
4235 generators in particular;
4237 a feature-full driver for OCaml AST transformers;
4238 @item a quotation mechanism allowing to write values representing the
4239 OCaml AST in the OCaml syntax;
4240 @item a generator of open recursion classes from type definitions.
4242 (license license:expat)))
4244 (define-public ocaml4.07-ppx-compare
4246 (name "ocaml4.07-ppx-compare")
4251 (url "https://github.com/janestreet/ppx_compare")
4252 (commit (string-append "v" version))))
4253 (file-name (git-file-name name version))
4256 "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
4257 (build-system dune-build-system)
4259 `(("ocaml-base" ,ocaml4.07-base)
4260 ("ocaml-migrate-parsetree"
4261 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4262 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4264 `(#:ocaml ,ocaml-4.07
4265 #:findlib ,ocaml4.07-findlib))
4266 (properties `((upstream-name . "ppx_compare")))
4267 (home-page "https://github.com/janestreet/ppx_compare")
4268 (synopsis "Generation of comparison functions from types")
4269 (description "Generation of fast comparison functions from type expressions
4270 and definitions. Ppx_compare is a ppx rewriter that derives comparison functions
4271 from type representations. The scaffolded functions are usually much faster
4272 than ocaml's Pervasives.compare. Scaffolding functions also gives you more
4273 flexibility by allowing you to override them for a specific type and more safety
4274 by making sure that you only compare comparable values.")
4275 (license license:asl2.0)))
4277 (define-public ocaml4.07-fieldslib
4279 (name "ocaml4.07-fieldslib")
4283 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4284 (version-major+minor version) "/files/"
4285 "fieldslib-v" version ".tar.gz"))
4288 "12948pzxrl360lybm9fzyvplgcl87zjbn4m3sk1aw75zk85p1388"))))
4289 (build-system dune-build-system)
4294 #:findlib ,ocaml4.07-findlib))
4296 `(("ocaml-base" ,ocaml4.07-base)
4297 ("ocaml-migrate-parsetree"
4298 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4299 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4300 (properties `((upstream-name . "fieldslib")))
4301 (home-page "https://github.com/janestreet/fieldslib")
4302 (synopsis "Syntax extension to record fields")
4303 (description "Syntax extension to define first class values representing
4304 record fields, to get and set record fields, iterate and fold over all fields
4305 of a record and create new record values.")
4306 (license license:asl2.0)))
4308 (define-public ocaml4.07-variantslib
4310 (name "ocaml4.07-variantslib")
4314 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4315 (version-major+minor version)
4316 "/files/variantslib-v" version ".tar.gz"))
4319 "1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
4320 (build-system dune-build-system)
4325 #:findlib ,ocaml4.07-findlib))
4327 `(("ocaml-base" ,ocaml4.07-base)
4328 ("ocaml-migrate-parsetree"
4329 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4330 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4331 (properties `((upstream-name . "variantslib")))
4332 (home-page "https://github.com/janestreet/variantslib")
4333 (synopsis "OCaml variants as first class values")
4334 (description "The Core suite of libraries is an alternative to OCaml's
4336 (license license:asl2.0)))
4338 (define-public ocaml4.07-ppx-fields-conv
4340 (name "ocaml4.07-ppx-fields-conv")
4344 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4345 (version-major+minor version)
4346 "/files/ppx_fields_conv-v" version ".tar.gz"))
4349 "07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
4350 (build-system dune-build-system)
4352 `(("ocaml-base" ,ocaml4.07-base)
4353 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
4354 ("ocaml-migrate-parsetree"
4355 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4356 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4358 `(#:ocaml ,ocaml-4.07
4359 #:findlib ,ocaml4.07-findlib))
4360 (properties `((upstream-name . "ppx_fields_conv")))
4361 (home-page "https://github.com/janestreet/ppx_fields_conv")
4362 (synopsis "Generation of accessor and iteration functions for ocaml records")
4363 (description "Ppx_fields_conv is a ppx rewriter that can be used to define
4364 first class values representing record fields, and additional routines, to get
4365 and set record fields, iterate and fold over all fields of a record and create
4366 new record values.")
4367 (license license:asl2.0)))
4369 (define-public ocaml4.07-ppx-sexp-conv
4371 (name "ocaml4.07-ppx-sexp-conv")
4376 (url "https://github.com/janestreet/ppx_sexp_conv")
4377 (commit (string-append "v" version))))
4378 (file-name (git-file-name name version))
4381 "0pqwnqy1xp309wvdcaax4lg02yk64lq2w03mbgfvf6ps5ry4gis9"))))
4382 (build-system dune-build-system)
4384 `(("ocaml-base" ,ocaml4.07-base)
4385 ("ocaml-migrate-parsetree"
4386 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4387 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4389 `(#:ocaml ,ocaml-4.07
4390 #:findlib ,ocaml4.07-findlib))
4391 (properties `((upstream-name . "ppx_sexp_conv")))
4392 (home-page "https://github.com/janestreet/ppx_sexp_conv")
4393 (synopsis "Generation of S-expression conversion functions from type definitions")
4394 (description "This package generates S-expression conversion functions from type
4396 (license license:asl2.0)))
4398 (define-public ocaml4.07-ppx-variants-conv
4400 (name "ocaml4.07-ppx-variants-conv")
4405 (url "https://github.com/janestreet/ppx_variants_conv")
4406 (commit (string-append "v" version))))
4407 (file-name (git-file-name name version))
4410 "1yc0gsds5m2nv39zga8nnrca2n75rkqy5dz4xj1635ybz20hhbjd"))))
4411 (build-system dune-build-system)
4413 `(("ocaml-base" ,ocaml4.07-base)
4414 ("ocaml-variantslib" ,ocaml4.07-variantslib)
4415 ("ocaml-migrate-parsetree"
4416 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4417 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4419 `(#:ocaml ,ocaml-4.07
4420 #:findlib ,ocaml4.07-findlib))
4422 `((upstream-name . "ppx_variants_conv")))
4424 "https://github.com/janestreet/ppx_variants_conv")
4425 (synopsis "Generation of accessor and iteration functions for OCaml variant types")
4427 "This package generates accessors and iteration functions for OCaml
4429 (license license:asl2.0)))
4431 (define-public ocaml4.07-ppx-custom-printf
4433 (name "ocaml4.07-ppx-custom-printf")
4437 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4438 (version-major+minor version)
4439 "/files/ppx_custom_printf-v" version ".tar.gz"))
4442 "11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))))
4443 (build-system dune-build-system)
4445 `(("ocaml-base" ,ocaml4.07-base)
4446 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4447 ("ocaml-migrate-parsetree"
4448 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4449 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4451 `(#:ocaml ,ocaml-4.07
4452 #:findlib ,ocaml4.07-findlib))
4453 (properties `((upstream-name . "ppx_custom_printf")))
4454 (home-page "https://github.com/janestreet/ppx_custom_printf")
4455 (synopsis "Printf-style format-strings for user-defined string conversion")
4456 (description "Extensions to printf-style format-strings for user-defined
4457 string conversion.")
4458 (license license:asl2.0)))
4460 (define-public ocaml4.07-bin-prot
4462 (name "ocaml4.07-bin-prot")
4466 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4467 (version-major+minor version)
4468 "/files/bin_prot-v" version ".tar.gz"))
4471 "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
4472 (build-system dune-build-system)
4474 `(("ocaml-base" ,ocaml4.07-base)
4475 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4476 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4477 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4478 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4479 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4480 ("ocaml-migrate-parsetree"
4481 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
4483 `(#:ocaml ,ocaml-4.07
4484 #:findlib ,ocaml4.07-findlib))
4485 (properties `((upstream-name . "bin_prot")))
4486 (home-page "https://github.com/janestreet/bin_prot")
4487 (synopsis "Binary protocol generator")
4488 (description "This library contains functionality for reading and writing
4489 OCaml-values in a type-safe binary protocol. It is extremely efficient,
4490 typically supporting type-safe marshalling and unmarshalling of even highly
4491 structured values at speeds sufficient to saturate a gigabit connection. The
4492 protocol is also heavily optimized for size, making it ideal for long-term
4493 storage of large amounts of data.")
4498 (define-public ocaml-octavius
4500 (name "ocaml-octavius")
4505 (url "https://github.com/ocaml-doc/octavius")
4506 (commit (string-append "v" version))))
4507 (file-name (git-file-name name version))
4510 "1c5m51xcn2jv42kjjpklr6g63sgx1k885wfdp1yr4wrmiaj9cbpx"))))
4511 (build-system dune-build-system)
4514 (modify-phases %standard-phases
4515 (add-before 'build 'make-writable
4517 (for-each (lambda (file)
4519 (find-files "." "."))
4521 (properties `((upstream-name . "octavius")))
4522 (home-page "https://github.com/ocaml-doc/octavius")
4523 (synopsis "Ocamldoc comment syntax parser")
4524 (description "Octavius is a library to parse the `ocamldoc` comment syntax.")
4525 (license license:isc)))
4527 (define-public ocaml4.07-ppx-hash
4529 (name "ocaml4.07-ppx-hash")
4534 (url "https://github.com/janestreet/ppx_hash")
4535 (commit (string-append "v" version))))
4536 (file-name (git-file-name name version))
4539 "1p0ic6aijxlrdggpmycj12q3cy9xksbq2vq727215maz4snvlf5p"))))
4540 (build-system dune-build-system)
4542 `(("ocaml-base" ,ocaml4.07-base)
4543 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4544 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4545 ("ocaml-migrate-parsetree"
4546 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4547 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4549 `(#:ocaml ,ocaml-4.07
4550 #:findlib ,ocaml4.07-findlib))
4551 (properties `((upstream-name . "ppx_hash")))
4552 (home-page "https://github.com/janestreet/ppx_hash")
4553 (synopsis "Generation of hash functions from type expressions and definitions")
4554 (description "This package is a collection of ppx rewriters that generate
4555 hash functions from type exrpessions and definitions.")
4556 (license license:asl2.0)))
4558 (define-public ocaml4.07-ppx-enumerate
4560 (name "ocaml4.07-ppx-enumerate")
4565 (url "https://github.com/janestreet/ppx_enumerate")
4566 (commit (string-append "v" version))))
4567 (file-name (git-file-name name version))
4570 "0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
4571 (build-system dune-build-system)
4573 `(#:tests? #f; no test suite
4575 #:findlib ,ocaml4.07-findlib))
4577 `(("ocaml-base" ,ocaml4.07-base)
4578 ("ocaml-migrate-parsetree"
4579 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4580 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4581 (properties `((upstream-name . "ppx_enumerate")))
4582 (home-page "https://github.com/janestreet/ppx_enumerate")
4583 (synopsis "Generate a list containing all values of a finite type")
4584 (description "Ppx_enumerate is a ppx rewriter which generates a definition
4585 for the list of all values of a type (for a type which only has finitely
4587 (license license:asl2.0)))
4589 (define-public ocaml4.07-ppx-bench
4591 (name "ocaml4.07-ppx-bench")
4595 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4596 (version-major+minor version)
4597 "/files/ppx_bench-v" version ".tar.gz"))
4600 "0ys4pblbcjbk9dn073rqiwm7r6rc7fah03j7riklkwnb5n44andl"))))
4601 (build-system dune-build-system)
4606 #:findlib ,ocaml4.07-findlib))
4608 `(("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
4609 ("ocaml-migrate-parsetree"
4610 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4611 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4612 (properties `((upstream-name . "ppx_bench")))
4613 (home-page "https://github.com/janestreet/ppx_bench")
4614 (synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
4615 (description "Syntax extension for writing in-line benchmarks in ocaml code.")
4616 (license license:asl2.0)))
4618 (define-public ocaml4.07-ppx-here
4620 (name "ocaml4.07-ppx-here")
4624 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4625 (version-major+minor version)
4626 "/files/ppx_here-v" version ".tar.gz"))
4629 "0wxcak3ay4jpigm3pfdcpr65qw4hxfa8whhkryhcd8gy71x056z5"))))
4630 (build-system dune-build-system)
4635 #:findlib ,ocaml4.07-findlib))
4637 `(("ocaml-base" ,ocaml4.07-base)
4638 ("ocaml-migrate-parsetree"
4639 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4640 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4641 (properties `((upstream-name . "ppx_here")))
4642 (home-page "https://github.com/janestreet/ppx_here")
4643 (synopsis "Expands [%here] into its location")
4645 "Part of the Jane Street's PPX rewriters collection.")
4646 (license license:asl2.0)))
4648 (define-public ocaml4.07-typerep
4650 (name "ocaml4.07-typerep")
4654 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4655 (version-major+minor version)
4656 "/files/typerep-v" version ".tar.gz"))
4659 "1zi7hy0prpgzqhr4lkacr04wvlvbp21jfbdfvffhrm6cd400rb5v"))))
4660 (build-system dune-build-system)
4664 #:findlib ,ocaml4.07-findlib))
4665 (propagated-inputs `(("ocaml-base" ,ocaml4.07-base)))
4666 (home-page "https://github.com/janestreet/typerep")
4667 (synopsis "Typerep is a library for runtime types")
4668 (description "Typerep is a library for runtime types.")
4669 (license license:asl2.0)))
4671 (define-public ocaml4.07-ppx-sexp-value
4673 (name "ocaml4.07-ppx-sexp-value")
4677 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4678 (version-major+minor version)
4679 "/files/ppx_sexp_value-v" version ".tar.gz"))
4682 "1xnalfrln6k5khsyxvxkg6v32q8fpr4cqamsjqfih29jdv486xrs"))))
4683 (build-system dune-build-system)
4685 `(#:ocaml ,ocaml-4.07
4686 #:findlib ,ocaml4.07-findlib))
4688 `(("ocaml-base" ,ocaml4.07-base)
4689 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4690 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4691 ("ocaml-migrate-parsetree"
4692 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4693 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4694 (properties `((upstream-name . "ppx_sexp_value")))
4695 (home-page "https://github.com/janestreet/ppx_sexp_value")
4696 (synopsis "Simplify building s-expressions from ocaml values")
4697 (description "A ppx rewriter that simplifies building s-expressions from
4699 (license license:asl2.0)))
4701 (define-public ocaml4.07-ppx-sexp-message
4703 (name "ocaml4.07-ppx-sexp-message")
4707 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4708 (version-major+minor version)
4709 "/files/ppx_sexp_message-v" version ".tar.gz"))
4712 "1yh440za0w9cvrbxbmqacir8715kdaw6sw24ys9xj80av9nqpiw7"))))
4713 (build-system dune-build-system)
4715 `(#:ocaml ,ocaml-4.07
4716 #:findlib ,ocaml4.07-findlib))
4718 `(("ocaml-base" ,ocaml4.07-base)
4719 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4720 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4721 ("ocaml-migrate-parsetree"
4722 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4723 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4724 (properties `((upstream-name . "ppx_sexp_message")))
4725 (home-page "https://github.com/janestreet/ppx_sexp_message")
4726 (synopsis "A ppx rewriter for easy construction of s-expressions")
4727 (description "Ppx_sexp_message aims to ease the creation of s-expressions
4728 in OCaml. This is mainly motivated by writing error and debugging messages,
4729 where one needs to construct a s-expression based on various element of the
4730 context such as function arguments.")
4731 (license license:asl2.0)))
4733 (define-public ocaml4.07-ppx-pipebang
4735 (name "ocaml4.07-ppx-pipebang")
4739 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4740 (version-major+minor version)
4741 "/files/ppx_pipebang-v" version ".tar.gz"))
4744 "1wrrzlb4kdvkkcmzi01fw25jar38r2jlnyn0i6pn4z0lq4gpm9m0"))))
4745 (build-system dune-build-system)
4750 #:findlib ,ocaml4.07-findlib))
4752 `(("ocaml-migrate-parsetree"
4753 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4754 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4755 (properties `((upstream-name . "ppx_pipebang")))
4756 (home-page "https://github.com/janestreet/ppx_pipebang")
4757 (synopsis "Inline reverse application operators `|>` and `|!`")
4758 (description "A ppx rewriter that inlines reverse application operators
4759 @code{|>} and @code{|!}.")
4760 (license license:asl2.0)))
4762 (define-public ocaml4.07-ppx-optional
4764 (name "ocaml4.07-ppx-optional")
4768 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4769 (version-major+minor version)
4770 "/files/ppx_optional-v" version ".tar.gz"))
4773 "1z8z2bga95k2vksljljfglg10vygkjd24kn1b37sk4z3nmp47x0h"))))
4774 (build-system dune-build-system)
4779 #:findlib ,ocaml4.07-findlib))
4781 `(("ocaml-base" ,ocaml4.07-base)
4782 ("ocaml-migrate-parsetree"
4783 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4784 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4785 (properties `((upstream-name . "ppx_optional")))
4786 (home-page "https://github.com/janestreet/ppx_optional")
4787 (synopsis "Pattern matching on flat options")
4789 "A ppx rewriter that rewrites simple match statements with an if then
4791 (license license:asl2.0)))
4793 (define-public ocaml4.07-ppx-optcomp
4795 (name "ocaml4.07-ppx-optcomp")
4799 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4800 (version-major+minor version)
4801 "/files/ppx_optcomp-v" version ".tar.gz"))
4804 "1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))))
4805 (build-system dune-build-system)
4807 `(#:ocaml ,ocaml-4.07
4808 #:findlib ,ocaml4.07-findlib))
4810 `(("ocaml-base" ,ocaml4.07-base)
4811 ("ocaml-stdio" ,ocaml4.07-stdio)
4812 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4813 (properties `((upstream-name . "ppx_optcomp")))
4814 (home-page "https://github.com/janestreet/ppx_optcomp")
4815 (synopsis "Optional compilation for OCaml")
4816 (description "Ppx_optcomp stands for Optional Compilation. It is a tool
4817 used to handle optional compilations of pieces of code depending of the word
4818 size, the version of the compiler, ...")
4819 (license license:asl2.0)))
4821 (define-public ocaml4.07-ppx-let
4823 (name "ocaml4.07-ppx-let")
4827 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4828 (version-major+minor version)
4829 "/files/ppx_let-v" version ".tar.gz"))
4832 "1wdfw6w4xbg97a35yg6bif9gggxniy9ddnrjfw1a0inkl2yamxkj"))))
4833 (build-system dune-build-system)
4835 `(#:ocaml ,ocaml-4.07
4836 #:findlib ,ocaml4.07-findlib))
4838 `(("ocaml-base" ,ocaml4.07-base)
4839 ("ocaml-migrate-parsetree"
4840 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4841 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4842 (properties `((upstream-name . "ppx_let")))
4843 (home-page "https://github.com/janestreet/ppx_let")
4844 (synopsis "Monadic let-bindings")
4845 (description "A ppx rewriter for monadic and applicative let bindings,
4846 match expressions, and if expressions.")
4847 (license license:asl2.0)))
4849 (define-public ocaml4.07-ppx-fail
4851 (name "ocaml4.07-ppx-fail")
4855 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4856 (version-major+minor version)
4857 "/files/ppx_fail-v" version ".tar.gz"))
4860 "07plqsvljiwvngggfypwq55g46s5my55y45mvlmalrxyppzr03s8"))))
4861 (build-system dune-build-system)
4863 `(#:ocaml ,ocaml-4.07
4864 #:findlib ,ocaml4.07-findlib))
4866 `(("ocaml-base" ,ocaml4.07-base)
4867 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4868 ("ocaml-migrate-parsetree"
4869 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4870 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4871 (properties `((upstream-name . "ppx_fail")))
4872 (home-page "https://github.com/janestreet/ppx_fail")
4873 (synopsis "Add location to calls to failwiths")
4874 (description "Syntax extension that makes [failwiths] always include a
4876 (license license:asl2.0)))
4878 (define-public ocaml4.07-ppx-assert
4880 (name "ocaml4.07-ppx-assert")
4884 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4885 (version-major+minor version)
4886 "/files/ppx_assert-v" version ".tar.gz"))
4889 "17kd311n0l9f72gblf9kv8i5rghr106w37x4f0m5qwh6nlgl0j9k"))))
4890 (build-system dune-build-system)
4892 `(#:ocaml ,ocaml-4.07
4893 #:findlib ,ocaml4.07-findlib))
4895 `(("ocaml-base" ,ocaml4.07-base)
4896 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4897 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4898 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4899 ("ocaml-migrate-parsetree"
4900 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4901 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4902 (properties `((upstream-name . "ppx_assert")))
4903 (home-page "https://github.com/janestreet/ppx_assert")
4904 (synopsis "Assert-like extension nodes that raise useful errors on failure")
4905 (description "This package contains assert-like extension nodes that raise
4906 useful errors on failure.")
4907 (license license:asl2.0)))
4909 (define-public ocaml4.07-ppx-expect
4911 (name "ocaml4.07-ppx-expect")
4916 (url "https://github.com/janestreet/ppx_expect")
4917 (commit (string-append "v" version))))
4918 (file-name (git-file-name name version))
4921 "1wawsbjfkri4sw52n8xqrzihxc3xfpdicv3ahz83a1rsn4lb8j5q"))))
4922 (build-system dune-build-system)
4924 `(#:ocaml ,ocaml-4.07
4925 #:findlib ,ocaml4.07-findlib))
4927 `(("ocaml-base" ,ocaml4.07-base)
4928 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
4929 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4930 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4931 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4932 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4933 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
4934 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4935 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4936 ("ocaml-stdio" ,ocaml4.07-stdio)
4937 ("ocaml-migrate-parsetree"
4938 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4939 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)
4940 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))))
4941 (properties `((upstream-name . "ppx_expect")))
4942 (home-page "https://github.com/janestreet/ppx_expect")
4943 (synopsis "Cram like framework for OCaml")
4944 (description "Expect-test is a framework for writing tests in OCaml, similar
4945 to Cram. Expect-tests mimics the existing inline tests framework with the
4946 @code{let%expect_test} construct. The body of an expect-test can contain
4947 output-generating code, interleaved with @code{%expect} extension expressions
4948 to denote the expected output.")
4949 (license license:asl2.0)))
4951 (define-public ocaml4.07-ppx-js-style
4953 (name "ocaml4.07-ppx-js-style")
4957 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4958 (version-major+minor version)
4959 "/files/ppx_js_style-v" version ".tar.gz"))
4962 "0z3fc55jdjhhsblla6z4fqc13kljpcz29q79rvs5h2vsraqrldr2"))))
4963 (build-system dune-build-system)
4968 #:findlib ,ocaml4.07-findlib))
4970 `(("ocaml-base" ,ocaml4.07-base)
4971 ("ocaml-migrate-parsetree"
4972 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4973 ("ocaml-octavius" ,(package-with-ocaml4.07 ocaml-octavius))
4974 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4975 (properties `((upstream-name . "ppx_js_style")))
4976 (home-page "https://github.com/janestreet/ppx_js_style")
4977 (synopsis "Code style checker for Jane Street Packages")
4978 (description "This package is a no-op ppx rewriter. It is used as a
4979 @code{lint} tool to enforce some coding conventions across all Jane Street
4981 (license license:asl2.0)))
4983 (define-public ocaml4.07-ppx-typerep-conv
4985 (name "ocaml4.07-ppx-typerep-conv")
4990 (url "https://github.com/janestreet/ppx_typerep_conv")
4991 (commit (string-append "v" version))))
4992 (file-name (git-file-name name version))
4995 "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))
4996 (build-system dune-build-system)
5000 #:findlib ,ocaml4.07-findlib))
5002 `(("ocaml-base" ,ocaml4.07-base)
5003 ("ocaml-typerep" ,ocaml4.07-typerep)
5004 ("ocaml-migrate-parsetree"
5005 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5006 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5007 (properties `((upstream-name . "ppx_typerep_conv")))
5008 (home-page "https://github.com/janestreet/ppx_typerep_conv")
5009 (synopsis "Generation of runtime types from type declarations")
5010 (description "This package can automatically generate runtime types
5011 from type definitions.")
5012 (license license:asl2.0)))
5014 (define-public ocaml4.07-ppx-base
5016 (name "ocaml4.07-ppx-base")
5020 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5021 (version-major+minor version)
5022 "/files/ppx_base-v" version ".tar.gz"))
5025 "0aq206pg330jmj7lhcagiiwm3a0b3gsqm801m8ajd4ysyw7idkym"))))
5026 (build-system dune-build-system)
5030 #:findlib ,ocaml4.07-findlib))
5032 `(("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
5033 ("ocaml-ppx-enumerate" ,ocaml4.07-ppx-enumerate)
5034 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
5035 ("ocaml-ppx-js-style" ,ocaml4.07-ppx-js-style)
5036 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5037 ("ocaml-migrate-parsetree"
5038 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5039 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5040 (properties `((upstream-name . "ppx_base")))
5041 (home-page "https://github.com/janestreet/ppx_base")
5042 (synopsis "Base set of ppx rewriters")
5043 (description "Ppx_base is the set of ppx rewriters used for Base.
5045 Note that Base doesn't need ppx to build, it is only used as a
5046 verification tool.")
5047 (license license:asl2.0)))
5049 (define-public ocaml4.07-ppx-bin-prot
5051 (name "ocaml4.07-ppx-bin-prot")
5056 (url "https://github.com/janestreet/ppx_bin_prot")
5057 (commit (string-append "v" version))))
5058 (file-name (git-file-name name version))
5061 "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
5062 (build-system dune-build-system)
5064 ;; Cyclic dependency with ocaml-ppx-jane
5067 #:findlib ,ocaml4.07-findlib))
5069 `(("ocaml-base" ,ocaml4.07-base)
5070 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
5071 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5072 ("ocaml-migrate-parsetree"
5073 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5074 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5075 (properties `((upstream-name . "ppx_bin_prot")))
5076 (home-page "https://github.com/janestreet/ppx_bin_prot")
5077 (synopsis "Generation of bin_prot readers and writers from types")
5078 (description "Generation of binary serialization and deserialization
5079 functions from type definitions.")
5080 (license license:asl2.0)))
5082 (define-public ocaml4.07-ppx-jane
5084 (name "ocaml4.07-ppx-jane")
5088 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5089 (version-major+minor version)
5090 "/files/ppx_jane-v" version ".tar.gz"))
5093 "0lgppkw3aixrfnixihrsz2ipafv8fpvkdpy3pw8n0r615gg8x8la"))))
5094 (build-system dune-build-system)
5098 #:findlib ,ocaml4.07-findlib))
5100 `(("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5101 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5102 ("ocaml-ppx-bench" ,ocaml4.07-ppx-bench)
5103 ("ocaml-ppx-bin-prot" ,ocaml4.07-ppx-bin-prot)
5104 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
5105 ("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)
5106 ("ocaml-ppx-fail" ,ocaml4.07-ppx-fail)
5107 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
5108 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5109 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5110 ("ocaml-ppx-let" ,ocaml4.07-ppx-let)
5111 ("ocaml-ppx-optcomp" ,ocaml4.07-ppx-optcomp)
5112 ("ocaml-ppx-optional" ,ocaml4.07-ppx-optional)
5113 ("ocaml-ppx-pipebang" ,ocaml4.07-ppx-pipebang)
5114 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5115 ("ocaml-ppx-sexp-value" ,ocaml4.07-ppx-sexp-value)
5116 ("ocaml-ppx-typerep-conv" ,ocaml4.07-ppx-typerep-conv)
5117 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
5118 ("ocaml-migrate-parsetree"
5119 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5120 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5121 (properties `((upstream-name . "ppx_jane")))
5122 (home-page "https://github.com/janestreet/ppx_jane")
5123 (synopsis "Standard Jane Street ppx rewriters")
5124 (description "This package installs a ppx-jane executable, which is a ppx
5125 driver including all standard Jane Street ppx rewriters.")
5126 (license license:asl2.0)))
5128 (define-public ocaml4.07-splittable-random
5130 (name "ocaml4.07-splittable-random")
5134 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5135 (version-major+minor version)
5136 "/files/splittable_random-v" version ".tar.gz"))
5139 "0l1wbd881mymlnpzlq5q53mmdz3g5d7qjhyc7lfaq1x0iaccn5lc"))))
5140 (build-system dune-build-system)
5142 `(#:ocaml ,ocaml-4.07
5143 #:findlib ,ocaml4.07-findlib))
5145 `(("ocaml-base" ,ocaml4.07-base)
5146 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5147 ("ocaml-migrate-parsetree"
5148 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5149 (properties `((upstream-name . "splittable_random")))
5150 (home-page "https://github.com/janestreet/splittable_random")
5151 (synopsis "PRNG that can be split into independent streams")
5152 (description "This package provides a splittable
5153 @acronym{PRNG,pseudo-random number generator} functions like a PRNG that can
5154 be used as a stream of random values; it can also be split to produce a
5155 second, independent stream of random values.
5157 This library implements a splittable pseudo-random number generator that sacrifices
5158 cryptographic-quality randomness in favor of performance.")
5159 (license license:asl2.0)))
5161 (define-public ocaml4.07-jane-street-headers
5163 (name "ocaml4.07-jane-street-headers")
5167 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5168 (version-major+minor version)
5169 "/files/jane-street-headers-v" version ".tar.gz"))
5172 "0afhzm08l9v883fhpqqh2lmy7az609pxif40bp7x1sk8c0yszqsh"))))
5173 (build-system dune-build-system)
5177 #:findlib ,ocaml4.07-findlib
5178 #:dune ,ocaml4.07-dune))
5179 (home-page "https://github.com/janestreet/jane-street-headers")
5180 (synopsis "Jane Street C header files")
5181 (description "This package provides C header files shared between the
5182 various Jane Street packages.")
5183 (license license:asl2.0)))
5185 (define-public ocaml4.07-configurator
5187 (name "ocaml4.07-configurator")
5191 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5192 (version-major+minor version)
5193 "/files/configurator-v" version ".tar.gz"))
5196 "0kwgi3sh92v4n242dk5hgpwd85zzgnczgbkqi0q0kr6m93zgbf7p"))))
5197 (build-system dune-build-system)
5202 #:findlib ,ocaml4.07-findlib))
5204 `(("ocaml-base" ,ocaml4.07-base)
5205 ("ocaml-stdio" ,ocaml4.07-stdio)))
5206 (home-page "https://github.com/janestreet/configurator")
5207 (synopsis "Helper library for gathering system configuration")
5208 (description "Configurator is a small library that helps writing OCaml
5209 scripts that test features available on the system, in order to generate config.h
5212 Configurator allows one to:
5214 @item test if a C program compiles
5215 @item query pkg-config
5216 @item import #define from OCaml header files
5217 @item generate config.h file
5219 (license license:asl2.0)))
5221 (define-public ocaml4.07-spawn
5223 (name "ocaml4.07-spawn")
5228 (url "https://github.com/janestreet/spawn")
5229 (commit (string-append "v" version))))
5230 (file-name (git-file-name name version))
5233 "1w003k1kw1lmyiqlk58gkxx8rac7dchiqlz6ah7aj7bh49b36ppf"))))
5234 (build-system dune-build-system)
5237 (modify-phases %standard-phases
5238 (add-before 'check 'fix-tests
5240 (substitute* "test/tests.ml"
5241 (("/bin/pwd") (which "pwd"))
5242 (("/bin/echo") (which "echo")))
5245 #:findlib ,ocaml4.07-findlib))
5247 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
5248 (home-page "https://github.com/janestreet/spawn")
5249 (synopsis "Spawning sub-processes")
5251 "Spawn is a small library exposing only one functionality: spawning sub-process.
5253 It has three main goals:
5256 @item provide missing features of Unix.create_process such as providing a
5258 @item provide better errors when a system call fails in the
5259 sub-process. For instance if a command is not found, you get a proper
5260 @code{Unix.Unix_error} exception,
5261 @item improve performances by using vfork when available. It is often
5262 claimed that nowadays fork is as fast as vfork, however in practice
5263 fork takes time proportional to the process memory while vfork is
5264 constant time. In application using a lot of memory, vfork can be
5265 thousands of times faster than fork.
5267 (license license:asl2.0)))
5269 (define-public ocaml4.07-core
5271 (name "ocaml4.07-core")
5276 (url "https://github.com/janestreet/core")
5277 (commit (string-append "v" version))))
5278 (file-name (git-file-name name version))
5281 "0pzl8n09z4f3i7z2wq4cjxfqrr8mj6xcdp7rbg0nxap2zdhjgvrq"))))
5282 (build-system dune-build-system)
5285 #:tests? #f; Require a cyclic dependency: core_extended
5287 #:findlib ,ocaml4.07-findlib))
5289 `(("ocaml-base" ,ocaml4.07-base)
5290 ("ocaml-configurator" ,ocaml4.07-configurator)
5291 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
5292 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5293 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5294 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5295 ("ocaml-spawn" ,ocaml4.07-spawn)
5296 ("ocaml-stdio" ,ocaml4.07-stdio)
5297 ("ocaml-migrate-parsetree"
5298 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5299 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5300 (home-page "https://github.com/janestreet/core")
5301 (synopsis "Alternative to OCaml's standard library")
5302 (description "The Core suite of libraries is an alternative to OCaml's
5303 standard library that was developed by Jane Street.")
5304 ;; Also contains parts of OCaml, relicensed to asl2.0, as permitted
5305 ;; by OCaml's license for consortium members (see THIRD-PARTY.txt).
5306 (license license:asl2.0)))
5308 (define-public ocaml4.07-core-kernel
5310 (name "ocaml4.07-core-kernel")
5315 (url "https://github.com/janestreet/core_kernel")
5316 (commit (string-append "v" version))))
5317 (file-name (git-file-name name version))
5320 "1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
5321 (build-system dune-build-system)
5323 ;; Cyclic dependency with ocaml-core
5326 #:findlib ,ocaml4.07-findlib))
5328 `(("ocaml-base" ,ocaml4.07-base)
5329 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
5330 ("ocaml-configurator" ,ocaml4.07-configurator)
5331 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
5332 ("ocaml-jane-street-headers" ,ocaml4.07-jane-street-headers)
5333 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5334 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5335 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
5336 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5337 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5338 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5339 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5340 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5341 ("ocaml-splittable-random" ,ocaml4.07-splittable-random)
5342 ("ocaml-stdio" ,ocaml4.07-stdio)
5343 ("ocaml-typerep" ,ocaml4.07-typerep)
5344 ("ocaml-variantslib" ,ocaml4.07-variantslib)
5345 ("ocaml-migrate-parsetree"
5346 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5347 (properties `((upstream-name . "core_kernel")))
5348 (home-page "https://github.com/janestreet/core_kernel")
5349 (synopsis "Portable standard library for OCaml")
5350 (description "Core is an alternative to the OCaml standard library.
5352 Core_kernel is the system-independent part of Core. It is aimed for cases when
5353 the full Core is not available, such as in Javascript.")
5355 ;; this package and parts of OCaml, relicensed by janestreet
5360 (define-public ocaml-markup
5362 (name "ocaml-markup")
5364 (home-page "https://github.com/aantron/markup.ml")
5369 (url (string-append home-page ".git"))
5371 (file-name (git-file-name name version))
5374 "13zcrwzjmifniv3bvjbkd2ah8wwa3ld75bxh1d8hrzdvfxzh9szn"))))
5375 (build-system dune-build-system)
5377 `(#:package "markup"))
5379 `(("libev" ,libev)))
5381 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
5382 ("ocaml-uchar" ,ocaml-uchar)
5383 ("ocaml-uutf" ,ocaml-uutf)
5384 ("ocaml-lwt" ,ocaml-lwt)))
5386 `(("ocaml-ounit" ,ocaml-ounit)
5387 ("pkg-config" ,pkg-config)))
5388 (synopsis "Error-recovering functional HTML5 and XML parsers and writers")
5389 (description "Markup.ml provides an HTML parser and an XML parser. The
5390 parsers are wrapped in a simple interface: they are functions that transform
5391 byte streams to parsing signal streams. Streams can be manipulated in various
5392 ways, such as processing by fold, filter, and map, assembly into DOM tree
5393 structures, or serialization back to HTML or XML.
5395 Both parsers are based on their respective standards. The HTML parser, in
5396 particular, is based on the state machines defined in HTML5.
5398 The parsers are error-recovering by default, and accept fragments. This makes
5399 it very easy to get a best-effort parse of some input. The parsers can,
5400 however, be easily configured to be strict, and to accept only full documents.
5402 Apart from this, the parsers are streaming (do not build up a document in
5403 memory), non-blocking (can be used with threading libraries), lazy (do not
5404 consume input unless the signal stream is being read), and process the input in
5405 a single pass. They automatically detect the character encoding of the input
5406 stream, and convert everything to UTF-8.")
5407 (license license:bsd-3)))
5409 (define-public ocaml-tyxml
5411 (name "ocaml-tyxml")
5417 (url "https://github.com/ocsigen/tyxml")
5419 (file-name (git-file-name name version))
5422 "0wv19xipkj8l2sks1h53105ywbjwk7q93fb7b8al4a2g9wr109c0"))))
5423 (build-system dune-build-system)
5425 `(("ocaml-re" ,ocaml-re)
5426 ("ocaml-seq" ,ocaml-seq)
5427 ("ocaml-uutf" ,ocaml-uutf)
5428 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5429 ("ocaml-markup" ,ocaml-markup)))
5431 `(("ocaml-alcotest" ,ocaml-alcotest)))
5432 (arguments `(#:package "tyxml"))
5433 (home-page "https://github.com/ocsigen/tyxml/")
5434 (synopsis "TyXML is a library for building correct HTML and SVG documents")
5435 (description "TyXML provides a set of convenient combinators that uses the
5436 OCaml type system to ensure the validity of the generated documents. TyXML can
5437 be used with any representation of HTML and SVG: the textual one, provided
5438 directly by this package, or DOM trees (@code{js_of_ocaml-tyxml}) virtual DOM
5439 (@code{virtual-dom}) and reactive or replicated trees (@code{eliom}). You can
5440 also create your own representation and use it to instantiate a new set of
5442 (license license:lgpl2.1)))
5444 (define-public ocaml-bisect-ppx
5446 (name "ocaml-bisect-ppx")
5452 (url "https://github.com/aantron/bisect_ppx")
5454 (file-name (git-file-name name version))
5457 "0900vli5kw7s5kdam0n4cqsfsfqb7mdb3azn3i55595gilg1vyn8"))))
5458 (build-system dune-build-system)
5460 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5461 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5462 ("ocaml-ounit" ,ocaml-ounit)))
5465 (modify-phases %standard-phases
5466 (add-before 'build 'fix-deprecated
5468 ;; Fixed upstream in 22dd1ad9a0c9629f60599c22d82c6488394d6d32, but
5469 ;; not in a release yet.
5470 (substitute* "src/ppx/instrument.ml"
5471 (("module Ast = Ast_405")
5472 "module Ast = Migrate_parsetree.Ast_405
5473 module Ast_405 = Ast"))
5475 (home-page "https://github.com/aantron/bisect_ppx")
5476 (synopsis "Code coverage for OCaml")
5477 (description "Bisect_ppx helps you test thoroughly. It is a small
5478 preprocessor that inserts instrumentation at places in your code, such as
5479 if-then-else and match expressions. After you run tests, Bisect_ppx gives a
5480 nice HTML report showing which places were visited and which were missed.
5482 Usage is simple - add package bisect_ppx when building tests, run your tests,
5483 then run the Bisect_ppx report tool on the generated visitation files.")
5484 (license license:mpl2.0)))
5486 (define-public ocaml4.07-odoc
5488 (name "ocaml4.07-odoc")
5494 (url "https://github.com/ocaml/odoc")
5496 (file-name (git-file-name name version))
5498 (base32 "0rvhx139jx6wmlfz355mja6mk03x4swq1xxvk5ky6jzhalq3cf5i"))))
5499 (build-system dune-build-system)
5501 `(#:ocaml ,ocaml-4.07
5502 #:findlib ,ocaml4.07-findlib
5503 #:dune ,ocaml4.07-dune))
5505 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))
5506 ("ocaml-markup" ,(package-with-ocaml4.07 ocaml-markup))
5507 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5508 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
5509 ("ocaml-uutf" ,(package-with-ocaml4.07 ocaml-uutf))))
5511 `(("ocaml-astring" ,(package-with-ocaml4.07 ocaml-astring))
5512 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
5513 ("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
5514 ("ocaml-fpath" ,(package-with-ocaml4.07 ocaml-fpath))
5515 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
5516 ("ocaml-tyxml" ,(package-with-ocaml4.07 ocaml-tyxml))
5517 ("ocaml-bisect-ppx" ,(package-with-ocaml4.07 ocaml-bisect-ppx))))
5518 (home-page "https://github.com/ocaml/odoc")
5519 (synopsis "OCaml documentation generator")
5520 (description "Odoc is a documentation generator for OCaml. It reads
5521 @emph{doc comments}, delimited with @code{(** ... *)}, and outputs
5524 Text inside doc comments is marked up in ocamldoc syntax. Odoc's main
5525 advantage over ocamldoc is an accurate cross-referencer, which handles the
5526 complexity of the OCaml module system.")
5527 (license license:isc)))
5529 (define-public ocaml4.07-fftw3
5531 (name "ocaml4.07-fftw3")
5537 (url "https://github.com/Chris00/fftw-ocaml")
5539 (file-name (git-file-name name version))
5542 "0l66yagjkwdcib6q55wd8wiap50vi23qiahkghlvm28z7nvbclfk"))))
5543 (build-system dune-build-system)
5546 #:test-target "tests"
5548 #:findlib ,ocaml4.07-findlib
5549 #:dune ,ocaml4.07-dune))
5554 `(("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
5555 ("ocaml-lacaml" ,ocaml4.07-lacaml)))
5557 "https://github.com/Chris00/fftw-ocaml")
5559 "Bindings to FFTW3")
5561 "Bindings providing OCaml support for the seminal Fast Fourier Transform
5563 (license license:lgpl2.1))) ; with static linking exception.
5565 (define-public ocaml4.07-lacaml
5567 (name "ocaml4.07-lacaml")
5573 (url "https://github.com/mmottl/lacaml")
5575 (file-name (git-file-name name version))
5578 "180yb79a3qgx067qcpm50q12hrimjygf06rgkzbish9d1zfm670c"))))
5579 (build-system dune-build-system)
5581 `(#:tests? #f ; No test target.
5583 #:findlib ,ocaml4.07-findlib
5584 #:dune ,ocaml4.07-dune))
5586 `(("openblas" ,openblas)
5588 ("ocaml-base" ,ocaml4.07-base)
5589 ("ocaml-stdio" ,ocaml4.07-stdio)))
5590 (home-page "https://mmottl.github.io/lacaml/")
5592 "OCaml-bindings to BLAS and LAPACK")
5594 "Lacaml interfaces the BLAS-library (Basic Linear Algebra Subroutines) and
5595 LAPACK-library (Linear Algebra routines). It also contains many additional
5596 convenience functions for vectors and matrices.")
5597 (license license:lgpl2.1)))
5599 (define-public ocaml-cairo2
5601 (name "ocaml-cairo2")
5606 (url "https://github.com/Chris00/ocaml-cairo")
5608 (file-name (git-file-name name version))
5611 "0wzysis9fa850s68qh8vrvqc6svgllhwra3kzll2ibv0wmdqrich"))))
5612 (build-system dune-build-system)
5614 `(#:test-target "tests"))
5618 ("lablgtk" ,lablgtk)))
5620 `(("pkg-config" ,pkg-config)))
5621 (home-page "https://github.com/Chris00/ocaml-cairo")
5622 (synopsis "Binding to Cairo, a 2D Vector Graphics Library")
5623 (description "Ocaml-cairo2 is a binding to Cairo, a 2D graphics library
5624 with support for multiple output devices. Currently supported output targets
5625 include the X Window System, Quartz, Win32, image buffers, PostScript, PDF,
5626 and SVG file output.")
5627 (license license:lgpl3+)))
5629 (define-public lablgtk3
5632 (version "3.0.beta8")
5636 (url "https://github.com/garrigue/lablgtk")
5638 (file-name (git-file-name name version))
5641 "08pgwnia240i2rw1rbgiahg673kwa7b6bvhsg3z4b47xr5sh9pvz"))))
5642 (build-system dune-build-system)
5647 (modify-phases %standard-phases
5648 (add-before 'build 'make-writable
5650 (for-each (lambda (file)
5652 (find-files "." "."))
5655 `(("ocaml-cairo2" ,ocaml-cairo2)))
5657 `(("camlp5" ,camlp5)
5659 ("gtksourceview-3" ,gtksourceview-3)
5660 ("gtkspell3" ,gtkspell3)))
5662 `(("pkg-config" ,pkg-config)))
5663 (home-page "https://github.com/garrigue/lablgtk")
5664 (synopsis "OCaml interface to GTK+3")
5665 (description "LablGtk is an OCaml interface to GTK+ 1.2, 2.x and 3.x. It
5666 provides a strongly-typed object-oriented interface that is compatible with the
5667 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
5668 also provides bindings to gdk-pixbuf, the GLArea widget (in combination with
5669 LablGL), gnomecanvas, gnomeui, gtksourceview, gtkspell, libglade (and it can
5670 generate OCaml code from .glade files), libpanel, librsvg and quartz.")
5671 ;; Version 2 only, with linking exception.
5672 (license license:lgpl2.0)))