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 "1i0hhkrqi7rqlainlg5pc4hibbx6b5dp3x99gmav8c3sbfvlk9mc"))))
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 fomat.")
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 "1vyga2jllsfsikppxyzljm4isfnnnl8k0rb44h8xaddjzdg1d4m8"))))
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 "12ix5g15bys932hyf9gs637iz76m0ji9075d83jfdmx85q30llgf"))))
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 (build-system gnu-build-system)
867 "doc")) ; 1.9 MiB of documentation
869 `(("ocaml" ,ocaml-4.07)
871 ("ghostscript" ,ghostscript)
872 ("texlive" ,texlive-tiny)
877 `(#:parallel-build? #f
879 #:test-target "selftest"
880 #:tests? #f ; Tests require writing to $HOME.
881 ; If some $HOME is provided, they fail with the message
882 ; "Fatal error: Skipping some tests -- remove me!"
884 (modify-phases %standard-phases
886 (add-before 'install 'prepare-install
887 (lambda* (#:key outputs #:allow-other-keys)
888 (let* ((out (assoc-ref outputs "out"))
889 (bin (string-append out "/bin")))
891 (setenv "HOME" out) ; forces correct INSTALLDIR in Makefile
893 (add-after 'install 'install-fsmonitor
894 (lambda* (#:key outputs #:allow-other-keys)
895 (let* ((out (assoc-ref outputs "out"))
896 (bin (string-append out "/bin")))
897 ;; 'unison-fsmonitor' is used in "unison -repeat watch" mode.
898 (install-file "src/unison-fsmonitor" bin)
900 (add-after 'install 'install-doc
901 (lambda* (#:key outputs #:allow-other-keys)
902 (let ((doc (string-append (assoc-ref outputs "doc")
903 "/share/doc/unison")))
905 ;; Remove an '\n' that prevents the doc to be generated
906 ;; correctly with newer hevea.
907 (substitute* "doc/local.tex"
908 (("----SNIP----.*") "----SNIP----"))
909 ;; This file needs write-permissions, because it's
910 ;; overwritten by 'docs' during documentation generation.
911 (chmod "src/strings.ml" #o600)
912 (invoke "make" "docs"
913 "TEXDIRECTIVES=\\\\draftfalse")
914 (for-each (lambda (f)
915 (install-file f doc))
917 (string-append "doc/unison-manual." ext))
918 ;; Install only html documentation,
919 ;; since the build is currently
920 ;; non-reproducible with the ps, pdf,
922 '(;; "ps" "pdf" "dvi"
925 (home-page "https://www.cis.upenn.edu/~bcpierce/unison/")
926 (synopsis "File synchronizer")
928 "Unison is a file-synchronization tool. It allows two replicas of
929 a collection of files and directories to be stored on different hosts
930 (or different disks on the same host), modified separately, and then
931 brought up to date by propagating the changes in each replica
933 (license license:gpl3+)))
935 (define-public ocaml-findlib
937 (name "ocaml-findlib")
941 (uri (string-append "http://download.camlcity.org/download/"
942 "findlib" "-" version ".tar.gz"))
945 "00s3sfb02pnjmkax25pcnljcnhcggiliccfz69a72ic7gsjwz1cf"))))
946 (build-system gnu-build-system)
951 `(#:tests? #f ; no test suite
953 #:make-flags (list "all" "opt")
954 #:phases (modify-phases %standard-phases
957 (lambda* (#:key inputs outputs #:allow-other-keys)
958 (let ((out (assoc-ref outputs "out")))
961 "-bindir" (string-append out "/bin")
962 "-config" (string-append out "/etc/ocamfind.conf")
963 "-mandir" (string-append out "/share/man")
964 "-sitelib" (string-append out "/lib/ocaml/site-lib")
967 (lambda* (#:key outputs #:allow-other-keys)
968 (let ((out (assoc-ref outputs "out")))
969 (invoke "make" "install"
970 (string-append "OCAML_CORE_STDLIB="
971 out "/lib/ocaml/site-lib"))))))))
972 (home-page "http://projects.camlcity.org/projects/findlib.html")
973 (synopsis "Management tool for OCaml libraries")
975 "The \"findlib\" library provides a scheme to manage reusable software
976 components (packages), and includes tools that support this scheme. Packages
977 are collections of OCaml modules for which metainformation can be stored. The
978 packages are kept in the file system hierarchy, but with strict directory
979 structure. The library contains functions to look the directory up that
980 stores a package, to query metainformation about a package, and to retrieve
981 dependency information about multiple packages. There is also a tool that
982 allows the user to enter queries on the command-line. In order to simplify
983 compilation and linkage, there are new frontends of the various OCaml
984 compilers that can directly deal with packages.")
985 (license license:x11)))
987 (define-public ocaml4.07-findlib
989 (inherit ocaml-findlib)
990 (name "ocaml4.07-findlib")
993 ("ocaml" ,ocaml-4.07)))))
995 ;; note that some tests may hang for no obvious reason.
996 (define-public ocaml-ounit
1002 (uri (ocaml-forge-uri "ounit" version 1749))
1005 "03ifp9hjcxg4m5j190iy373jcn4039d3vy10kmd8p4lfciwzwc1f"))))
1006 (build-system ocaml-build-system)
1008 `(("libxml2" ,libxml2) ; for xmllint
1009 ("ocamlbuild" ,ocamlbuild)))
1012 (modify-phases %standard-phases
1013 (delete 'check)))) ; tests are run during build
1014 (home-page "http://ounit.forge.ocamlcore.org")
1015 (synopsis "Unit testing framework for OCaml")
1016 (description "Unit testing framework for OCaml. It is similar to JUnit and
1017 other XUnit testing frameworks.")
1018 (license license:expat)))
1020 (define-public camlzip
1026 (uri (ocaml-forge-uri name version 1616))
1029 "0m6gyjw46w3qnhxfsyqyag42znl5lwargks7w7rfchr9jzwpff68"))))
1030 (build-system ocaml-build-system)
1035 (modify-phases %standard-phases
1037 (add-after 'install 'install-camlzip
1038 (lambda* (#:key outputs #:allow-other-keys)
1039 (let* ((out (assoc-ref outputs "out"))
1040 (dir (string-append out "/lib/ocaml/site-lib/camlzip")))
1042 (call-with-output-file (string-append dir "/META")
1044 (format port "version=\"1.06\"\n")
1045 (format port "requires=\"unix\"\n")
1046 (format port "archive(byte)=\"zip.cma\"\n")
1047 (format port "archive(native)=\"zip.cmxa\"\n")
1048 (format port "archive(native,plugin)=\"zip.cmxs\"\n")
1049 (format port "directory=\"../zip\"\n")))))))
1050 #:install-target "install-findlib"
1052 (list "all" "allopt"
1053 (string-append "INSTALLDIR=" (assoc-ref %outputs "out")
1055 (home-page "https://github.com/xavierleroy/camlzip")
1056 (synopsis "Provides easy access to compressed files")
1057 (description "Provides easy access to compressed files in ZIP, GZIP and
1058 JAR format. It provides functions for reading from and writing to compressed
1059 files in these formats.")
1060 (license license:lgpl2.1+)))
1062 (define-public ocamlmod
1068 (uri (ocaml-forge-uri name version 1702))
1071 "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa"))))
1072 (build-system ocaml-build-system)
1074 `(("ounit" ,ocaml-ounit)
1075 ("ocamlbuild" ,ocamlbuild)))
1078 (modify-phases %standard-phases
1079 ;; Tests are done during build.
1081 (home-page "https://forge.ocamlcore.org/projects/ocamlmod")
1082 (synopsis "Generate modules from OCaml source files")
1083 (description "Generate modules from OCaml source files.")
1084 (license license:lgpl2.1+))) ; with an exception
1086 (define-public ocaml-zarith
1088 (name "ocaml-zarith")
1093 (url "https://github.com/ocaml/Zarith")
1094 (commit (string-append "release-" version))))
1095 (file-name (git-file-name name version))
1098 "0hv5ywz1q2cgn8apfz490clwk5hcynr937g2v8i13x2ax4bnv0lz"))))
1099 (build-system ocaml-build-system)
1105 `(#:tests? #f ; no test target
1107 (modify-phases %standard-phases
1109 (lambda _ (invoke "./configure"))))))
1110 (home-page "https://forge.ocamlcore.org/projects/zarith/")
1111 (synopsis "Implements arbitrary-precision integers")
1112 (description "Implements arithmetic and logical operations over
1113 arbitrary-precision integers. It uses GMP to efficiently implement arithmetic
1114 over big integers. Small integers are represented as Caml unboxed integers,
1115 for speed and space economy.")
1116 (license license:lgpl2.1+))) ; with an exception
1118 (define-public ocaml-frontc
1120 (name "ocaml-frontc")
1125 (url "https://github.com/BinaryAnalysisPlatform/FrontC")
1126 (commit (string-append
1127 "V_" (string-join (string-split version #\.) "_")))))
1128 (file-name (git-file-name name version))
1131 "0k7jk9hkglnkk27s62xl493jyqc017gyvwqb1lyc0ywbb001s102"))))
1132 (build-system ocaml-build-system)
1135 (modify-phases %standard-phases
1137 (add-after 'install 'install-meta
1138 (lambda* (#:key outputs #:allow-other-keys)
1139 (let ((out (assoc-ref outputs "out")))
1140 (with-output-to-file
1141 (string-append out "/lib/ocaml/frontc/META")
1145 "description = \"Parser for the C language\"
1146 version = \"" ,version "\"
1148 archive(byte) = \"frontc.cma\"
1149 archive(native) = \"frontc.cmxa\""))))
1150 (symlink (string-append out "/lib/ocaml/frontc")
1151 (string-append out "/lib/ocaml/FrontC"))))))
1152 #:make-flags (list (string-append "PREFIX="
1153 (assoc-ref %outputs "out"))
1154 "OCAML_SITE=$(LIB_DIR)/ocaml/")))
1155 (properties `((upstream-name . "FrontC")))
1156 (home-page "https://www.irit.fr/FrontC")
1157 (synopsis "C parser and lexer library")
1158 (description "FrontC is an OCAML library providing a C parser and lexer.
1159 The result is a syntactic tree easy to process with usual OCAML tree management.
1160 It provides support for ANSI C syntax, old-C K&R style syntax and the standard
1161 GNU CC attributes. It provides also a C pretty printer as an example of use.")
1162 (license license:lgpl2.1)))
1164 (define-public ocaml-qcheck
1166 (name "ocaml-qcheck")
1172 (url "https://github.com/c-cube/qcheck")
1174 (file-name (git-file-name name version))
1176 (base32 "1llnfynhlndwyjig7wrayjnds2b3mggp5lw20dwxhn2i2lkkb22m"))))
1177 (build-system dune-build-system)
1181 (modify-phases %standard-phases
1182 (add-before 'build 'fix-deprecated
1184 (substitute* "src/core/QCheck.ml"
1185 (("Pervasives.compare") "compare"))
1188 `(("ocaml-alcotest" ,ocaml-alcotest)
1189 ("ocaml-ounit" ,ocaml-ounit)))
1191 `(("ocamlbuild" ,ocamlbuild)))
1192 (home-page "https://github.com/c-cube/qcheck")
1193 (synopsis "QuickCheck inspired property-based testing for OCaml")
1194 (description "QuickCheck inspired property-based testing for OCaml. This
1195 module checks invariants (properties of some types) over randomly
1196 generated instances of the type. It provides combinators for generating
1197 instances and printing them.")
1198 (license license:lgpl3+)))
1200 (define-public ocaml-qtest
1202 (name "ocaml-qtest")
1207 (url "https://github.com/vincent-hugot/qtest/")
1208 (commit (string-append "v" version))))
1209 (file-name (git-file-name name version))
1212 "0gddzan4vzs0vklsxhirdjrvx3rp7hhh2yr20vi13nq8rwkn9w29"))))
1213 (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-migrate-parsetree
1293 (name "ocaml-migrate-parsetree")
1295 (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
1300 (url (string-append home-page ".git"))
1301 (commit (string-append "v" version))))
1302 (file-name (git-file-name name version))
1305 "0sv1p4615l8gpbah4ya2c40yr6fbvahvv3ks7zhrsgcwcq2ljyr2"))))
1306 (build-system dune-build-system)
1310 `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
1311 ("ocamlbuild" ,ocamlbuild)
1312 ("ocaml-result" ,ocaml-result)))
1313 (properties `((upstream-name . "ocaml-migrate-parsetree")))
1314 (synopsis "OCaml parsetree converter")
1315 (description "This library converts between parsetrees of different OCaml
1316 versions. For each version, there is a snapshot of the parsetree and conversion
1317 functions to the next and/or previous version.")
1318 (license license:lgpl2.1+)))
1320 (define-public ocaml-ppx-tools-versioned
1322 (name "ocaml-ppx-tools-versioned")
1327 (url "https://github.com/ocaml-ppx/ppx_tools_versioned")
1329 (file-name (git-file-name name version))
1332 "1hcmpnw26zf70a71r3d2c2c0mn8q084gdn1r36ynng6fv9hq6j0y"))))
1333 (build-system dune-build-system)
1335 `(#:test-target "."))
1337 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
1338 (properties `((upstream-name . "ppx_tools_versioned")))
1339 (home-page "https://github.com/let-def/ppx_tools_versioned")
1340 (synopsis "Variant of ppx_tools")
1341 (description "This package is a variant of ppx_tools based on
1342 ocaml-migrate-parsetree")
1343 (license license:expat)))
1345 (define-public ocaml-bitstring
1347 (name "ocaml-bitstring")
1351 (uri (string-append "https://bitbucket.org/thanatonauts/bitstring/"
1352 "get/v" version ".tar.gz"))
1353 (file-name (string-append name "-" version ".tar.gz"))
1356 "15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps"))))
1357 (build-system dune-build-system)
1360 ("autoconf" ,autoconf)
1361 ("automake" ,automake)))
1363 `(("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
1365 `(#:tests? #f; Tests fail to build
1367 (home-page "https://github.com/xguerin/bitstring")
1368 (synopsis "Bitstrings and bitstring matching for OCaml")
1369 (description "Adds Erlang-style bitstrings and matching over bitstrings as
1370 a syntax extension and library for OCaml. You can use this module to both parse
1371 and generate binary formats, files and protocols. Bitstring handling is added
1372 as primitives to the language, making it exceptionally simple to use and very
1374 (license license:isc)))
1376 (define-public ocaml-result
1378 (name "ocaml-result")
1383 (url "https://github.com/janestreet/result")
1385 (file-name (git-file-name name version))
1388 "0hir97k9i72nfkm6kncxnqpyk400wlsxysbldgcvk0fd9pjnsc3p"))))
1389 (build-system dune-build-system)
1391 `(#:test-target "."))
1392 (home-page "https://github.com/janestreet/result")
1393 (synopsis "Compatibility Result module")
1394 (description "Uses the new result type defined in OCaml >= 4.03 while
1395 staying compatible with older version of OCaml should use the Result module
1396 defined in this library.")
1397 (license license:bsd-3)))
1399 (define-public ocaml-topkg
1401 (name "ocaml-topkg")
1405 (uri (string-append "http://erratique.ch/software/topkg/releases/"
1406 "topkg-" version ".tbz"))
1409 "1df61vw6v5bg2mys045682ggv058yqkqb67w7r2gz85crs04d5fw"))))
1410 (build-system ocaml-build-system)
1413 ("ocamlbuild" ,ocamlbuild)))
1415 `(("result" ,ocaml-result)))
1418 #:build-flags '("build")
1420 (modify-phases %standard-phases
1421 (delete 'configure))))
1422 (home-page "http://erratique.ch/software/topkg")
1423 (synopsis "Transitory OCaml software packager")
1424 (description "Topkg is a packager for distributing OCaml software. It
1425 provides an API to describe the files a package installs in a given build
1426 configuration and to specify information about the package's distribution,
1427 creation and publication procedures.")
1428 (license license:isc)))
1430 (define-public ocaml-rresult
1432 (name "ocaml-rresult")
1436 (uri (string-append "http://erratique.ch/software/rresult/releases/"
1437 "rresult-" version ".tbz"))
1440 "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm"))))
1441 (build-system ocaml-build-system)
1444 ("ocamlbuild" ,ocamlbuild)))
1446 `(("topkg" ,ocaml-topkg)))
1449 #:build-flags '("build")
1451 (modify-phases %standard-phases
1452 (delete 'configure))))
1453 (home-page "http://erratique.ch/software/rresult")
1454 (synopsis "Result value combinators for OCaml")
1455 (description "Handle computation results and errors in an explicit and
1456 declarative manner, without resorting to exceptions. It defines combinators
1457 to operate on the result type available from OCaml 4.03 in the standard
1459 (license license:isc)))
1461 (define-public ocaml4.07-sqlite3
1463 (name "ocaml4.07-sqlite3")
1469 (url "https://github.com/mmottl/sqlite3-ocaml")
1471 (file-name (git-file-name name version))
1474 "1536agm5fgcqysszhpd3kmw7lkc5n5ni7gmlyglrbvmnmrwf3av2"))))
1475 (build-system dune-build-system)
1477 `(#:ocaml ,ocaml-4.07
1478 #:findlib ,ocaml4.07-findlib))
1480 `(("ocaml-base" ,ocaml4.07-base)
1481 ("ocaml-stdio" ,ocaml4.07-stdio)
1482 ("pkg-config" ,pkg-config)))
1484 `(("sqlite" ,sqlite)))
1485 (home-page "https://mmottl.github.io/sqlite3-ocaml")
1486 (synopsis "SQLite3 Bindings for OCaml")
1488 "SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client
1489 API. Sqlite3 is a self-contained, serverless, zero-configuration,
1490 transactional SQL database engine with outstanding performance for many use
1491 cases. These bindings are written in a way that enables a friendly
1492 coexistence with the old (version 2) SQLite and its OCaml wrapper
1493 @code{ocaml-sqlite}.")
1494 (license license:expat)))
1496 (define-public ocaml-csv
1504 (url "https://github.com/Chris00/ocaml-csv")
1506 (file-name (git-file-name name version))
1509 "19k48517s8y1zb91a1312a0n94cbh5i5dixndcrqjmf87kkz61zx"))))
1510 (build-system dune-build-system)
1514 (home-page "https://github.com/Chris00/ocaml-csv")
1515 (synopsis "Pure OCaml functions to read and write CSV")
1517 "@dfn{Comma separated values} (CSV) is a simple tabular format supported
1518 by all major spreadsheets. This library implements pure OCaml functions to
1519 read and write files in this format as well as some convenience functions to
1520 manipulate such data.")
1521 ;; This is LGPLv2.1 with an exception that allows packages statically-linked
1522 ;; against the library to be released under any terms.
1523 (license license:lgpl2.1)))
1525 (define-public ocaml-mtime
1527 (name "ocaml-mtime")
1531 (uri (string-append "http://erratique.ch/software/mtime/releases/"
1532 "mtime-" version ".tbz"))
1535 "1qb4ljwirrc3g8brh97s76rjky2cpmy7zm87y7iqd6pxix52ydk3"))))
1536 (build-system ocaml-build-system)
1538 `(("ocamlbuild" ,ocamlbuild)
1541 `(("topkg" ,ocaml-topkg)))
1544 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1546 (modify-phases %standard-phases
1547 (delete 'configure))))
1548 (home-page "http://erratique.ch/software/mtime")
1549 (synopsis "Monotonic wall-clock time for OCaml")
1550 (description "Access monotonic wall-clock time. It measures time
1551 spans without being subject to operating system calendar time adjustments.")
1552 (license license:isc)))
1554 (define-public ocaml-cmdliner
1556 (name "ocaml-cmdliner")
1560 (uri (string-append "http://erratique.ch/software/cmdliner/releases/"
1561 "cmdliner-" version ".tbz"))
1564 "0g3w4hvc1cx9x2yp5aqn6m2rl8lf9x1dn754hfq8m1sc1102lxna"))))
1565 (build-system ocaml-build-system)
1567 `(("ocaml-result" ,ocaml-result)))
1569 `(("ocamlbuild" ,ocamlbuild)))
1572 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
1573 "/lib/ocaml/site-lib/cmdliner"))
1575 (modify-phases %standard-phases
1577 (add-before 'build 'fix-source-file-order
1579 (substitute* "build.ml"
1580 (("Sys.readdir dir")
1581 "let a = Sys.readdir dir in Array.sort String.compare a; a"))
1583 (home-page "http://erratique.ch/software/cmdliner")
1584 (synopsis "Declarative definition of command line interfaces for OCaml")
1585 (description "Cmdliner is a module for the declarative definition of command
1586 line interfaces. It provides a simple and compositional mechanism to convert
1587 command line arguments to OCaml values and pass them to your functions. The
1588 module automatically handles syntax errors, help messages and UNIX man page
1589 generation. It supports programs with single or multiple commands and respects
1590 most of the POSIX and GNU conventions.")
1591 (license license:bsd-3)))
1593 (define-public ocaml-fmt
1600 (uri (string-append "http://erratique.ch/software/fmt/releases/fmt-"
1603 "1zj9azcxcn6skmb69ykgmi9z8c50yskwg03wqgh87lypgjdcz060"))))
1604 (build-system ocaml-build-system)
1606 `(("ocamlbuild" ,ocamlbuild)
1608 ("topkg" ,ocaml-topkg)))
1610 `(("result" ,ocaml-result)
1611 ("ocaml-uchar" ,ocaml-uchar)
1612 ("cmdliner" ,ocaml-cmdliner)))
1613 (arguments `(#:tests? #f
1614 #:build-flags (list "build" "--with-base-unix" "true"
1615 "--with-cmdliner" "true")
1617 (modify-phases %standard-phases
1618 (delete 'configure))))
1619 (home-page "http://erratique.ch/software/fmt")
1620 (synopsis "OCaml Format pretty-printer combinators")
1621 (description "Fmt exposes combinators to devise Format pretty-printing
1623 (license license:isc)))
1625 (define-public ocaml-astring
1627 (name "ocaml-astring")
1632 (uri (string-append "http://erratique.ch/software/astring/releases/astring-"
1635 "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0"))))
1636 (build-system ocaml-build-system)
1638 `(("ocamlbuild" ,ocamlbuild)
1640 ("topkg" ,ocaml-topkg)))
1643 #:build-flags (list "build")
1645 (modify-phases %standard-phases
1646 (delete 'configure))))
1647 (home-page "http://erratique.ch/software/astring")
1648 (synopsis "Alternative String module for OCaml")
1649 (description "Astring exposes an alternative String module for OCaml. This
1650 module balances minimality and expressiveness for basic, index-free, string
1651 processing and provides types and functions for substrings, string sets and
1652 string maps. The String module exposed by Astring has exception safe functions,
1653 removes deprecated and rarely used functions, alters some signatures and names,
1654 adds a few missing functions and fully exploits OCaml's newfound string
1656 (license license:isc)))
1658 (define-public ocaml-alcotest
1660 (name "ocaml-alcotest")
1664 (uri (string-append "https://github.com/mirage/alcotest/releases/"
1665 "download/" version "/alcotest-" version ".tbz"))
1668 "0szwjxvaahgynsx0apj81jxj3ki6yz4is9mh2wkcbx66qy7n6fvb"))))
1669 (build-system dune-build-system)
1671 `(#:package "alcotest"
1674 `(("ocamlbuild" ,ocamlbuild)))
1676 `(("ocaml-astring" ,ocaml-astring)
1677 ("ocaml-cmdliner" ,ocaml-cmdliner)
1678 ("ocaml-fmt" ,ocaml-fmt)
1679 ("ocaml-result" ,ocaml-result)
1680 ("ocaml-uuidm" ,ocaml-uuidm)))
1681 (home-page "https://github.com/mirage/alcotest")
1682 (synopsis "Lightweight OCaml test framework")
1683 (description "Alcotest exposes simple interface to perform unit tests. It
1684 exposes a simple TESTABLE module type, a check function to assert test
1685 predicates and a run function to perform a list of unit -> unit test callbacks.
1686 Alcotest provides a quiet and colorful output where only faulty runs are fully
1687 displayed at the end of the run (with the full logs ready to inspect), with a
1688 simple (yet expressive) query language to select the tests to run.")
1689 (license license:isc)))
1691 (define-public ocaml4.07-ppx-tools
1693 (name "ocaml4.07-ppx-tools")
1694 (version "5.1+4.06.0")
1699 (url "https://github.com/alainfrisch/ppx_tools")
1701 (file-name (git-file-name name version))
1703 "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"))))
1704 (build-system ocaml-build-system)
1706 `(#:phases (modify-phases %standard-phases (delete 'configure))
1709 #:findlib ,ocaml4.07-findlib))
1710 (properties `((upstream-name . "ppx_tools")))
1711 (home-page "https://github.com/alainfrisch/ppx_tools")
1712 (synopsis "Tools for authors of ppx rewriters and other syntactic tools")
1713 (description "Tools for authors of ppx rewriters and other syntactic tools.")
1714 (license license:expat)))
1716 (define-public ocaml-react
1718 (name "ocaml-react")
1723 (uri (string-append "http://erratique.ch/software/react/releases/react-"
1726 "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v"))))
1727 (build-system ocaml-build-system)
1729 `(("ocamlbuild" ,ocamlbuild)
1731 ("ocaml-topkg" ,ocaml-topkg)))
1734 #:build-flags (list "build")
1736 (modify-phases %standard-phases
1737 (delete 'configure))))
1738 (home-page "http://erratique.ch/software/react")
1739 (synopsis "Declarative events and signals for OCaml")
1740 (description "React is an OCaml module for functional reactive programming
1741 (FRP). It provides support to program with time varying values: declarative
1742 events and signals. React doesn't define any primitive event or signal, it
1743 lets the client choose the concrete timeline.")
1744 (license license:bsd-3)))
1746 (define-public ocaml-ssl
1754 (url "https://github.com/savonet/ocaml-ssl")
1756 (file-name (git-file-name name version))
1758 "04h02rvzrwp886n5hsx84rnc9b150iggy38g5v1x1rwz3pkdnmf0"))))
1759 (build-system dune-build-system)
1761 `(#:test-target "."))
1763 `(("autoconf" ,autoconf)
1764 ("automake" ,automake)
1766 (propagated-inputs `(("openssl" ,openssl)))
1767 (home-page "https://github.com/savonet/ocaml-ssl/")
1768 (synopsis "OCaml bindings for OpenSSL")
1770 "OCaml-SSL is a set of bindings for OpenSSL, a library for communicating
1771 through Transport Layer Security (@dfn{TLS}) encrypted connections.")
1772 (license license:lgpl2.1)))
1774 (define-public ocaml-mmap
1781 (url "https://github.com/mirage/mmap")
1782 (commit (string-append "v" version))))
1783 (file-name (git-file-name name version))
1786 "1jaismy5d1bhbbanysmr2k79px0yv6ya265dri3949nha1l23i60"))))
1787 (build-system dune-build-system)
1788 (home-page "https://github.com/mirage/mmap")
1789 (synopsis "File mapping for OCaml")
1790 (description "This project provides a @command{Mmap.map_file} function
1791 for mapping files in memory. This function is the same as the
1792 @command{Unix.map_file} function added in OCaml >= 4.06.")
1793 (license (list license:qpl license:lgpl2.0))))
1795 (define-public ocaml-lwt
1803 (url "https://github.com/ocsigen/lwt")
1805 (file-name (git-file-name name version))
1807 "1nl7rdnwfdhwcsm5zpay1nr9y5cbapd9x1qzily7zk9ab4v52m8g"))))
1808 (build-system dune-build-system)
1812 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
1813 ("ocaml-cppo" ,ocaml-cppo)
1814 ("pkg-config" ,pkg-config)))
1819 `(("ocaml-mmap" ,ocaml-mmap)
1820 ("ocaml-ocplib-endian" ,ocaml-ocplib-endian)
1821 ("ocaml-result" ,ocaml-result)
1822 ("ocaml-seq" ,ocaml-seq)))
1823 (home-page "https://github.com/ocsigen/lwt")
1824 (synopsis "Cooperative threads and I/O in monadic style")
1825 (description "Lwt provides typed, composable cooperative threads. These
1826 make it easy to run normally-blocking I/O operations concurrently in a single
1827 process. Also, in many cases, Lwt threads can interact without the need for
1828 locks or other synchronization primitives.")
1829 (license license:lgpl2.1)))
1831 (define-public ocaml-lwt-react
1834 (name "ocaml-lwt-react")
1839 (url "https://github.com/ocsigen/lwt")
1840 ;; Version from opam
1842 (file-name (git-file-name name version))
1845 "0f7036srqz7zmnz0n164734smgkrqz78r1i35cg30x31kkr3pnn4"))))
1847 `(#:package "lwt_react"))
1848 (properties `((upstream-name . "lwt_react")))
1850 `(("ocaml-lwt" ,ocaml-lwt)
1851 ("ocaml-react" ,ocaml-react)))))
1853 (define-public ocaml-lwt-log
1855 (name "ocaml-lwt-log")
1860 (url "https://github.com/aantron/lwt_log")
1862 (file-name (git-file-name name version))
1865 "1n12i1rmn9cjn6p8yr6qn5dwbrwvym7ckr7bla04a1xnq8qlcyj7"))))
1866 (build-system dune-build-system)
1868 `(#:tests? #f; require lwt_ppx
1871 `(("lwt" ,ocaml-lwt)))
1872 (properties `((upstream-name . "lwt_log")))
1873 (home-page "https://github.com/aantron/lwt_log")
1874 (synopsis "Logging library")
1875 (description "This package provides a deprecated logging component for
1877 (license license:lgpl2.1)))
1879 (define-public ocaml-logs
1885 (uri (string-append "http://erratique.ch/software/logs/releases/"
1886 "logs-" version ".tbz"))
1889 "1khbn7jqpid83zn8rvyh1x1sirls7zc878zj4fz985m5xlsfy853"))))
1890 (build-system ocaml-build-system)
1893 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1895 (modify-phases %standard-phases
1896 (delete 'configure))))
1898 `(("ocamlbuild" ,ocamlbuild)
1901 `(("fmt" ,ocaml-fmt)
1903 ("mtime" ,ocaml-mtime)
1904 ("result" ,ocaml-result)
1905 ("cmdliner" ,ocaml-cmdliner)
1906 ("topkg" ,ocaml-topkg)))
1907 (home-page "http://erratique.ch/software/logs")
1908 (synopsis "Logging infrastructure for OCaml")
1909 (description "Logs provides a logging infrastructure for OCaml. Logging is
1910 performed on sources whose reporting level can be set independently. Log
1911 message report is decoupled from logging and is handled by a reporter.")
1912 (license license:isc)))
1914 (define-public ocaml-fpath
1916 (name "ocaml-fpath")
1920 (uri (string-append "http://erratique.ch/software/fpath/releases/"
1921 "fpath-" version ".tbz"))
1924 "1hr05d8bpqmqcfdavn4rjk9rxr7v2zl84866f5knjifrm60sxqic"))))
1925 (build-system ocaml-build-system)
1928 #:build-flags (list "build")
1930 (modify-phases %standard-phases
1931 (delete 'configure))))
1933 `(("ocamlbuild" ,ocamlbuild)
1936 `(("topkg" ,ocaml-topkg)
1937 ("astring" ,ocaml-astring)))
1938 (home-page "http://erratique.ch/software/fpath")
1939 (synopsis "File system paths for OCaml")
1940 (description "Fpath is an OCaml module for handling file system paths with
1941 POSIX or Windows conventions. Fpath processes paths without accessing the
1942 file system and is independent from any system library.")
1943 (license license:isc)))
1945 (define-public ocaml-bos
1951 (uri (string-append "http://erratique.ch/software/bos/releases/"
1952 "bos-" version ".tbz"))
1955 "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"))))
1956 (build-system ocaml-build-system)
1959 #:build-flags (list "build")
1961 (modify-phases %standard-phases
1962 (delete 'configure))))
1964 `(("ocamlbuild" ,ocamlbuild)
1967 `(("topkg" ,ocaml-topkg)
1968 ("astring" ,ocaml-astring)
1970 ("fpath" ,ocaml-fpath)
1971 ("logs" ,ocaml-logs)
1972 ("rresult" ,ocaml-rresult)))
1973 (home-page "http://erratique.ch/software/bos")
1974 (synopsis "Basic OS interaction for OCaml")
1975 (description "Bos provides support for basic and robust interaction with
1976 the operating system in OCaml. It has functions to access the process
1977 environment, parse command line arguments, interact with the file system and
1978 run command line programs.")
1979 (license license:isc)))
1981 (define-public ocaml-xmlm
1987 (uri (string-append "http://erratique.ch/software/xmlm/releases/"
1988 "xmlm-" version ".tbz"))
1991 "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n"))))
1992 (build-system ocaml-build-system)
1995 #:build-flags (list "build")
1997 (modify-phases %standard-phases
1998 (delete 'configure))))
2000 `(("ocamlbuild" ,ocamlbuild)
2001 ("ocaml-topkg" ,ocaml-topkg)
2003 (home-page "http://erratique.ch/software/xmlm")
2004 (synopsis "Streaming XML codec for OCaml")
2005 (description "Xmlm is a streaming codec to decode and encode the XML data
2006 format. It can process XML documents without a complete in-memory
2007 representation of the data.")
2008 (license license:isc)))
2010 (define-public ocaml4.07-gen
2012 (name "ocaml4.07-gen")
2017 (url "https://github.com/c-cube/gen")
2019 (file-name (git-file-name name version))
2022 "1h9g508rnj2j8va5nvhamzscp954vrkh0hdf4pn3d10pcfyslfg2"))))
2023 (build-system dune-build-system)
2025 `(#:tests? #f; no tests
2028 #:findlib ,ocaml4.07-findlib))
2030 `(("ocaml-odoc" ,ocaml4.07-odoc)))
2032 `(("ocaml-qtest" ,(package-with-ocaml4.07 ocaml-qtest))
2033 ("ocaml-qcheck" ,(package-with-ocaml4.07 ocaml-qcheck))))
2034 (home-page "https://github.com/c-cube/gen/")
2035 (synopsis "Iterators for OCaml, both restartable and consumable")
2036 (description "Gen implements iterators of OCaml, that are both restartable
2038 (license license:bsd-2)))
2040 (define-public ocaml4.07-sedlex
2042 (name "ocaml4.07-sedlex")
2047 (url "https://github.com/ocaml-community/sedlex")
2048 (commit (string-append "v" version))))
2049 (file-name (git-file-name name version))
2052 "05f6qa8x3vhpdz1fcnpqk37fpnyyq13icqsk2gww5idjnh6kng26"))))
2053 (build-system dune-build-system)
2055 `(#:tests? #f; no tests
2058 (modify-phases %standard-phases
2059 (add-before 'build 'copy-resources
2060 (lambda* (#:key inputs #:allow-other-keys)
2061 (with-directory-excursion "src/generator/data"
2064 (copy-file (assoc-ref inputs file) file))
2065 '("DerivedCoreProperties.txt" "DerivedGeneralCategory.txt"
2068 (add-before 'build 'chmod
2070 (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*"))
2073 #:findlib ,ocaml4.07-findlib))
2075 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
2077 `(("ocaml-gen" ,ocaml4.07-gen)
2078 ("ocaml-ppx-tools-versioned"
2079 ,(package-with-ocaml4.07 ocaml-ppx-tools-versioned))
2080 ("ocaml-uchar" ,(package-with-ocaml4.07 ocaml-uchar))))
2081 ;; These three files are needed by src/generator/data/dune, but would be
2082 ;; downloaded using curl at build time.
2084 `(("DerivedCoreProperties.txt"
2087 (uri "https://www.unicode.org/Public/12.1.0/ucd/DerivedCoreProperties.txt")
2090 "0s6sn1yr9qmb2i6gf8dir2zpsbjv1frdfzy3i2yjylzvf637msx6"))))
2091 ("DerivedGeneralCategory.txt"
2094 (uri "https://www.unicode.org/Public/12.1.0/ucd/extracted/DerivedGeneralCategory.txt")
2097 "1rifzq9ba6c58dn0lrmcb5l5k4ksx3zsdkira3m5p6h4i2wriy3q"))))
2101 (uri "https://www.unicode.org/Public/12.1.0/ucd/PropList.txt")
2104 "0gsb1jpj3mnqbjgbavi4l95gl6g4agq58j82km22fdfg63j3w3fk"))))))
2105 (home-page "https://www.cduce.org/download.html#side")
2106 (synopsis "Lexer generator for Unicode and OCaml")
2107 (description "Lexer generator for Unicode and OCaml.")
2108 (license license:expat)))
2110 (define-public ocaml-uchar
2112 (name "ocaml-uchar")
2117 (uri (string-append "https://github.com/ocaml/uchar/releases/download/v"
2118 version "/uchar-" version ".tbz"))
2120 "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"))))
2121 (build-system ocaml-build-system)
2124 #:build-flags (list "native=true" "native-dynlink=true")
2126 (modify-phases %standard-phases
2127 (delete 'configure))))
2129 `(("ocamlbuild" ,ocamlbuild)
2131 (home-page "https://github.com/ocaml/uchar")
2132 (synopsis "Compatibility library for OCaml's Uchar module")
2133 (description "The uchar package provides a compatibility library for the
2134 `Uchar` module introduced in OCaml 4.03.")
2135 (license license:lgpl2.1)))
2137 (define-public ocaml-uutf
2143 (uri (string-append "http://erratique.ch/software/uutf/releases/"
2144 "uutf-" version ".tbz"))
2147 "1gp96dcggq7s84934vimxh89caaxa77lqiff1yywbwkilkkjcfqj"))))
2148 (build-system ocaml-build-system)
2151 #:build-flags (list "build")
2153 (modify-phases %standard-phases
2154 (delete 'configure))))
2156 `(("ocamlbuild" ,ocamlbuild)
2158 ("topkg" ,ocaml-topkg)))
2160 `(("uchar" ,ocaml-uchar)
2161 ("cmdliner" ,ocaml-cmdliner)))
2162 (home-page "http://erratique.ch/software/uutf")
2163 (synopsis "Non-blocking streaming Unicode codec for OCaml")
2164 (description "Uutf is a non-blocking streaming codec to decode and encode
2165 the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
2166 work character by character without blocking on IO. Decoders perform character
2167 position tracking and support newline normalization.
2169 Functions are also provided to fold over the characters of UTF encoded OCaml
2170 string values and to directly encode characters in OCaml Buffer.t values.")
2171 (license license:isc)))
2173 (define-public ocaml-jsonm
2175 (name "ocaml-jsonm")
2179 (uri (string-append "http://erratique.ch/software/jsonm/releases/"
2180 "jsonm-" version ".tbz"))
2183 "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w"))))
2184 (build-system ocaml-build-system)
2187 #:build-flags (list "build")
2189 (modify-phases %standard-phases
2190 (delete 'configure))))
2192 `(("ocamlbuild" ,ocamlbuild)
2194 ("topkg" ,ocaml-topkg)))
2196 `(("uutf" ,ocaml-uutf)
2197 ("cmdliner" ,ocaml-cmdliner)))
2198 (home-page "http://erratique.ch/software/jsonm")
2199 (synopsis "Non-blocking streaming JSON codec for OCaml")
2200 (description "Jsonm is a non-blocking streaming codec to decode and encode
2201 the JSON data format. It can process JSON text without blocking on IO and
2202 without a complete in-memory representation of the data.")
2203 (license license:isc)))
2205 (define-public ocaml-ocurl
2207 (name "ocaml-ocurl")
2211 (uri (string-append "http://ygrek.org.ua/p/release/ocurl/ocurl-"
2215 "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6"))))
2216 (build-system ocaml-build-system)
2219 (modify-phases %standard-phases
2220 (add-before 'configure 'fix-/bin/sh
2221 (lambda* (#:key inputs #:allow-other-keys)
2222 (substitute* "configure"
2223 (("-/bin/sh") (string-append "-" (which "bash")))))))))
2225 `(("pkg-config" ,pkg-config)))
2226 (inputs `(("curl" ,curl)))
2227 (home-page "http://ocurl.forge.ocamlcore.org/")
2228 (synopsis "OCaml bindings for libcurl")
2229 (description "Client-side URL transfer library, supporting HTTP and a
2230 multitude of other network protocols (FTP/SMTP/RTSP/etc).")
2231 (license license:isc)))
2233 (define-public ocaml-base64
2235 (name "ocaml-base64")
2240 (url "https://github.com/mirage/ocaml-base64")
2241 (commit (string-append "v" version))))
2242 (file-name (git-file-name name version))
2245 "1ilw3zj0w6cq7i4pvr8m2kv5l5f2y9aldmv72drlwwns013b1gwy"))))
2246 (build-system dune-build-system)
2248 `(("ocaml-alcotest" ,ocaml-alcotest)
2249 ("ocaml-bos" ,ocaml-bos)
2250 ("ocaml-rresult" ,ocaml-rresult)))
2251 (home-page "https://github.com/mirage/ocaml-base64")
2252 (synopsis "Base64 encoding for OCaml")
2253 (description "Base64 is a group of similar binary-to-text encoding schemes
2254 that represent binary data in an ASCII string format by translating it into a
2255 radix-64 representation. It is specified in RFC 4648.")
2256 (license license:isc)))
2258 (define-public ocamlify
2265 (uri (string-append "https://download.ocamlcore.org/ocamlify/ocamlify/"
2266 version "/ocamlify-" version ".tar.gz"))
2268 (base32 "1f0fghvlbfryf5h3j4as7vcqrgfjb4c8abl5y0y5h069vs4kp5ii"))))
2269 (build-system ocaml-build-system)
2272 (modify-phases %standard-phases
2273 (add-after 'unpack 'disable-safe-string
2274 ;; Work around ‘Error: This expression has type string but an
2275 ;; expression was expected of type bytes’ since OCaml 4.06.
2277 (setenv "OCAMLPARAM" "safe-string=0,_")
2279 (delete 'check) ; tests are run during the build
2281 (lambda* (#:key outputs #:allow-other-keys)
2282 (invoke "ocaml" "setup.ml" "-configure" "--prefix"
2283 (assoc-ref outputs "out")))))))
2285 `(("ocamlbuild" ,ocamlbuild)))
2286 (home-page "https://forge.ocamlcore.org/projects/ocamlify")
2287 (synopsis "Include files in OCaml code")
2288 (description "OCamlify creates OCaml source code by including
2289 whole files into OCaml string or string list. The code generated can be
2290 compiled as a standard OCaml file. It allows embedding external resources as
2292 (license license:lgpl2.1+))); with the OCaml static compilation exception
2294 (define-public omake
2300 (uri (string-append "http://download.camlcity.org/download/"
2301 "omake-" version ".tar.gz"))
2304 "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz"))
2305 (patches (search-patches "omake-fix-non-determinism.patch"))))
2306 (build-system ocaml-build-system)
2309 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2310 #:tests? #f ; no test target
2312 (modify-phases %standard-phases
2313 (add-before 'configure 'fix-makefile
2314 (lambda* (#:key outputs #:allow-other-keys)
2315 (substitute* "mk/osconfig_unix.mk"
2316 (("CC = cc") "CC = gcc")))))))
2317 (native-inputs `(("hevea" ,hevea)))
2318 (home-page "http://projects.camlcity.org/projects/omake.html")
2319 (synopsis "Build system designed for scalability and portability")
2320 (description "Similar to make utilities you may have used, but it features
2321 many additional enhancements, including:
2324 @item Support for projects spanning several directories or directory hierarchies.
2325 @item Fast, reliable, automated, scriptable dependency analysis using MD5 digests,
2326 with full support for incremental builds.
2327 @item Dependency analysis takes the command lines into account — whenever the
2328 command line used to build a target changes, the target is considered
2330 @item Fully scriptable, includes a library that providing support for standard
2331 tasks in C, C++, OCaml, and LaTeX projects, or a mixture thereof.
2333 (license (list license:lgpl2.1 ; libmojave
2334 license:expat ; OMake scripts
2335 license:gpl2)))) ; OMake itself, with ocaml linking exception
2338 (define-public ocaml-batteries
2340 (name "ocaml-batteries")
2344 (uri (string-append "https://github.com/ocaml-batteries-team/"
2345 "batteries-included/releases/download/v"
2346 version "/batteries-" version ".tar.gz"))
2349 "08ghw87d56h1a6y1nnh3x2wy9xj25jqfk5sp6ma9nsyd37babb0h"))))
2350 (build-system ocaml-build-system)
2352 `(("ocamlbuild" ,ocamlbuild)
2353 ("qtest" ,ocaml-qtest)))
2355 `(("ocaml-num" ,ocaml-num)))
2358 (modify-phases %standard-phases
2359 (delete 'check) ; tests are run by the build phase
2360 (add-before 'build 'fix-nondeterminism
2362 (substitute* "setup.ml"
2363 (("Sys.readdir dirname")
2364 "let a = Sys.readdir dirname in Array.sort String.compare a; a"))
2367 (lambda* (#:key inputs outputs #:allow-other-keys)
2370 (substring str 0 (- (string-length str) 1)))
2372 (find-files "src" ".*.mliv")
2373 (find-files "src" ".*.mlv")
2374 (find-files "src" ".*.mlp")))))
2375 (apply invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2376 "-lflag" "-dllpath-all" files)
2377 (for-each (lambda (file)
2378 (copy-file (string-append "_build/" file) file))
2380 (invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2381 "-lflag" "-dllpath-all" "build/mkconf.byte")
2382 (copy-file "_build/build/mkconf.byte" "build/mkconf.byte")
2383 (invoke "make" "all")
2385 (home-page "http://batteries.forge.ocamlcore.org/")
2386 (synopsis "Development platform for the OCaml programming language")
2387 (description "Define a standard set of libraries which may be expected on
2388 every compliant installation of OCaml and organize these libraries into a
2389 hierarchy of modules.")
2390 (license license:lgpl2.1+)))
2392 (define-public ocaml4.07-pcre
2394 (name "ocaml4.07-pcre")
2399 (url "https://github.com/mmottl/pcre-ocaml")
2401 (file-name (git-file-name name version))
2404 "11sd8g668h48790lamz0riw9jgnfkaif5qdfa0akcndwa6aj07jf"))))
2405 (build-system dune-build-system)
2409 #:findlib ,ocaml4.07-findlib
2410 #:dune ,ocaml4.07-dune))
2412 `(("ocaml-base" ,ocaml4.07-base)
2413 ("pcre:bin" ,pcre "bin")))
2414 (propagated-inputs `(("pcre" ,pcre)))
2415 (home-page "https://mmottl.github.io/pcre-ocaml")
2416 (synopsis "Bindings to the Perl Compatibility Regular Expressions library")
2417 (description "Pcre-ocaml offers library functions for string pattern
2418 matching and substitution, similar to the functionality offered by the Perl
2420 (license license:lgpl2.1+))); with the OCaml link exception
2422 (define-public ocaml4.07-expect
2424 (name "ocaml4.07-expect")
2428 (uri (ocaml-forge-uri name version 1736))
2431 "098qvg9d4yrqzr5ax291y3whrpax0m3sx4gi6is0mblc96r9yqk0"))))
2435 #:findlib ,ocaml4.07-findlib))
2436 (build-system ocaml-build-system)
2438 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))
2439 ("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
2440 ("ocaml-pcre" ,ocaml4.07-pcre)
2441 ("ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
2443 `(("batteries" ,(package-with-ocaml4.07 ocaml-batteries))))
2444 (home-page "https://forge.ocamlcore.org/projects/ocaml-expect/")
2445 (synopsis "Simple implementation of expect")
2446 (description "Help building unitary testing of interactive program. You
2447 can match the question using a regular expression or a timeout.")
2448 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2450 (define-public ocaml-stdlib-shims
2452 (name "ocaml-stdlib-shims")
2457 (url "https://github.com/ocaml/stdlib-shims")
2459 (file-name (git-file-name name version))
2462 "007dwywsr5285z0np6a9nr0h8iqmyzfrlx6s5xaqcwj69zabsrjm"))))
2463 (build-system dune-build-system)
2464 (home-page "https://github.com/ocaml/stdlib-shims")
2465 (synopsis "OCaml stdlib features backport to older OCaml compilers")
2466 (description "This package backports some of the new stdlib features to
2467 older compilers, such as the Stdlib module. This allows projects that require
2468 compatibility with older compiler to use these new features in their code.")
2469 ;; with ocaml-linking exception
2470 (license license:lgpl2.1+)))
2472 (define-public ocaml-fileutils
2474 (name "ocaml-fileutils")
2479 (url "https://github.com/gildor478/ocaml-fileutils")
2480 (commit (string-append "v" version))))
2481 (file-name (git-file-name name version))
2484 "01qf51b8pb7vyfba7y0kb7ajwj1950im25d7f59821zwsibns3d9"))))
2485 (build-system dune-build-system)
2487 `(("ocaml-stdlib-shims" ,ocaml-stdlib-shims)))
2489 `(("ocaml-ounit" ,ocaml-ounit)))
2490 (home-page "http://ocaml-fileutils.forge.ocamlcore.org")
2491 (synopsis "Pure OCaml functions to manipulate real file and filename")
2492 (description "Library to provide pure OCaml functions to manipulate real
2493 file (POSIX like) and filename.")
2494 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2496 (define-public ocaml-oasis
2498 (name "ocaml-oasis")
2502 (uri (ocaml-forge-uri name version 1757))
2505 "0bn13mzfa98dq3y0jwzzndl55mnywaxv693z6f1rlvpdykp3vdqq"))
2506 (modules '((guix build utils)))
2509 (substitute* "test/test-main/Test.ml"
2510 ;; most of these tests fail because ld cannot find crti.o, but according
2511 ;; to the log file, the environment variables {LD_,}LIBRARY_PATH
2512 ;; are set correctly when LD_LIBRARY_PATH is defined beforhand.
2513 (("TestBaseCompat.tests;") "")
2514 (("TestExamples.tests;") "")
2515 (("TestFull.tests;") "")
2516 (("TestPluginDevFiles.tests;") "")
2517 (("TestPluginInternal.tests;") "")
2518 (("TestPluginOCamlbuild.tests;") "")
2519 (("TestPluginOMake.tests;") ""))
2521 (build-system ocaml-build-system)
2525 `(("ocamlbuild" ,ocamlbuild)
2526 ("ocamlify" ,ocamlify)
2527 ("ocamlmod" ,ocamlmod)))
2528 (home-page "https://oasis.forge.ocamlcore.org")
2529 (synopsis "Integrates a configure, build, install system in OCaml projects")
2530 (description "OASIS is a tool to integrate a configure, build and install
2531 system in your OCaml projects. It helps to create standard entry points in your
2532 build system and allows external tools to analyse your project easily.")
2533 (license license:lgpl2.1+))) ; with ocaml static compilation exception
2535 (define-public ocaml-js-build-tools
2537 (name "ocaml-js-build-tools")
2538 (version "113.33.06")
2539 (source (janestreet-origin "js-build-tools" version
2540 "0r8z4fz8iy5y6hkdlkpwf6rk4qigcr3dzyv35585xgg2ahf12zy6"))
2542 `(("oasis" ,ocaml-oasis)
2543 ("ocamlbuild" ,ocamlbuild)
2545 (build-system ocaml-build-system)
2546 (arguments janestreet-arguments)
2547 (home-page "https://github.com/janestreet/js-build-tools")
2548 (synopsis "Collection of tools to help building Jane Street Packages")
2549 (description "This package contains tools to help building Jane Street
2550 packages, but can be used for other purposes. It contains:
2552 @item an @command{oasis2opam-install} tool to produce a @file{.install} file
2553 from the oasis build log
2554 @item a @code{js_build_tools} ocamlbuild plugin with various goodies.
2556 (license license:asl2.0)))
2558 (define-public ocaml-cppo
2566 (url "https://github.com/mjambon/cppo")
2567 (commit (string-append "v" version))))
2568 (file-name (git-file-name name version))
2570 "1smcc0l6fh2n0y6bp96c69j5nw755jja99w0b206wx3yb2m4w2hs"))))
2571 (build-system dune-build-system)
2574 #:build-flags (list "--profile" "release")))
2576 `(("ocamlbuild" ,ocamlbuild)))
2577 (home-page "https://github.com/mjambon/cppo")
2578 (synopsis "Equivalent of the C preprocessor for OCaml programs")
2579 (description "Cppo is an equivalent of the C preprocessor for OCaml
2580 programs. It allows the definition of simple macros and file inclusion. Cpp ois:
2582 @item more OCaml-friendly than cpp
2583 @item easy to learn without consulting a manual
2584 @item reasonably fast
2585 @item simple to install and to maintain.
2587 (license license:bsd-3)))
2589 (define-public ocaml-seq
2597 (url "https://github.com/c-cube/seq")
2599 (file-name (git-file-name name version))
2601 (base32 "1cjpsc7q76yfgq9iyvswxgic4kfq2vcqdlmxjdjgd4lx87zvcwrv"))))
2602 (build-system ocaml-build-system)
2606 (modify-phases %standard-phases
2610 (lambda* (#:key outputs #:allow-other-keys)
2611 (let ((install-dir (string-append (assoc-ref outputs "out")
2612 "/lib/ocaml/site-lib/seq")))
2613 (mkdir-p install-dir)
2614 (with-output-to-file (string-append install-dir "/META")
2616 (display "name=\"seq\"
2617 version=\"[distributed with ocaml]\"
2618 description=\"dummy package for compatibility\"
2621 (home-page "https://github.com/c-cube/seq")
2622 (synopsis "OCaml's standard iterator type")
2623 (description "This package is a compatibility package for OCaml's
2624 standard iterator type starting from 4.07.")
2625 (license license:lgpl2.1+)))
2627 (define-public ocaml-re
2635 (url "https://github.com/ocaml/ocaml-re")
2637 (file-name (git-file-name name version))
2639 (base32 "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss"))))
2640 (build-system dune-build-system)
2643 #:build-flags (list "--profile" "release")))
2645 `(("ocaml-seq" ,ocaml-seq)))
2647 `(("ounit" ,ocaml-ounit)))
2648 (home-page "https://github.com/ocaml/ocaml-re/")
2649 (synopsis "Regular expression library for OCaml")
2650 (description "Pure OCaml regular expressions with:
2652 @item Perl-style regular expressions (module Re_perl)
2653 @item Posix extended regular expressions (module Re_posix)
2654 @item Emacs-style regular expressions (module Re_emacs)
2655 @item Shell-style file globbing (module Re_glob)
2656 @item Compatibility layer for OCaml's built-in Str module (module Re_str)
2658 (license license:expat)))
2660 (define-public ocaml-ocplib-endian
2662 (name "ocaml-ocplib-endian")
2667 (url "https://github.com/OCamlPro/ocplib-endian/")
2671 "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw"))
2672 (file-name (git-file-name name version))))
2673 (build-system ocaml-build-system)
2675 `(("cppo" ,ocaml-cppo)
2676 ("ocamlbuild" ,ocamlbuild)))
2677 (home-page "https://github.com/OCamlPro/ocplib-endian")
2678 (synopsis "Optimised functions to read and write int16/32/64 from strings
2680 (description "Optimised functions to read and write int16/32/64 from strings
2681 and bigarrays, based on new primitives added in version 4.01. It works on
2682 strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
2683 big- and little-endian, with their unsafe counter-parts.")
2684 (license license:lgpl2.1)))
2686 (define-public ocaml-cstruct
2688 (name "ocaml-cstruct")
2693 (url "https://github.com/mirage/ocaml-cstruct")
2694 (commit (string-append "v" version))))
2695 (file-name (git-file-name name version))
2698 "0m4bz0digcsc8l2msfikwcbi1y371kccx6xnkwrz212mf5mp98bv"))))
2699 (build-system dune-build-system)
2701 `(#:package "cstruct"
2704 `(("ocaml-alcotest" ,ocaml-alcotest)))
2705 (home-page "https://github.com/mirage/ocaml-cstruct")
2706 (synopsis "Access C structures via a camlp4 extension")
2707 (description "Cstruct is a library and syntax extension to make it easier
2708 to access C-like structures directly from OCaml. It supports both reading and
2709 writing to these structures, and they are accessed via the Bigarray module.")
2710 (license license:isc)))
2712 (define-public ocaml-hex
2719 (url "https://github.com/mirage/ocaml-hex")
2720 (commit (string-append "v" version))))
2721 (file-name (git-file-name name version))
2724 "0c8nhibcwy0ykzca4jn3gqb8ylq21ff88y82gl60wyzijr64rn0q"))))
2725 (build-system dune-build-system)
2727 `(#:test-target "."))
2729 `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat)
2730 ("cstruct" ,ocaml-cstruct)))
2731 (home-page "https://github.com/mirage/ocaml-hex/")
2732 (synopsis "Minimal library providing hexadecimal converters")
2733 (description "Hex is a minimal library providing hexadecimal converters.")
2734 (license license:isc)))
2736 (define-public ocaml4.07-ezjsonm
2738 (name "ocaml4.07-ezjsonm")
2744 (url "https://github.com/mirage/ezjsonm")
2745 (commit (string-append "v" version))))
2746 (file-name (git-file-name name version))
2748 (base32 "064j9pzy01p3dv947khqyn7fkjbs3jmrqsg8limb4abnlaqxxs2s"))))
2749 (build-system dune-build-system)
2751 `(#:package "ezjsonm"
2754 #:findlib ,ocaml4.07-findlib))
2756 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))))
2758 `(("ocaml-hex" ,(package-with-ocaml4.07 ocaml-hex))
2759 ("ocaml-jsonm" ,(package-with-ocaml4.07 ocaml-jsonm))
2760 ("ocaml-sexplib" ,ocaml4.07-sexplib)))
2761 (home-page "https://github.com/mirage/ezjsonm/")
2762 (synopsis "Read and write JSON data")
2763 (description "Ezjsonm provides more convenient (but far less flexible) input
2764 and output functions that go to and from [string] values than jsonm. This avoids
2765 the need to write signal code, which is useful for quick scripts that manipulate
2767 (license license:isc)))
2769 (define-public ocaml4.07-uri
2771 (name "ocaml4.07-uri")
2777 (url "https://github.com/mirage/ocaml-uri")
2778 (commit (string-append "v" version))))
2779 (file-name (git-file-name name version))
2781 (base32 "1ppbav41mszpjcl0zi3fyg958cxyfs57i7kvha4ds9ydn89bjmrh"))))
2782 (build-system dune-build-system)
2786 (modify-phases %standard-phases
2787 (add-before 'build 'update-deprecated
2789 (substitute* "lib/uri.ml"
2790 (("Re.get") "Re.Group.get")))))
2792 #:findlib ,ocaml4.07-findlib))
2794 `(("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))
2795 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)))
2797 `(("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
2798 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
2799 ("ocaml-stringext" ,(package-with-ocaml4.07 ocaml-stringext))))
2800 (home-page "https://github.com/mirage/ocaml-uri")
2801 (synopsis "RFC3986 URI/URL parsing library")
2802 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.")
2803 (license license:isc)))
2805 (define-public ocaml-easy-format
2807 (name "ocaml-easy-format")
2812 (url "https://github.com/mjambon/easy-format")
2814 (file-name (git-file-name name version))
2817 "1fc95q2ypck6m6rv3kiawwilh5ac93v2hcp823mj608d5kj79xkb"))))
2818 (build-system dune-build-system)
2822 (modify-phases %standard-phases
2823 (add-before 'build 'make-writable
2828 (find-files "." "."))
2830 (home-page "https://github.com/mjambon/easy-format")
2831 (synopsis "Interface to the Format module")
2832 (description "Easy-format is a high-level and functional interface to the
2833 Format module of the OCaml standard library.")
2834 (license license:bsd-3)))
2836 (define-public ocaml4.07-piqilib
2838 (name "ocaml4.07-piqilib")
2844 (url "https://github.com/alavrik/piqi")
2845 (commit (string-append "v" version))))
2846 (file-name (git-file-name name version))
2848 (base32 "0v04hs85xv6d4ysqxyv1dik34dx49yab9shpi4x7iv19qlzl7csb"))))
2849 (build-system ocaml-build-system)
2852 (modify-phases %standard-phases
2853 (add-before 'configure 'fix-ocamlpath
2855 (substitute* '("Makefile" "make/Makefile.ocaml")
2856 (("OCAMLPATH := ") "OCAMLPATH := $(OCAMLPATH):"))
2859 (lambda* (#:key outputs #:allow-other-keys)
2860 (let ((out (assoc-ref outputs "out")))
2861 (substitute* "make/OCamlMakefile"
2862 (("/bin/sh") (which "bash")))
2863 (invoke "./configure" "--prefix" out "--ocaml-libdir"
2864 (string-append out "/lib/ocaml/site-lib")))
2866 (add-after 'build 'build-ocaml
2867 (lambda* (#:key outputs #:allow-other-keys)
2868 (invoke "make" "ocaml")
2870 (add-after 'install 'install-ocaml
2871 (lambda* (#:key outputs #:allow-other-keys)
2872 (invoke "make" "ocaml-install")
2874 (add-after 'install-ocaml 'link-stubs
2875 (lambda* (#:key outputs #:allow-other-keys)
2876 (let* ((out (assoc-ref outputs "out"))
2877 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
2878 (lib (string-append out "/lib/ocaml/site-lib/piqilib")))
2880 (symlink (string-append lib "/dllpiqilib_stubs.so")
2881 (string-append stubs "/dllpiqilib_stubs.so"))
2884 #:findlib ,ocaml4.07-findlib))
2886 `(("which" ,which)))
2888 `(("ocaml-xmlm" ,(package-with-ocaml4.07 ocaml-xmlm))
2889 ("ocaml-sedlex" ,ocaml4.07-sedlex)
2890 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))
2891 ("ocaml-base64" ,(package-with-ocaml4.07 ocaml-base64))))
2892 (home-page "http://piqi.org")
2893 (synopsis "Data serialization and conversion library")
2894 (description "Piqilib is the common library used by the piqi command-line
2895 tool and piqi-ocaml.")
2896 (license license:asl2.0)))
2898 (define-public ocaml-uuidm
2900 (name "ocaml-uuidm")
2904 (uri (string-append "http://erratique.ch/software/uuidm/"
2905 "releases/uuidm-" version ".tbz"))
2908 "0hz4fdx0x16k0pw9995vkz5d1hmzz6b16wck9li399rcbfnv5jlc"))))
2909 (build-system ocaml-build-system)
2912 (list "build" "--tests" "true" "--with-cmdliner" "true")
2914 (modify-phases %standard-phases
2915 (delete 'configure))))
2917 `(("ocamlbuild" ,ocamlbuild)
2920 `(("cmdliner" ,ocaml-cmdliner)
2921 ("topkg" ,ocaml-topkg)))
2922 (home-page "http://erratique.ch/software/uuidm")
2923 (synopsis "Universally unique identifiers for OCaml")
2924 (description "Uuidm is an OCaml module implementing 128 bits universally
2925 unique identifiers (UUIDs) version 3, 5 (named based with MD5, SHA-1 hashing)
2926 and 4 (random based) according to RFC 4122.")
2927 (license license:isc)))
2929 (define-public ocaml-graph
2931 (name "ocaml-graph")
2935 (uri (string-append "http://ocamlgraph.lri.fr/download/"
2936 "ocamlgraph-" version ".tar.gz"))
2939 "0m9g16wrrr86gw4fz2fazrh8nkqms0n863w7ndcvrmyafgxvxsnr"))))
2940 (build-system ocaml-build-system)
2942 `(#:install-target "install-findlib"
2945 (modify-phases %standard-phases
2946 (add-before 'configure 'set-shell
2947 (lambda* (#:key inputs #:allow-other-keys)
2948 (setenv "CONFIG_SHELL" (string-append (assoc-ref inputs "bash")
2950 (inputs `(("lablgtk" ,lablgtk)))
2951 (properties `((upstream-name . "ocamlgraph")))
2952 (home-page "http://ocamlgraph.lri.fr/")
2953 (synopsis "Graph library for OCaml")
2954 (description "OCamlgraph is a generic graph library for OCaml.")
2955 (license license:lgpl2.1)))
2957 (define-public ocaml4.07-piqi
2959 (name "ocaml4.07-piqi")
2964 (url "https://github.com/alavrik/piqi-ocaml")
2965 (commit (string-append "v" version))))
2966 (file-name (git-file-name name version))
2969 "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm"))))
2970 (build-system ocaml-build-system)
2973 (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
2974 (string-append "SHELL=" (assoc-ref %build-inputs "bash")
2977 (modify-phases %standard-phases
2978 (add-after 'unpack 'make-files-writable
2980 (for-each make-file-writable (find-files "."))
2982 (delete 'configure))
2984 #:findlib ,ocaml4.07-findlib))
2987 ("protobuf" ,protobuf))) ; for tests
2989 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
2990 ("ocaml-piqilib" ,ocaml4.07-piqilib)
2991 ("ocaml-stdlib-shims" ,(package-with-ocaml4.07 ocaml-stdlib-shims))))
2992 (home-page "https://github.com/alavrik/piqi-ocaml")
2993 (synopsis "Protocol serialization system for OCaml")
2994 (description "Piqi is a multi-format data serialization system for OCaml.
2995 It provides a uniform interface for serializing OCaml data structures to JSON,
2996 XML and Protocol Buffers formats.")
2997 (license license:asl2.0)))
3003 (home-page "https://github.com/BinaryAnalysisPlatform/bap")
3008 (commit (string-append "v" version))))
3009 (file-name (git-file-name name version))
3012 "0lb9xkfp67wjjqr75p6krivmjra7l5673236v9ny4gp0xi0755bk"))))
3013 (build-system ocaml-build-system)
3015 `(("ocaml-oasis" ,(package-with-ocaml4.07 ocaml-oasis))
3016 ("clang" ,clang-3.8)
3017 ("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
3019 `(("camlzip" ,(package-with-ocaml4.07 camlzip))
3020 ("ocaml-bitstring" ,(package-with-ocaml4.07 ocaml-bitstring))
3021 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
3022 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
3023 ("ocaml-ezjsonm" ,ocaml4.07-ezjsonm)
3024 ("ocaml-fileutils" ,(package-with-ocaml4.07 ocaml-fileutils))
3025 ("ocaml-frontc" ,(package-with-ocaml4.07 ocaml-frontc))
3026 ("ocaml-graph" ,(package-with-ocaml4.07 ocaml-graph))
3027 ("ocaml-ocurl" ,(package-with-ocaml4.07 ocaml-ocurl))
3028 ("ocaml-piqi" ,ocaml4.07-piqi)
3029 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
3030 ("ocaml-utop" ,ocaml4.07-utop)
3031 ("ocaml-uuidm" ,(package-with-ocaml4.07 ocaml-uuidm))
3032 ("ocaml-uri" ,ocaml4.07-uri)
3033 ("ocaml-zarith" ,(package-with-ocaml4.07 ocaml-zarith))))
3037 ("ncurses" ,ncurses)))
3041 (modify-phases %standard-phases
3042 (add-before 'configure 'fix-ncurses
3044 (substitute* "oasis/llvm"
3045 (("-lcurses") "-lncurses"))
3048 (lambda* (#:key outputs inputs #:allow-other-keys)
3049 ;; add write for user, to prevent a failure in the install phase
3052 (let ((stat (stat file)))
3053 (chmod file (+ #o200 (stat:mode stat)))))
3054 (find-files "." "."))
3055 (invoke "./configure" "--prefix"
3056 (assoc-ref outputs "out")
3059 (assoc-ref outputs "out")
3060 "/lib/ocaml/site-lib")
3061 "--with-llvm-version=3.8"
3062 "--with-llvm-config=llvm-config"
3063 "--enable-everything"))))
3065 #:findlib ,ocaml4.07-findlib))
3066 (synopsis "Binary Analysis Platform")
3067 (description "Binary Analysis Platform is a framework for writing program
3068 analysis tools, that target binary files. The framework consists of a plethora
3069 of libraries, plugins, and frontends. The libraries provide code reusability,
3070 the plugins facilitate extensibility, and the frontends serve as entry points.")
3071 (license license:expat)))
3073 (define-public ocaml-camomile
3075 (name "ocaml-camomile")
3077 (home-page "https://github.com/yoriyuki/Camomile")
3080 (uri (string-append home-page "/releases/download/" version
3081 "/camomile-" version ".tbz"))
3084 "0chn7ldqb3wyf95yhmsxxq65cif56smgz1mhhc7m0dpwmyq1k97h"))))
3085 (build-system dune-build-system)
3087 `(#:build-flags (list "--profile" "release")
3088 #:test-target "camomile-test"
3089 #:tests? #f; Tests fail, see https://github.com/yoriyuki/Camomile/issues/82
3091 (modify-phases %standard-phases
3092 (add-before 'build 'fix-usr-share
3093 (lambda* (#:key outputs #:allow-other-keys)
3094 (substitute* '("Camomile/dune" "configure.ml")
3095 (("/usr/share") (string-append (assoc-ref outputs "out") "/share")))
3097 (synopsis "Comprehensive Unicode library")
3098 (description "Camomile is a Unicode library for OCaml. Camomile provides
3099 Unicode character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about
3100 200 encodings, collation and locale-sensitive case mappings, and more. The
3101 library is currently designed for Unicode Standard 3.2.")
3102 ;; with an exception for linked libraries to use a different license
3103 (license license:lgpl2.0+)))
3105 (define-public ocaml4.07-charinfo-width
3107 (name "ocaml4.07-charinfo-width")
3111 (uri (string-append "https://bitbucket.org/zandoye/charinfo_width"
3112 "/get/" version ".tar.gz"))
3113 (file-name (string-append name "-" version ".tar.gz"))
3116 "00bv4p1yqs8y0z4z07wd9w9yyv669dikp9b04dcjbwpiy2wy0086"))))
3117 (build-system dune-build-system)
3119 `(#:ocaml ,ocaml-4.07
3120 #:findlib ,ocaml4.07-findlib))
3122 `(("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
3123 ("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))))
3125 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
3127 `((upstream-name . "charInfo_width")))
3128 (home-page "https://bitbucket.org/zandoye/charinfo_width/")
3129 (synopsis "Determine column width for a character")
3130 (description "This module is implements purely in OCaml a character width
3131 function that follows the prototype of POSIX's wcwidth.")
3132 (license license:expat)))
3134 (define-public ocaml4.07-zed
3136 (name "ocaml4.07-zed")
3142 (url "https://github.com/diml/zed")
3144 (file-name (git-file-name name version))
3146 (base32 "0pa9awinqr0plp4b2az78dwpvh01pwaljnn5ydg8mc6hi7rmir55"))))
3147 (build-system dune-build-system)
3152 #:findlib ,ocaml4.07-findlib))
3154 `(("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3155 ("ocaml-charinfo-width" ,ocaml4.07-charinfo-width)
3156 ("ocaml-react" ,(package-with-ocaml4.07 ocaml-react))))
3157 (home-page "https://github.com/diml/zed")
3158 (synopsis "Abstract engine for text editing in OCaml")
3159 (description "Zed is an abstract engine for text edition. It can be used
3160 to write text editors, edition widgets, readlines, etc. You just have to
3161 connect an engine to your inputs and rendering functions to get an editor.")
3162 (license license:bsd-3)))
3164 (define-public ocaml4.07-lambda-term
3166 (name "ocaml4.07-lambda-term")
3172 (url "https://github.com/diml/lambda-term")
3174 (file-name (git-file-name name version))
3176 (base32 "0zcjy6fvf0d3i2ssz96asl889n3r6bplyzk7xvb2s3dkxbgcisyy"))))
3177 (build-system dune-build-system)
3179 `(#:build-flags (list "--profile" "release")
3182 #:findlib ,ocaml4.07-findlib))
3184 `(("ocaml-lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3185 ("ocaml-lwt-log" ,(package-with-ocaml4.07 ocaml-lwt-log))
3186 ("ocaml-lwt-react" ,(package-with-ocaml4.07 ocaml-lwt-react))
3187 ("ocaml-zed" ,ocaml4.07-zed)))
3189 `(("libev" ,libev)))
3190 (home-page "https://github.com/diml/lambda-term")
3191 (synopsis "Terminal manipulation library for OCaml")
3192 (description "Lambda-Term is a cross-platform library for manipulating the
3193 terminal. It provides an abstraction for keys, mouse events, colors, as well as
3194 a set of widgets to write curses-like applications. The main objective of
3195 Lambda-Term is to provide a higher level functional interface to terminal
3196 manipulation than, for example, ncurses, by providing a native OCaml interface
3197 instead of bindings to a C library.")
3198 (license license:bsd-3)))
3200 (define-public ocaml4.07-utop
3202 (name "ocaml4.07-utop")
3208 (url "https://github.com/ocaml-community/utop")
3210 (file-name (git-file-name name version))
3212 (base32 "1bl4943qpi3qy152dbdm5glhx19zsiylmn4rcxi8l66g58hikyjp"))))
3213 (build-system dune-build-system)
3218 #:findlib ,ocaml4.07-findlib))
3220 `(("cppo" ,(package-with-ocaml4.07 ocaml-cppo))))
3222 `(("lambda-term" ,ocaml4.07-lambda-term)
3223 ("lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3224 ("react" ,(package-with-ocaml4.07 ocaml-react))
3225 ("camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3226 ("zed" ,ocaml4.07-zed)))
3227 (home-page "https://github.com/ocaml-community/utop")
3228 (synopsis "Improved interface to the OCaml toplevel")
3229 (description "UTop is an improved toplevel for OCaml. It can run in a
3230 terminal or in Emacs. It supports line editing, history, real-time and context
3231 sensitive completion, colors, and more.")
3232 (license license:bsd-3)))
3234 (define-public ocaml-integers
3236 (name "ocaml-integers")
3238 (home-page "https://github.com/ocamllabs/ocaml-integers")
3241 (uri (string-append home-page
3242 "/releases/download/v0.2.2/integers-"
3244 (file-name (string-append name "-" version ".tbz"))
3247 "08b1ljw88ny3l0mdq6xmffjk8anfc77igryva5jz1p6f4f746ywk"))))
3248 (build-system ocaml-build-system)
3250 `(#:tests? #f; no tests
3251 #:build-flags (list "build")
3253 (modify-phases %standard-phases
3254 (delete 'configure))))
3256 `(("ocamlbuild" ,ocamlbuild)))
3258 `(("topkg" ,ocaml-topkg)
3260 (synopsis "Various signed and unsigned integer types for OCaml")
3261 (description "The ocaml-integers library provides a number of 8-, 16-, 32-
3262 and 64-bit signed and unsigned integer types, together with aliases such as
3263 long and size_t whose sizes depend on the host platform.")
3264 (license license:expat)))
3266 (define-public ocaml-ctypes
3268 (name "ocaml-ctypes")
3270 (home-page "https://github.com/ocamllabs/ocaml-ctypes")
3276 (file-name (git-file-name name version))
3279 "1b2q3h63ngf4x9qp65qwapf2dg9q0mcdah6qjm2q0c7v2p5vysv9"))))
3280 (build-system ocaml-build-system)
3282 `(#:tests? #f; require an old lwt
3284 (list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
3286 (modify-phases %standard-phases
3287 (add-after 'unpack 'make-writable
3291 (let ((stat (stat file)))
3292 (chmod file (+ #o200 (stat:mode stat)))))
3293 (find-files "." "."))
3295 (delete 'configure))))
3297 `(("pkg-config" ,pkg-config)))
3299 `(("libffi" ,libffi)
3300 ("ounit" ,ocaml-ounit)
3301 ("integers" ,ocaml-integers)
3303 ("topkg" ,ocaml-topkg)
3305 (synopsis "Library for binding to C libraries using pure OCaml")
3306 (description "Ctypes is a library for binding to C libraries using pure
3307 OCaml. The primary aim is to make writing C extensions as straightforward as
3308 possible. The core of ctypes is a set of combinators for describing the
3309 structure of C types -- numeric types, arrays, pointers, structs, unions and
3310 functions. You can use these combinators to describe the types of the
3311 functions that you want to call, then bind directly to those functions -- all
3312 without writing or generating any C!")
3313 (license license:expat)))
3315 (define-public ocaml-ocb-stubblr
3317 (name "ocaml-ocb-stubblr")
3319 (home-page "https://github.com/pqwy/ocb-stubblr")
3323 home-page "/releases/download/v0.1.1/ocb-stubblr-"
3325 (file-name (string-append name "-" version ".tbz"))
3328 "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
3329 (build-system ocaml-build-system)
3331 `(#:build-flags (list "build" "--tests" "true")
3333 (modify-phases %standard-phases
3335 (add-before 'build 'fix-for-guix
3337 (substitute* "src/ocb_stubblr.ml"
3338 ;; Do not fail when opam is not present or initialized
3339 (("error_msgf \"error running opam\"") "\"\"")
3340 ;; Guix doesn't have cc, but it has gcc
3341 (("\"cc\"") "\"gcc\""))
3344 `(("topkg" ,ocaml-topkg)
3347 `(("astring" ,ocaml-astring)
3348 ("ocamlbuild" ,ocamlbuild)))
3349 (synopsis "OCamlbuild plugin for C stubs")
3350 (description "Ocb-stubblr is about ten lines of code that you need to
3351 repeat over, over, over and over again if you are using ocamlbuild to build
3352 OCaml projects that contain C stubs.")
3353 (license license:isc)))
3355 (define-public ocaml-tsdl
3359 (home-page "https://erratique.ch/software/tsdl")
3362 (uri (string-append home-page "/releases/tsdl-"
3364 (file-name (string-append name "-" version ".tar.gz"))
3367 "1zwv0ixkigh1gzk5n49rwvz2f2m62jdkkqg40j7dclg4gri7691f"))))
3368 (build-system ocaml-build-system)
3370 `(#:build-flags '("build")
3371 #:tests? #f; tests require a display device
3373 (modify-phases %standard-phases
3374 (delete 'configure))))
3376 `(("ocamlbuild" ,ocamlbuild)
3377 ("ocaml-astring" ,ocaml-astring)
3379 ("pkg-config" ,pkg-config)))
3381 `(("topkg" ,ocaml-topkg)
3383 ("integers" ,ocaml-integers)
3384 ("ctypes" ,ocaml-ctypes)))
3385 (synopsis "Thin bindings to SDL for OCaml")
3386 (description "Tsdl is an OCaml library providing thin bindings to the
3387 cross-platform SDL C library.")
3388 (license license:isc)))
3390 (define-public dedukti
3394 (home-page "https://deducteam.github.io/")
3399 (url "https://github.com/deducteam/dedukti")
3400 (commit (string-append "v" version))))
3401 (file-name (git-file-name name version))
3404 "0frl3diff033i4fmq304b8wbsdnc9mvlhmwd7a3zd699ng2lzbxb"))))
3406 `(("menhir" ,ocaml-menhir)))
3408 `(("ocamlbuild" ,ocamlbuild)))
3409 (build-system ocaml-build-system)
3412 (modify-phases %standard-phases
3420 (invoke "make" "tests")
3422 (add-before 'install 'set-binpath
3423 ;; Change binary path in the makefile
3425 (let ((out (assoc-ref %outputs "out")))
3426 (substitute* "GNUmakefile"
3428 (string-append "BINDIR = " out "/bin"))))
3432 (invoke "make" "install")
3434 (synopsis "Proof-checker for the λΠ-calculus modulo theory, an extension of
3436 (description "Dedukti is a proof-checker for the λΠ-calculus modulo
3437 theory. The λΠ-calculus is an extension of the simply typed λ-calculus with
3438 dependent types. The λΠ-calculus modulo theory is itself an extension of the
3439 λΠ-calculus where the context contains variable declaration as well as rewrite
3440 rules. This system is not designed to develop proofs, but to check proofs
3441 developed in other systems. In particular, it enjoys a minimalistic syntax.")
3442 (license license:cecill-c)))
3444 (define-public emacs-dedukti-mode
3445 (let ((commit "d7c3505a1046187de3c3aeb144455078d514594e"))
3447 (name "emacs-dedukti-mode")
3448 (version (git-version "0" "0" commit))
3449 (home-page "https://github.com/rafoo/dedukti-mode")
3457 "1842wikq24c8rg0ac84vb1qby9ng1nssxswyyni4kq85lng5lcrp"))
3458 (file-name (git-file-name name version))))
3460 `(("dedukti" ,dedukti)))
3461 (build-system emacs-build-system)
3464 (modify-phases %standard-phases
3465 (add-before 'install 'patch-dkpath
3467 (let ((dkcheck-path (which "dkcheck")))
3468 (substitute* "dedukti-mode.el"
3469 (("dedukti-path \"(.*)\"")
3470 (string-append "dedukti-path \"" dkcheck-path "\"")))))))))
3471 (synopsis "Emacs major mode for Dedukti files")
3472 (description "This package provides an Emacs major mode for editing
3474 (license license:cecill-b))))
3476 (define-public emacs-flycheck-dedukti
3477 (let ((commit "3dbff5646355f39d57a3ec514f560a6b0082a1cd"))
3479 (name "emacs-flycheck-dedukti")
3480 (version (git-version "0" "0" commit))
3481 (home-page "https://github.com/rafoo/flycheck-dedukti")
3489 "1ffpxnwl3wx244n44mbw81g00nhnykd0lnid29f4aw1av7w6nw8l"))
3490 (file-name (git-file-name name version))))
3491 (build-system emacs-build-system)
3493 `(("dedukti-mode" ,emacs-dedukti-mode)
3494 ("flycheck-mode" ,emacs-flycheck)))
3495 (synopsis "Flycheck integration for the dedukti language")
3496 (description "This package provides a frontend for Flycheck to perform
3497 syntax checking on dedukti files.")
3498 (license license:cecill-b))))
3500 (define-public ocaml4.07-ppx-inline-test
3502 (name "ocaml4.07-ppx-inline-test")
3504 (home-page "https://github.com/janestreet/ppx_inline_test")
3509 (url (string-append home-page ".git"))
3510 (commit (string-append "v" version))))
3511 (file-name (git-file-name name version))
3514 "0nyz411zim94pzbxm2l2v2l9jishcxwvxhh142792g2s18r4vn50"))))
3515 (build-system dune-build-system)
3517 ;see home page README for further information
3520 #:findlib ,ocaml4.07-findlib))
3522 `(("ocaml-base" ,ocaml4.07-base)
3523 ("ocaml-migrate-parsetree"
3524 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
3525 ("ocaml-compiler-libs" ,(package-with-ocaml4.07 ocaml-compiler-libs))
3526 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
3527 ("ocaml-stdio" ,ocaml4.07-stdio)
3528 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
3529 (properties `((upstream-name . "ppx_inline_test")))
3530 (synopsis "Syntax extension for writing in-line tests in ocaml code")
3531 (description "This package contains a syntax extension for writing
3532 in-line tests in ocaml code. It is part of Jane Street's PPX rewriters
3534 (license license:expat)))
3536 (define-public ocaml-bindlib
3538 (name "ocaml-bindlib")
3544 (url "https://github.com/rlepigre/ocaml-bindlib")
3545 (commit (string-append "ocaml-bindlib_" version))))
3546 (file-name (git-file-name name version))
3549 "1f8kr81w8vsi4gv61xn1qbc6zrzkjp8l9ix0942vjh4gjxc74v75"))))
3550 (build-system ocaml-build-system)
3552 `(#:tests? #f ;no tests
3555 (modify-phases %standard-phases
3562 (invoke "make" "install"))))))
3564 `(("ocamlbuild" ,ocamlbuild)
3565 ("ocaml-findlib" ,ocaml-findlib)))
3566 (home-page "https://rlepigre.github.io/ocaml-bindlib/")
3567 (synopsis "OCaml Bindlib library for bound variables")
3568 (description "Bindlib is a library allowing the manipulation of data
3569 structures with bound variables. It is particularly useful when writing ASTs
3570 for programming languages, but also for manipulating terms of the λ-calculus
3571 or quantified formulas.")
3572 (license license:gpl3+)))
3574 (define-public ocaml4.07-earley
3576 (name "ocaml4.07-earley")
3578 (home-page "https://github.com/rlepigre/ocaml-earley")
3583 (url (string-append home-page ".git"))
3585 (file-name (git-file-name name version))
3588 "18k7bi7krc4bvqnhijz1q0pfr0nfahghfjifci8rh1q4i5zd0xz5"))))
3589 (build-system dune-build-system)
3593 #:findlib ,ocaml4.07-findlib))
3594 (synopsis "Parsing library based on Earley Algorithm")
3595 (description "Earley is a parser combinator library base on Earley's
3596 algorithm. It is intended to be used in conjunction with an OCaml syntax
3597 extension which allows the definition of parsers inside the language. There
3598 is also support for writing OCaml syntax extensions in a camlp4 style.")
3599 (license license:cecill-b)))
3601 (define-public ocaml-timed
3603 (name "ocaml-timed")
3605 (home-page "https://github.com/rlepigre/ocaml-timed")
3609 (url (string-append home-page ".git"))
3610 (commit (string-append name "_" version))))
3613 "0hfxz710faxy5yk97bkfnw87r732jcxxhmjppwrbfdb6pd0wks96"))
3614 (file-name (git-file-name name version))))
3615 (build-system ocaml-build-system)
3618 (modify-phases %standard-phases
3625 (invoke "make" "install")))
3628 (invoke "make" "tests"))))))
3629 (synopsis "Timed references for imperative state")
3630 (description "Timed references for imperative state. This module provides
3631 an alternative type for references (or mutable cells) supporting undo/redo
3632 operations. In particular, an abstract notion of time is used to capture the
3633 state of the references at any given point, so that it can be restored. Note
3634 that usual reference operations only have a constant time / memory overhead
3635 (compared to those of the standard library).
3637 Moreover, we provide an alternative implementation based on the references
3638 of the standard library (Pervasives module). However, it is less efficient
3639 than the first one.")
3640 (license license:expat)))
3642 (define-public ocaml-biniou
3644 (name "ocaml-biniou")
3646 (home-page "https://github.com/mjambon/biniou")
3651 (url (string-append home-page ".git"))
3653 (file-name (git-file-name name version))
3656 "0x2kiy809n1j0yf32l7hj102y628jp5jdrkbi3z7ld8jq04h1790"))))
3657 (build-system dune-build-system)
3660 (modify-phases %standard-phases
3661 (add-before 'build 'make-writable
3666 (find-files "." "."))
3669 `(("ocaml-easy-format" ,ocaml-easy-format)))
3671 `(("which" ,which)))
3672 (synopsis "Data format designed for speed, safety, ease of use and backward
3674 (description "Biniou (pronounced \"be new\" is a binary data format
3675 designed for speed, safety, ease of use and backward compatibility as
3676 protocols evolve. Biniou is vastly equivalent to JSON in terms of
3677 functionality but allows implementations several times faster (4 times faster
3678 than yojson), with 25-35% space savings.")
3679 (license license:bsd-3)))
3681 (define-public ocaml-yojson
3683 (name "ocaml-yojson")
3685 (home-page "https://github.com/ocaml-community/yojson")
3690 (url (string-append home-page ".git"))
3692 (file-name (git-file-name name version))
3695 "0zncsw8bgbkh1pfvfc7nh628hfj84lgx6jwhp9ashj3z1z0w3xjn"))))
3696 (build-system dune-build-system)
3698 `(#:test-target "."))
3700 `(("ocaml-biniou" ,ocaml-biniou)
3701 ("ocaml-easy-format" ,ocaml-easy-format)))
3703 `(("ocaml-alcotest" ,ocaml-alcotest)
3704 ("ocaml-cppo" ,ocaml-cppo)))
3705 (synopsis "Low-level JSON library for OCaml")
3706 (description "Yojson is an optimized parsing and printing library for the
3707 JSON format. It addresses a few shortcomings of json-wheel including 2x
3708 speedup, polymorphic variants and optional syntax for tuples and variants.
3709 @code{ydump} is a pretty printing command-line program provided with the
3710 yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
3711 serializers and deserializers from type definitions.")
3712 (license license:bsd-3)))
3714 (define-public ocaml-craml
3716 (name "ocaml-craml")
3718 (home-page "https://github.com/realworldocaml/craml")
3723 (url (string-append home-page ".git"))
3725 (file-name (git-file-name name version))
3728 "197xjp4vmzdymf2ndinw271ihpf45h04mx8gqj8ypspxdr5fj1a5"))))
3729 (build-system dune-build-system)
3731 `(("ocaml-fmt" ,ocaml-fmt)
3732 ("ocaml-astring" ,ocaml-astring)
3733 ("ocaml-logs" ,ocaml-logs)
3734 ("ocaml-cmdliner" ,ocaml-cmdliner)))
3736 "CRAM-testing framework for testing command line applications")
3737 (description "CRAM is a is functional testing framework for command line
3738 applications. @code{craml} is freely inspired by the
3739 Mercurial's @code{https://www.selenic.com/blog/?p=663, unified test
3740 format}. @code{craml} is released as a single binary (called @code{craml}).")
3741 (license license:isc)))
3743 (define-public ocaml4.07-merlin
3745 (name "ocaml4.07-merlin")
3747 (home-page "https://ocaml.github.io/merlin/")
3752 (url "https://github.com/ocaml/merlin")
3753 (commit (string-append "v" version))))
3754 (file-name (git-file-name name version))
3757 "15ssgmwdxylbwhld9p1cq8x6kadxyhll5bfyf11dddj6cldna3hb"))))
3758 (build-system dune-build-system)
3760 `(("ocaml-biniou" ,(package-with-ocaml4.07 ocaml-biniou))
3761 ("ocaml-yojson" ,(package-with-ocaml4.07 ocaml-yojson))
3762 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))))
3764 `(("ocaml-findlib" ,ocaml-findlib)))
3767 #:tests? #f ;; Errors in tests in version 3.2.2
3769 #:findlib ,ocaml4.07-findlib))
3770 (synopsis "Context sensitive completion for OCaml in Vim and Emacs")
3771 (description "Merlin is an editor service that provides modern IDE
3772 features for OCaml. Emacs and Vim support is provided out-of-the-box.
3773 External contributors added support for Visual Studio Code, Sublime Text and
3775 (license license:expat)))
3777 (define-public ocaml4.07-gsl
3779 (name "ocaml4.07-gsl")
3786 "https://github.com/mmottl/gsl-ocaml/releases/download/"
3787 version "/gsl-" version ".tbz"))
3790 "1l5zkkkg8sglsihrbf10ivq9s8xzl1y6ag89i4jqpnmi4m43fy34"))))
3791 (build-system dune-build-system)
3795 (modify-phases %standard-phases
3796 (add-after 'unpack 'fix-gsl-directory
3797 (lambda* (#:key inputs #:allow-other-keys)
3798 (substitute* "src/config/discover.ml"
3799 (("/usr") (assoc-ref inputs "gsl")))
3802 #:findlib ,ocaml4.07-findlib
3803 #:dune ,ocaml4.07-dune))
3807 `(("ocaml-base" ,ocaml4.07-base)
3808 ("ocaml-stdio" ,ocaml4.07-stdio)))
3809 (home-page "https://mmottl.github.io/gsl-ocaml")
3810 (synopsis "Bindings to the GNU Scientific Library")
3812 "GSL-OCaml is an interface to the @dfn{GNU scientific library} (GSL) for
3813 the OCaml language.")
3814 (license license:gpl3+)))
3816 (define-public ocaml4.07-gsl-1
3818 (inherit ocaml4.07-gsl)
3822 (uri (string-append "https://github.com/mmottl/gsl-ocaml"
3823 "/releases/download/v"
3824 version "/gsl-ocaml-" version ".tar.gz"))
3827 "0nzp43hp8pbjqkrxnwp5lgjrabxayf61h18fjaydi0s5faq6f3xh"))))
3828 (build-system ocaml-build-system)
3832 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
3834 `(#:ocaml ,ocaml-4.07
3835 #:findlib ,ocaml4.07-findlib))
3836 (propagated-inputs '())))
3838 (define-public cubicle
3844 (uri (string-append "http://cubicle.lri.fr/cubicle-"
3848 "10kk80jdmpdvql88sdjsh7vqzlpaphd8vip2lp47aarxjkwjlz1q"))))
3849 (build-system gnu-build-system)
3851 `(("automake" ,automake)
3853 ("which" ,(@@ (gnu packages base) which))))
3855 `(("ocaml-num" ,ocaml-num)
3858 `(#:configure-flags (list "--with-z3")
3859 #:make-flags (list "QUIET=")
3862 (modify-phases %standard-phases
3863 (add-before 'configure 'configure-for-release
3865 (substitute* "Makefile.in"
3866 (("SVNREV=") "#SVNREV="))
3868 (add-before 'configure 'fix-/bin/sh
3870 (substitute* "configure"
3871 (("-/bin/sh") (string-append "-" (which "sh"))))
3873 (add-before 'configure 'fix-smt-z3wrapper.ml
3875 (substitute* "Makefile.in"
3878 (add-before 'configure 'fix-ocaml-num
3879 (lambda* (#:key inputs #:allow-other-keys)
3880 (substitute* "Makefile.in"
3881 (("= \\$\\(FUNCTORYLIB\\)")
3882 (string-append "= -I "
3883 (assoc-ref inputs "ocaml-num")
3884 "/lib/ocaml/site-lib"
3885 " $(FUNCTORYLIB)")))
3887 (home-page "http://cubicle.lri.fr/")
3888 (synopsis "Model checker for array-based systems")
3889 (description "Cubicle is a model checker for verifying safety properties
3890 of array-based systems. This is a syntactically restricted class of
3891 parametrized transition systems with states represented as arrays indexed by
3892 an arbitrary number of processes. Cache coherence protocols and mutual
3893 exclusion algorithms are typical examples of such systems.")
3894 (license license:asl2.0)))
3896 (define-public ocaml4.07-sexplib0
3898 (name "ocaml4.07-sexplib0")
3900 (home-page "https://github.com/janestreet/sexplib0")
3905 (url (string-append home-page ".git"))
3906 (commit (string-append "v" version))))
3907 (file-name (git-file-name name version))
3910 "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
3911 (build-system dune-build-system)
3913 `(#:tests? #f ;no tests
3915 #:findlib ,ocaml4.07-findlib))
3916 (synopsis "Library containing the definition of S-expressions and some
3918 (description "Part of Jane Street's Core library The Core suite of
3919 libraries is an industrial strength alternative to OCaml's standard library
3920 that was developed by Jane Street, the largest industrial user of OCaml.")
3921 (license license:expat)))
3923 (define-public ocaml4.07-parsexp
3925 (name "ocaml4.07-parsexp")
3927 (home-page "https://github.com/janestreet/parsexp")
3932 (url (string-append home-page ".git"))
3933 (commit (string-append "v" version))))
3934 (file-name (git-file-name name version))
3937 "1nyq23s5igd8cf3n4qxprjvhbmb6ighb3fy5mw7hxl0mdgsw5fvz"))))
3938 (build-system dune-build-system)
3940 `(#:ocaml ,ocaml-4.07
3941 #:findlib ,ocaml4.07-findlib))
3943 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3944 (synopsis "S-expression parsing library")
3946 "This library provides generic parsers for parsing S-expressions from
3947 strings or other medium.
3949 The library is focused on performances but still provide full generic
3950 parsers that can be used with strings, bigstrings, lexing buffers,
3951 character streams or any other sources effortlessly.
3953 It provides three different class of parsers:
3956 the normal parsers, producing [Sexp.t] or [Sexp.t list] values
3958 the parsers with positions, building compact position sequences so
3959 that one can recover original positions in order to report properly
3960 located errors at little cost
3962 the Concrete Syntax Tree parsers, produce values of type
3963 @code{Parsexp.Cst.t} which record the concrete layout of the s-expression
3964 syntax, including comments
3967 This library is portable and doesn't provide IO functions. To read
3968 s-expressions from files or other external sources, you should use
3970 (license license:expat)))
3972 (define-public ocaml4.07-sexplib
3974 (name "ocaml4.07-sexplib")
3976 (home-page "https://github.com/janestreet/sexplib")
3981 (url (string-append home-page ".git"))
3982 (commit (string-append "v" version))))
3983 (file-name (git-file-name name version))
3986 "1qfl0m04rpcjvc4yw1hzh6r16jpwmap0sa9ax6zjji67dz4szpyb"))))
3987 (build-system dune-build-system)
3989 `(#:ocaml ,ocaml-4.07
3990 #:findlib ,ocaml4.07-findlib))
3992 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
3993 ("ocaml-parsexp" ,ocaml4.07-parsexp)
3994 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3996 "Library for serializing OCaml values to and from S-expressions")
3998 "This package is part of Jane Street's Core library. Sexplib contains
3999 functionality for parsing and pretty-printing s-expressions.")
4000 (license license:expat)))
4002 (define-public ocaml4.07-base
4004 (name "ocaml4.07-base")
4006 (home-page "https://github.com/janestreet/base")
4011 (url (string-append home-page ".git"))
4012 (commit (string-append "v" version))))
4013 (file-name (git-file-name name version))
4016 "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
4017 (build-system dune-build-system)
4019 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4022 (modify-phases %standard-phases
4024 ;; make warnings non fatal (jbuilder behaviour)
4026 (invoke "dune" "build" "@install" "--profile=release"))))
4028 #:findlib ,ocaml4.07-findlib))
4030 "Full standard library replacement for OCaml")
4032 "Base is a complete and portable alternative to the OCaml standard
4033 library. It provides all standard functionalities one would expect
4034 from a language standard library. It uses consistent conventions
4035 across all of its module.
4037 Base aims to be usable in any context. As a result system dependent
4038 features such as I/O are not offered by Base. They are instead
4039 provided by companion libraries such as
4040 @url{https://github.com/janestreet/stdio, ocaml-stdio}.")
4041 (license license:expat)))
4043 (define-public ocaml-compiler-libs
4045 (name "ocaml-compiler-libs")
4047 (home-page "https://github.com/janestreet/ocaml-compiler-libs")
4052 (url (string-append home-page ".git"))
4053 (commit (string-append "v" version))))
4054 (file-name (git-file-name name version))
4057 "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
4058 (build-system dune-build-system)
4060 '(#:tests? #f)) ;no tests
4061 (properties `((upstream-name . "ocaml-compiler-libs")))
4062 (synopsis "Compiler libraries repackaged")
4063 (description "This package simply repackages the OCaml compiler libraries
4064 so they don't expose everything at toplevel. For instance, @code{Ast_helper}
4065 is now @code{Ocaml_common.Ast_helper}.")
4066 (license license:expat)))
4068 (define-public ocaml4.07-stdio
4070 (name "ocaml4.07-stdio")
4072 (home-page "https://github.com/janestreet/stdio")
4077 (url (string-append home-page ".git"))
4078 (commit (string-append "v" version))))
4079 (file-name (git-file-name name version))
4082 "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
4083 (build-system dune-build-system)
4085 `(("ocaml-base" ,ocaml4.07-base)
4086 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4088 `(#:tests? #f ;no tests
4090 #:findlib ,ocaml4.07-findlib))
4091 (synopsis "Standard IO library for OCaml")
4093 "Stdio implements simple input/output functionalities for OCaml. It
4094 re-exports the input/output functions of the OCaml standard libraries using
4095 a more consistent API.")
4096 (license license:expat)))
4098 (define-public ocaml-ppx-derivers
4100 (name "ocaml-ppx-derivers")
4103 "https://github.com/ocaml-ppx/ppx_derivers")
4108 (url (string-append home-page ".git"))
4110 (file-name (git-file-name name version))
4113 "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"))))
4114 (build-system dune-build-system)
4116 '(#:tests? #f)) ;no tests
4117 (properties `((upstream-name . "ppx_derivers")))
4118 (synopsis "Shared @code{@@deriving} plugin registry")
4120 "Ppx_derivers is a tiny package whose sole purpose is to allow
4121 ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
4122 as part of the same ocaml-migrate-parsetree driver.")
4123 (license license:bsd-3)))
4125 (define-public ocaml4.07-ppxlib
4127 (name "ocaml4.07-ppxlib")
4129 (home-page "https://github.com/ocaml-ppx/ppxlib")
4134 (url (string-append home-page ".git"))
4136 (file-name (git-file-name name version))
4139 "0my9x7sxb329h0lzshppdaawiyfbaw6g5f41yiy7bhl071rnlvbv"))))
4140 (build-system dune-build-system)
4142 `(("ocaml-base" ,ocaml4.07-base)
4143 ("ocaml-compiler-libs" ,(package-with-ocaml4.07 ocaml-compiler-libs))
4144 ("ocaml-migrate-parsetree"
4145 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4146 ("ocaml-ppx-derivers" ,(package-with-ocaml4.07 ocaml-ppx-derivers))
4147 ("ocaml-stdio" ,ocaml4.07-stdio)
4148 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
4149 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4152 (modify-phases %standard-phases
4153 (add-before 'check 'set-topfind
4154 (lambda* (#:key inputs #:allow-other-keys)
4155 ;; add the line #directory ".." at the top of each file
4156 ;; using #use "topfind";; to be able to find topfind
4157 (let* ((findlib-path (assoc-ref inputs "findlib"))
4159 (string-append findlib-path "/lib/ocaml/site-lib")))
4160 (substitute* '("test/base/test.ml"
4161 "test/code_path/test.ml"
4162 "test/deriving/test.ml"
4163 "test/driver/attributes/test.ml"
4164 "test/driver/non-compressible-suffix/test.ml"
4165 "test/driver/transformations/test.ml")
4166 (("#use \"topfind\";;" all)
4167 (string-append "#directory \"" findlib-libdir "\"\n"
4171 #:findlib ,ocaml4.07-findlib))
4173 "Base library and tools for ppx rewriters")
4175 "A comprehensive toolbox for ppx development. It features:
4177 @item an OCaml AST / parser / pretty-printer snapshot, to create a full frontend
4178 independent of the version of OCaml;
4179 @item a library for library for ppx rewriters in general, and type-driven code
4180 generators in particular;
4182 a feature-full driver for OCaml AST transformers;
4183 @item a quotation mechanism allowing to write values representing the
4184 OCaml AST in the OCaml syntax;
4185 @item a generator of open recursion classes from type definitions.
4187 (license license:expat)))
4189 (define-public ocaml4.07-ppx-compare
4191 (name "ocaml4.07-ppx-compare")
4196 (url "https://github.com/janestreet/ppx_compare")
4197 (commit (string-append "v" version))))
4198 (file-name (git-file-name name version))
4201 "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
4202 (build-system dune-build-system)
4204 `(("ocaml-base" ,ocaml4.07-base)
4205 ("ocaml-migrate-parsetree"
4206 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4207 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4209 `(#:ocaml ,ocaml-4.07
4210 #:findlib ,ocaml4.07-findlib))
4211 (properties `((upstream-name . "ppx_compare")))
4212 (home-page "https://github.com/janestreet/ppx_compare")
4213 (synopsis "Generation of comparison functions from types")
4214 (description "Generation of fast comparison functions from type expressions
4215 and definitions. Ppx_compare is a ppx rewriter that derives comparison functions
4216 from type representations. The scaffolded functions are usually much faster
4217 than ocaml's Pervasives.compare. Scaffolding functions also gives you more
4218 flexibility by allowing you to override them for a specific type and more safety
4219 by making sure that you only compare comparable values.")
4220 (license license:asl2.0)))
4222 (define-public ocaml4.07-fieldslib
4224 (name "ocaml4.07-fieldslib")
4228 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4229 (version-major+minor version) "/files/"
4230 "fieldslib-v" version ".tar.gz"))
4233 "12948pzxrl360lybm9fzyvplgcl87zjbn4m3sk1aw75zk85p1388"))))
4234 (build-system dune-build-system)
4239 #:findlib ,ocaml4.07-findlib))
4241 `(("ocaml-base" ,ocaml4.07-base)
4242 ("ocaml-migrate-parsetree"
4243 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4244 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4245 (properties `((upstream-name . "fieldslib")))
4246 (home-page "https://github.com/janestreet/fieldslib")
4247 (synopsis "Syntax extension to record fields")
4248 (description "Syntax extension to define first class values representing
4249 record fields, to get and set record fields, iterate and fold over all fields
4250 of a record and create new record values.")
4251 (license license:asl2.0)))
4253 (define-public ocaml4.07-variantslib
4255 (name "ocaml4.07-variantslib")
4259 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4260 (version-major+minor version)
4261 "/files/variantslib-v" version ".tar.gz"))
4264 "1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
4265 (build-system dune-build-system)
4270 #:findlib ,ocaml4.07-findlib))
4272 `(("ocaml-base" ,ocaml4.07-base)
4273 ("ocaml-migrate-parsetree"
4274 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4275 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4276 (properties `((upstream-name . "variantslib")))
4277 (home-page "https://github.com/janestreet/variantslib")
4278 (synopsis "OCaml variants as first class values")
4279 (description "The Core suite of libraries is an alternative to OCaml's
4281 (license license:asl2.0)))
4283 (define-public ocaml4.07-ppx-fields-conv
4285 (name "ocaml4.07-ppx-fields-conv")
4289 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4290 (version-major+minor version)
4291 "/files/ppx_fields_conv-v" version ".tar.gz"))
4294 "07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
4295 (build-system dune-build-system)
4297 `(("ocaml-base" ,ocaml4.07-base)
4298 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
4299 ("ocaml-migrate-parsetree"
4300 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4301 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4303 `(#:ocaml ,ocaml-4.07
4304 #:findlib ,ocaml4.07-findlib))
4305 (properties `((upstream-name . "ppx_fields_conv")))
4306 (home-page "https://github.com/janestreet/ppx_fields_conv")
4307 (synopsis "Generation of accessor and iteration functions for ocaml records")
4308 (description "Ppx_fields_conv is a ppx rewriter that can be used to define
4309 first class values representing record fields, and additional routines, to get
4310 and set record fields, iterate and fold over all fields of a record and create
4311 new record values.")
4312 (license license:asl2.0)))
4314 (define-public ocaml4.07-ppx-sexp-conv
4316 (name "ocaml4.07-ppx-sexp-conv")
4321 (url "https://github.com/janestreet/ppx_sexp_conv")
4322 (commit (string-append "v" version))))
4323 (file-name (git-file-name name version))
4326 "0pqwnqy1xp309wvdcaax4lg02yk64lq2w03mbgfvf6ps5ry4gis9"))))
4327 (build-system dune-build-system)
4329 `(("ocaml-base" ,ocaml4.07-base)
4330 ("ocaml-migrate-parsetree"
4331 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4332 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4334 `(#:ocaml ,ocaml-4.07
4335 #:findlib ,ocaml4.07-findlib))
4336 (properties `((upstream-name . "ppx_sexp_conv")))
4337 (home-page "https://github.com/janestreet/ppx_sexp_conv")
4338 (synopsis "Generation of S-expression conversion functions from type definitions")
4339 (description "This package generates S-expression conversion functions from type
4341 (license license:asl2.0)))
4343 (define-public ocaml4.07-ppx-variants-conv
4345 (name "ocaml4.07-ppx-variants-conv")
4350 (url "https://github.com/janestreet/ppx_variants_conv")
4351 (commit (string-append "v" version))))
4352 (file-name (git-file-name name version))
4355 "1yc0gsds5m2nv39zga8nnrca2n75rkqy5dz4xj1635ybz20hhbjd"))))
4356 (build-system dune-build-system)
4358 `(("ocaml-base" ,ocaml4.07-base)
4359 ("ocaml-variantslib" ,ocaml4.07-variantslib)
4360 ("ocaml-migrate-parsetree"
4361 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4362 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4364 `(#:ocaml ,ocaml-4.07
4365 #:findlib ,ocaml4.07-findlib))
4367 `((upstream-name . "ppx_variants_conv")))
4369 "https://github.com/janestreet/ppx_variants_conv")
4370 (synopsis "Generation of accessor and iteration functions for OCaml variant types")
4372 "This package generates accessors and interation functions for OCaml
4374 (license license:asl2.0)))
4376 (define-public ocaml4.07-ppx-custom-printf
4378 (name "ocaml4.07-ppx-custom-printf")
4382 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4383 (version-major+minor version)
4384 "/files/ppx_custom_printf-v" version ".tar.gz"))
4387 "11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))))
4388 (build-system dune-build-system)
4390 `(("ocaml-base" ,ocaml4.07-base)
4391 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4392 ("ocaml-migrate-parsetree"
4393 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4394 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4396 `(#:ocaml ,ocaml-4.07
4397 #:findlib ,ocaml4.07-findlib))
4398 (properties `((upstream-name . "ppx_custom_printf")))
4399 (home-page "https://github.com/janestreet/ppx_custom_printf")
4400 (synopsis "Printf-style format-strings for user-defined string conversion")
4401 (description "Extensions to printf-style format-strings for user-defined
4402 string conversion.")
4403 (license license:asl2.0)))
4405 (define-public ocaml4.07-bin-prot
4407 (name "ocaml4.07-bin-prot")
4411 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4412 (version-major+minor version)
4413 "/files/bin_prot-v" version ".tar.gz"))
4416 "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
4417 (build-system dune-build-system)
4419 `(("ocaml-base" ,ocaml4.07-base)
4420 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4421 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4422 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4423 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4424 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4425 ("ocaml-migrate-parsetree"
4426 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
4428 `(#:ocaml ,ocaml-4.07
4429 #:findlib ,ocaml4.07-findlib))
4430 (properties `((upstream-name . "bin_prot")))
4431 (home-page "https://github.com/janestreet/bin_prot")
4432 (synopsis "Binary protocol generator")
4433 (description "This library contains functionality for reading and writing
4434 OCaml-values in a type-safe binary protocol. It is extremely efficient,
4435 typically supporting type-safe marshalling and unmarshalling of even highly
4436 structured values at speeds sufficient to saturate a gigabit connection. The
4437 protocol is also heavily optimized for size, making it ideal for long-term
4438 storage of large amounts of data.")
4443 (define-public ocaml-octavius
4445 (name "ocaml-octavius")
4450 (url "https://github.com/ocaml-doc/octavius")
4451 (commit (string-append "v" version))))
4452 (file-name (git-file-name name version))
4455 "1c5m51xcn2jv42kjjpklr6g63sgx1k885wfdp1yr4wrmiaj9cbpx"))))
4456 (build-system dune-build-system)
4459 (modify-phases %standard-phases
4460 (add-before 'build 'make-writable
4462 (for-each (lambda (file)
4464 (find-files "." "."))
4466 (properties `((upstream-name . "octavius")))
4467 (home-page "https://github.com/ocaml-doc/octavius")
4468 (synopsis "Ocamldoc comment syntax parser")
4469 (description "Octavius is a library to parse the `ocamldoc` comment syntax.")
4470 (license license:isc)))
4472 (define-public ocaml4.07-ppx-hash
4474 (name "ocaml4.07-ppx-hash")
4479 (url "https://github.com/janestreet/ppx_hash")
4480 (commit (string-append "v" version))))
4481 (file-name (git-file-name name version))
4484 "1p0ic6aijxlrdggpmycj12q3cy9xksbq2vq727215maz4snvlf5p"))))
4485 (build-system dune-build-system)
4487 `(("ocaml-base" ,ocaml4.07-base)
4488 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4489 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4490 ("ocaml-migrate-parsetree"
4491 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4492 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4494 `(#:ocaml ,ocaml-4.07
4495 #:findlib ,ocaml4.07-findlib))
4496 (properties `((upstream-name . "ppx_hash")))
4497 (home-page "https://github.com/janestreet/ppx_hash")
4498 (synopsis "Generation of hash functions from type expressions and definitions")
4499 (description "This package is a collection of ppx rewriters that generate
4500 hash functions from type exrpessions and definitions.")
4501 (license license:asl2.0)))
4503 (define-public ocaml4.07-ppx-enumerate
4505 (name "ocaml4.07-ppx-enumerate")
4510 (url "https://github.com/janestreet/ppx_enumerate")
4511 (commit (string-append "v" version))))
4512 (file-name (git-file-name name version))
4515 "0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
4516 (build-system dune-build-system)
4518 `(#:tests? #f; no test suite
4520 #:findlib ,ocaml4.07-findlib))
4522 `(("ocaml-base" ,ocaml4.07-base)
4523 ("ocaml-migrate-parsetree"
4524 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4525 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4526 (properties `((upstream-name . "ppx_enumerate")))
4527 (home-page "https://github.com/janestreet/ppx_enumerate")
4528 (synopsis "Generate a list containing all values of a finite type")
4529 (description "Ppx_enumerate is a ppx rewriter which generates a definition
4530 for the list of all values of a type (for a type which only has finitely
4532 (license license:asl2.0)))
4534 (define-public ocaml4.07-ppx-bench
4536 (name "ocaml4.07-ppx-bench")
4540 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4541 (version-major+minor version)
4542 "/files/ppx_bench-v" version ".tar.gz"))
4545 "0ys4pblbcjbk9dn073rqiwm7r6rc7fah03j7riklkwnb5n44andl"))))
4546 (build-system dune-build-system)
4551 #:findlib ,ocaml4.07-findlib))
4553 `(("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
4554 ("ocaml-migrate-parsetree"
4555 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4556 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4557 (properties `((upstream-name . "ppx_bench")))
4558 (home-page "https://github.com/janestreet/ppx_bench")
4559 (synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
4560 (description "Syntax extension for writing in-line benchmarks in ocaml code.")
4561 (license license:asl2.0)))
4563 (define-public ocaml4.07-ppx-here
4565 (name "ocaml4.07-ppx-here")
4569 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4570 (version-major+minor version)
4571 "/files/ppx_here-v" version ".tar.gz"))
4574 "0wxcak3ay4jpigm3pfdcpr65qw4hxfa8whhkryhcd8gy71x056z5"))))
4575 (build-system dune-build-system)
4580 #:findlib ,ocaml4.07-findlib))
4582 `(("ocaml-base" ,ocaml4.07-base)
4583 ("ocaml-migrate-parsetree"
4584 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4585 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4586 (properties `((upstream-name . "ppx_here")))
4587 (home-page "https://github.com/janestreet/ppx_here")
4588 (synopsis "Expands [%here] into its location")
4590 "Part of the Jane Street's PPX rewriters collection.")
4591 (license license:asl2.0)))
4593 (define-public ocaml4.07-typerep
4595 (name "ocaml4.07-typerep")
4599 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4600 (version-major+minor version)
4601 "/files/typerep-v" version ".tar.gz"))
4604 "1zi7hy0prpgzqhr4lkacr04wvlvbp21jfbdfvffhrm6cd400rb5v"))))
4605 (build-system dune-build-system)
4609 #:findlib ,ocaml4.07-findlib))
4610 (propagated-inputs `(("ocaml-base" ,ocaml4.07-base)))
4611 (home-page "https://github.com/janestreet/typerep")
4612 (synopsis "Typerep is a library for runtime types")
4613 (description "Typerep is a library for runtime types.")
4614 (license license:asl2.0)))
4616 (define-public ocaml4.07-ppx-sexp-value
4618 (name "ocaml4.07-ppx-sexp-value")
4622 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4623 (version-major+minor version)
4624 "/files/ppx_sexp_value-v" version ".tar.gz"))
4627 "1xnalfrln6k5khsyxvxkg6v32q8fpr4cqamsjqfih29jdv486xrs"))))
4628 (build-system dune-build-system)
4630 `(#:ocaml ,ocaml-4.07
4631 #:findlib ,ocaml4.07-findlib))
4633 `(("ocaml-base" ,ocaml4.07-base)
4634 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4635 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4636 ("ocaml-migrate-parsetree"
4637 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4638 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4639 (properties `((upstream-name . "ppx_sexp_value")))
4640 (home-page "https://github.com/janestreet/ppx_sexp_value")
4641 (synopsis "Simplify building s-expressions from ocaml values")
4642 (description "A ppx rewriter that simplifies building s-expressions from
4644 (license license:asl2.0)))
4646 (define-public ocaml4.07-ppx-sexp-message
4648 (name "ocaml4.07-ppx-sexp-message")
4652 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4653 (version-major+minor version)
4654 "/files/ppx_sexp_message-v" version ".tar.gz"))
4657 "1yh440za0w9cvrbxbmqacir8715kdaw6sw24ys9xj80av9nqpiw7"))))
4658 (build-system dune-build-system)
4660 `(#:ocaml ,ocaml-4.07
4661 #:findlib ,ocaml4.07-findlib))
4663 `(("ocaml-base" ,ocaml4.07-base)
4664 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4665 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4666 ("ocaml-migrate-parsetree"
4667 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4668 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4669 (properties `((upstream-name . "ppx_sexp_message")))
4670 (home-page "https://github.com/janestreet/ppx_sexp_message")
4671 (synopsis "A ppx rewriter for easy construction of s-expressions")
4672 (description "Ppx_sexp_message aims to ease the creation of s-expressions
4673 in OCaml. This is mainly motivated by writing error and debugging messages,
4674 where one needs to construct a s-expression based on various element of the
4675 context such as function arguments.")
4676 (license license:asl2.0)))
4678 (define-public ocaml4.07-ppx-pipebang
4680 (name "ocaml4.07-ppx-pipebang")
4684 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4685 (version-major+minor version)
4686 "/files/ppx_pipebang-v" version ".tar.gz"))
4689 "1wrrzlb4kdvkkcmzi01fw25jar38r2jlnyn0i6pn4z0lq4gpm9m0"))))
4690 (build-system dune-build-system)
4695 #:findlib ,ocaml4.07-findlib))
4697 `(("ocaml-migrate-parsetree"
4698 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4699 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4700 (properties `((upstream-name . "ppx_pipebang")))
4701 (home-page "https://github.com/janestreet/ppx_pipebang")
4702 (synopsis "Inline reverse application operators `|>` and `|!`")
4703 (description "A ppx rewriter that inlines reverse application operators
4704 @code{|>} and @code{|!}.")
4705 (license license:asl2.0)))
4707 (define-public ocaml4.07-ppx-optional
4709 (name "ocaml4.07-ppx-optional")
4713 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4714 (version-major+minor version)
4715 "/files/ppx_optional-v" version ".tar.gz"))
4718 "1z8z2bga95k2vksljljfglg10vygkjd24kn1b37sk4z3nmp47x0h"))))
4719 (build-system dune-build-system)
4724 #:findlib ,ocaml4.07-findlib))
4726 `(("ocaml-base" ,ocaml4.07-base)
4727 ("ocaml-migrate-parsetree"
4728 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4729 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4730 (properties `((upstream-name . "ppx_optional")))
4731 (home-page "https://github.com/janestreet/ppx_optional")
4732 (synopsis "Pattern matching on flat options")
4734 "A ppx rewriter that rewrites simple match statements with an if then
4736 (license license:asl2.0)))
4738 (define-public ocaml4.07-ppx-optcomp
4740 (name "ocaml4.07-ppx-optcomp")
4744 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4745 (version-major+minor version)
4746 "/files/ppx_optcomp-v" version ".tar.gz"))
4749 "1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))))
4750 (build-system dune-build-system)
4752 `(#:ocaml ,ocaml-4.07
4753 #:findlib ,ocaml4.07-findlib))
4755 `(("ocaml-base" ,ocaml4.07-base)
4756 ("ocaml-stdio" ,ocaml4.07-stdio)
4757 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4758 (properties `((upstream-name . "ppx_optcomp")))
4759 (home-page "https://github.com/janestreet/ppx_optcomp")
4760 (synopsis "Optional compilation for OCaml")
4761 (description "Ppx_optcomp stands for Optional Compilation. It is a tool
4762 used to handle optional compilations of pieces of code depending of the word
4763 size, the version of the compiler, ...")
4764 (license license:asl2.0)))
4766 (define-public ocaml4.07-ppx-let
4768 (name "ocaml4.07-ppx-let")
4772 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4773 (version-major+minor version)
4774 "/files/ppx_let-v" version ".tar.gz"))
4777 "1wdfw6w4xbg97a35yg6bif9gggxniy9ddnrjfw1a0inkl2yamxkj"))))
4778 (build-system dune-build-system)
4780 `(#:ocaml ,ocaml-4.07
4781 #:findlib ,ocaml4.07-findlib))
4783 `(("ocaml-base" ,ocaml4.07-base)
4784 ("ocaml-migrate-parsetree"
4785 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4786 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4787 (properties `((upstream-name . "ppx_let")))
4788 (home-page "https://github.com/janestreet/ppx_let")
4789 (synopsis "Monadic let-bindings")
4790 (description "A ppx rewriter for monadic and applicative let bindings,
4791 match expressions, and if expressions.")
4792 (license license:asl2.0)))
4794 (define-public ocaml4.07-ppx-fail
4796 (name "ocaml4.07-ppx-fail")
4800 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4801 (version-major+minor version)
4802 "/files/ppx_fail-v" version ".tar.gz"))
4805 "07plqsvljiwvngggfypwq55g46s5my55y45mvlmalrxyppzr03s8"))))
4806 (build-system dune-build-system)
4808 `(#:ocaml ,ocaml-4.07
4809 #:findlib ,ocaml4.07-findlib))
4811 `(("ocaml-base" ,ocaml4.07-base)
4812 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4813 ("ocaml-migrate-parsetree"
4814 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4815 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4816 (properties `((upstream-name . "ppx_fail")))
4817 (home-page "https://github.com/janestreet/ppx_fail")
4818 (synopsis "Add location to calls to failwiths")
4819 (description "Syntax extension that makes [failwiths] always include a
4821 (license license:asl2.0)))
4823 (define-public ocaml4.07-ppx-assert
4825 (name "ocaml4.07-ppx-assert")
4829 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4830 (version-major+minor version)
4831 "/files/ppx_assert-v" version ".tar.gz"))
4834 "17kd311n0l9f72gblf9kv8i5rghr106w37x4f0m5qwh6nlgl0j9k"))))
4835 (build-system dune-build-system)
4837 `(#:ocaml ,ocaml-4.07
4838 #:findlib ,ocaml4.07-findlib))
4840 `(("ocaml-base" ,ocaml4.07-base)
4841 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4842 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4843 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4844 ("ocaml-migrate-parsetree"
4845 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4846 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4847 (properties `((upstream-name . "ppx_assert")))
4848 (home-page "https://github.com/janestreet/ppx_assert")
4849 (synopsis "Assert-like extension nodes that raise useful errors on failure")
4850 (description "This package contains assert-like extension nodes that raise
4851 useful errors on failure.")
4852 (license license:asl2.0)))
4854 (define-public ocaml4.07-ppx-expect
4856 (name "ocaml4.07-ppx-expect")
4861 (url "https://github.com/janestreet/ppx_expect")
4862 (commit (string-append "v" version))))
4863 (file-name (git-file-name name version))
4866 "1wawsbjfkri4sw52n8xqrzihxc3xfpdicv3ahz83a1rsn4lb8j5q"))))
4867 (build-system dune-build-system)
4871 #:findlib ,ocaml4.07-findlib))
4873 `(("ocaml-base" ,ocaml4.07-base)
4874 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
4875 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4876 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4877 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4878 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4879 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
4880 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4881 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4882 ("ocaml-stdio" ,ocaml4.07-stdio)
4883 ("ocaml-migrate-parsetree"
4884 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4885 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)
4886 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))))
4887 (properties `((upstream-name . "ppx_expect")))
4888 (home-page "https://github.com/janestreet/ppx_expect")
4889 (synopsis "Cram like framework for OCaml")
4890 (description "Expect-test is a framework for writing tests in OCaml, similar
4891 to Cram. Expect-tests mimics the existing inline tests framework with the
4892 @code{let%expect_test} construct. The body of an expect-test can contain
4893 output-generating code, interleaved with @code{%expect} extension expressions
4894 to denote the expected output.")
4895 (license license:asl2.0)))
4897 (define-public ocaml4.07-ppx-js-style
4899 (name "ocaml4.07-ppx-js-style")
4903 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4904 (version-major+minor version)
4905 "/files/ppx_js_style-v" version ".tar.gz"))
4908 "0z3fc55jdjhhsblla6z4fqc13kljpcz29q79rvs5h2vsraqrldr2"))))
4909 (build-system dune-build-system)
4914 #:findlib ,ocaml4.07-findlib))
4916 `(("ocaml-base" ,ocaml4.07-base)
4917 ("ocaml-migrate-parsetree"
4918 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4919 ("ocaml-octavius" ,(package-with-ocaml4.07 ocaml-octavius))
4920 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4921 (properties `((upstream-name . "ppx_js_style")))
4922 (home-page "https://github.com/janestreet/ppx_js_style")
4923 (synopsis "Code style checker for Jane Street Packages")
4924 (description "This package is a no-op ppx rewriter. It is used as a
4925 @code{lint} tool to enforce some coding conventions across all Jane Street
4927 (license license:asl2.0)))
4929 (define-public ocaml4.07-ppx-typerep-conv
4931 (name "ocaml4.07-ppx-typerep-conv")
4936 (url "https://github.com/janestreet/ppx_typerep_conv")
4937 (commit (string-append "v" version))))
4938 (file-name (git-file-name name version))
4941 "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))
4942 (build-system dune-build-system)
4946 #:findlib ,ocaml4.07-findlib))
4948 `(("ocaml-base" ,ocaml4.07-base)
4949 ("ocaml-typerep" ,ocaml4.07-typerep)
4950 ("ocaml-migrate-parsetree"
4951 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4952 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4953 (properties `((upstream-name . "ppx_typerep_conv")))
4954 (home-page "https://github.com/janestreet/ppx_typerep_conv")
4955 (synopsis "Generation of runtime types from type declarations")
4956 (description "This package can automatically generate runtime types
4957 from type definitions.")
4958 (license license:asl2.0)))
4960 (define-public ocaml4.07-ppx-base
4962 (name "ocaml4.07-ppx-base")
4966 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4967 (version-major+minor version)
4968 "/files/ppx_base-v" version ".tar.gz"))
4971 "0aq206pg330jmj7lhcagiiwm3a0b3gsqm801m8ajd4ysyw7idkym"))))
4972 (build-system dune-build-system)
4976 #:findlib ,ocaml4.07-findlib))
4978 `(("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4979 ("ocaml-ppx-enumerate" ,ocaml4.07-ppx-enumerate)
4980 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
4981 ("ocaml-ppx-js-style" ,ocaml4.07-ppx-js-style)
4982 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4983 ("ocaml-migrate-parsetree"
4984 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4985 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4986 (properties `((upstream-name . "ppx_base")))
4987 (home-page "https://github.com/janestreet/ppx_base")
4988 (synopsis "Base set of ppx rewriters")
4989 (description "Ppx_base is the set of ppx rewriters used for Base.
4991 Note that Base doesn't need ppx to build, it is only used as a
4992 verification tool.")
4993 (license license:asl2.0)))
4995 (define-public ocaml4.07-ppx-bin-prot
4997 (name "ocaml4.07-ppx-bin-prot")
5002 (url "https://github.com/janestreet/ppx_bin_prot")
5003 (commit (string-append "v" version))))
5004 (file-name (git-file-name name version))
5007 "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
5008 (build-system dune-build-system)
5010 ;; Cyclic dependency with ocaml-ppx-jane
5013 #:findlib ,ocaml4.07-findlib))
5015 `(("ocaml-base" ,ocaml4.07-base)
5016 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
5017 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5018 ("ocaml-migrate-parsetree"
5019 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5020 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5021 (properties `((upstream-name . "ppx_bin_prot")))
5022 (home-page "https://github.com/janestreet/ppx_bin_prot")
5023 (synopsis "Generation of bin_prot readers and writers from types")
5024 (description "Generation of binary serialization and deserialization
5025 functions from type definitions.")
5026 (license license:asl2.0)))
5028 (define-public ocaml4.07-ppx-jane
5030 (name "ocaml4.07-ppx-jane")
5034 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5035 (version-major+minor version)
5036 "/files/ppx_jane-v" version ".tar.gz"))
5039 "0lgppkw3aixrfnixihrsz2ipafv8fpvkdpy3pw8n0r615gg8x8la"))))
5040 (build-system dune-build-system)
5044 #:findlib ,ocaml4.07-findlib))
5046 `(("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5047 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5048 ("ocaml-ppx-bench" ,ocaml4.07-ppx-bench)
5049 ("ocaml-ppx-bin-prot" ,ocaml4.07-ppx-bin-prot)
5050 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
5051 ("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)
5052 ("ocaml-ppx-fail" ,ocaml4.07-ppx-fail)
5053 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
5054 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5055 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5056 ("ocaml-ppx-let" ,ocaml4.07-ppx-let)
5057 ("ocaml-ppx-optcomp" ,ocaml4.07-ppx-optcomp)
5058 ("ocaml-ppx-optional" ,ocaml4.07-ppx-optional)
5059 ("ocaml-ppx-pipebang" ,ocaml4.07-ppx-pipebang)
5060 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5061 ("ocaml-ppx-sexp-value" ,ocaml4.07-ppx-sexp-value)
5062 ("ocaml-ppx-typerep-conv" ,ocaml4.07-ppx-typerep-conv)
5063 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
5064 ("ocaml-migrate-parsetree"
5065 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5066 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5067 (properties `((upstream-name . "ppx_jane")))
5068 (home-page "https://github.com/janestreet/ppx_jane")
5069 (synopsis "Standard Jane Street ppx rewriters")
5070 (description "This package installs a ppx-jane executable, which is a ppx
5071 driver including all standard Jane Street ppx rewriters.")
5072 (license license:asl2.0)))
5074 (define-public ocaml4.07-splittable-random
5076 (name "ocaml4.07-splittable-random")
5080 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5081 (version-major+minor version)
5082 "/files/splittable_random-v" version ".tar.gz"))
5085 "0l1wbd881mymlnpzlq5q53mmdz3g5d7qjhyc7lfaq1x0iaccn5lc"))))
5086 (build-system dune-build-system)
5088 `(#:ocaml ,ocaml-4.07
5089 #:findlib ,ocaml4.07-findlib))
5091 `(("ocaml-base" ,ocaml4.07-base)
5092 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5093 ("ocaml-migrate-parsetree"
5094 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5095 (properties `((upstream-name . "splittable_random")))
5096 (home-page "https://github.com/janestreet/splittable_random")
5097 (synopsis "PRNG that can be split into independent streams")
5098 (description "This package provides a splittable
5099 @acronym{PRNG,pseudo-random number generator} functions like a PRNG that can
5100 be used as a stream of random values; it can also be split to produce a
5101 second, independent stream of random values.
5103 This library implements a splittable pseudo-random number generator that sacrifices
5104 cryptographic-quality randomness in favor of performance.")
5105 (license license:asl2.0)))
5107 (define-public ocaml-jane-street-headers
5109 (name "ocaml-jane-street-headers")
5113 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5114 (version-major+minor version)
5115 "/files/jane-street-headers-v" version ".tar.gz"))
5118 "0afhzm08l9v883fhpqqh2lmy7az609pxif40bp7x1sk8c0yszqsh"))))
5119 (build-system dune-build-system)
5121 `(#:test-target "."))
5122 (home-page "https://github.com/janestreet/jane-street-headers")
5123 (synopsis "Jane Street C header files")
5124 (description "This package provides C header files shared between the
5125 various Jane Street packages.")
5126 (license license:asl2.0)))
5128 (define-public ocaml4.07-configurator
5130 (name "ocaml4.07-configurator")
5134 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5135 (version-major+minor version)
5136 "/files/configurator-v" version ".tar.gz"))
5139 "0kwgi3sh92v4n242dk5hgpwd85zzgnczgbkqi0q0kr6m93zgbf7p"))))
5140 (build-system dune-build-system)
5145 #:findlib ,ocaml4.07-findlib))
5147 `(("ocaml-base" ,ocaml4.07-base)
5148 ("ocaml-stdio" ,ocaml4.07-stdio)))
5149 (home-page "https://github.com/janestreet/configurator")
5150 (synopsis "Helper library for gathering system configuration")
5151 (description "Configurator is a small library that helps writing OCaml
5152 scripts that test features available on the system, in order to generate config.h
5155 Configurator allows one to:
5157 @item test if a C program compiles
5158 @item query pkg-config
5159 @item import #define from OCaml header files
5160 @item generate config.h file
5162 (license license:asl2.0)))
5164 (define-public ocaml4.07-spawn
5166 (name "ocaml4.07-spawn")
5171 (url "https://github.com/janestreet/spawn")
5172 (commit (string-append "v" version))))
5173 (file-name (git-file-name name version))
5176 "1w003k1kw1lmyiqlk58gkxx8rac7dchiqlz6ah7aj7bh49b36ppf"))))
5177 (build-system dune-build-system)
5180 (modify-phases %standard-phases
5181 (add-before 'check 'fix-tests
5183 (substitute* "test/tests.ml"
5184 (("/bin/pwd") (which "pwd"))
5185 (("/bin/echo") (which "echo")))
5188 #:findlib ,ocaml4.07-findlib))
5190 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
5191 (home-page "https://github.com/janestreet/spawn")
5192 (synopsis "Spawning sub-processes")
5194 "Spawn is a small library exposing only one functionality: spawning sub-process.
5196 It has three main goals:
5199 @item provide missing features of Unix.create_process such as providing a
5201 @item provide better errors when a system call fails in the
5202 sub-process. For instance if a command is not found, you get a proper
5203 @code{Unix.Unix_error} exception,
5204 @item improve performances by using vfork when available. It is often
5205 claimed that nowadays fork is as fast as vfork, however in practice
5206 fork takes time proportional to the process memory while vfork is
5207 constant time. In application using a lot of memory, vfork can be
5208 thousands of times faster than fork.
5210 (license license:asl2.0)))
5212 (define-public ocaml4.07-core
5214 (name "ocaml4.07-core")
5219 (url "https://github.com/janestreet/core")
5220 (commit (string-append "v" version))))
5221 (file-name (git-file-name name version))
5224 "0pzl8n09z4f3i7z2wq4cjxfqrr8mj6xcdp7rbg0nxap2zdhjgvrq"))))
5225 (build-system dune-build-system)
5228 ;; Require a cyclic dependency: core_extended
5231 #:findlib ,ocaml4.07-findlib))
5233 `(("ocaml-base" ,ocaml4.07-base)
5234 ("ocaml-configurator" ,ocaml4.07-configurator)
5235 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
5236 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5237 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5238 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5239 ("ocaml-spawn" ,ocaml4.07-spawn)
5240 ("ocaml-stdio" ,ocaml4.07-stdio)
5241 ("ocaml-migrate-parsetree"
5242 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5243 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5244 (home-page "https://github.com/janestreet/core")
5245 (synopsis "Alternative to OCaml's standard library")
5246 (description "The Core suite of libraries is an alternative to OCaml's
5247 standard library that was developed by Jane Street.")
5248 ;; Also contains parts of OCaml, relicensed to asl2.0, as permitted
5249 ;; by OCaml's license for consortium members (see THIRD-PARTY.txt).
5250 (license license:asl2.0)))
5252 (define-public ocaml4.07-core-kernel
5254 (name "ocaml4.07-core-kernel")
5259 (url "https://github.com/janestreet/core_kernel")
5260 (commit (string-append "v" version))))
5261 (file-name (git-file-name name version))
5264 "1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
5265 (build-system dune-build-system)
5267 ;; Cyclic dependency with ocaml-core
5270 #:findlib ,ocaml4.07-findlib))
5272 `(("ocaml-base" ,ocaml4.07-base)
5273 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
5274 ("ocaml-configurator" ,ocaml4.07-configurator)
5275 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
5276 ("ocaml-jane-street-headers"
5277 ,(package-with-ocaml4.07 ocaml-jane-street-headers))
5278 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5279 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5280 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
5281 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5282 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5283 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5284 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5285 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5286 ("ocaml-splittable-random" ,ocaml4.07-splittable-random)
5287 ("ocaml-stdio" ,ocaml4.07-stdio)
5288 ("ocaml-typerep" ,ocaml4.07-typerep)
5289 ("ocaml-variantslib" ,ocaml4.07-variantslib)
5290 ("ocaml-migrate-parsetree"
5291 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5292 (properties `((upstream-name . "core_kernel")))
5293 (home-page "https://github.com/janestreet/core_kernel")
5294 (synopsis "Portable standard library for OCaml")
5295 (description "Core is an alternative to the OCaml standard library.
5297 Core_kernel is the system-independent part of Core. It is aimed for cases when
5298 the full Core is not available, such as in Javascript.")
5300 ;; this package and parts of OCaml, relicensed by janestreet
5305 (define-public ocaml-markup
5307 (name "ocaml-markup")
5309 (home-page "https://github.com/aantron/markup.ml")
5314 (url (string-append home-page ".git"))
5316 (file-name (git-file-name name version))
5319 "13zcrwzjmifniv3bvjbkd2ah8wwa3ld75bxh1d8hrzdvfxzh9szn"))))
5320 (build-system dune-build-system)
5322 `(#:package "markup"))
5324 `(("libev" ,libev)))
5326 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
5327 ("ocaml-uchar" ,ocaml-uchar)
5328 ("ocaml-uutf" ,ocaml-uutf)
5329 ("ocaml-lwt" ,ocaml-lwt)))
5331 `(("ocaml-ounit" ,ocaml-ounit)
5332 ("pkg-config" ,pkg-config)))
5333 (synopsis "Error-recovering functional HTML5 and XML parsers and writers")
5334 (description "Markup.ml provides an HTML parser and an XML parser. The
5335 parsers are wrapped in a simple interface: they are functions that transform
5336 byte streams to parsing signal streams. Streams can be manipulated in various
5337 ways, such as processing by fold, filter, and map, assembly into DOM tree
5338 structures, or serialization back to HTML or XML.
5340 Both parsers are based on their respective standards. The HTML parser, in
5341 particular, is based on the state machines defined in HTML5.
5343 The parsers are error-recovering by default, and accept fragments. This makes
5344 it very easy to get a best-effort parse of some input. The parsers can,
5345 however, be easily configured to be strict, and to accept only full documents.
5347 Apart from this, the parsers are streaming (do not build up a document in
5348 memory), non-blocking (can be used with threading libraries), lazy (do not
5349 consume input unless the signal stream is being read), and process the input in
5350 a single pass. They automatically detect the character encoding of the input
5351 stream, and convert everything to UTF-8.")
5352 (license license:bsd-3)))
5354 (define-public ocaml-tyxml
5356 (name "ocaml-tyxml")
5362 (url "https://github.com/ocsigen/tyxml")
5364 (file-name (git-file-name name version))
5367 "0wv19xipkj8l2sks1h53105ywbjwk7q93fb7b8al4a2g9wr109c0"))))
5368 (build-system dune-build-system)
5370 `(("ocaml-re" ,ocaml-re)
5371 ("ocaml-seq" ,ocaml-seq)
5372 ("ocaml-uutf" ,ocaml-uutf)
5373 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5374 ("ocaml-markup" ,ocaml-markup)))
5376 `(("ocaml-alcotest" ,ocaml-alcotest)))
5377 (arguments `(#:jbuild? #t))
5378 (home-page "https://github.com/ocsigen/tyxml/")
5379 (synopsis "TyXML is a library for building correct HTML and SVG documents")
5380 (description "TyXML provides a set of convenient combinators that uses the
5381 OCaml type system to ensure the validity of the generated documents. TyXML can
5382 be used with any representation of HTML and SVG: the textual one, provided
5383 directly by this package, or DOM trees (@code{js_of_ocaml-tyxml}) virtual DOM
5384 (@code{virtual-dom}) and reactive or replicated trees (@code{eliom}). You can
5385 also create your own representation and use it to instantiate a new set of
5387 (license license:lgpl2.1)))
5389 (define-public ocaml-bisect-ppx
5391 (name "ocaml-bisect-ppx")
5397 (url "https://github.com/aantron/bisect_ppx")
5399 (file-name (git-file-name name version))
5402 "0900vli5kw7s5kdam0n4cqsfsfqb7mdb3azn3i55595gilg1vyn8"))))
5403 (build-system dune-build-system)
5405 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5406 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5407 ("ocaml-ounit" ,ocaml-ounit)))
5410 (modify-phases %standard-phases
5411 (add-before 'build 'fix-deprecated
5413 ;; Fixed upstream in 22dd1ad9a0c9629f60599c22d82c6488394d6d32, but
5414 ;; not in a release yet.
5415 (substitute* "src/ppx/instrument.ml"
5416 (("module Ast = Ast_405")
5417 "module Ast = Migrate_parsetree.Ast_405
5418 module Ast_405 = Ast"))
5420 (home-page "https://github.com/aantron/bisect_ppx")
5421 (synopsis "Code coverage for OCaml")
5422 (description "Bisect_ppx helps you test thoroughly. It is a small
5423 preprocessor that inserts instrumentation at places in your code, such as
5424 if-then-else and match expressions. After you run tests, Bisect_ppx gives a
5425 nice HTML report showing which places were visited and which were missed.
5427 Usage is simple - add package bisect_ppx when building tests, run your tests,
5428 then run the Bisect_ppx report tool on the generated visitation files.")
5429 (license license:mpl2.0)))
5431 (define-public ocaml4.07-odoc
5433 (name "ocaml4.07-odoc")
5439 (url "https://github.com/ocaml/odoc")
5441 (file-name (git-file-name name version))
5443 (base32 "0rvhx139jx6wmlfz355mja6mk03x4swq1xxvk5ky6jzhalq3cf5i"))))
5444 (build-system dune-build-system)
5446 `(#:ocaml ,ocaml-4.07
5447 #:findlib ,ocaml4.07-findlib
5448 #:dune ,ocaml4.07-dune))
5450 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))
5451 ("ocaml-markup" ,(package-with-ocaml4.07 ocaml-markup))
5452 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5453 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
5454 ("ocaml-uutf" ,(package-with-ocaml4.07 ocaml-uutf))))
5456 `(("ocaml-astring" ,(package-with-ocaml4.07 ocaml-astring))
5457 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
5458 ("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
5459 ("ocaml-fpath" ,(package-with-ocaml4.07 ocaml-fpath))
5460 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
5461 ("ocaml-tyxml" ,(package-with-ocaml4.07 ocaml-tyxml))
5462 ("ocaml-bisect-ppx" ,(package-with-ocaml4.07 ocaml-bisect-ppx))))
5463 (home-page "https://github.com/ocaml/odoc")
5464 (synopsis "OCaml documentation generator")
5465 (description "Odoc is a documentation generator for OCaml. It reads
5466 @emph{doc comments}, delimited with @code{(** ... *)}, and outputs
5469 Text inside doc comments is marked up in ocamldoc syntax. Odoc's main
5470 advantage over ocamldoc is an accurate cross-referencer, which handles the
5471 complexity of the OCaml module system.")
5472 (license license:isc)))
5474 (define-public ocaml4.07-fftw3
5476 (name "ocaml4.07-fftw3")
5482 (url "https://github.com/Chris00/fftw-ocaml")
5484 (file-name (git-file-name name version))
5487 "0l66yagjkwdcib6q55wd8wiap50vi23qiahkghlvm28z7nvbclfk"))))
5488 (build-system dune-build-system)
5491 #:test-target "tests"
5493 #:findlib ,ocaml4.07-findlib
5494 #:dune ,ocaml4.07-dune))
5499 `(("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
5500 ("ocaml-lacaml" ,ocaml4.07-lacaml)))
5502 "https://github.com/Chris00/fftw-ocaml")
5504 "Bindings to FFTW3")
5506 "Bindings providing OCaml support for the seminal Fast Fourier Transform
5508 (license license:lgpl2.1))) ; with static linking exception.
5510 (define-public ocaml4.07-lacaml
5512 (name "ocaml4.07-lacaml")
5518 (url "https://github.com/mmottl/lacaml")
5520 (file-name (git-file-name name version))
5523 "180yb79a3qgx067qcpm50q12hrimjygf06rgkzbish9d1zfm670c"))))
5524 (build-system dune-build-system)
5526 `(#:tests? #f ; No test target.
5528 #:findlib ,ocaml4.07-findlib
5529 #:dune ,ocaml4.07-dune))
5531 `(("openblas" ,openblas)
5533 ("ocaml-base" ,ocaml4.07-base)
5534 ("ocaml-stdio" ,ocaml4.07-stdio)))
5535 (home-page "https://mmottl.github.io/lacaml/")
5537 "OCaml-bindings to BLAS and LAPACK")
5539 "Lacaml interfaces the BLAS-library (Basic Linear Algebra Subroutines) and
5540 LAPACK-library (Linear Algebra routines). It also contains many additional
5541 convenience functions for vectors and matrices.")
5542 (license license:lgpl2.1)))
5544 (define-public ocaml-cairo2
5546 (name "ocaml-cairo2")
5551 (url "https://github.com/Chris00/ocaml-cairo")
5553 (file-name (git-file-name name version))
5556 "0wzysis9fa850s68qh8vrvqc6svgllhwra3kzll2ibv0wmdqrich"))))
5557 (build-system dune-build-system)
5559 `(#:test-target "tests"))
5563 ("lablgtk" ,lablgtk)))
5565 `(("pkg-config" ,pkg-config)))
5566 (home-page "https://github.com/Chris00/ocaml-cairo")
5567 (synopsis "Binding to Cairo, a 2D Vector Graphics Library")
5568 (description "Ocaml-cairo2 is a binding to Cairo, a 2D graphics library
5569 with support for multiple output devices. Currently supported output targets
5570 include the X Window System, Quartz, Win32, image buffers, PostScript, PDF,
5571 and SVG file output.")
5572 (license license:lgpl3+)))
5574 (define-public lablgtk3
5577 (version "3.0.beta8")
5581 (url "https://github.com/garrigue/lablgtk")
5583 (file-name (git-file-name name version))
5586 "08pgwnia240i2rw1rbgiahg673kwa7b6bvhsg3z4b47xr5sh9pvz"))))
5587 (build-system dune-build-system)
5592 (modify-phases %standard-phases
5593 (add-before 'build 'make-writable
5595 (for-each (lambda (file)
5597 (find-files "." "."))
5600 `(("ocaml-cairo2" ,ocaml-cairo2)))
5602 `(("camlp5" ,camlp5)
5604 ("gtksourceview-3" ,gtksourceview-3)
5605 ("gtkspell3" ,gtkspell3)))
5607 `(("pkg-config" ,pkg-config)))
5608 (home-page "https://github.com/garrigue/lablgtk")
5609 (synopsis "OCaml interface to GTK+3")
5610 (description "LablGtk is an OCaml interface to GTK+ 1.2, 2.x and 3.x. It
5611 provides a strongly-typed object-oriented interface that is compatible with the
5612 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
5613 also provides bindings to gdk-pixbuf, the GLArea widget (in combination with
5614 LablGL), gnomecanvas, gnomeui, gtksourceview, gtkspell, libglade (and it can
5615 generate OCaml code from .glade files), libpanel, librsvg and quartz.")
5616 ;; Version 2 only, with linking exception.
5617 (license license:lgpl2.0)))