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>
18 ;;; This file is part of GNU Guix.
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33 (define-module (gnu packages ocaml)
34 #:use-module (gnu packages)
35 #:use-module (gnu packages algebra)
36 #:use-module (gnu packages autotools)
37 #:use-module (gnu packages base)
38 #:use-module (gnu packages bison)
39 #:use-module (gnu packages boost)
40 #:use-module (gnu packages compression)
41 #:use-module (gnu packages curl)
42 #:use-module (gnu packages emacs)
43 #:use-module (gnu packages emacs-xyz)
44 #:use-module (gnu packages flex)
45 #:use-module (gnu packages gcc)
46 #:use-module (gnu packages ghostscript)
47 #:use-module (gnu packages glib)
48 #:use-module (gnu packages gnome)
49 #:use-module (gnu packages gtk)
50 #:use-module (gnu packages libevent)
51 #:use-module (gnu packages libffi)
52 #:use-module (gnu packages llvm)
53 #:use-module (gnu packages m4)
54 #:use-module (gnu packages maths)
55 #:use-module (gnu packages multiprecision)
56 #:use-module (gnu packages ncurses)
57 #:use-module (gnu packages pcre)
58 #:use-module (gnu packages perl)
59 #:use-module (gnu packages pkg-config)
60 #:use-module (gnu packages protobuf)
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages python-xyz)
63 #:use-module (gnu packages sdl)
64 #:use-module (gnu packages sqlite)
65 #:use-module (gnu packages tex)
66 #:use-module (gnu packages texinfo)
67 #:use-module (gnu packages time)
68 #:use-module (gnu packages tls)
69 #:use-module (gnu packages version-control)
70 #:use-module (gnu packages virtualization)
71 #:use-module (gnu packages web-browsers)
72 #:use-module (gnu packages xml)
73 #:use-module (gnu packages xorg)
74 #:use-module (guix build-system dune)
75 #:use-module (guix build-system emacs)
76 #:use-module (guix build-system gnu)
77 #:use-module (guix build-system ocaml)
78 #:use-module (guix download)
79 #:use-module (guix git-download)
80 #:use-module ((guix licenses) #:prefix license:)
81 #:use-module (guix packages)
82 #:use-module (guix svn-download)
83 #:use-module (guix utils)
84 #:use-module ((srfi srfi-1) #:hide (zip)))
86 ;; A shortcut for files from ocaml forge. Downloaded files are computed from
87 ;; their number, not their name.
88 (define (ocaml-forge-uri name version file-number)
89 (string-append "https://forge.ocamlcore.org/frs/download.php/"
90 (number->string file-number) "/" name "-" version
93 ;; Janestreet packages are found in a similar way and all need the same patch.
94 (define (janestreet-origin name version hash)
95 (origin (method url-fetch)
96 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/"
97 (version-major+minor version) "/files/"
98 name "-" version ".tar.gz"))
99 (sha256 (base32 hash))
100 (modules '((guix build utils)))
102 (let ((pattern (string-append "lib/" name)))
104 ;; install.ml contains an invalid reference to the ppx file and
105 ;; propagates this error to the generated META file. It
106 ;; looks for it in the "lib" directory, but it is installed in
107 ;; "lib/ocaml/site-lib/package". This substitute does not change
108 ;; this file for non ppx packages.
109 (substitute* "install.ml"
110 ((,pattern) (string-append "lib/ocaml/site-lib/" ,name)))
111 ;; The standard Makefile would try to install janestreet modules
112 ;; in OCaml's directory in the store, which is read-only.
113 (substitute* "Makefile"
115 "--libdir $(LIBDIR) --prefix"))
118 ;; They also require almost the same set of arguments
119 (define janestreet-arguments
122 (list (string-append "CONFIGUREFLAGS=--prefix "
123 (assoc-ref %outputs "out")
125 (string-append "LIBDIR="
126 (assoc-ref %outputs "out")
127 "/lib/ocaml/site-lib")
128 ;; for ocaml-bin-prot, otherwise ignored
129 (string-append "OCAML_TOPLEVEL_PATH="
130 (assoc-ref %build-inputs "findlib")
131 "/lib/ocaml/site-lib"))
132 #:phases (modify-phases %standard-phases (delete 'configure))))
134 (define-public ocaml-4.09
141 "http://caml.inria.fr/pub/distrib/ocaml-"
142 (version-major+minor version)
143 "/ocaml-" version ".tar.xz"))
146 "1v3z5ar326f3hzvpfljg4xj8b9lmbrl53fn57yih1bkbx3gr3yzj"))))
147 (build-system gnu-build-system)
149 (list (search-path-specification
150 (variable "OCAMLPATH")
151 (files (list "lib/ocaml" "lib/ocaml/site-lib")))
152 (search-path-specification
153 (variable "CAML_LD_LIBRARY_PATH")
154 (files (list "lib/ocaml/site-lib/stubslibs"
155 "lib/ocaml/site-lib/stublibs")))))
158 ("pkg-config" ,pkg-config)))
161 ;; For libiberty, needed for objdump support.
162 ("gcc:lib" ,(canonical-package gcc) "lib")
163 ("zlib" ,zlib))) ;also needed for objdump support
166 (modify-phases %standard-phases
167 (add-after 'unpack 'patch-/bin/sh-references
168 (lambda* (#:key inputs #:allow-other-keys)
169 (let* ((sh (string-append (assoc-ref inputs "bash")
171 (quoted-sh (string-append "\"" sh "\"")))
172 (with-fluids ((%default-port-encoding #f))
178 (format (current-error-port) "\
179 patch-/bin/sh-references: ~a: changing `\"/bin/sh\"' to `~a'~%"
182 (find-files "." "\\.ml$"))
186 (invoke "make" "-j" (number->string (parallel-job-count))
190 (with-directory-excursion "testsuite"
191 (invoke "make" "all")))))))
192 (home-page "https://ocaml.org/")
193 (synopsis "The OCaml programming language")
195 "OCaml is a general purpose industrial-strength programming language with
196 an emphasis on expressiveness and safety. Developed for more than 20 years at
197 Inria it benefits from one of the most advanced type systems and supports
198 functional, imperative and object-oriented styles of programming.")
199 ;; The compiler is distributed under qpl1.0 with a change to choice of
200 ;; law: the license is governed by the laws of France. The library is
201 ;; distributed under lgpl2.0.
202 (license (list license:qpl license:lgpl2.0))))
204 (define-public ocaml-4.07
211 "http://caml.inria.fr/pub/distrib/ocaml-"
212 (version-major+minor version)
213 "/ocaml-" version ".tar.xz"))
216 "1f07hgj5k45cylj1q3k5mk8yi02cwzx849b1fwnwia8xlcfqpr6z"))))
218 (substitute-keyword-arguments (package-arguments ocaml-4.09)
220 `(modify-phases ,phases
222 (lambda* (#:key outputs #:allow-other-keys)
223 (let* ((out (assoc-ref outputs "out"))
224 (mandir (string-append out "/share/man")))
225 ;; Custom configure script doesn't recognize
226 ;; --prefix=<PREFIX> syntax (with equals sign).
227 (invoke "./configure"
229 "--mandir" mandir))))))))))
231 (define-public ocaml ocaml-4.09)
233 (define-public ocamlbuild
241 (url "https://github.com/ocaml/ocamlbuild.git")
243 (file-name (git-file-name name version))
245 (base32 "1hb5mcdz4wv7sh1pj7dq9q4fgz5h3zg7frpiya6s8zd3ypwzq0kh"))))
246 (build-system ocaml-build-system)
249 (list (string-append "OCAMLBUILD_PREFIX=" (assoc-ref %outputs "out"))
250 (string-append "OCAMLBUILD_BINDIR=" (assoc-ref %outputs "out")
252 (string-append "OCAMLBUILD_LIBDIR=" (assoc-ref %outputs "out")
253 "/lib/ocaml/site-lib")
254 (string-append "OCAMLBUILD_MANDIR=" (assoc-ref %outputs "out")
257 (modify-phases %standard-phases
259 ; some failures because of changes in OCaml's error message formating
261 (home-page "https://github.com/ocaml/ocamlbuild")
262 (synopsis "OCaml build tool")
263 (description "OCamlbuild is a generic build tool, that has built-in rules
264 for building OCaml library and programs.")
265 (license license:lgpl2.1+)))
267 (define-public ocaml-extlib
269 (name "ocaml-extlib")
273 (uri (string-append "https://ygrek.org/p/release/ocaml-extlib/"
274 "extlib-" version ".tar.gz"))
277 "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1"))))
278 (build-system ocaml-build-system)
281 (modify-phases %standard-phases
282 (delete 'configure))))
284 `(("ocaml-cppo" ,ocaml-cppo)))
285 (home-page "https://github.com/ygrek/ocaml-extlib")
286 (synopsis "Complete and small extension for OCaml standard library")
287 (description "This library adds new functions to OCaml standard library
288 modules, modifies some functions in order to get better performances or
289 safety (tail-recursive) and also provides new modules which should be useful
290 for day to day programming.")
291 ;; With static-linking exception
292 (license license:lgpl2.1+)))
294 (define-public ocaml-cudf
301 (uri "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz")
304 "0771lwljqwwn3cryl0plny5a5dyyrj4z6bw66ha5n8yfbpcy8clr"))))
305 (build-system ocaml-build-system)
306 (propagated-inputs `(("ocaml-extlib" ,ocaml-extlib)))
309 ("ocamlbuild" ,ocamlbuild)
310 ("ocaml-ounit" ,ocaml-ounit)))
315 (string-append "BINDIR=" (assoc-ref %outputs "out")
318 (modify-phases %standard-phases
319 (delete 'configure))))
320 (home-page "http://www.mancoosi.org/cudf/")
321 (synopsis "CUDF library (part of the Mancoosi tools)")
322 (description "CUDF (for Common Upgradeability Description Format) is a
323 format for describing upgrade scenarios in package-based Free and Open Source
324 Software distribution.")
325 ;; With static-linking exception
326 (license license:lgpl2.1+)))
328 (define-public ocaml-mccs
335 (url "https://github.com/AltGr/ocaml-mccs")
337 (file-name (git-file-name name version))
340 "1i0hhkrqi7rqlainlg5pc4hibbx6b5dp3x99gmav8c3sbfvlk9mc"))))
341 (build-system dune-build-system)
342 (propagated-inputs `(("ocaml-cudf" ,ocaml-cudf)))
343 (home-page "https://www.i3s.unice.fr/~cpjm/misc/")
344 (synopsis "Upgrade path problem solver")
345 (description "Mccs (Multi Criteria CUDF Solver) is a CUDF problem solver.
346 Mccs take as input a CUDF problem and computes the best solution according to
347 a set of criteria. It relies on a Integer Programming solver or a
348 Pseudo Boolean solver to achieve its task. Mccs can use a wide set of
349 underlying solvers like Cplex, Gurobi, Lpsolver, Glpk, CbC, SCIP or WBO.")
353 ;; With static-linking exception
356 (define-public ocaml-dose3
362 (uri "https://gforge.inria.fr/frs/download.php/file/36063/dose3-5.0.1.tar.gz")
365 "00yvyfm4j423zqndvgc1ycnmiffaa2l9ab40cyg23pf51qmzk2jm"))
368 "ocaml-dose3-add-unix-dependency.patch"
369 "ocaml-dose3-Fix-for-ocaml-4.06.patch"
370 "ocaml-dose3-dont-make-printconf.patch"
371 "ocaml-dose3-Install-mli-cmx-etc.patch"))))
372 (build-system ocaml-build-system)
375 (list (string-append "SHELL="
376 (assoc-ref %build-inputs "bash")
379 (list (string-append "LIBDIR="
380 (assoc-ref %outputs "out")
381 "/lib/ocaml/site-lib"))))
383 `(("ocaml-graph" ,ocaml-graph)
384 ("ocaml-cudf" ,ocaml-cudf)
385 ("ocaml-extlib" ,ocaml-extlib)
386 ("ocaml-re" ,ocaml-re)))
389 ("python" ,python-2) ; for a test script
390 ("python2-pyyaml" ,python2-pyyaml) ; for a test script
391 ("ocaml-extlib" ,ocaml-extlib)
392 ("ocamlbuild" ,ocamlbuild)
393 ("ocaml-cppo" ,ocaml-cppo)))
394 (home-page "http://www.mancoosi.org/software/")
395 (synopsis "Package distribution management framework")
396 (description "Dose3 is a framework made of several OCaml libraries for
397 managing distribution packages and their dependencies. Though not tied to
398 any particular distribution, dose3 constitutes a pool of libraries which
399 enable analyzing packages coming from various distributions. Besides basic
400 functionalities for querying and setting package properties, dose3 also
401 implements algorithms for solving more complex problems such as monitoring
402 package evolutions, correct and complete dependency resolution and
403 repository-wide uninstallability checks.")
404 ;; with static-linking exception
405 (license license:lgpl2.1+)))
407 (define-public ocaml-opam-file-format
409 (name "ocaml-opam-file-format")
414 (url "https://github.com/ocaml/opam-file-format")
416 (file-name (git-file-name name version))
419 "0fqb99asnair0043hhc8r158d6krv5nzvymd0xwycr5y72yrp0hv"))))
420 (build-system ocaml-build-system)
422 `(#:tests? #f; No tests
423 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
424 "/lib/ocaml/site-lib"))
426 (modify-phases %standard-phases
427 (delete 'configure))))
428 (home-page "https://opam.ocaml.org")
429 (synopsis "Parser and printer for the opam file syntax")
430 (description "This package contains a parser and a pretty-printer for
431 the opam file fomat.")
432 ;; With static-linking exception
433 (license license:lgpl2.1+)))
442 (url "https://github.com/ocaml/opam")
444 (file-name (git-file-name name version))
447 "1vyga2jllsfsikppxyzljm4isfnnnl8k0rb44h8xaddjzdg1d4m8"))))
448 (build-system ocaml-build-system)
451 (list (string-append "SHELL="
452 (assoc-ref %build-inputs "bash")
455 ;; For some reason, 'ocp-build' needs $TERM to be set.
458 (string-append "SHELL="
459 (assoc-ref %build-inputs "bash")
462 #:test-target "tests"
464 ;; FIXME: There's an obscure test failure:
465 ;; …/_obuild/opam/opam.asm install P1' failed.
468 #:phases (modify-phases %standard-phases
469 (add-before 'build 'pre-build
470 (lambda* (#:key inputs make-flags #:allow-other-keys)
471 (let ((bash (assoc-ref inputs "bash"))
472 (bwrap (string-append (assoc-ref inputs "bubblewrap")
474 (substitute* "src/core/opamSystem.ml"
476 (string-append "\"" bash "/bin/sh\""))
479 ;; Use bwrap from the store directly.
480 (substitute* "src/state/shellscripts/bwrap.sh"
481 (("-v bwrap") (string-append "-v " bwrap))
482 (("exec bwrap") (string-append "exec " bwrap))
483 ;; Mount /gnu and /run/current-system in the
484 ;; isolated environment when building with opam.
485 ;; This is necessary for packages to find external
486 ;; dependencies, such as a C compiler, make, etc...
487 (("^add_sys_mounts /usr")
488 "add_sys_mounts /gnu /run/current-system /usr"))
489 (substitute* "src/client/opamInitDefaults.ml"
490 (("\"bwrap\"") (string-append "\"" bwrap "\"")))
491 ;; Generating the documentation needs write access
493 (lambda (f) (chmod f #o644))
494 (find-files "doc" "."))
496 (add-before 'check 'pre-check
498 (setenv "HOME" (getcwd))
499 (invoke "git" "config" "--global" "user.email" "guix@gnu.org")
500 (invoke "git" "config" "--global" "user.name" "Guix")
504 ("git" ,git) ;for the tests
505 ("ocaml-cppo" ,ocaml-cppo)
506 ("python" ,python))) ;for the tests
511 ("bubblewrap" ,bubblewrap)))
513 `(("ocaml-cmdliner" ,ocaml-cmdliner)
514 ("ocaml-dose3" ,ocaml-dose3)
515 ("ocaml-mccs" ,ocaml-mccs)
516 ("ocaml-opam-file-format" ,ocaml-opam-file-format)
517 ("ocaml-re" ,ocaml-re)))
518 (home-page "http://opam.ocamlpro.com/")
519 (synopsis "Package manager for OCaml")
521 "OPAM is a tool to manage OCaml packages. It supports multiple
522 simultaneous compiler installations, flexible package constraints, and a
523 Git-friendly development workflow.")
525 ;; The 'LICENSE' file waives some requirements compared to LGPLv3.
526 (license license:lgpl3)))
528 (define-public camlp5
536 (url "https://github.com/camlp5/camlp5.git")
537 (commit (string-append "rel" (string-delete #\. version)))))
538 (file-name (git-file-name name version))
540 (base32 "12ix5g15bys932hyf9gs637iz76m0ji9075d83jfdmx85q30llgf"))))
541 (build-system gnu-build-system)
545 `(#:tests? #f ; XXX TODO figure out how to run the tests
547 (modify-phases %standard-phases
549 (lambda* (#:key outputs #:allow-other-keys)
550 (let* ((out (assoc-ref outputs "out"))
551 (mandir (string-append out "/share/man")))
552 ;; Custom configure script doesn't recognize
553 ;; --prefix=<PREFIX> syntax (with equals sign).
554 (invoke "./configure"
556 "--mandir" mandir))))
557 (add-before 'build 'fix-/bin-references
559 (substitute* "config/Makefile"
564 (invoke "make" "-j" (number->string
565 (parallel-job-count))
567 ;; Required for findlib to find camlp5's libraries
568 (add-after 'install 'install-meta
569 (lambda* (#:key outputs #:allow-other-keys)
570 (install-file "etc/META" (string-append (assoc-ref outputs "out")
571 "/lib/ocaml/camlp5/"))
573 (home-page "https://camlp5.github.io/")
574 (synopsis "Pre-processor Pretty Printer for OCaml")
576 "Camlp5 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers
577 tools for syntax (Stream Parsers and Grammars) and the ability to modify the
578 concrete syntax of the language (Quotations, Syntax Extensions).")
579 ;; Most files are distributed under bsd-3, but ocaml_stuff/* is under qpl.
580 (license (list license:bsd-3 license:qpl))))
588 (uri (string-append "http://hevea.inria.fr/old/"
589 "hevea-" version ".tar.gz"))
592 "1pzyszxw90klpcmhjqrjfc8cw6c0gm4w2blim8ydyxb6rq6qml1s"))))
593 (build-system gnu-build-system)
597 `(("ocamlbuild" ,ocamlbuild)))
599 `(#:tests? #f ; no test suite
600 #:make-flags (list (string-append "PREFIX=" %output))
601 #:phases (modify-phases %standard-phases
603 (add-before 'build 'patch-/bin/sh
606 (("/bin/sh") (which "sh")))
608 (home-page "http://hevea.inria.fr/")
609 (synopsis "LaTeX to HTML translator")
611 "HeVeA is a LaTeX to HTML translator that generates modern HTML 5. It is
612 written in Objective Caml.")
613 (license license:qpl)))
615 (define-public ocaml-num
623 (url "https://github.com/ocaml/num.git")
624 (commit (string-append "v" version))))
625 (file-name (git-file-name name version))
627 (base32 "0a4mhxgs5hi81d227aygjx35696314swas0vzy3ig809jb7zq4h0"))))
628 (build-system ocaml-build-system)
631 (modify-phases %standard-phases
633 (add-before 'build 'fix-makefile
634 (lambda* (#:key outputs #:allow-other-keys)
635 ;; This package supposes we install to the same directory as
636 ;; the ocaml package.
637 (substitute* "src/META"
638 (("\"\\^\"") (string-append "\"" (assoc-ref outputs "out")
639 "/lib/ocaml/site-lib\"")))
640 (substitute* "src/Makefile"
641 (("\\) \\$\\(STDLIBDIR\\)")
642 (string-append ") " (assoc-ref outputs "out")
643 "/lib/ocaml/site-lib")))
645 (add-after 'install 'fix-stubslib
646 (lambda* (#:key outputs #:allow-other-keys)
647 (format #t "~a~%" (find-files "." ".*.so"))
648 (let ((stubdir (string-append (assoc-ref outputs "out")
649 "/lib/ocaml/site-lib/stublibs")))
650 (delete-file stubdir)
652 (install-file "src/dllnums.so" stubdir))
654 (home-page "https://github.com/ocaml/num")
655 (synopsis "Arbitrary-precision integer and rational arithmetic")
656 (description "OCaml-Num contains the legacy Num library for
657 arbitrary-precision integer and rational arithmetic that used to be part of
658 the OCaml core distribution.")
659 (license license:lgpl2.1+))); with linking exception
661 (define-public emacs-tuareg
663 (name "emacs-tuareg")
669 (url "https://github.com/ocaml/tuareg.git")
671 (file-name (git-file-name name version))
673 (base32 "06zxnn85fk5087iq0zxc5l5n9fz8r0367wylmynbfhc9711vccy6"))))
674 (build-system gnu-build-system)
675 (native-inputs `(("emacs" ,emacs-minimal)
679 (modify-phases %standard-phases
680 (add-after 'unpack 'make-git-checkout-writable
682 (for-each make-file-writable (find-files "."))
685 (add-before 'install 'fix-install-path
686 (lambda* (#:key outputs #:allow-other-keys)
687 (substitute* "Makefile"
688 (("/emacs/site-lisp")
689 (string-append (assoc-ref %outputs "out")
690 "/share/emacs/site-lisp/")))
692 (add-after 'install 'post-install
693 (lambda* (#:key outputs #:allow-other-keys)
695 (string-append (assoc-ref outputs "out")
696 "/share/emacs/site-lisp/"
697 "tuareg-autoloads.el"))
699 (home-page "https://github.com/ocaml/tuareg")
700 (synopsis "OCaml programming mode, REPL, debugger for Emacs")
701 (description "Tuareg helps editing OCaml code, to highlight important
702 parts of the code, to run an OCaml REPL, and to run the OCaml debugger within
704 (license license:gpl2+)))
706 (define-public ocaml-menhir
708 (name "ocaml-menhir")
709 ;; More recent versions can be built after we have dune >= 2.0
715 (url "https://gitlab.inria.fr/fpottier/menhir.git")
717 (file-name (git-file-name name version))
719 (base32 "0v8av4pw6rykzb7wx54xhbsx0jhh8xyb4x0k4yrxi0w5ylkck6mb"))))
720 (build-system ocaml-build-system)
724 `(("ocamlbuild" ,ocamlbuild)))
726 `(#:make-flags `("USE_OCAMLFIND=true"
727 ,(string-append "PREFIX=" (assoc-ref %outputs "out")))
728 #:tests? #f ; No check target
730 (modify-phases %standard-phases
731 (delete 'configure))))
732 (home-page "http://gallium.inria.fr/~fpottier/menhir/")
733 (synopsis "Parser generator")
734 (description "Menhir is a parser generator. It turns high-level grammar
735 specifications, decorated with semantic actions expressed in the OCaml
736 programming language into parsers, again expressed in OCaml. It is based on
737 Knuth’s LR(1) parser construction technique.")
738 ;; The file src/standard.mly and all files listed in src/mnehirLib.mlpack
739 ;; that have an *.ml or *.mli extension are GPL licensed. All other files
741 (license (list license:gpl2+ license:qpl))))
743 (define-public ocaml-bigarray-compat
745 (name "ocaml-bigarray-compat")
750 (url "https://github.com/mirage/bigarray-compat")
751 (commit (string-append "v" version))))
752 (file-name (git-file-name name version))
755 "06j1dwlpisxshdd0nab4n4x266gg1s1n8na16lpgw3fvcznwnimz"))))
756 (build-system dune-build-system)
758 `(#:tests? #f)); no tests
759 (home-page "https://github.com/mirage/bigarray-compat")
760 (synopsis "OCaml compatibility library")
761 (description "This package contains a compatibility library for
762 @code{Stdlib.Bigarray} in OCaml.")
763 (license license:isc)))
765 (define-public lablgtk
772 (url "https://github.com/garrigue/lablgtk")
774 (file-name (git-file-name name version))
777 "0w8cdfcv2wc19sd3qzj3qq77qc6rbnbynsz02gzbl15kgrvgrfxi"))))
778 (build-system gnu-build-system)
781 ("findlib" ,ocaml-findlib)
782 ("pkg-config" ,pkg-config)))
783 ;; FIXME: Add inputs gtkgl-2.0, libpanelapplet-2.0, gtkspell-2.0,
784 ;; and gtk+-quartz-2.0 once available.
787 ("gtksourceview" ,gtksourceview-2)
788 ("libgnomecanvas" ,libgnomecanvas)
789 ("libgnomeui" ,libgnomeui)
790 ("libglade" ,libglade)
791 ("librsvg" ,librsvg)))
793 `(#:tests? #f ; no check target
795 ;; opt: also install cmxa files
796 #:make-flags (list "all" "opt"
797 (string-append "FINDLIBDIR="
798 (assoc-ref %outputs "out")
800 ;; Occasionally we would get "Error: Unbound module GtkThread" when
801 ;; compiling 'gtkThInit.ml', with 'make -j'. So build sequentially.
805 (modify-phases %standard-phases
806 (add-before 'install 'prepare-install
807 (lambda* (#:key inputs outputs #:allow-other-keys)
808 (let ((out (assoc-ref outputs "out"))
809 (ocaml (assoc-ref inputs "ocaml")))
810 ;; Install into the output and not the ocaml directory.
811 (mkdir-p (string-append out "/lib/ocaml"))
812 (substitute* "config.make"
815 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-lablgtk))))
816 (home-page "http://lablgtk.forge.ocamlcore.org/")
817 (synopsis "GTK+ bindings for OCaml")
819 "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides
820 a strongly-typed object-oriented interface that is compatible with the
821 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
822 also provides bindings to
823 gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas,
824 gnomeui, gtksourceview, gtkspell,
825 libglade (and it an generate OCaml code from .glade files),
826 libpanel, librsvg and quartz.")
827 (license license:lgpl2.1)))
829 (define-public ocaml4.07-lablgtk
832 (name "ocaml4.07-lablgtk")
834 `(("ocaml" ,ocaml-4.07)
835 ("findlib" ,ocaml4.07-findlib)
836 ("pkg-config" ,pkg-config)))
839 (define-public unison
846 (url "https://github.com/bcpierce00/unison.git")
847 (commit (string-append "v" version))))
848 (file-name (git-file-name name version))
851 "1bykiyc0dc5pkw8x370qkg2kygq9pq7yqzsgczd3y13b6ivm4sdq"))))
852 (build-system gnu-build-system)
854 "doc")) ; 1.9 MiB of documentation
856 `(("ocaml" ,ocaml-4.07)
858 ("ghostscript" ,ghostscript)
859 ("texlive" ,texlive-tiny)
864 `(#:parallel-build? #f
866 #:test-target "selftest"
867 #:tests? #f ; Tests require writing to $HOME.
868 ; If some $HOME is provided, they fail with the message
869 ; "Fatal error: Skipping some tests -- remove me!"
871 (modify-phases %standard-phases
873 (add-before 'install 'prepare-install
874 (lambda* (#:key outputs #:allow-other-keys)
875 (let* ((out (assoc-ref outputs "out"))
876 (bin (string-append out "/bin")))
878 (setenv "HOME" out) ; forces correct INSTALLDIR in Makefile
880 (add-after 'install 'install-fsmonitor
881 (lambda* (#:key outputs #:allow-other-keys)
882 (let* ((out (assoc-ref outputs "out"))
883 (bin (string-append out "/bin")))
884 ;; 'unison-fsmonitor' is used in "unison -repeat watch" mode.
885 (install-file "src/unison-fsmonitor" bin)
887 (add-after 'install 'install-doc
888 (lambda* (#:key outputs #:allow-other-keys)
889 (let ((doc (string-append (assoc-ref outputs "doc")
890 "/share/doc/unison")))
892 ;; Remove an '\n' that prevents the doc to be generated
893 ;; correctly with newer hevea.
894 (substitute* "doc/local.tex"
895 (("----SNIP----.*") "----SNIP----"))
896 ;; This file needs write-permissions, because it's
897 ;; overwritten by 'docs' during documentation generation.
898 (chmod "src/strings.ml" #o600)
899 (invoke "make" "docs"
900 "TEXDIRECTIVES=\\\\draftfalse")
901 (for-each (lambda (f)
902 (install-file f doc))
904 (string-append "doc/unison-manual." ext))
905 ;; Install only html documentation,
906 ;; since the build is currently
907 ;; non-reproducible with the ps, pdf,
909 '(;; "ps" "pdf" "dvi"
912 (home-page "https://www.cis.upenn.edu/~bcpierce/unison/")
913 (synopsis "File synchronizer")
915 "Unison is a file-synchronization tool. It allows two replicas of
916 a collection of files and directories to be stored on different hosts
917 (or different disks on the same host), modified separately, and then
918 brought up to date by propagating the changes in each replica
920 (license license:gpl3+)))
922 (define-public ocaml-findlib
924 (name "ocaml-findlib")
928 (uri (string-append "http://download.camlcity.org/download/"
929 "findlib" "-" version ".tar.gz"))
932 "00s3sfb02pnjmkax25pcnljcnhcggiliccfz69a72ic7gsjwz1cf"))))
933 (build-system gnu-build-system)
938 `(#:tests? #f ; no test suite
940 #:make-flags (list "all" "opt")
941 #:phases (modify-phases %standard-phases
944 (lambda* (#:key inputs outputs #:allow-other-keys)
945 (let ((out (assoc-ref outputs "out")))
948 "-bindir" (string-append out "/bin")
949 "-config" (string-append out "/etc/ocamfind.conf")
950 "-mandir" (string-append out "/share/man")
951 "-sitelib" (string-append out "/lib/ocaml/site-lib")
954 (lambda* (#:key outputs #:allow-other-keys)
955 (let ((out (assoc-ref outputs "out")))
956 (invoke "make" "install"
957 (string-append "OCAML_CORE_STDLIB="
958 out "/lib/ocaml/site-lib"))))))))
959 (home-page "http://projects.camlcity.org/projects/findlib.html")
960 (synopsis "Management tool for OCaml libraries")
962 "The \"findlib\" library provides a scheme to manage reusable software
963 components (packages), and includes tools that support this scheme. Packages
964 are collections of OCaml modules for which metainformation can be stored. The
965 packages are kept in the file system hierarchy, but with strict directory
966 structure. The library contains functions to look the directory up that
967 stores a package, to query metainformation about a package, and to retrieve
968 dependency information about multiple packages. There is also a tool that
969 allows the user to enter queries on the command-line. In order to simplify
970 compilation and linkage, there are new frontends of the various OCaml
971 compilers that can directly deal with packages.")
972 (license license:x11)))
974 (define-public ocaml4.07-findlib
976 (inherit ocaml-findlib)
977 (name "ocaml4.07-findlib")
980 ("ocaml" ,ocaml-4.07)))))
982 ;; note that some tests may hang for no obvious reason.
983 (define-public ocaml-ounit
989 (uri (ocaml-forge-uri "ounit" version 1749))
992 "03ifp9hjcxg4m5j190iy373jcn4039d3vy10kmd8p4lfciwzwc1f"))))
993 (build-system ocaml-build-system)
995 `(("libxml2" ,libxml2) ; for xmllint
996 ("ocamlbuild" ,ocamlbuild)))
999 (modify-phases %standard-phases
1000 (delete 'check)))) ; tests are run during build
1001 (home-page "http://ounit.forge.ocamlcore.org")
1002 (synopsis "Unit testing framework for OCaml")
1003 (description "Unit testing framework for OCaml. It is similar to JUnit and
1004 other XUnit testing frameworks.")
1005 (license license:expat)))
1007 (define-public camlzip
1013 (uri (ocaml-forge-uri name version 1616))
1016 "0m6gyjw46w3qnhxfsyqyag42znl5lwargks7w7rfchr9jzwpff68"))))
1017 (build-system ocaml-build-system)
1022 (modify-phases %standard-phases
1024 (add-after 'install 'install-camlzip
1025 (lambda* (#:key outputs #:allow-other-keys)
1026 (let* ((out (assoc-ref outputs "out"))
1027 (dir (string-append out "/lib/ocaml/site-lib/camlzip")))
1029 (call-with-output-file (string-append dir "/META")
1031 (format port "version=\"1.06\"\n")
1032 (format port "requires=\"unix\"\n")
1033 (format port "archive(byte)=\"zip.cma\"\n")
1034 (format port "archive(native)=\"zip.cmxa\"\n")
1035 (format port "archive(native,plugin)=\"zip.cmxs\"\n")
1036 (format port "directory=\"../zip\"\n")))))))
1037 #:install-target "install-findlib"
1039 (list "all" "allopt"
1040 (string-append "INSTALLDIR=" (assoc-ref %outputs "out")
1042 (home-page "https://github.com/xavierleroy/camlzip")
1043 (synopsis "Provides easy access to compressed files")
1044 (description "Provides easy access to compressed files in ZIP, GZIP and
1045 JAR format. It provides functions for reading from and writing to compressed
1046 files in these formats.")
1047 (license license:lgpl2.1+)))
1049 (define-public ocamlmod
1055 (uri (ocaml-forge-uri name version 1702))
1058 "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa"))))
1059 (build-system ocaml-build-system)
1061 `(("ounit" ,ocaml-ounit)
1062 ("ocamlbuild" ,ocamlbuild)))
1065 (modify-phases %standard-phases
1066 ;; Tests are done during build.
1068 (home-page "https://forge.ocamlcore.org/projects/ocamlmod")
1069 (synopsis "Generate modules from OCaml source files")
1070 (description "Generate modules from OCaml source files.")
1071 (license license:lgpl2.1+))) ; with an exception
1073 (define-public ocaml-zarith
1075 (name "ocaml-zarith")
1080 (url "https://github.com/ocaml/Zarith")
1081 (commit (string-append "release-" version))))
1082 (file-name (git-file-name name version))
1085 "0hv5ywz1q2cgn8apfz490clwk5hcynr937g2v8i13x2ax4bnv0lz"))))
1086 (build-system ocaml-build-system)
1092 `(#:tests? #f ; no test target
1094 (modify-phases %standard-phases
1096 (lambda _ (invoke "./configure"))))))
1097 (home-page "https://forge.ocamlcore.org/projects/zarith/")
1098 (synopsis "Implements arbitrary-precision integers")
1099 (description "Implements arithmetic and logical operations over
1100 arbitrary-precision integers. It uses GMP to efficiently implement arithmetic
1101 over big integers. Small integers are represented as Caml unboxed integers,
1102 for speed and space economy.")
1103 (license license:lgpl2.1+))) ; with an exception
1105 (define-public ocaml-frontc
1107 (name "ocaml-frontc")
1112 (url "https://github.com/BinaryAnalysisPlatform/FrontC")
1113 (commit (string-append
1114 "V_" (string-join (string-split version #\.) "_")))))
1115 (file-name (git-file-name name version))
1118 "0k7jk9hkglnkk27s62xl493jyqc017gyvwqb1lyc0ywbb001s102"))))
1119 (build-system ocaml-build-system)
1122 (modify-phases %standard-phases
1124 (add-after 'install 'install-meta
1125 (lambda* (#:key outputs #:allow-other-keys)
1126 (let ((out (assoc-ref outputs "out")))
1127 (with-output-to-file
1128 (string-append out "/lib/ocaml/frontc/META")
1132 "description = \"Parser for the C language\"
1133 version = \"" ,version "\"
1135 archive(byte) = \"frontc.cma\"
1136 archive(native) = \"frontc.cmxa\""))))
1137 (symlink (string-append out "/lib/ocaml/frontc")
1138 (string-append out "/lib/ocaml/FrontC"))))))
1139 #:make-flags (list (string-append "PREFIX="
1140 (assoc-ref %outputs "out"))
1141 "OCAML_SITE=$(LIB_DIR)/ocaml/")))
1142 (properties `((upstream-name . "FrontC")))
1143 (home-page "https://www.irit.fr/FrontC")
1144 (synopsis "C parser and lexer library")
1145 (description "FrontC is an OCAML library providing a C parser and lexer.
1146 The result is a syntactic tree easy to process with usual OCAML tree management.
1147 It provides support for ANSI C syntax, old-C K&R style syntax and the standard
1148 GNU CC attributes. It provides also a C pretty printer as an example of use.")
1149 (license license:lgpl2.1)))
1151 (define-public ocaml-qcheck
1153 (name "ocaml-qcheck")
1159 (url "https://github.com/c-cube/qcheck.git")
1161 (file-name (git-file-name name version))
1163 (base32 "1llnfynhlndwyjig7wrayjnds2b3mggp5lw20dwxhn2i2lkkb22m"))))
1164 (build-system dune-build-system)
1168 (modify-phases %standard-phases
1169 (add-before 'build 'fix-deprecated
1171 (substitute* "src/core/QCheck.ml"
1172 (("Pervasives.compare") "compare"))
1175 `(("ocaml-alcotest" ,ocaml-alcotest)
1176 ("ocaml-ounit" ,ocaml-ounit)))
1178 `(("ocamlbuild" ,ocamlbuild)))
1179 (home-page "https://github.com/c-cube/qcheck")
1180 (synopsis "QuickCheck inspired property-based testing for OCaml")
1181 (description "QuickCheck inspired property-based testing for OCaml. This
1182 module checks invariants (properties of some types) over randomly
1183 generated instances of the type. It provides combinators for generating
1184 instances and printing them.")
1185 (license license:lgpl3+)))
1187 (define-public ocaml-qtest
1189 (name "ocaml-qtest")
1194 (url "https://github.com/vincent-hugot/qtest/")
1195 (commit (string-append "v" version))))
1196 (file-name (git-file-name name version))
1199 "0gddzan4vzs0vklsxhirdjrvx3rp7hhh2yr20vi13nq8rwkn9w29"))))
1200 (build-system dune-build-system)
1203 #:test-target "tests"))
1205 `(("ounit" ,ocaml-ounit)
1206 ("qcheck" ,ocaml-qcheck)))
1207 (home-page "https://github.com/vincent-hugot/qtest")
1208 (synopsis "Inline (Unit) Tests for OCaml")
1209 (description "Qtest extracts inline unit tests written using a special
1210 syntax in comments. Those tests are then run using the oUnit framework and the
1211 qcheck library. The possibilities range from trivial tests -- extremely simple
1212 to use -- to sophisticated random generation of test cases.")
1213 (license license:lgpl3+)))
1215 (define-public ocaml-stringext
1217 (name "ocaml-stringext")
1222 (url "https://github.com/rgrinberg/stringext")
1224 (file-name (git-file-name name version))
1227 "1m09cmn3vrk3gdm60fb730qsygcfyxsyv7gl9xfzck08q1x2x9qx"))))
1228 (build-system dune-build-system)
1230 `(#:test-target "."))
1232 `(("ocamlbuild" ,ocamlbuild)
1233 ("qtest" ,ocaml-qtest)))
1234 (home-page "https://github.com/rgrinberg/stringext")
1235 (synopsis "Extra string functions for OCaml")
1236 (description "Provides a single module named Stringext that provides a grab
1237 bag of often used but missing string functions from the stdlib. E.g, split,
1238 full_split, cut, rcut, etc..")
1239 ;; the only mention of a license in this project is in its `opam' file
1240 ;; where it says `mit'.
1241 (license license:expat)))
1250 (url "https://github.com/ocaml/dune")
1252 (file-name (git-file-name name version))
1255 "0l4x0x2fz135pljv88zj8y6w1ninsqw0gn1mdxzprd6wbxbyn8wr"))))
1256 (build-system ocaml-build-system)
1258 `(#:tests? #f; require odoc
1259 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1260 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1261 "/lib/ocaml/site-lib"))
1263 (modify-phases %standard-phases
1265 (lambda* (#:key outputs #:allow-other-keys)
1266 (invoke "./configure")
1268 (home-page "https://github.com/ocaml/dune")
1269 (synopsis "OCaml build system")
1270 (description "Dune is a build system that was designed to simplify the
1271 release of Jane Street packages. It reads metadata from @file{dune} files
1272 following a very simple s-expression syntax.")
1273 (license license:expat)))
1275 (define-public ocaml4.07-dune
1276 (package-with-ocaml4.07 dune))
1278 (define-public ocaml-migrate-parsetree
1280 (name "ocaml-migrate-parsetree")
1282 (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
1287 (url (string-append home-page ".git"))
1288 (commit (string-append "v" version))))
1289 (file-name (git-file-name name version))
1292 "0sv1p4615l8gpbah4ya2c40yr6fbvahvv3ks7zhrsgcwcq2ljyr2"))))
1293 (build-system dune-build-system)
1297 `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
1298 ("ocamlbuild" ,ocamlbuild)
1299 ("ocaml-result" ,ocaml-result)))
1300 (properties `((upstream-name . "ocaml-migrate-parsetree")))
1301 (synopsis "OCaml parsetree converter")
1302 (description "This library converts between parsetrees of different OCaml
1303 versions. For each version, there is a snapshot of the parsetree and conversion
1304 functions to the next and/or previous version.")
1305 (license license:lgpl2.1+)))
1307 (define-public ocaml-ppx-tools-versioned
1309 (name "ocaml-ppx-tools-versioned")
1314 (url "https://github.com/ocaml-ppx/ppx_tools_versioned")
1316 (file-name (git-file-name name version))
1319 "1hcmpnw26zf70a71r3d2c2c0mn8q084gdn1r36ynng6fv9hq6j0y"))))
1320 (build-system dune-build-system)
1322 `(#:test-target "."))
1324 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
1325 (properties `((upstream-name . "ppx_tools_versioned")))
1326 (home-page "https://github.com/let-def/ppx_tools_versioned")
1327 (synopsis "Variant of ppx_tools")
1328 (description "This package is a variant of ppx_tools based on
1329 ocaml-migrate-parsetree")
1330 (license license:expat)))
1332 (define-public ocaml-bitstring
1334 (name "ocaml-bitstring")
1338 (uri (string-append "https://bitbucket.org/thanatonauts/bitstring/"
1339 "get/v" version ".tar.gz"))
1340 (file-name (string-append name "-" version ".tar.gz"))
1343 "15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps"))))
1344 (build-system dune-build-system)
1347 ("autoconf" ,autoconf)
1348 ("automake" ,automake)))
1350 `(("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
1352 `(#:tests? #f; Tests fail to build
1354 (home-page "https://github.com/xguerin/bitstring")
1355 (synopsis "Bitstrings and bitstring matching for OCaml")
1356 (description "Adds Erlang-style bitstrings and matching over bitstrings as
1357 a syntax extension and library for OCaml. You can use this module to both parse
1358 and generate binary formats, files and protocols. Bitstring handling is added
1359 as primitives to the language, making it exceptionally simple to use and very
1361 (license license:isc)))
1363 (define-public ocaml-result
1365 (name "ocaml-result")
1370 (url "https://github.com/janestreet/result")
1372 (file-name (git-file-name name version))
1375 "0hir97k9i72nfkm6kncxnqpyk400wlsxysbldgcvk0fd9pjnsc3p"))))
1376 (build-system dune-build-system)
1378 `(#:test-target "."))
1379 (home-page "https://github.com/janestreet/result")
1380 (synopsis "Compatibility Result module")
1381 (description "Uses the new result type defined in OCaml >= 4.03 while
1382 staying compatible with older version of OCaml should use the Result module
1383 defined in this library.")
1384 (license license:bsd-3)))
1386 (define-public ocaml-topkg
1388 (name "ocaml-topkg")
1392 (uri (string-append "http://erratique.ch/software/topkg/releases/"
1393 "topkg-" version ".tbz"))
1396 "1df61vw6v5bg2mys045682ggv058yqkqb67w7r2gz85crs04d5fw"))))
1397 (build-system ocaml-build-system)
1400 ("ocamlbuild" ,ocamlbuild)))
1402 `(("result" ,ocaml-result)))
1405 #:build-flags '("build")
1407 (modify-phases %standard-phases
1408 (delete 'configure))))
1409 (home-page "http://erratique.ch/software/topkg")
1410 (synopsis "Transitory OCaml software packager")
1411 (description "Topkg is a packager for distributing OCaml software. It
1412 provides an API to describe the files a package installs in a given build
1413 configuration and to specify information about the package's distribution,
1414 creation and publication procedures.")
1415 (license license:isc)))
1417 (define-public ocaml-rresult
1419 (name "ocaml-rresult")
1423 (uri (string-append "http://erratique.ch/software/rresult/releases/"
1424 "rresult-" version ".tbz"))
1427 "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm"))))
1428 (build-system ocaml-build-system)
1431 ("ocamlbuild" ,ocamlbuild)))
1433 `(("topkg" ,ocaml-topkg)))
1436 #:build-flags '("build")
1438 (modify-phases %standard-phases
1439 (delete 'configure))))
1440 (home-page "http://erratique.ch/software/rresult")
1441 (synopsis "Result value combinators for OCaml")
1442 (description "Handle computation results and errors in an explicit and
1443 declarative manner, without resorting to exceptions. It defines combinators
1444 to operate on the result type available from OCaml 4.03 in the standard
1446 (license license:isc)))
1448 (define-public ocaml4.07-sqlite3
1450 (name "ocaml4.07-sqlite3")
1456 (url "https://github.com/mmottl/sqlite3-ocaml")
1458 (file-name (git-file-name name version))
1461 "1536agm5fgcqysszhpd3kmw7lkc5n5ni7gmlyglrbvmnmrwf3av2"))))
1462 (build-system dune-build-system)
1464 `(#:ocaml ,ocaml-4.07
1465 #:findlib ,ocaml4.07-findlib))
1467 `(("ocaml-base" ,ocaml4.07-base)
1468 ("ocaml-stdio" ,ocaml4.07-stdio)
1469 ("pkg-config" ,pkg-config)))
1471 `(("sqlite" ,sqlite)))
1472 (home-page "https://mmottl.github.io/sqlite3-ocaml")
1473 (synopsis "SQLite3 Bindings for OCaml")
1475 "SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client
1476 API. Sqlite3 is a self-contained, serverless, zero-configuration,
1477 transactional SQL database engine with outstanding performance for many use
1478 cases. These bindings are written in a way that enables a friendly
1479 coexistence with the old (version 2) SQLite and its OCaml wrapper
1480 @code{ocaml-sqlite}.")
1481 (license license:expat)))
1483 (define-public ocaml-csv
1491 (url "https://github.com/Chris00/ocaml-csv")
1493 (file-name (git-file-name name version))
1496 "19k48517s8y1zb91a1312a0n94cbh5i5dixndcrqjmf87kkz61zx"))))
1497 (build-system dune-build-system)
1501 (home-page "https://github.com/Chris00/ocaml-csv")
1502 (synopsis "Pure OCaml functions to read and write CSV")
1504 "@dfn{Comma separated values} (CSV) is a simple tabular format supported
1505 by all major spreadsheets. This library implements pure OCaml functions to
1506 read and write files in this format as well as some convenience functions to
1507 manipulate such data.")
1508 ;; This is LGPLv2.1 with an exception that allows packages statically-linked
1509 ;; against the library to be released under any terms.
1510 (license license:lgpl2.1)))
1512 (define-public ocaml-mtime
1514 (name "ocaml-mtime")
1518 (uri (string-append "http://erratique.ch/software/mtime/releases/"
1519 "mtime-" version ".tbz"))
1522 "1qb4ljwirrc3g8brh97s76rjky2cpmy7zm87y7iqd6pxix52ydk3"))))
1523 (build-system ocaml-build-system)
1525 `(("ocamlbuild" ,ocamlbuild)
1528 `(("topkg" ,ocaml-topkg)))
1531 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1533 (modify-phases %standard-phases
1534 (delete 'configure))))
1535 (home-page "http://erratique.ch/software/mtime")
1536 (synopsis "Monotonic wall-clock time for OCaml")
1537 (description "Access monotonic wall-clock time. It measures time
1538 spans without being subject to operating system calendar time adjustments.")
1539 (license license:isc)))
1541 (define-public ocaml-cmdliner
1543 (name "ocaml-cmdliner")
1547 (uri (string-append "http://erratique.ch/software/cmdliner/releases/"
1548 "cmdliner-" version ".tbz"))
1551 "0g3w4hvc1cx9x2yp5aqn6m2rl8lf9x1dn754hfq8m1sc1102lxna"))))
1552 (build-system ocaml-build-system)
1554 `(("ocaml-result" ,ocaml-result)))
1556 `(("ocamlbuild" ,ocamlbuild)))
1559 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
1560 "/lib/ocaml/site-lib/cmdliner"))
1562 (modify-phases %standard-phases
1564 (add-before 'build 'fix-source-file-order
1566 (substitute* "build.ml"
1567 (("Sys.readdir dir")
1568 "let a = Sys.readdir dir in Array.sort String.compare a; a"))
1570 (home-page "http://erratique.ch/software/cmdliner")
1571 (synopsis "Declarative definition of command line interfaces for OCaml")
1572 (description "Cmdliner is a module for the declarative definition of command
1573 line interfaces. It provides a simple and compositional mechanism to convert
1574 command line arguments to OCaml values and pass them to your functions. The
1575 module automatically handles syntax errors, help messages and UNIX man page
1576 generation. It supports programs with single or multiple commands and respects
1577 most of the POSIX and GNU conventions.")
1578 (license license:bsd-3)))
1580 (define-public ocaml-fmt
1587 (uri (string-append "http://erratique.ch/software/fmt/releases/fmt-"
1590 "1zj9azcxcn6skmb69ykgmi9z8c50yskwg03wqgh87lypgjdcz060"))))
1591 (build-system ocaml-build-system)
1593 `(("ocamlbuild" ,ocamlbuild)
1595 ("topkg" ,ocaml-topkg)))
1597 `(("result" ,ocaml-result)
1598 ("ocaml-uchar" ,ocaml-uchar)
1599 ("cmdliner" ,ocaml-cmdliner)))
1600 (arguments `(#:tests? #f
1601 #:build-flags (list "build" "--with-base-unix" "true"
1602 "--with-cmdliner" "true")
1604 (modify-phases %standard-phases
1605 (delete 'configure))))
1606 (home-page "http://erratique.ch/software/fmt")
1607 (synopsis "OCaml Format pretty-printer combinators")
1608 (description "Fmt exposes combinators to devise Format pretty-printing
1610 (license license:isc)))
1612 (define-public ocaml-astring
1614 (name "ocaml-astring")
1619 (uri (string-append "http://erratique.ch/software/astring/releases/astring-"
1622 "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0"))))
1623 (build-system ocaml-build-system)
1625 `(("ocamlbuild" ,ocamlbuild)
1627 ("topkg" ,ocaml-topkg)))
1630 #:build-flags (list "build")
1632 (modify-phases %standard-phases
1633 (delete 'configure))))
1634 (home-page "http://erratique.ch/software/astring")
1635 (synopsis "Alternative String module for OCaml")
1636 (description "Astring exposes an alternative String module for OCaml. This
1637 module balances minimality and expressiveness for basic, index-free, string
1638 processing and provides types and functions for substrings, string sets and
1639 string maps. The String module exposed by Astring has exception safe functions,
1640 removes deprecated and rarely used functions, alters some signatures and names,
1641 adds a few missing functions and fully exploits OCaml's newfound string
1643 (license license:isc)))
1645 (define-public ocaml-alcotest
1647 (name "ocaml-alcotest")
1651 (uri (string-append "https://github.com/mirage/alcotest/releases/"
1652 "download/" version "/alcotest-" version ".tbz"))
1655 "0szwjxvaahgynsx0apj81jxj3ki6yz4is9mh2wkcbx66qy7n6fvb"))))
1656 (build-system dune-build-system)
1658 `(#:package "alcotest"
1661 `(("ocamlbuild" ,ocamlbuild)))
1663 `(("ocaml-astring" ,ocaml-astring)
1664 ("ocaml-cmdliner" ,ocaml-cmdliner)
1665 ("ocaml-fmt" ,ocaml-fmt)
1666 ("ocaml-result" ,ocaml-result)
1667 ("ocaml-uuidm" ,ocaml-uuidm)))
1668 (home-page "https://github.com/mirage/alcotest")
1669 (synopsis "Lightweight OCaml test framework")
1670 (description "Alcotest exposes simple interface to perform unit tests. It
1671 exposes a simple TESTABLE module type, a check function to assert test
1672 predicates and a run function to perform a list of unit -> unit test callbacks.
1673 Alcotest provides a quiet and colorful output where only faulty runs are fully
1674 displayed at the end of the run (with the full logs ready to inspect), with a
1675 simple (yet expressive) query language to select the tests to run.")
1676 (license license:isc)))
1678 (define-public ocaml4.07-ppx-tools
1680 (name "ocaml4.07-ppx-tools")
1681 (version "5.1+4.06.0")
1686 (url "https://github.com/alainfrisch/ppx_tools.git")
1688 (file-name (git-file-name name version))
1690 "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"))))
1691 (build-system ocaml-build-system)
1693 `(#:phases (modify-phases %standard-phases (delete 'configure))
1696 #:findlib ,ocaml4.07-findlib))
1697 (properties `((upstream-name . "ppx_tools")))
1698 (home-page "https://github.com/alainfrisch/ppx_tools")
1699 (synopsis "Tools for authors of ppx rewriters and other syntactic tools")
1700 (description "Tools for authors of ppx rewriters and other syntactic tools.")
1701 (license license:expat)))
1703 (define-public ocaml-react
1705 (name "ocaml-react")
1710 (uri (string-append "http://erratique.ch/software/react/releases/react-"
1713 "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v"))))
1714 (build-system ocaml-build-system)
1716 `(("ocamlbuild" ,ocamlbuild)
1718 ("ocaml-topkg" ,ocaml-topkg)))
1721 #:build-flags (list "build")
1723 (modify-phases %standard-phases
1724 (delete 'configure))))
1725 (home-page "http://erratique.ch/software/react")
1726 (synopsis "Declarative events and signals for OCaml")
1727 (description "React is an OCaml module for functional reactive programming
1728 (FRP). It provides support to program with time varying values: declarative
1729 events and signals. React doesn't define any primitive event or signal, it
1730 lets the client choose the concrete timeline.")
1731 (license license:bsd-3)))
1733 (define-public ocaml-ssl
1741 (url "https://github.com/savonet/ocaml-ssl.git")
1743 (file-name (git-file-name name version))
1745 "04h02rvzrwp886n5hsx84rnc9b150iggy38g5v1x1rwz3pkdnmf0"))))
1746 (build-system dune-build-system)
1748 `(#:test-target "."))
1750 `(("autoconf" ,autoconf)
1751 ("automake" ,automake)
1753 (propagated-inputs `(("openssl" ,openssl)))
1754 (home-page "https://github.com/savonet/ocaml-ssl/")
1755 (synopsis "OCaml bindings for OpenSSL")
1757 "OCaml-SSL is a set of bindings for OpenSSL, a library for communicating
1758 through Transport Layer Security (@dfn{TLS}) encrypted connections.")
1759 (license license:lgpl2.1)))
1761 (define-public ocaml-mmap
1768 (url "https://github.com/mirage/mmap")
1769 (commit (string-append "v" version))))
1770 (file-name (git-file-name name version))
1773 "1jaismy5d1bhbbanysmr2k79px0yv6ya265dri3949nha1l23i60"))))
1774 (build-system dune-build-system)
1775 (home-page "https://github.com/mirage/mmap")
1776 (synopsis "File mapping for OCaml")
1777 (description "This project provides a @command{Mmap.map_file} function
1778 for mapping files in memory. This function is the same as the
1779 @command{Unix.map_file} function added in OCaml >= 4.06.")
1780 (license (list license:qpl license:lgpl2.0))))
1782 (define-public ocaml-lwt
1790 (url "https://github.com/ocsigen/lwt")
1792 (file-name (git-file-name name version))
1794 "1nl7rdnwfdhwcsm5zpay1nr9y5cbapd9x1qzily7zk9ab4v52m8g"))))
1795 (build-system dune-build-system)
1799 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
1800 ("ocaml-cppo" ,ocaml-cppo)
1801 ("pkg-config" ,pkg-config)))
1806 `(("ocaml-mmap" ,ocaml-mmap)
1807 ("ocaml-ocplib-endian" ,ocaml-ocplib-endian)
1808 ("ocaml-result" ,ocaml-result)
1809 ("ocaml-seq" ,ocaml-seq)))
1810 (home-page "https://github.com/ocsigen/lwt")
1811 (synopsis "Cooperative threads and I/O in monadic style")
1812 (description "Lwt provides typed, composable cooperative threads. These
1813 make it easy to run normally-blocking I/O operations concurrently in a single
1814 process. Also, in many cases, Lwt threads can interact without the need for
1815 locks or other synchronization primitives.")
1816 (license license:lgpl2.1)))
1818 (define-public ocaml-lwt-react
1821 (name "ocaml-lwt-react")
1826 (url "https://github.com/ocsigen/lwt")
1827 ;; Version from opam
1829 (file-name (git-file-name name version))
1832 "0f7036srqz7zmnz0n164734smgkrqz78r1i35cg30x31kkr3pnn4"))))
1834 `(#:package "lwt_react"))
1835 (properties `((upstream-name . "lwt_react")))
1837 `(("ocaml-lwt" ,ocaml-lwt)
1838 ("ocaml-react" ,ocaml-react)))))
1840 (define-public ocaml-lwt-log
1842 (name "ocaml-lwt-log")
1847 (url "https://github.com/aantron/lwt_log")
1849 (file-name (git-file-name name version))
1852 "1n12i1rmn9cjn6p8yr6qn5dwbrwvym7ckr7bla04a1xnq8qlcyj7"))))
1853 (build-system dune-build-system)
1855 `(#:tests? #f; require lwt_ppx
1858 `(("lwt" ,ocaml-lwt)))
1859 (properties `((upstream-name . "lwt_log")))
1860 (home-page "https://github.com/aantron/lwt_log")
1861 (synopsis "Logging library")
1862 (description "This package provides a deprecated logging component for
1864 (license license:lgpl2.1)))
1866 (define-public ocaml-logs
1872 (uri (string-append "http://erratique.ch/software/logs/releases/"
1873 "logs-" version ".tbz"))
1876 "1khbn7jqpid83zn8rvyh1x1sirls7zc878zj4fz985m5xlsfy853"))))
1877 (build-system ocaml-build-system)
1880 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1882 (modify-phases %standard-phases
1883 (delete 'configure))))
1885 `(("ocamlbuild" ,ocamlbuild)
1888 `(("fmt" ,ocaml-fmt)
1890 ("mtime" ,ocaml-mtime)
1891 ("result" ,ocaml-result)
1892 ("cmdliner" ,ocaml-cmdliner)
1893 ("topkg" ,ocaml-topkg)))
1894 (home-page "http://erratique.ch/software/logs")
1895 (synopsis "Logging infrastructure for OCaml")
1896 (description "Logs provides a logging infrastructure for OCaml. Logging is
1897 performed on sources whose reporting level can be set independently. Log
1898 message report is decoupled from logging and is handled by a reporter.")
1899 (license license:isc)))
1901 (define-public ocaml-fpath
1903 (name "ocaml-fpath")
1907 (uri (string-append "http://erratique.ch/software/fpath/releases/"
1908 "fpath-" version ".tbz"))
1911 "1hr05d8bpqmqcfdavn4rjk9rxr7v2zl84866f5knjifrm60sxqic"))))
1912 (build-system ocaml-build-system)
1915 #:build-flags (list "build")
1917 (modify-phases %standard-phases
1918 (delete 'configure))))
1920 `(("ocamlbuild" ,ocamlbuild)
1923 `(("topkg" ,ocaml-topkg)
1924 ("astring" ,ocaml-astring)))
1925 (home-page "http://erratique.ch/software/fpath")
1926 (synopsis "File system paths for OCaml")
1927 (description "Fpath is an OCaml module for handling file system paths with
1928 POSIX or Windows conventions. Fpath processes paths without accessing the
1929 file system and is independent from any system library.")
1930 (license license:isc)))
1932 (define-public ocaml-bos
1938 (uri (string-append "http://erratique.ch/software/bos/releases/"
1939 "bos-" version ".tbz"))
1942 "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"))))
1943 (build-system ocaml-build-system)
1946 #:build-flags (list "build")
1948 (modify-phases %standard-phases
1949 (delete 'configure))))
1951 `(("ocamlbuild" ,ocamlbuild)
1954 `(("topkg" ,ocaml-topkg)
1955 ("astring" ,ocaml-astring)
1957 ("fpath" ,ocaml-fpath)
1958 ("logs" ,ocaml-logs)
1959 ("rresult" ,ocaml-rresult)))
1960 (home-page "http://erratique.ch/software/bos")
1961 (synopsis "Basic OS interaction for OCaml")
1962 (description "Bos provides support for basic and robust interaction with
1963 the operating system in OCaml. It has functions to access the process
1964 environment, parse command line arguments, interact with the file system and
1965 run command line programs.")
1966 (license license:isc)))
1968 (define-public ocaml-xmlm
1974 (uri (string-append "http://erratique.ch/software/xmlm/releases/"
1975 "xmlm-" version ".tbz"))
1978 "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n"))))
1979 (build-system ocaml-build-system)
1982 #:build-flags (list "build")
1984 (modify-phases %standard-phases
1985 (delete 'configure))))
1987 `(("ocamlbuild" ,ocamlbuild)
1988 ("ocaml-topkg" ,ocaml-topkg)
1990 (home-page "http://erratique.ch/software/xmlm")
1991 (synopsis "Streaming XML codec for OCaml")
1992 (description "Xmlm is a streaming codec to decode and encode the XML data
1993 format. It can process XML documents without a complete in-memory
1994 representation of the data.")
1995 (license license:isc)))
1997 (define-public ocaml4.07-gen
1999 (name "ocaml4.07-gen")
2004 (url "https://github.com/c-cube/gen")
2006 (file-name (git-file-name name version))
2009 "1h9g508rnj2j8va5nvhamzscp954vrkh0hdf4pn3d10pcfyslfg2"))))
2010 (build-system dune-build-system)
2012 `(#:tests? #f; no tests
2015 #:findlib ,ocaml4.07-findlib))
2017 `(("ocaml-odoc" ,ocaml4.07-odoc)))
2019 `(("ocaml-qtest" ,(package-with-ocaml4.07 ocaml-qtest))
2020 ("ocaml-qcheck" ,(package-with-ocaml4.07 ocaml-qcheck))))
2021 (home-page "https://github.com/c-cube/gen/")
2022 (synopsis "Iterators for OCaml, both restartable and consumable")
2023 (description "Gen implements iterators of OCaml, that are both restartable
2025 (license license:bsd-2)))
2027 (define-public ocaml4.07-sedlex
2029 (name "ocaml4.07-sedlex")
2034 (url "https://github.com/ocaml-community/sedlex")
2035 (commit (string-append "v" version))))
2036 (file-name (git-file-name name version))
2039 "05f6qa8x3vhpdz1fcnpqk37fpnyyq13icqsk2gww5idjnh6kng26"))))
2040 (build-system dune-build-system)
2042 `(#:tests? #f; no tests
2045 (modify-phases %standard-phases
2046 (add-before 'build 'copy-resources
2047 (lambda* (#:key inputs #:allow-other-keys)
2048 (with-directory-excursion "src/generator/data"
2051 (copy-file (assoc-ref inputs file) file))
2052 '("DerivedCoreProperties.txt" "DerivedGeneralCategory.txt"
2055 (add-before 'build 'chmod
2057 (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*"))
2060 #:findlib ,ocaml4.07-findlib))
2062 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
2064 `(("ocaml-gen" ,ocaml4.07-gen)
2065 ("ocaml-ppx-tools-versioned"
2066 ,(package-with-ocaml4.07 ocaml-ppx-tools-versioned))
2067 ("ocaml-uchar" ,(package-with-ocaml4.07 ocaml-uchar))))
2068 ;; These three files are needed by src/generator/data/dune, but would be
2069 ;; downloaded using curl at build time.
2071 `(("DerivedCoreProperties.txt"
2074 (uri "https://www.unicode.org/Public/12.1.0/ucd/DerivedCoreProperties.txt")
2077 "0s6sn1yr9qmb2i6gf8dir2zpsbjv1frdfzy3i2yjylzvf637msx6"))))
2078 ("DerivedGeneralCategory.txt"
2081 (uri "https://www.unicode.org/Public/12.1.0/ucd/extracted/DerivedGeneralCategory.txt")
2084 "1rifzq9ba6c58dn0lrmcb5l5k4ksx3zsdkira3m5p6h4i2wriy3q"))))
2088 (uri "https://www.unicode.org/Public/12.1.0/ucd/PropList.txt")
2091 "0gsb1jpj3mnqbjgbavi4l95gl6g4agq58j82km22fdfg63j3w3fk"))))))
2092 (home-page "https://www.cduce.org/download.html#side")
2093 (synopsis "Lexer generator for Unicode and OCaml")
2094 (description "Lexer generator for Unicode and OCaml.")
2095 (license license:expat)))
2097 (define-public ocaml-uchar
2099 (name "ocaml-uchar")
2104 (uri (string-append "https://github.com/ocaml/uchar/releases/download/v"
2105 version "/uchar-" version ".tbz"))
2107 "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"))))
2108 (build-system ocaml-build-system)
2111 #:build-flags (list "native=true" "native-dynlink=true")
2113 (modify-phases %standard-phases
2114 (delete 'configure))))
2116 `(("ocamlbuild" ,ocamlbuild)
2118 (home-page "https://github.com/ocaml/uchar")
2119 (synopsis "Compatibility library for OCaml's Uchar module")
2120 (description "The uchar package provides a compatibility library for the
2121 `Uchar` module introduced in OCaml 4.03.")
2122 (license license:lgpl2.1)))
2124 (define-public ocaml-uutf
2130 (uri (string-append "http://erratique.ch/software/uutf/releases/"
2131 "uutf-" version ".tbz"))
2134 "1gp96dcggq7s84934vimxh89caaxa77lqiff1yywbwkilkkjcfqj"))))
2135 (build-system ocaml-build-system)
2138 #:build-flags (list "build")
2140 (modify-phases %standard-phases
2141 (delete 'configure))))
2143 `(("ocamlbuild" ,ocamlbuild)
2145 ("topkg" ,ocaml-topkg)))
2147 `(("uchar" ,ocaml-uchar)
2148 ("cmdliner" ,ocaml-cmdliner)))
2149 (home-page "http://erratique.ch/software/uutf")
2150 (synopsis "Non-blocking streaming Unicode codec for OCaml")
2151 (description "Uutf is a non-blocking streaming codec to decode and encode
2152 the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
2153 work character by character without blocking on IO. Decoders perform character
2154 position tracking and support newline normalization.
2156 Functions are also provided to fold over the characters of UTF encoded OCaml
2157 string values and to directly encode characters in OCaml Buffer.t values.")
2158 (license license:isc)))
2160 (define-public ocaml-jsonm
2162 (name "ocaml-jsonm")
2166 (uri (string-append "http://erratique.ch/software/jsonm/releases/"
2167 "jsonm-" version ".tbz"))
2170 "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w"))))
2171 (build-system ocaml-build-system)
2174 #:build-flags (list "build")
2176 (modify-phases %standard-phases
2177 (delete 'configure))))
2179 `(("ocamlbuild" ,ocamlbuild)
2181 ("topkg" ,ocaml-topkg)))
2183 `(("uutf" ,ocaml-uutf)
2184 ("cmdliner" ,ocaml-cmdliner)))
2185 (home-page "http://erratique.ch/software/jsonm")
2186 (synopsis "Non-blocking streaming JSON codec for OCaml")
2187 (description "Jsonm is a non-blocking streaming codec to decode and encode
2188 the JSON data format. It can process JSON text without blocking on IO and
2189 without a complete in-memory representation of the data.")
2190 (license license:isc)))
2192 (define-public ocaml-ocurl
2194 (name "ocaml-ocurl")
2198 (uri (string-append "http://ygrek.org.ua/p/release/ocurl/ocurl-"
2202 "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6"))))
2203 (build-system ocaml-build-system)
2206 (modify-phases %standard-phases
2207 (add-before 'configure 'fix-/bin/sh
2208 (lambda* (#:key inputs #:allow-other-keys)
2209 (substitute* "configure"
2210 (("-/bin/sh") (string-append "-" (which "bash")))))))))
2212 `(("pkg-config" ,pkg-config)))
2213 (inputs `(("curl" ,curl)))
2214 (home-page "http://ocurl.forge.ocamlcore.org/")
2215 (synopsis "OCaml bindings for libcurl")
2216 (description "Client-side URL transfer library, supporting HTTP and a
2217 multitude of other network protocols (FTP/SMTP/RTSP/etc).")
2218 (license license:isc)))
2220 (define-public ocaml-base64
2222 (name "ocaml-base64")
2227 (url "https://github.com/mirage/ocaml-base64")
2228 (commit (string-append "v" version))))
2229 (file-name (git-file-name name version))
2232 "1ilw3zj0w6cq7i4pvr8m2kv5l5f2y9aldmv72drlwwns013b1gwy"))))
2233 (build-system dune-build-system)
2235 `(("ocaml-alcotest" ,ocaml-alcotest)
2236 ("ocaml-bos" ,ocaml-bos)
2237 ("ocaml-rresult" ,ocaml-rresult)))
2238 (home-page "https://github.com/mirage/ocaml-base64")
2239 (synopsis "Base64 encoding for OCaml")
2240 (description "Base64 is a group of similar binary-to-text encoding schemes
2241 that represent binary data in an ASCII string format by translating it into a
2242 radix-64 representation. It is specified in RFC 4648.")
2243 (license license:isc)))
2245 (define-public ocamlify
2251 (uri "https://download.ocamlcore.org/ocamlify/ocamlify/0.0.1/ocamlify-0.0.1.tar.gz")
2254 "1j9nb3vjqbdsx3d6jazixgrh776051zkrc06nsc5q5ilp1jhrwkm"))))
2255 (build-system ocaml-build-system)
2256 ; tests are done during build
2259 (modify-phases %standard-phases
2262 (lambda* (#:key outputs #:allow-other-keys)
2263 (invoke "ocaml" "setup.ml" "-configure" "--prefix"
2264 (assoc-ref outputs "out")))))))
2266 `(("ocamlbuild" ,ocamlbuild)))
2267 (home-page "https://forge.ocamlcore.org/projects/ocamlify")
2268 (synopsis "Include files in OCaml code")
2269 (description "OCamlify creates OCaml source code by including
2270 whole files into OCaml string or string list. The code generated can be
2271 compiled as a standard OCaml file. It allows embedding external resources as
2273 (license license:lgpl2.1+))); with the OCaml static compilation exception
2275 (define-public omake
2281 (uri (string-append "http://download.camlcity.org/download/"
2282 "omake-" version ".tar.gz"))
2285 "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz"))
2286 (patches (search-patches "omake-fix-non-determinism.patch"))))
2287 (build-system ocaml-build-system)
2290 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2291 #:tests? #f ; no test target
2293 (modify-phases %standard-phases
2294 (add-before 'configure 'fix-makefile
2295 (lambda* (#:key outputs #:allow-other-keys)
2296 (substitute* "mk/osconfig_unix.mk"
2297 (("CC = cc") "CC = gcc")))))))
2298 (native-inputs `(("hevea" ,hevea)))
2299 (home-page "http://projects.camlcity.org/projects/omake.html")
2300 (synopsis "Build system designed for scalability and portability")
2301 (description "Similar to make utilities you may have used, but it features
2302 many additional enhancements, including:
2305 @item Support for projects spanning several directories or directory hierarchies.
2306 @item Fast, reliable, automated, scriptable dependency analysis using MD5 digests,
2307 with full support for incremental builds.
2308 @item Dependency analysis takes the command lines into account — whenever the
2309 command line used to build a target changes, the target is considered
2311 @item Fully scriptable, includes a library that providing support for standard
2312 tasks in C, C++, OCaml, and LaTeX projects, or a mixture thereof.
2314 (license (list license:lgpl2.1 ; libmojave
2315 license:expat ; OMake scripts
2316 license:gpl2)))) ; OMake itself, with ocaml linking exception
2319 (define-public ocaml-batteries
2321 (name "ocaml-batteries")
2325 (uri (string-append "https://github.com/ocaml-batteries-team/"
2326 "batteries-included/releases/download/v"
2327 version "/batteries-" version ".tar.gz"))
2330 "08ghw87d56h1a6y1nnh3x2wy9xj25jqfk5sp6ma9nsyd37babb0h"))))
2331 (build-system ocaml-build-system)
2333 `(("ocamlbuild" ,ocamlbuild)
2334 ("qtest" ,ocaml-qtest)))
2336 `(("ocaml-num" ,ocaml-num)))
2339 (modify-phases %standard-phases
2340 (delete 'check) ; tests are run by the build phase
2341 (add-before 'build 'fix-nondeterminism
2343 (substitute* "setup.ml"
2344 (("Sys.readdir dirname")
2345 "let a = Sys.readdir dirname in Array.sort String.compare a; a"))
2348 (lambda* (#:key inputs outputs #:allow-other-keys)
2351 (substring str 0 (- (string-length str) 1)))
2353 (find-files "src" ".*.mliv")
2354 (find-files "src" ".*.mlv")
2355 (find-files "src" ".*.mlp")))))
2356 (apply invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2357 "-lflag" "-dllpath-all" files)
2358 (for-each (lambda (file)
2359 (copy-file (string-append "_build/" file) file))
2361 (invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2362 "-lflag" "-dllpath-all" "build/mkconf.byte")
2363 (copy-file "_build/build/mkconf.byte" "build/mkconf.byte")
2364 (invoke "make" "all")
2366 (home-page "http://batteries.forge.ocamlcore.org/")
2367 (synopsis "Development platform for the OCaml programming language")
2368 (description "Define a standard set of libraries which may be expected on
2369 every compliant installation of OCaml and organize these libraries into a
2370 hierarchy of modules.")
2371 (license license:lgpl2.1+)))
2373 (define-public ocaml4.07-pcre
2375 (name "ocaml4.07-pcre")
2380 (url "https://github.com/mmottl/pcre-ocaml")
2382 (file-name (git-file-name name version))
2385 "11sd8g668h48790lamz0riw9jgnfkaif5qdfa0akcndwa6aj07jf"))))
2386 (build-system dune-build-system)
2390 #:findlib ,ocaml4.07-findlib
2391 #:dune ,ocaml4.07-dune))
2393 `(("ocaml-base" ,ocaml4.07-base)
2394 ("pcre:bin" ,pcre "bin")))
2395 (propagated-inputs `(("pcre" ,pcre)))
2396 (home-page "https://mmottl.github.io/pcre-ocaml")
2397 (synopsis "Bindings to the Perl Compatibility Regular Expressions library")
2398 (description "Pcre-ocaml offers library functions for string pattern
2399 matching and substitution, similar to the functionality offered by the Perl
2401 (license license:lgpl2.1+))); with the OCaml link exception
2403 (define-public ocaml4.07-expect
2405 (name "ocaml4.07-expect")
2409 (uri (ocaml-forge-uri name version 1736))
2412 "098qvg9d4yrqzr5ax291y3whrpax0m3sx4gi6is0mblc96r9yqk0"))))
2416 #:findlib ,ocaml4.07-findlib))
2417 (build-system ocaml-build-system)
2419 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))
2420 ("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
2421 ("ocaml-pcre" ,ocaml4.07-pcre)
2422 ("ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
2424 `(("batteries" ,(package-with-ocaml4.07 ocaml-batteries))))
2425 (home-page "https://forge.ocamlcore.org/projects/ocaml-expect/")
2426 (synopsis "Simple implementation of expect")
2427 (description "Help building unitary testing of interactive program. You
2428 can match the question using a regular expression or a timeout.")
2429 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2431 (define-public ocaml-stdlib-shims
2433 (name "ocaml-stdlib-shims")
2438 (url "https://github.com/ocaml/stdlib-shims")
2440 (file-name (git-file-name name version))
2443 "007dwywsr5285z0np6a9nr0h8iqmyzfrlx6s5xaqcwj69zabsrjm"))))
2444 (build-system dune-build-system)
2445 (home-page "https://github.com/ocaml/stdlib-shims")
2446 (synopsis "OCaml stdlib features backport to older OCaml compilers")
2447 (description "This package backports some of the new stdlib features to
2448 older compilers, such as the Stdlib module. This allows projects that require
2449 compatibility with older compiler to use these new features in their code.")
2450 ;; with ocaml-linking exception
2451 (license license:lgpl2.1+)))
2453 (define-public ocaml-fileutils
2455 (name "ocaml-fileutils")
2460 (url "https://github.com/gildor478/ocaml-fileutils")
2461 (commit (string-append "v" version))))
2462 (file-name (git-file-name name version))
2465 "01qf51b8pb7vyfba7y0kb7ajwj1950im25d7f59821zwsibns3d9"))))
2466 (build-system dune-build-system)
2468 `(("ocaml-stdlib-shims" ,ocaml-stdlib-shims)))
2470 `(("ocaml-ounit" ,ocaml-ounit)))
2471 (home-page "http://ocaml-fileutils.forge.ocamlcore.org")
2472 (synopsis "Pure OCaml functions to manipulate real file and filename")
2473 (description "Library to provide pure OCaml functions to manipulate real
2474 file (POSIX like) and filename.")
2475 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2477 (define-public ocaml-oasis
2479 (name "ocaml-oasis")
2483 (uri (ocaml-forge-uri name version 1757))
2486 "0bn13mzfa98dq3y0jwzzndl55mnywaxv693z6f1rlvpdykp3vdqq"))
2487 (modules '((guix build utils)))
2490 (substitute* "test/test-main/Test.ml"
2491 ;; most of these tests fail because ld cannot find crti.o, but according
2492 ;; to the log file, the environment variables {LD_,}LIBRARY_PATH
2493 ;; are set correctly when LD_LIBRARY_PATH is defined beforhand.
2494 (("TestBaseCompat.tests;") "")
2495 (("TestExamples.tests;") "")
2496 (("TestFull.tests;") "")
2497 (("TestPluginDevFiles.tests;") "")
2498 (("TestPluginInternal.tests;") "")
2499 (("TestPluginOCamlbuild.tests;") "")
2500 (("TestPluginOMake.tests;") ""))
2502 (build-system ocaml-build-system)
2506 `(("ocamlbuild" ,ocamlbuild)
2507 ("ocamlify" ,ocamlify)
2508 ("ocamlmod" ,ocamlmod)))
2509 (home-page "https://oasis.forge.ocamlcore.org")
2510 (synopsis "Integrates a configure, build, install system in OCaml projects")
2511 (description "OASIS is a tool to integrate a configure, build and install
2512 system in your OCaml projects. It helps to create standard entry points in your
2513 build system and allows external tools to analyse your project easily.")
2514 (license license:lgpl2.1+))) ; with ocaml static compilation exception
2516 (define-public ocaml-js-build-tools
2518 (name "ocaml-js-build-tools")
2519 (version "113.33.06")
2520 (source (janestreet-origin "js-build-tools" version
2521 "0r8z4fz8iy5y6hkdlkpwf6rk4qigcr3dzyv35585xgg2ahf12zy6"))
2523 `(("oasis" ,ocaml-oasis)
2524 ("ocamlbuild" ,ocamlbuild)
2526 (build-system ocaml-build-system)
2527 (arguments janestreet-arguments)
2528 (home-page "https://github.com/janestreet/js-build-tools")
2529 (synopsis "Collection of tools to help building Jane Street Packages")
2530 (description "This package contains tools to help building Jane Street
2531 packages, but can be used for other purposes. It contains:
2533 @item an @command{oasis2opam-install} tool to produce a @file{.install} file
2534 from the oasis build log
2535 @item a @code{js_build_tools} ocamlbuild plugin with various goodies.
2537 (license license:asl2.0)))
2539 (define-public ocaml-cppo
2547 (url "https://github.com/mjambon/cppo")
2548 (commit (string-append "v" version))))
2549 (file-name (git-file-name name version))
2551 "1smcc0l6fh2n0y6bp96c69j5nw755jja99w0b206wx3yb2m4w2hs"))))
2552 (build-system dune-build-system)
2555 #:build-flags (list "--profile" "release")))
2557 `(("ocamlbuild" ,ocamlbuild)))
2558 (home-page "https://github.com/mjambon/cppo")
2559 (synopsis "Equivalent of the C preprocessor for OCaml programs")
2560 (description "Cppo is an equivalent of the C preprocessor for OCaml
2561 programs. It allows the definition of simple macros and file inclusion. Cpp ois:
2563 @item more OCaml-friendly than cpp
2564 @item easy to learn without consulting a manual
2565 @item reasonably fast
2566 @item simple to install and to maintain.
2568 (license license:bsd-3)))
2570 (define-public ocaml-seq
2578 (url "https://github.com/c-cube/seq.git")
2580 (file-name (git-file-name name version))
2582 (base32 "1cjpsc7q76yfgq9iyvswxgic4kfq2vcqdlmxjdjgd4lx87zvcwrv"))))
2583 (build-system ocaml-build-system)
2587 (modify-phases %standard-phases
2591 (lambda* (#:key outputs #:allow-other-keys)
2592 (let ((install-dir (string-append (assoc-ref outputs "out")
2593 "/lib/ocaml/site-lib/seq")))
2594 (mkdir-p install-dir)
2595 (with-output-to-file (string-append install-dir "/META")
2597 (display "name=\"seq\"
2598 version=\"[distributed with ocaml]\"
2599 description=\"dummy package for compatibility\"
2602 (home-page "https://github.com/c-cube/seq")
2603 (synopsis "OCaml's standard iterator type")
2604 (description "This package is a compatibility package for OCaml's
2605 standard iterator type starting from 4.07.")
2606 (license license:lgpl2.1+)))
2608 (define-public ocaml-re
2616 (url "https://github.com/ocaml/ocaml-re.git")
2618 (file-name (git-file-name name version))
2620 (base32 "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss"))))
2621 (build-system dune-build-system)
2624 #:build-flags (list "--profile" "release")))
2626 `(("ocaml-seq" ,ocaml-seq)))
2628 `(("ounit" ,ocaml-ounit)))
2629 (home-page "https://github.com/ocaml/ocaml-re/")
2630 (synopsis "Regular expression library for OCaml")
2631 (description "Pure OCaml regular expressions with:
2633 @item Perl-style regular expressions (module Re_perl)
2634 @item Posix extended regular expressions (module Re_posix)
2635 @item Emacs-style regular expressions (module Re_emacs)
2636 @item Shell-style file globbing (module Re_glob)
2637 @item Compatibility layer for OCaml's built-in Str module (module Re_str)
2639 (license license:expat)))
2641 (define-public ocaml-ocplib-endian
2643 (name "ocaml-ocplib-endian")
2648 (url "https://github.com/OCamlPro/ocplib-endian/")
2652 "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw"))
2653 (file-name (git-file-name name version))))
2654 (build-system ocaml-build-system)
2656 `(("cppo" ,ocaml-cppo)
2657 ("ocamlbuild" ,ocamlbuild)))
2658 (home-page "https://github.com/OCamlPro/ocplib-endian")
2659 (synopsis "Optimised functions to read and write int16/32/64 from strings
2661 (description "Optimised functions to read and write int16/32/64 from strings
2662 and bigarrays, based on new primitives added in version 4.01. It works on
2663 strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
2664 big- and little-endian, with their unsafe counter-parts.")
2665 (license license:lgpl2.1)))
2667 (define-public ocaml-cstruct
2669 (name "ocaml-cstruct")
2674 (url "https://github.com/mirage/ocaml-cstruct")
2675 (commit (string-append "v" version))))
2676 (file-name (git-file-name name version))
2679 "0m4bz0digcsc8l2msfikwcbi1y371kccx6xnkwrz212mf5mp98bv"))))
2680 (build-system dune-build-system)
2682 `(#:package "cstruct"
2685 `(("ocaml-alcotest" ,ocaml-alcotest)))
2686 (home-page "https://github.com/mirage/ocaml-cstruct")
2687 (synopsis "Access C structures via a camlp4 extension")
2688 (description "Cstruct is a library and syntax extension to make it easier
2689 to access C-like structures directly from OCaml. It supports both reading and
2690 writing to these structures, and they are accessed via the Bigarray module.")
2691 (license license:isc)))
2693 (define-public ocaml-hex
2700 (url "https://github.com/mirage/ocaml-hex")
2701 (commit (string-append "v" version))))
2702 (file-name (git-file-name name version))
2705 "0c8nhibcwy0ykzca4jn3gqb8ylq21ff88y82gl60wyzijr64rn0q"))))
2706 (build-system dune-build-system)
2708 `(#:test-target "."))
2710 `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat)
2711 ("cstruct" ,ocaml-cstruct)))
2712 (home-page "https://github.com/mirage/ocaml-hex/")
2713 (synopsis "Minimal library providing hexadecimal converters")
2714 (description "Hex is a minimal library providing hexadecimal converters.")
2715 (license license:isc)))
2717 (define-public ocaml4.07-ezjsonm
2719 (name "ocaml4.07-ezjsonm")
2725 (url "https://github.com/mirage/ezjsonm.git")
2726 (commit (string-append "v" version))))
2727 (file-name (git-file-name name version))
2729 (base32 "064j9pzy01p3dv947khqyn7fkjbs3jmrqsg8limb4abnlaqxxs2s"))))
2730 (build-system dune-build-system)
2732 `(#:package "ezjsonm"
2735 #:findlib ,ocaml4.07-findlib))
2737 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))))
2739 `(("ocaml-hex" ,(package-with-ocaml4.07 ocaml-hex))
2740 ("ocaml-jsonm" ,(package-with-ocaml4.07 ocaml-jsonm))
2741 ("ocaml-sexplib" ,ocaml4.07-sexplib)))
2742 (home-page "https://github.com/mirage/ezjsonm/")
2743 (synopsis "Read and write JSON data")
2744 (description "Ezjsonm provides more convenient (but far less flexible) input
2745 and output functions that go to and from [string] values than jsonm. This avoids
2746 the need to write signal code, which is useful for quick scripts that manipulate
2748 (license license:isc)))
2750 (define-public ocaml4.07-uri
2752 (name "ocaml4.07-uri")
2758 (url "https://github.com/mirage/ocaml-uri.git")
2759 (commit (string-append "v" version))))
2760 (file-name (git-file-name name version))
2762 (base32 "1ppbav41mszpjcl0zi3fyg958cxyfs57i7kvha4ds9ydn89bjmrh"))))
2763 (build-system dune-build-system)
2767 (modify-phases %standard-phases
2768 (add-before 'build 'update-deprecated
2770 (substitute* "lib/uri.ml"
2771 (("Re.get") "Re.Group.get")))))
2773 #:findlib ,ocaml4.07-findlib))
2775 `(("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))
2776 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)))
2778 `(("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
2779 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
2780 ("ocaml-stringext" ,(package-with-ocaml4.07 ocaml-stringext))))
2781 (home-page "https://github.com/mirage/ocaml-uri")
2782 (synopsis "RFC3986 URI/URL parsing library")
2783 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.")
2784 (license license:isc)))
2786 (define-public ocaml-easy-format
2788 (name "ocaml-easy-format")
2793 (url "https://github.com/mjambon/easy-format")
2795 (file-name (git-file-name name version))
2798 "1fc95q2ypck6m6rv3kiawwilh5ac93v2hcp823mj608d5kj79xkb"))))
2799 (build-system dune-build-system)
2803 (modify-phases %standard-phases
2804 (add-before 'build 'make-writable
2809 (find-files "." "."))
2811 (home-page "https://github.com/mjambon/easy-format")
2812 (synopsis "Interface to the Format module")
2813 (description "Easy-format is a high-level and functional interface to the
2814 Format module of the OCaml standard library.")
2815 (license license:bsd-3)))
2817 (define-public ocaml4.07-piqilib
2819 (name "ocaml4.07-piqilib")
2825 (url "https://github.com/alavrik/piqi.git")
2826 (commit (string-append "v" version))))
2827 (file-name (git-file-name name version))
2829 (base32 "0v04hs85xv6d4ysqxyv1dik34dx49yab9shpi4x7iv19qlzl7csb"))))
2830 (build-system ocaml-build-system)
2833 (modify-phases %standard-phases
2834 (add-before 'configure 'fix-ocamlpath
2836 (substitute* '("Makefile" "make/Makefile.ocaml")
2837 (("OCAMLPATH := ") "OCAMLPATH := $(OCAMLPATH):"))
2840 (lambda* (#:key outputs #:allow-other-keys)
2841 (let ((out (assoc-ref outputs "out")))
2842 (substitute* "make/OCamlMakefile"
2843 (("/bin/sh") (which "bash")))
2844 (invoke "./configure" "--prefix" out "--ocaml-libdir"
2845 (string-append out "/lib/ocaml/site-lib")))
2847 (add-after 'build 'build-ocaml
2848 (lambda* (#:key outputs #:allow-other-keys)
2849 (invoke "make" "ocaml")
2851 (add-after 'install 'install-ocaml
2852 (lambda* (#:key outputs #:allow-other-keys)
2853 (invoke "make" "ocaml-install")
2855 (add-after 'install-ocaml 'link-stubs
2856 (lambda* (#:key outputs #:allow-other-keys)
2857 (let* ((out (assoc-ref outputs "out"))
2858 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
2859 (lib (string-append out "/lib/ocaml/site-lib/piqilib")))
2861 (symlink (string-append lib "/dllpiqilib_stubs.so")
2862 (string-append stubs "/dllpiqilib_stubs.so"))
2865 #:findlib ,ocaml4.07-findlib))
2867 `(("which" ,which)))
2869 `(("ocaml-xmlm" ,(package-with-ocaml4.07 ocaml-xmlm))
2870 ("ocaml-sedlex" ,ocaml4.07-sedlex)
2871 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))
2872 ("ocaml-base64" ,(package-with-ocaml4.07 ocaml-base64))))
2873 (home-page "http://piqi.org")
2874 (synopsis "Data serialization and conversion library")
2875 (description "Piqilib is the common library used by the piqi command-line
2876 tool and piqi-ocaml.")
2877 (license license:asl2.0)))
2879 (define-public ocaml-uuidm
2881 (name "ocaml-uuidm")
2885 (uri (string-append "http://erratique.ch/software/uuidm/"
2886 "releases/uuidm-" version ".tbz"))
2889 "0hz4fdx0x16k0pw9995vkz5d1hmzz6b16wck9li399rcbfnv5jlc"))))
2890 (build-system ocaml-build-system)
2893 (list "build" "--tests" "true" "--with-cmdliner" "true")
2895 (modify-phases %standard-phases
2896 (delete 'configure))))
2898 `(("ocamlbuild" ,ocamlbuild)
2901 `(("cmdliner" ,ocaml-cmdliner)
2902 ("topkg" ,ocaml-topkg)))
2903 (home-page "http://erratique.ch/software/uuidm")
2904 (synopsis "Universally unique identifiers for OCaml")
2905 (description "Uuidm is an OCaml module implementing 128 bits universally
2906 unique identifiers (UUIDs) version 3, 5 (named based with MD5, SHA-1 hashing)
2907 and 4 (random based) according to RFC 4122.")
2908 (license license:isc)))
2910 (define-public ocaml-graph
2912 (name "ocaml-graph")
2916 (uri (string-append "http://ocamlgraph.lri.fr/download/"
2917 "ocamlgraph-" version ".tar.gz"))
2920 "0m9g16wrrr86gw4fz2fazrh8nkqms0n863w7ndcvrmyafgxvxsnr"))))
2921 (build-system ocaml-build-system)
2923 `(#:install-target "install-findlib"
2926 (modify-phases %standard-phases
2927 (add-before 'configure 'set-shell
2928 (lambda* (#:key inputs #:allow-other-keys)
2929 (setenv "CONFIG_SHELL" (string-append (assoc-ref inputs "bash")
2931 (inputs `(("lablgtk" ,lablgtk)))
2932 (properties `((upstream-name . "ocamlgraph")))
2933 (home-page "http://ocamlgraph.lri.fr/")
2934 (synopsis "Graph library for OCaml")
2935 (description "OCamlgraph is a generic graph library for OCaml.")
2936 (license license:lgpl2.1)))
2938 (define-public ocaml4.07-piqi
2940 (name "ocaml4.07-piqi")
2944 (uri (string-append "https://github.com/alavrik/piqi-ocaml/"
2945 "archive/v" version ".tar.gz"))
2946 (file-name (string-append name "-" version ".tar.gz"))
2949 "1l0b4saxmwqgw9mb10mwrz31lvpj3l0abh3cwarqp0x4vdrzshbh"))))
2950 (build-system ocaml-build-system)
2953 (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
2954 (string-append "SHELL=" (assoc-ref %build-inputs "bash")
2957 (modify-phases %standard-phases
2958 (delete 'configure))
2960 #:findlib ,ocaml4.07-findlib))
2963 ("protobuf" ,protobuf))) ; for tests
2965 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
2966 ("ocaml-piqilib" ,ocaml4.07-piqilib)
2967 ("ocaml-stdlib-shims" ,(package-with-ocaml4.07 ocaml-stdlib-shims))))
2968 (home-page "https://github.com/alavrik/piqi-ocaml")
2969 (synopsis "Protocol serialization system for OCaml")
2970 (description "Piqi is a multi-format data serialization system for OCaml.
2971 It provides a uniform interface for serializing OCaml data structures to JSON,
2972 XML and Protocol Buffers formats.")
2973 (license license:asl2.0)))
2979 (home-page "https://github.com/BinaryAnalysisPlatform/bap")
2984 (commit (string-append "v" version))))
2985 (file-name (git-file-name name version))
2988 "0lb9xkfp67wjjqr75p6krivmjra7l5673236v9ny4gp0xi0755bk"))))
2989 (build-system ocaml-build-system)
2991 `(("ocaml-oasis" ,(package-with-ocaml4.07 ocaml-oasis))
2992 ("clang" ,clang-3.8)
2993 ("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
2995 `(("camlzip" ,(package-with-ocaml4.07 camlzip))
2996 ("ocaml-bitstring" ,(package-with-ocaml4.07 ocaml-bitstring))
2997 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
2998 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
2999 ("ocaml-ezjsonm" ,ocaml4.07-ezjsonm)
3000 ("ocaml-fileutils" ,(package-with-ocaml4.07 ocaml-fileutils))
3001 ("ocaml-frontc" ,(package-with-ocaml4.07 ocaml-frontc))
3002 ("ocaml-graph" ,(package-with-ocaml4.07 ocaml-graph))
3003 ("ocaml-ocurl" ,(package-with-ocaml4.07 ocaml-ocurl))
3004 ("ocaml-piqi" ,ocaml4.07-piqi)
3005 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
3006 ("ocaml-utop" ,ocaml4.07-utop)
3007 ("ocaml-uuidm" ,(package-with-ocaml4.07 ocaml-uuidm))
3008 ("ocaml-uri" ,ocaml4.07-uri)
3009 ("ocaml-zarith" ,(package-with-ocaml4.07 ocaml-zarith))))
3013 ("ncurses" ,ncurses)))
3017 (modify-phases %standard-phases
3018 (add-before 'configure 'fix-ncurses
3020 (substitute* "oasis/llvm"
3021 (("-lcurses") "-lncurses"))
3024 (lambda* (#:key outputs inputs #:allow-other-keys)
3025 ;; add write for user, to prevent a failure in the install phase
3028 (let ((stat (stat file)))
3029 (chmod file (+ #o200 (stat:mode stat)))))
3030 (find-files "." "."))
3031 (invoke "./configure" "--prefix"
3032 (assoc-ref outputs "out")
3035 (assoc-ref outputs "out")
3036 "/lib/ocaml/site-lib")
3037 "--with-llvm-version=3.8"
3038 "--with-llvm-config=llvm-config"
3039 "--enable-everything"))))
3041 #:findlib ,ocaml4.07-findlib))
3042 (synopsis "Binary Analysis Platform")
3043 (description "Binary Analysis Platform is a framework for writing program
3044 analysis tools, that target binary files. The framework consists of a plethora
3045 of libraries, plugins, and frontends. The libraries provide code reusability,
3046 the plugins facilitate extensibility, and the frontends serve as entry points.")
3047 (license license:expat)))
3049 (define-public ocaml-camomile
3051 (name "ocaml-camomile")
3053 (home-page "https://github.com/yoriyuki/Camomile")
3056 (uri (string-append home-page "/releases/download/" version
3057 "/camomile-" version ".tbz"))
3060 "0chn7ldqb3wyf95yhmsxxq65cif56smgz1mhhc7m0dpwmyq1k97h"))))
3061 (build-system dune-build-system)
3063 `(#:build-flags (list "--profile" "release")
3064 #:test-target "camomile-test"
3065 #:tests? #f; Tests fail, see https://github.com/yoriyuki/Camomile/issues/82
3067 (modify-phases %standard-phases
3068 (add-before 'build 'fix-usr-share
3069 (lambda* (#:key outputs #:allow-other-keys)
3070 (substitute* '("Camomile/dune" "configure.ml")
3071 (("/usr/share") (string-append (assoc-ref outputs "out") "/share")))
3073 (synopsis "Comprehensive Unicode library")
3074 (description "Camomile is a Unicode library for OCaml. Camomile provides
3075 Unicode character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about
3076 200 encodings, collation and locale-sensitive case mappings, and more. The
3077 library is currently designed for Unicode Standard 3.2.")
3078 ;; with an exception for linked libraries to use a different license
3079 (license license:lgpl2.0+)))
3081 (define-public ocaml4.07-charinfo-width
3083 (name "ocaml4.07-charinfo-width")
3087 (uri (string-append "https://bitbucket.org/zandoye/charinfo_width"
3088 "/get/" version ".tar.gz"))
3089 (file-name (string-append name "-" version ".tar.gz"))
3092 "00bv4p1yqs8y0z4z07wd9w9yyv669dikp9b04dcjbwpiy2wy0086"))))
3093 (build-system dune-build-system)
3095 `(#:ocaml ,ocaml-4.07
3096 #:findlib ,ocaml4.07-findlib))
3098 `(("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
3099 ("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))))
3101 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
3103 `((upstream-name . "charInfo_width")))
3104 (home-page "https://bitbucket.org/zandoye/charinfo_width/")
3105 (synopsis "Determine column width for a character")
3106 (description "This module is implements purely in OCaml a character width
3107 function that follows the prototype of POSIX's wcwidth.")
3108 (license license:expat)))
3110 (define-public ocaml4.07-zed
3112 (name "ocaml4.07-zed")
3118 (url "https://github.com/diml/zed.git")
3120 (file-name (git-file-name name version))
3122 (base32 "0pa9awinqr0plp4b2az78dwpvh01pwaljnn5ydg8mc6hi7rmir55"))))
3123 (build-system dune-build-system)
3128 #:findlib ,ocaml4.07-findlib))
3130 `(("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3131 ("ocaml-charinfo-width" ,ocaml4.07-charinfo-width)
3132 ("ocaml-react" ,(package-with-ocaml4.07 ocaml-react))))
3133 (home-page "https://github.com/diml/zed")
3134 (synopsis "Abstract engine for text editing in OCaml")
3135 (description "Zed is an abstract engine for text edition. It can be used
3136 to write text editors, edition widgets, readlines, etc. You just have to
3137 connect an engine to your inputs and rendering functions to get an editor.")
3138 (license license:bsd-3)))
3140 (define-public ocaml4.07-lambda-term
3142 (name "ocaml4.07-lambda-term")
3148 (url "https://github.com/diml/lambda-term.git")
3150 (file-name (git-file-name name version))
3152 (base32 "0zcjy6fvf0d3i2ssz96asl889n3r6bplyzk7xvb2s3dkxbgcisyy"))))
3153 (build-system dune-build-system)
3155 `(#:build-flags (list "--profile" "release")
3158 #:findlib ,ocaml4.07-findlib))
3160 `(("ocaml-lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3161 ("ocaml-lwt-log" ,(package-with-ocaml4.07 ocaml-lwt-log))
3162 ("ocaml-lwt-react" ,(package-with-ocaml4.07 ocaml-lwt-react))
3163 ("ocaml-zed" ,ocaml4.07-zed)))
3165 `(("libev" ,libev)))
3166 (home-page "https://github.com/diml/lambda-term")
3167 (synopsis "Terminal manipulation library for OCaml")
3168 (description "Lambda-Term is a cross-platform library for manipulating the
3169 terminal. It provides an abstraction for keys, mouse events, colors, as well as
3170 a set of widgets to write curses-like applications. The main objective of
3171 Lambda-Term is to provide a higher level functional interface to terminal
3172 manipulation than, for example, ncurses, by providing a native OCaml interface
3173 instead of bindings to a C library.")
3174 (license license:bsd-3)))
3176 (define-public ocaml4.07-utop
3178 (name "ocaml4.07-utop")
3184 (url "https://github.com/ocaml-community/utop.git")
3186 (file-name (git-file-name name version))
3188 (base32 "1bl4943qpi3qy152dbdm5glhx19zsiylmn4rcxi8l66g58hikyjp"))))
3189 (build-system dune-build-system)
3194 #:findlib ,ocaml4.07-findlib))
3196 `(("cppo" ,(package-with-ocaml4.07 ocaml-cppo))))
3198 `(("lambda-term" ,ocaml4.07-lambda-term)
3199 ("lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3200 ("react" ,(package-with-ocaml4.07 ocaml-react))
3201 ("camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3202 ("zed" ,ocaml4.07-zed)))
3203 (home-page "https://github.com/ocaml-community/utop")
3204 (synopsis "Improved interface to the OCaml toplevel")
3205 (description "UTop is an improved toplevel for OCaml. It can run in a
3206 terminal or in Emacs. It supports line editing, history, real-time and context
3207 sensitive completion, colors, and more.")
3208 (license license:bsd-3)))
3210 (define-public ocaml-integers
3212 (name "ocaml-integers")
3214 (home-page "https://github.com/ocamllabs/ocaml-integers")
3217 (uri (string-append home-page
3218 "/releases/download/v0.2.2/integers-"
3220 (file-name (string-append name "-" version ".tbz"))
3223 "08b1ljw88ny3l0mdq6xmffjk8anfc77igryva5jz1p6f4f746ywk"))))
3224 (build-system ocaml-build-system)
3226 `(#:tests? #f; no tests
3227 #:build-flags (list "build")
3229 (modify-phases %standard-phases
3230 (delete 'configure))))
3232 `(("ocamlbuild" ,ocamlbuild)))
3234 `(("topkg" ,ocaml-topkg)
3236 (synopsis "Various signed and unsigned integer types for OCaml")
3237 (description "The ocaml-integers library provides a number of 8-, 16-, 32-
3238 and 64-bit signed and unsigned integer types, together with aliases such as
3239 long and size_t whose sizes depend on the host platform.")
3240 (license license:expat)))
3242 (define-public ocaml-ctypes
3244 (name "ocaml-ctypes")
3246 (home-page "https://github.com/ocamllabs/ocaml-ctypes")
3252 (file-name (git-file-name name version))
3255 "1b2q3h63ngf4x9qp65qwapf2dg9q0mcdah6qjm2q0c7v2p5vysv9"))))
3256 (build-system ocaml-build-system)
3258 `(#:tests? #f; require an old lwt
3260 (list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
3262 (modify-phases %standard-phases
3263 (add-after 'unpack 'make-writable
3267 (let ((stat (stat file)))
3268 (chmod file (+ #o200 (stat:mode stat)))))
3269 (find-files "." "."))
3271 (delete 'configure))))
3273 `(("pkg-config" ,pkg-config)))
3275 `(("libffi" ,libffi)
3276 ("ounit" ,ocaml-ounit)
3277 ("integers" ,ocaml-integers)
3279 ("topkg" ,ocaml-topkg)
3281 (synopsis "Library for binding to C libraries using pure OCaml")
3282 (description "Ctypes is a library for binding to C libraries using pure
3283 OCaml. The primary aim is to make writing C extensions as straightforward as
3284 possible. The core of ctypes is a set of combinators for describing the
3285 structure of C types -- numeric types, arrays, pointers, structs, unions and
3286 functions. You can use these combinators to describe the types of the
3287 functions that you want to call, then bind directly to those functions -- all
3288 without writing or generating any C!")
3289 (license license:expat)))
3291 (define-public ocaml-ocb-stubblr
3293 (name "ocaml-ocb-stubblr")
3295 (home-page "https://github.com/pqwy/ocb-stubblr")
3299 home-page "/releases/download/v0.1.1/ocb-stubblr-"
3301 (file-name (string-append name "-" version ".tbz"))
3304 "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
3305 (build-system ocaml-build-system)
3307 `(#:build-flags (list "build" "--tests" "true")
3309 (modify-phases %standard-phases
3311 (add-before 'build 'fix-for-guix
3313 (substitute* "src/ocb_stubblr.ml"
3314 ;; Do not fail when opam is not present or initialized
3315 (("error_msgf \"error running opam\"") "\"\"")
3316 ;; Guix doesn't have cc, but it has gcc
3317 (("\"cc\"") "\"gcc\""))
3320 `(("topkg" ,ocaml-topkg)
3323 `(("astring" ,ocaml-astring)
3324 ("ocamlbuild" ,ocamlbuild)))
3325 (synopsis "OCamlbuild plugin for C stubs")
3326 (description "Ocb-stubblr is about ten lines of code that you need to
3327 repeat over, over, over and over again if you are using ocamlbuild to build
3328 OCaml projects that contain C stubs.")
3329 (license license:isc)))
3331 (define-public ocaml-tsdl
3335 (home-page "https://erratique.ch/software/tsdl")
3338 (uri (string-append home-page "/releases/tsdl-"
3340 (file-name (string-append name "-" version ".tar.gz"))
3343 "1zwv0ixkigh1gzk5n49rwvz2f2m62jdkkqg40j7dclg4gri7691f"))))
3344 (build-system ocaml-build-system)
3346 `(#:build-flags '("build")
3347 #:tests? #f; tests require a display device
3349 (modify-phases %standard-phases
3350 (delete 'configure))))
3352 `(("ocamlbuild" ,ocamlbuild)
3353 ("ocaml-astring" ,ocaml-astring)
3355 ("pkg-config" ,pkg-config)))
3357 `(("topkg" ,ocaml-topkg)
3359 ("integers" ,ocaml-integers)
3360 ("ctypes" ,ocaml-ctypes)))
3361 (synopsis "Thin bindings to SDL for OCaml")
3362 (description "Tsdl is an OCaml library providing thin bindings to the
3363 cross-platform SDL C library.")
3364 (license license:isc)))
3366 (define-public dedukti
3370 (home-page "https://deducteam.github.io/")
3375 (url "https://github.com/deducteam/dedukti.git")
3376 (commit (string-append "v" version))))
3377 (file-name (git-file-name name version))
3380 "0frl3diff033i4fmq304b8wbsdnc9mvlhmwd7a3zd699ng2lzbxb"))))
3382 `(("menhir" ,ocaml-menhir)))
3384 `(("ocamlbuild" ,ocamlbuild)))
3385 (build-system ocaml-build-system)
3388 (modify-phases %standard-phases
3396 (invoke "make" "tests")
3398 (add-before 'install 'set-binpath
3399 ;; Change binary path in the makefile
3401 (let ((out (assoc-ref %outputs "out")))
3402 (substitute* "GNUmakefile"
3404 (string-append "BINDIR = " out "/bin"))))
3408 (invoke "make" "install")
3410 (synopsis "Proof-checker for the λΠ-calculus modulo theory, an extension of
3412 (description "Dedukti is a proof-checker for the λΠ-calculus modulo
3413 theory. The λΠ-calculus is an extension of the simply typed λ-calculus with
3414 dependent types. The λΠ-calculus modulo theory is itself an extension of the
3415 λΠ-calculus where the context contains variable declaration as well as rewrite
3416 rules. This system is not designed to develop proofs, but to check proofs
3417 developed in other systems. In particular, it enjoys a minimalistic syntax.")
3418 (license license:cecill-c)))
3420 (define-public emacs-dedukti-mode
3421 (let ((commit "d7c3505a1046187de3c3aeb144455078d514594e"))
3423 (name "emacs-dedukti-mode")
3424 (version (git-version "0" "0" commit))
3425 (home-page "https://github.com/rafoo/dedukti-mode")
3433 "1842wikq24c8rg0ac84vb1qby9ng1nssxswyyni4kq85lng5lcrp"))
3434 (file-name (git-file-name name version))))
3436 `(("dedukti" ,dedukti)))
3437 (build-system emacs-build-system)
3440 (modify-phases %standard-phases
3441 (add-before 'install 'patch-dkpath
3443 (let ((dkcheck-path (which "dkcheck")))
3444 (substitute* "dedukti-mode.el"
3445 (("dedukti-path \"(.*)\"")
3446 (string-append "dedukti-path \"" dkcheck-path "\"")))))))))
3447 (synopsis "Emacs major mode for Dedukti files")
3448 (description "This package provides an Emacs major mode for editing
3450 (license license:cecill-b))))
3452 (define-public emacs-flycheck-dedukti
3453 (let ((commit "3dbff5646355f39d57a3ec514f560a6b0082a1cd"))
3455 (name "emacs-flycheck-dedukti")
3456 (version (git-version "0" "0" commit))
3457 (home-page "https://github.com/rafoo/flycheck-dedukti")
3465 "1ffpxnwl3wx244n44mbw81g00nhnykd0lnid29f4aw1av7w6nw8l"))
3466 (file-name (git-file-name name version))))
3467 (build-system emacs-build-system)
3469 `(("dedukti-mode" ,emacs-dedukti-mode)
3470 ("flycheck-mode" ,emacs-flycheck)))
3471 (synopsis "Flycheck integration for the dedukti language")
3472 (description "This package provides a frontend for Flycheck to perform
3473 syntax checking on dedukti files.")
3474 (license license:cecill-b))))
3476 (define-public ocaml4.07-ppx-inline-test
3478 (name "ocaml4.07-ppx-inline-test")
3480 (home-page "https://github.com/janestreet/ppx_inline_test")
3485 (url (string-append home-page ".git"))
3486 (commit (string-append "v" version))))
3487 (file-name (git-file-name name version))
3490 "0nyz411zim94pzbxm2l2v2l9jishcxwvxhh142792g2s18r4vn50"))))
3491 (build-system dune-build-system)
3493 ;see home page README for further information
3496 #:findlib ,ocaml4.07-findlib))
3498 `(("ocaml-base" ,ocaml4.07-base)
3499 ("ocaml-migrate-parsetree"
3500 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
3501 ("ocaml-compiler-libs" ,(package-with-ocaml4.07 ocaml-compiler-libs))
3502 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
3503 ("ocaml-stdio" ,ocaml4.07-stdio)
3504 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
3505 (properties `((upstream-name . "ppx_inline_test")))
3506 (synopsis "Syntax extension for writing in-line tests in ocaml code")
3507 (description "This package contains a syntax extension for writing
3508 in-line tests in ocaml code. It is part of Jane Street's PPX rewriters
3510 (license license:expat)))
3512 (define-public ocaml-bindlib
3514 (name "ocaml-bindlib")
3520 (url "https://github.com/rlepigre/ocaml-bindlib.git")
3521 (commit (string-append "ocaml-bindlib_" version))))
3522 (file-name (git-file-name name version))
3525 "1f8kr81w8vsi4gv61xn1qbc6zrzkjp8l9ix0942vjh4gjxc74v75"))))
3526 (build-system ocaml-build-system)
3528 `(#:tests? #f ;no tests
3531 (modify-phases %standard-phases
3538 (invoke "make" "install"))))))
3540 `(("ocamlbuild" ,ocamlbuild)
3541 ("ocaml-findlib" ,ocaml-findlib)))
3542 (home-page "https://rlepigre.github.io/ocaml-bindlib/")
3543 (synopsis "OCaml Bindlib library for bound variables")
3544 (description "Bindlib is a library allowing the manipulation of data
3545 structures with bound variables. It is particularly useful when writing ASTs
3546 for programming languages, but also for manipulating terms of the λ-calculus
3547 or quantified formulas.")
3548 (license license:gpl3+)))
3550 (define-public ocaml4.07-earley
3552 (name "ocaml4.07-earley")
3554 (home-page "https://github.com/rlepigre/ocaml-earley")
3559 (url (string-append home-page ".git"))
3561 (file-name (git-file-name name version))
3564 "18k7bi7krc4bvqnhijz1q0pfr0nfahghfjifci8rh1q4i5zd0xz5"))))
3565 (build-system dune-build-system)
3569 #:findlib ,ocaml4.07-findlib))
3570 (synopsis "Parsing library based on Earley Algorithm")
3571 (description "Earley is a parser combinator library base on Earley's
3572 algorithm. It is intended to be used in conjunction with an OCaml syntax
3573 extension which allows the definition of parsers inside the language. There
3574 is also support for writing OCaml syntax extensions in a camlp4 style.")
3575 (license license:cecill-b)))
3577 (define-public ocaml-timed
3579 (name "ocaml-timed")
3581 (home-page "https://github.com/rlepigre/ocaml-timed")
3585 (url (string-append home-page ".git"))
3586 (commit (string-append name "_" version))))
3589 "0hfxz710faxy5yk97bkfnw87r732jcxxhmjppwrbfdb6pd0wks96"))
3590 (file-name (git-file-name name version))))
3591 (build-system ocaml-build-system)
3594 (modify-phases %standard-phases
3601 (invoke "make" "install")))
3604 (invoke "make" "tests"))))))
3605 (synopsis "Timed references for imperative state")
3606 (description "Timed references for imperative state. This module provides
3607 an alternative type for references (or mutable cells) supporting undo/redo
3608 operations. In particular, an abstract notion of time is used to capture the
3609 state of the references at any given point, so that it can be restored. Note
3610 that usual reference operations only have a constant time / memory overhead
3611 (compared to those of the standard library).
3613 Moreover, we provide an alternative implementation based on the references
3614 of the standard library (Pervasives module). However, it is less efficient
3615 than the first one.")
3616 (license license:expat)))
3618 (define-public ocaml-biniou
3620 (name "ocaml-biniou")
3622 (home-page "https://github.com/mjambon/biniou")
3627 (url (string-append home-page ".git"))
3629 (file-name (git-file-name name version))
3632 "0x2kiy809n1j0yf32l7hj102y628jp5jdrkbi3z7ld8jq04h1790"))))
3633 (build-system dune-build-system)
3636 (modify-phases %standard-phases
3637 (add-before 'build 'make-writable
3642 (find-files "." "."))
3645 `(("ocaml-easy-format" ,ocaml-easy-format)))
3647 `(("which" ,which)))
3648 (synopsis "Data format designed for speed, safety, ease of use and backward
3650 (description "Biniou (pronounced \"be new\" is a binary data format
3651 designed for speed, safety, ease of use and backward compatibility as
3652 protocols evolve. Biniou is vastly equivalent to JSON in terms of
3653 functionality but allows implementations several times faster (4 times faster
3654 than yojson), with 25-35% space savings.")
3655 (license license:bsd-3)))
3657 (define-public ocaml-yojson
3659 (name "ocaml-yojson")
3661 (home-page "https://github.com/ocaml-community/yojson")
3666 (url (string-append home-page ".git"))
3668 (file-name (git-file-name name version))
3671 "0zncsw8bgbkh1pfvfc7nh628hfj84lgx6jwhp9ashj3z1z0w3xjn"))))
3672 (build-system dune-build-system)
3674 `(#:test-target "."))
3676 `(("ocaml-biniou" ,ocaml-biniou)
3677 ("ocaml-easy-format" ,ocaml-easy-format)))
3679 `(("ocaml-alcotest" ,ocaml-alcotest)
3680 ("ocaml-cppo" ,ocaml-cppo)))
3681 (synopsis "Low-level JSON library for OCaml")
3682 (description "Yojson is an optimized parsing and printing library for the
3683 JSON format. It addresses a few shortcomings of json-wheel including 2x
3684 speedup, polymorphic variants and optional syntax for tuples and variants.
3685 @code{ydump} is a pretty printing command-line program provided with the
3686 yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
3687 serializers and deserializers from type definitions.")
3688 (license license:bsd-3)))
3690 (define-public ocaml-craml
3692 (name "ocaml-craml")
3694 (home-page "https://github.com/realworldocaml/craml")
3699 (url (string-append home-page ".git"))
3701 (file-name (git-file-name name version))
3704 "197xjp4vmzdymf2ndinw271ihpf45h04mx8gqj8ypspxdr5fj1a5"))))
3705 (build-system dune-build-system)
3707 `(("ocaml-fmt" ,ocaml-fmt)
3708 ("ocaml-astring" ,ocaml-astring)
3709 ("ocaml-logs" ,ocaml-logs)
3710 ("ocaml-cmdliner" ,ocaml-cmdliner)))
3712 "CRAM-testing framework for testing command line applications")
3713 (description "CRAM is a is functional testing framework for command line
3714 applications. @code{craml} is freely inspired by the
3715 Mercurial's @code{https://www.selenic.com/blog/?p=663, unified test
3716 format}. @code{craml} is released as a single binary (called @code{craml}).")
3717 (license license:isc)))
3719 (define-public ocaml4.07-merlin
3721 (name "ocaml4.07-merlin")
3723 (home-page "https://ocaml.github.io/merlin/")
3728 (url "https://github.com/ocaml/merlin.git")
3729 (commit (string-append "v" version))))
3730 (file-name (git-file-name name version))
3733 "15ssgmwdxylbwhld9p1cq8x6kadxyhll5bfyf11dddj6cldna3hb"))))
3734 (build-system dune-build-system)
3736 `(("ocaml-biniou" ,(package-with-ocaml4.07 ocaml-biniou))
3737 ("ocaml-yojson" ,(package-with-ocaml4.07 ocaml-yojson))
3738 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))))
3740 `(("ocaml-findlib" ,ocaml-findlib)))
3743 #:tests? #f ;; Errors in tests in version 3.2.2
3745 #:findlib ,ocaml4.07-findlib))
3746 (synopsis "Context sensitive completion for OCaml in Vim and Emacs")
3747 (description "Merlin is an editor service that provides modern IDE
3748 features for OCaml. Emacs and Vim support is provided out-of-the-box.
3749 External contributors added support for Visual Studio Code, Sublime Text and
3751 (license license:expat)))
3753 (define-public ocaml4.07-gsl
3755 (name "ocaml4.07-gsl")
3762 "https://github.com/mmottl/gsl-ocaml/releases/download/"
3763 version "/gsl-" version ".tbz"))
3766 "1l5zkkkg8sglsihrbf10ivq9s8xzl1y6ag89i4jqpnmi4m43fy34"))))
3767 (build-system dune-build-system)
3771 (modify-phases %standard-phases
3772 (add-after 'unpack 'fix-gsl-directory
3773 (lambda* (#:key inputs #:allow-other-keys)
3774 (substitute* "src/config/discover.ml"
3775 (("/usr") (assoc-ref inputs "gsl")))
3778 #:findlib ,ocaml4.07-findlib
3779 #:dune ,ocaml4.07-dune))
3783 `(("ocaml-base" ,ocaml4.07-base)
3784 ("ocaml-stdio" ,ocaml4.07-stdio)))
3785 (home-page "https://mmottl.github.io/gsl-ocaml")
3786 (synopsis "Bindings to the GNU Scientific Library")
3788 "GSL-OCaml is an interface to the @dfn{GNU scientific library} (GSL) for
3789 the OCaml language.")
3790 (license license:gpl3+)))
3792 (define-public ocaml4.07-gsl-1
3794 (inherit ocaml4.07-gsl)
3798 (uri (string-append "https://github.com/mmottl/gsl-ocaml"
3799 "/releases/download/v"
3800 version "/gsl-ocaml-" version ".tar.gz"))
3803 "0nzp43hp8pbjqkrxnwp5lgjrabxayf61h18fjaydi0s5faq6f3xh"))))
3804 (build-system ocaml-build-system)
3808 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
3810 `(#:ocaml ,ocaml-4.07
3811 #:findlib ,ocaml4.07-findlib))
3812 (propagated-inputs '())))
3814 (define-public cubicle
3820 (uri (string-append "http://cubicle.lri.fr/cubicle-"
3824 "10kk80jdmpdvql88sdjsh7vqzlpaphd8vip2lp47aarxjkwjlz1q"))))
3825 (build-system gnu-build-system)
3827 `(("automake" ,automake)
3829 ("which" ,(@@ (gnu packages base) which))))
3831 `(("ocaml-num" ,ocaml-num)
3834 `(#:configure-flags (list "--with-z3")
3835 #:make-flags (list "QUIET=")
3838 (modify-phases %standard-phases
3839 (add-before 'configure 'configure-for-release
3841 (substitute* "Makefile.in"
3842 (("SVNREV=") "#SVNREV="))
3844 (add-before 'configure 'fix-/bin/sh
3846 (substitute* "configure"
3847 (("-/bin/sh") (string-append "-" (which "sh"))))
3849 (add-before 'configure 'fix-smt-z3wrapper.ml
3851 (substitute* "Makefile.in"
3854 (add-before 'configure 'fix-ocaml-num
3855 (lambda* (#:key inputs #:allow-other-keys)
3856 (substitute* "Makefile.in"
3857 (("= \\$\\(FUNCTORYLIB\\)")
3858 (string-append "= -I "
3859 (assoc-ref inputs "ocaml-num")
3860 "/lib/ocaml/site-lib"
3861 " $(FUNCTORYLIB)")))
3863 (home-page "http://cubicle.lri.fr/")
3864 (synopsis "Model checker for array-based systems")
3865 (description "Cubicle is a model checker for verifying safety properties
3866 of array-based systems. This is a syntactically restricted class of
3867 parametrized transition systems with states represented as arrays indexed by
3868 an arbitrary number of processes. Cache coherence protocols and mutual
3869 exclusion algorithms are typical examples of such systems.")
3870 (license license:asl2.0)))
3872 (define-public ocaml4.07-sexplib0
3874 (name "ocaml4.07-sexplib0")
3876 (home-page "https://github.com/janestreet/sexplib0")
3881 (url (string-append home-page ".git"))
3882 (commit (string-append "v" version))))
3883 (file-name (git-file-name name version))
3886 "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
3887 (build-system dune-build-system)
3889 `(#:tests? #f ;no tests
3891 #:findlib ,ocaml4.07-findlib))
3892 (synopsis "Library containing the definition of S-expressions and some
3894 (description "Part of Jane Street's Core library The Core suite of
3895 libraries is an industrial strength alternative to OCaml's standard library
3896 that was developed by Jane Street, the largest industrial user of OCaml.")
3897 (license license:expat)))
3899 (define-public ocaml4.07-parsexp
3901 (name "ocaml4.07-parsexp")
3903 (home-page "https://github.com/janestreet/parsexp")
3908 (url (string-append home-page ".git"))
3909 (commit (string-append "v" version))))
3910 (file-name (git-file-name name version))
3913 "1nyq23s5igd8cf3n4qxprjvhbmb6ighb3fy5mw7hxl0mdgsw5fvz"))))
3914 (build-system dune-build-system)
3916 `(#:ocaml ,ocaml-4.07
3917 #:findlib ,ocaml4.07-findlib))
3919 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3920 (synopsis "S-expression parsing library")
3922 "This library provides generic parsers for parsing S-expressions from
3923 strings or other medium.
3925 The library is focused on performances but still provide full generic
3926 parsers that can be used with strings, bigstrings, lexing buffers,
3927 character streams or any other sources effortlessly.
3929 It provides three different class of parsers:
3932 the normal parsers, producing [Sexp.t] or [Sexp.t list] values
3934 the parsers with positions, building compact position sequences so
3935 that one can recover original positions in order to report properly
3936 located errors at little cost
3938 the Concrete Syntax Tree parsers, produce values of type
3939 @code{Parsexp.Cst.t} which record the concrete layout of the s-expression
3940 syntax, including comments
3943 This library is portable and doesn't provide IO functions. To read
3944 s-expressions from files or other external sources, you should use
3946 (license license:expat)))
3948 (define-public ocaml4.07-sexplib
3950 (name "ocaml4.07-sexplib")
3952 (home-page "https://github.com/janestreet/sexplib")
3957 (url (string-append home-page ".git"))
3958 (commit (string-append "v" version))))
3959 (file-name (git-file-name name version))
3962 "1qfl0m04rpcjvc4yw1hzh6r16jpwmap0sa9ax6zjji67dz4szpyb"))))
3963 (build-system dune-build-system)
3965 `(#:ocaml ,ocaml-4.07
3966 #:findlib ,ocaml4.07-findlib))
3968 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
3969 ("ocaml-parsexp" ,ocaml4.07-parsexp)
3970 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3972 "Library for serializing OCaml values to and from S-expressions")
3974 "This package is part of Jane Street's Core library. Sexplib contains
3975 functionality for parsing and pretty-printing s-expressions.")
3976 (license license:expat)))
3978 (define-public ocaml4.07-base
3980 (name "ocaml4.07-base")
3982 (home-page "https://github.com/janestreet/base")
3987 (url (string-append home-page ".git"))
3988 (commit (string-append "v" version))))
3989 (file-name (git-file-name name version))
3992 "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
3993 (build-system dune-build-system)
3995 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3998 (modify-phases %standard-phases
4000 ;; make warnings non fatal (jbuilder behaviour)
4002 (invoke "dune" "build" "@install" "--profile=release"))))
4004 #:findlib ,ocaml4.07-findlib))
4006 "Full standard library replacement for OCaml")
4008 "Base is a complete and portable alternative to the OCaml standard
4009 library. It provides all standard functionalities one would expect
4010 from a language standard library. It uses consistent conventions
4011 across all of its module.
4013 Base aims to be usable in any context. As a result system dependent
4014 features such as I/O are not offered by Base. They are instead
4015 provided by companion libraries such as
4016 @url{https://github.com/janestreet/stdio, ocaml-stdio}.")
4017 (license license:expat)))
4019 (define-public ocaml-compiler-libs
4021 (name "ocaml-compiler-libs")
4023 (home-page "https://github.com/janestreet/ocaml-compiler-libs")
4028 (url (string-append home-page ".git"))
4029 (commit (string-append "v" version))))
4030 (file-name (git-file-name name version))
4033 "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
4034 (build-system dune-build-system)
4036 '(#:tests? #f)) ;no tests
4037 (properties `((upstream-name . "ocaml-compiler-libs")))
4038 (synopsis "Compiler libraries repackaged")
4039 (description "This package simply repackages the OCaml compiler libraries
4040 so they don't expose everything at toplevel. For instance, @code{Ast_helper}
4041 is now @code{Ocaml_common.Ast_helper}.")
4042 (license license:expat)))
4044 (define-public ocaml4.07-stdio
4046 (name "ocaml4.07-stdio")
4048 (home-page "https://github.com/janestreet/stdio")
4053 (url (string-append home-page ".git"))
4054 (commit (string-append "v" version))))
4055 (file-name (git-file-name name version))
4058 "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
4059 (build-system dune-build-system)
4061 `(("ocaml-base" ,ocaml4.07-base)
4062 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4064 `(#:tests? #f ;no tests
4066 #:findlib ,ocaml4.07-findlib))
4067 (synopsis "Standard IO library for OCaml")
4069 "Stdio implements simple input/output functionalities for OCaml. It
4070 re-exports the input/output functions of the OCaml standard libraries using
4071 a more consistent API.")
4072 (license license:expat)))
4074 (define-public ocaml-ppx-derivers
4076 (name "ocaml-ppx-derivers")
4079 "https://github.com/ocaml-ppx/ppx_derivers")
4084 (url (string-append home-page ".git"))
4086 (file-name (git-file-name name version))
4089 "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"))))
4090 (build-system dune-build-system)
4092 '(#:tests? #f)) ;no tests
4093 (properties `((upstream-name . "ppx_derivers")))
4094 (synopsis "Shared @code{@@deriving} plugin registry")
4096 "Ppx_derivers is a tiny package whose sole purpose is to allow
4097 ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
4098 as part of the same ocaml-migrate-parsetree driver.")
4099 (license license:bsd-3)))
4101 (define-public ocaml4.07-ppxlib
4103 (name "ocaml4.07-ppxlib")
4105 (home-page "https://github.com/ocaml-ppx/ppxlib")
4110 (url (string-append home-page ".git"))
4112 (file-name (git-file-name name version))
4115 "0my9x7sxb329h0lzshppdaawiyfbaw6g5f41yiy7bhl071rnlvbv"))))
4116 (build-system dune-build-system)
4118 `(("ocaml-base" ,ocaml4.07-base)
4119 ("ocaml-compiler-libs" ,(package-with-ocaml4.07 ocaml-compiler-libs))
4120 ("ocaml-migrate-parsetree"
4121 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4122 ("ocaml-ppx-derivers" ,(package-with-ocaml4.07 ocaml-ppx-derivers))
4123 ("ocaml-stdio" ,ocaml4.07-stdio)
4124 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
4125 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4128 (modify-phases %standard-phases
4129 (add-before 'check 'set-topfind
4130 (lambda* (#:key inputs #:allow-other-keys)
4131 ;; add the line #directory ".." at the top of each file
4132 ;; using #use "topfind";; to be able to find topfind
4133 (let* ((findlib-path (assoc-ref inputs "findlib"))
4135 (string-append findlib-path "/lib/ocaml/site-lib")))
4136 (substitute* '("test/base/test.ml"
4137 "test/code_path/test.ml"
4138 "test/deriving/test.ml"
4139 "test/driver/attributes/test.ml"
4140 "test/driver/non-compressible-suffix/test.ml"
4141 "test/driver/transformations/test.ml")
4142 (("#use \"topfind\";;" all)
4143 (string-append "#directory \"" findlib-libdir "\"\n"
4147 #:findlib ,ocaml4.07-findlib))
4149 "Base library and tools for ppx rewriters")
4151 "A comprehensive toolbox for ppx development. It features:
4153 @item an OCaml AST / parser / pretty-printer snapshot, to create a full frontend
4154 independent of the version of OCaml;
4155 @item a library for library for ppx rewriters in general, and type-driven code
4156 generators in particular;
4158 a feature-full driver for OCaml AST transformers;
4159 @item a quotation mechanism allowing to write values representing the
4160 OCaml AST in the OCaml syntax;
4161 @item a generator of open recursion classes from type definitions.
4163 (license license:expat)))
4165 (define-public ocaml4.07-ppx-compare
4167 (name "ocaml4.07-ppx-compare")
4172 (url "https://github.com/janestreet/ppx_compare.git")
4173 (commit (string-append "v" version))))
4174 (file-name (git-file-name name version))
4177 "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
4178 (build-system dune-build-system)
4180 `(("ocaml-base" ,ocaml4.07-base)
4181 ("ocaml-migrate-parsetree"
4182 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4183 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4185 `(#:ocaml ,ocaml-4.07
4186 #:findlib ,ocaml4.07-findlib))
4187 (properties `((upstream-name . "ppx_compare")))
4188 (home-page "https://github.com/janestreet/ppx_compare")
4189 (synopsis "Generation of comparison functions from types")
4190 (description "Generation of fast comparison functions from type expressions
4191 and definitions. Ppx_compare is a ppx rewriter that derives comparison functions
4192 from type representations. The scaffolded functions are usually much faster
4193 than ocaml's Pervasives.compare. Scaffolding functions also gives you more
4194 flexibility by allowing you to override them for a specific type and more safety
4195 by making sure that you only compare comparable values.")
4196 (license license:asl2.0)))
4198 (define-public ocaml4.07-fieldslib
4200 (name "ocaml4.07-fieldslib")
4204 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4205 (version-major+minor version) "/files/"
4206 "fieldslib-v" version ".tar.gz"))
4209 "12948pzxrl360lybm9fzyvplgcl87zjbn4m3sk1aw75zk85p1388"))))
4210 (build-system dune-build-system)
4215 #:findlib ,ocaml4.07-findlib))
4217 `(("ocaml-base" ,ocaml4.07-base)
4218 ("ocaml-migrate-parsetree"
4219 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4220 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4221 (properties `((upstream-name . "fieldslib")))
4222 (home-page "https://github.com/janestreet/fieldslib")
4223 (synopsis "Syntax extension to record fields")
4224 (description "Syntax extension to define first class values representing
4225 record fields, to get and set record fields, iterate and fold over all fields
4226 of a record and create new record values.")
4227 (license license:asl2.0)))
4229 (define-public ocaml4.07-variantslib
4231 (name "ocaml4.07-variantslib")
4235 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4236 (version-major+minor version)
4237 "/files/variantslib-v" version ".tar.gz"))
4240 "1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
4241 (build-system dune-build-system)
4246 #:findlib ,ocaml4.07-findlib))
4248 `(("ocaml-base" ,ocaml4.07-base)
4249 ("ocaml-migrate-parsetree"
4250 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4251 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4252 (properties `((upstream-name . "variantslib")))
4253 (home-page "https://github.com/janestreet/variantslib")
4254 (synopsis "OCaml variants as first class values")
4255 (description "The Core suite of libraries is an alternative to OCaml's
4257 (license license:asl2.0)))
4259 (define-public ocaml4.07-ppx-fields-conv
4261 (name "ocaml4.07-ppx-fields-conv")
4265 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4266 (version-major+minor version)
4267 "/files/ppx_fields_conv-v" version ".tar.gz"))
4270 "07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
4271 (build-system dune-build-system)
4273 `(("ocaml-base" ,ocaml4.07-base)
4274 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
4275 ("ocaml-migrate-parsetree"
4276 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4277 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4279 `(#:ocaml ,ocaml-4.07
4280 #:findlib ,ocaml4.07-findlib))
4281 (properties `((upstream-name . "ppx_fields_conv")))
4282 (home-page "https://github.com/janestreet/ppx_fields_conv")
4283 (synopsis "Generation of accessor and iteration functions for ocaml records")
4284 (description "Ppx_fields_conv is a ppx rewriter that can be used to define
4285 first class values representing record fields, and additional routines, to get
4286 and set record fields, iterate and fold over all fields of a record and create
4287 new record values.")
4288 (license license:asl2.0)))
4290 (define-public ocaml4.07-ppx-sexp-conv
4292 (name "ocaml4.07-ppx-sexp-conv")
4297 (url "https://github.com/janestreet/ppx_sexp_conv.git")
4298 (commit (string-append "v" version))))
4299 (file-name (git-file-name name version))
4302 "0pqwnqy1xp309wvdcaax4lg02yk64lq2w03mbgfvf6ps5ry4gis9"))))
4303 (build-system dune-build-system)
4305 `(("ocaml-base" ,ocaml4.07-base)
4306 ("ocaml-migrate-parsetree"
4307 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4308 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4310 `(#:ocaml ,ocaml-4.07
4311 #:findlib ,ocaml4.07-findlib))
4312 (properties `((upstream-name . "ppx_sexp_conv")))
4313 (home-page "https://github.com/janestreet/ppx_sexp_conv")
4314 (synopsis "Generation of S-expression conversion functions from type definitions")
4315 (description "This package generates S-expression conversion functions from type
4317 (license license:asl2.0)))
4319 (define-public ocaml4.07-ppx-variants-conv
4321 (name "ocaml4.07-ppx-variants-conv")
4326 (url "https://github.com/janestreet/ppx_variants_conv.git")
4327 (commit (string-append "v" version))))
4328 (file-name (git-file-name name version))
4331 "1yc0gsds5m2nv39zga8nnrca2n75rkqy5dz4xj1635ybz20hhbjd"))))
4332 (build-system dune-build-system)
4334 `(("ocaml-base" ,ocaml4.07-base)
4335 ("ocaml-variantslib" ,ocaml4.07-variantslib)
4336 ("ocaml-migrate-parsetree"
4337 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4338 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4340 `(#:ocaml ,ocaml-4.07
4341 #:findlib ,ocaml4.07-findlib))
4343 `((upstream-name . "ppx_variants_conv")))
4345 "https://github.com/janestreet/ppx_variants_conv")
4346 (synopsis "Generation of accessor and iteration functions for OCaml variant types")
4348 "This package generates accessors and interation functions for OCaml
4350 (license license:asl2.0)))
4352 (define-public ocaml4.07-ppx-custom-printf
4354 (name "ocaml4.07-ppx-custom-printf")
4358 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4359 (version-major+minor version)
4360 "/files/ppx_custom_printf-v" version ".tar.gz"))
4363 "11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))))
4364 (build-system dune-build-system)
4366 `(("ocaml-base" ,ocaml4.07-base)
4367 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4368 ("ocaml-migrate-parsetree"
4369 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4370 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4372 `(#:ocaml ,ocaml-4.07
4373 #:findlib ,ocaml4.07-findlib))
4374 (properties `((upstream-name . "ppx_custom_printf")))
4375 (home-page "https://github.com/janestreet/ppx_custom_printf")
4376 (synopsis "Printf-style format-strings for user-defined string conversion")
4377 (description "Extensions to printf-style format-strings for user-defined
4378 string conversion.")
4379 (license license:asl2.0)))
4381 (define-public ocaml4.07-bin-prot
4383 (name "ocaml4.07-bin-prot")
4387 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4388 (version-major+minor version)
4389 "/files/bin_prot-v" version ".tar.gz"))
4392 "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
4393 (build-system dune-build-system)
4395 `(("ocaml-base" ,ocaml4.07-base)
4396 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4397 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4398 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4399 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4400 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4401 ("ocaml-migrate-parsetree"
4402 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
4404 `(#:ocaml ,ocaml-4.07
4405 #:findlib ,ocaml4.07-findlib))
4406 (properties `((upstream-name . "bin_prot")))
4407 (home-page "https://github.com/janestreet/bin_prot")
4408 (synopsis "Binary protocol generator")
4409 (description "This library contains functionality for reading and writing
4410 OCaml-values in a type-safe binary protocol. It is extremely efficient,
4411 typically supporting type-safe marshalling and unmarshalling of even highly
4412 structured values at speeds sufficient to saturate a gigabit connection. The
4413 protocol is also heavily optimized for size, making it ideal for long-term
4414 storage of large amounts of data.")
4419 (define-public ocaml-octavius
4421 (name "ocaml-octavius")
4426 (url "https://github.com/ocaml-doc/octavius")
4427 (commit (string-append "v" version))))
4428 (file-name (git-file-name name version))
4431 "1c5m51xcn2jv42kjjpklr6g63sgx1k885wfdp1yr4wrmiaj9cbpx"))))
4432 (build-system dune-build-system)
4435 (modify-phases %standard-phases
4436 (add-before 'build 'make-writable
4438 (for-each (lambda (file)
4440 (find-files "." "."))
4442 (properties `((upstream-name . "octavius")))
4443 (home-page "https://github.com/ocaml-doc/octavius")
4444 (synopsis "Ocamldoc comment syntax parser")
4445 (description "Octavius is a library to parse the `ocamldoc` comment syntax.")
4446 (license license:isc)))
4448 (define-public ocaml4.07-ppx-hash
4450 (name "ocaml4.07-ppx-hash")
4455 (url "https://github.com/janestreet/ppx_hash.git")
4456 (commit (string-append "v" version))))
4457 (file-name (git-file-name name version))
4460 "1p0ic6aijxlrdggpmycj12q3cy9xksbq2vq727215maz4snvlf5p"))))
4461 (build-system dune-build-system)
4463 `(("ocaml-base" ,ocaml4.07-base)
4464 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4465 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4466 ("ocaml-migrate-parsetree"
4467 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4468 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4470 `(#:ocaml ,ocaml-4.07
4471 #:findlib ,ocaml4.07-findlib))
4472 (properties `((upstream-name . "ppx_hash")))
4473 (home-page "https://github.com/janestreet/ppx_hash")
4474 (synopsis "Generation of hash functions from type expressions and definitions")
4475 (description "This package is a collection of ppx rewriters that generate
4476 hash functions from type exrpessions and definitions.")
4477 (license license:asl2.0)))
4479 (define-public ocaml4.07-ppx-enumerate
4481 (name "ocaml4.07-ppx-enumerate")
4486 (url "https://github.com/janestreet/ppx_enumerate.git")
4487 (commit (string-append "v" version))))
4488 (file-name (git-file-name name version))
4491 "0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
4492 (build-system dune-build-system)
4494 `(#:tests? #f; no test suite
4496 #:findlib ,ocaml4.07-findlib))
4498 `(("ocaml-base" ,ocaml4.07-base)
4499 ("ocaml-migrate-parsetree"
4500 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4501 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4502 (properties `((upstream-name . "ppx_enumerate")))
4503 (home-page "https://github.com/janestreet/ppx_enumerate")
4504 (synopsis "Generate a list containing all values of a finite type")
4505 (description "Ppx_enumerate is a ppx rewriter which generates a definition
4506 for the list of all values of a type (for a type which only has finitely
4508 (license license:asl2.0)))
4510 (define-public ocaml4.07-ppx-bench
4512 (name "ocaml4.07-ppx-bench")
4516 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4517 (version-major+minor version)
4518 "/files/ppx_bench-v" version ".tar.gz"))
4521 "0ys4pblbcjbk9dn073rqiwm7r6rc7fah03j7riklkwnb5n44andl"))))
4522 (build-system dune-build-system)
4527 #:findlib ,ocaml4.07-findlib))
4529 `(("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
4530 ("ocaml-migrate-parsetree"
4531 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4532 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4533 (properties `((upstream-name . "ppx_bench")))
4534 (home-page "https://github.com/janestreet/ppx_bench")
4535 (synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
4536 (description "Syntax extension for writing in-line benchmarks in ocaml code.")
4537 (license license:asl2.0)))
4539 (define-public ocaml4.07-ppx-here
4541 (name "ocaml4.07-ppx-here")
4545 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4546 (version-major+minor version)
4547 "/files/ppx_here-v" version ".tar.gz"))
4550 "0wxcak3ay4jpigm3pfdcpr65qw4hxfa8whhkryhcd8gy71x056z5"))))
4551 (build-system dune-build-system)
4556 #:findlib ,ocaml4.07-findlib))
4558 `(("ocaml-base" ,ocaml4.07-base)
4559 ("ocaml-migrate-parsetree"
4560 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4561 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4562 (properties `((upstream-name . "ppx_here")))
4563 (home-page "https://github.com/janestreet/ppx_here")
4564 (synopsis "Expands [%here] into its location")
4566 "Part of the Jane Street's PPX rewriters collection.")
4567 (license license:asl2.0)))
4569 (define-public ocaml4.07-typerep
4571 (name "ocaml4.07-typerep")
4575 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4576 (version-major+minor version)
4577 "/files/typerep-v" version ".tar.gz"))
4580 "1zi7hy0prpgzqhr4lkacr04wvlvbp21jfbdfvffhrm6cd400rb5v"))))
4581 (build-system dune-build-system)
4585 #:findlib ,ocaml4.07-findlib))
4586 (propagated-inputs `(("ocaml-base" ,ocaml4.07-base)))
4587 (home-page "https://github.com/janestreet/typerep")
4588 (synopsis "Typerep is a library for runtime types")
4589 (description "Typerep is a library for runtime types.")
4590 (license license:asl2.0)))
4592 (define-public ocaml4.07-ppx-sexp-value
4594 (name "ocaml4.07-ppx-sexp-value")
4598 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4599 (version-major+minor version)
4600 "/files/ppx_sexp_value-v" version ".tar.gz"))
4603 "1xnalfrln6k5khsyxvxkg6v32q8fpr4cqamsjqfih29jdv486xrs"))))
4604 (build-system dune-build-system)
4606 `(#:ocaml ,ocaml-4.07
4607 #:findlib ,ocaml4.07-findlib))
4609 `(("ocaml-base" ,ocaml4.07-base)
4610 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4611 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4612 ("ocaml-migrate-parsetree"
4613 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4614 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4615 (properties `((upstream-name . "ppx_sexp_value")))
4616 (home-page "https://github.com/janestreet/ppx_sexp_value")
4617 (synopsis "Simplify building s-expressions from ocaml values")
4618 (description "A ppx rewriter that simplifies building s-expressions from
4620 (license license:asl2.0)))
4622 (define-public ocaml4.07-ppx-sexp-message
4624 (name "ocaml4.07-ppx-sexp-message")
4628 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4629 (version-major+minor version)
4630 "/files/ppx_sexp_message-v" version ".tar.gz"))
4633 "1yh440za0w9cvrbxbmqacir8715kdaw6sw24ys9xj80av9nqpiw7"))))
4634 (build-system dune-build-system)
4636 `(#:ocaml ,ocaml-4.07
4637 #:findlib ,ocaml4.07-findlib))
4639 `(("ocaml-base" ,ocaml4.07-base)
4640 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4641 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4642 ("ocaml-migrate-parsetree"
4643 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4644 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4645 (properties `((upstream-name . "ppx_sexp_message")))
4646 (home-page "https://github.com/janestreet/ppx_sexp_message")
4647 (synopsis "A ppx rewriter for easy construction of s-expressions")
4648 (description "Ppx_sexp_message aims to ease the creation of s-expressions
4649 in OCaml. This is mainly motivated by writing error and debugging messages,
4650 where one needs to construct a s-expression based on various element of the
4651 context such as function arguments.")
4652 (license license:asl2.0)))
4654 (define-public ocaml4.07-ppx-pipebang
4656 (name "ocaml4.07-ppx-pipebang")
4660 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4661 (version-major+minor version)
4662 "/files/ppx_pipebang-v" version ".tar.gz"))
4665 "1wrrzlb4kdvkkcmzi01fw25jar38r2jlnyn0i6pn4z0lq4gpm9m0"))))
4666 (build-system dune-build-system)
4671 #:findlib ,ocaml4.07-findlib))
4673 `(("ocaml-migrate-parsetree"
4674 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4675 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4676 (properties `((upstream-name . "ppx_pipebang")))
4677 (home-page "https://github.com/janestreet/ppx_pipebang")
4678 (synopsis "Inline reverse application operators `|>` and `|!`")
4679 (description "A ppx rewriter that inlines reverse application operators
4680 @code{|>} and @code{|!}.")
4681 (license license:asl2.0)))
4683 (define-public ocaml4.07-ppx-optional
4685 (name "ocaml4.07-ppx-optional")
4689 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4690 (version-major+minor version)
4691 "/files/ppx_optional-v" version ".tar.gz"))
4694 "1z8z2bga95k2vksljljfglg10vygkjd24kn1b37sk4z3nmp47x0h"))))
4695 (build-system dune-build-system)
4700 #:findlib ,ocaml4.07-findlib))
4702 `(("ocaml-base" ,ocaml4.07-base)
4703 ("ocaml-migrate-parsetree"
4704 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4705 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4706 (properties `((upstream-name . "ppx_optional")))
4707 (home-page "https://github.com/janestreet/ppx_optional")
4708 (synopsis "Pattern matching on flat options")
4710 "A ppx rewriter that rewrites simple match statements with an if then
4712 (license license:asl2.0)))
4714 (define-public ocaml4.07-ppx-optcomp
4716 (name "ocaml4.07-ppx-optcomp")
4720 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4721 (version-major+minor version)
4722 "/files/ppx_optcomp-v" version ".tar.gz"))
4725 "1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))))
4726 (build-system dune-build-system)
4728 `(#:ocaml ,ocaml-4.07
4729 #:findlib ,ocaml4.07-findlib))
4731 `(("ocaml-base" ,ocaml4.07-base)
4732 ("ocaml-stdio" ,ocaml4.07-stdio)
4733 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4734 (properties `((upstream-name . "ppx_optcomp")))
4735 (home-page "https://github.com/janestreet/ppx_optcomp")
4736 (synopsis "Optional compilation for OCaml")
4737 (description "Ppx_optcomp stands for Optional Compilation. It is a tool
4738 used to handle optional compilations of pieces of code depending of the word
4739 size, the version of the compiler, ...")
4740 (license license:asl2.0)))
4742 (define-public ocaml4.07-ppx-let
4744 (name "ocaml4.07-ppx-let")
4748 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4749 (version-major+minor version)
4750 "/files/ppx_let-v" version ".tar.gz"))
4753 "1wdfw6w4xbg97a35yg6bif9gggxniy9ddnrjfw1a0inkl2yamxkj"))))
4754 (build-system dune-build-system)
4756 `(#:ocaml ,ocaml-4.07
4757 #:findlib ,ocaml4.07-findlib))
4759 `(("ocaml-base" ,ocaml4.07-base)
4760 ("ocaml-migrate-parsetree"
4761 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4762 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4763 (properties `((upstream-name . "ppx_let")))
4764 (home-page "https://github.com/janestreet/ppx_let")
4765 (synopsis "Monadic let-bindings")
4766 (description "A ppx rewriter for monadic and applicative let bindings,
4767 match expressions, and if expressions.")
4768 (license license:asl2.0)))
4770 (define-public ocaml4.07-ppx-fail
4772 (name "ocaml4.07-ppx-fail")
4776 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4777 (version-major+minor version)
4778 "/files/ppx_fail-v" version ".tar.gz"))
4781 "07plqsvljiwvngggfypwq55g46s5my55y45mvlmalrxyppzr03s8"))))
4782 (build-system dune-build-system)
4784 `(#:ocaml ,ocaml-4.07
4785 #:findlib ,ocaml4.07-findlib))
4787 `(("ocaml-base" ,ocaml4.07-base)
4788 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4789 ("ocaml-migrate-parsetree"
4790 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4791 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4792 (properties `((upstream-name . "ppx_fail")))
4793 (home-page "https://github.com/janestreet/ppx_fail")
4794 (synopsis "Add location to calls to failwiths")
4795 (description "Syntax extension that makes [failwiths] always include a
4797 (license license:asl2.0)))
4799 (define-public ocaml4.07-ppx-assert
4801 (name "ocaml4.07-ppx-assert")
4805 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4806 (version-major+minor version)
4807 "/files/ppx_assert-v" version ".tar.gz"))
4810 "17kd311n0l9f72gblf9kv8i5rghr106w37x4f0m5qwh6nlgl0j9k"))))
4811 (build-system dune-build-system)
4813 `(#:ocaml ,ocaml-4.07
4814 #:findlib ,ocaml4.07-findlib))
4816 `(("ocaml-base" ,ocaml4.07-base)
4817 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4818 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4819 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4820 ("ocaml-migrate-parsetree"
4821 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4822 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4823 (properties `((upstream-name . "ppx_assert")))
4824 (home-page "https://github.com/janestreet/ppx_assert")
4825 (synopsis "Assert-like extension nodes that raise useful errors on failure")
4826 (description "This package contains assert-like extension nodes that raise
4827 useful errors on failure.")
4828 (license license:asl2.0)))
4830 (define-public ocaml4.07-ppx-expect
4832 (name "ocaml4.07-ppx-expect")
4837 (url "https://github.com/janestreet/ppx_expect.git")
4838 (commit (string-append "v" version))))
4839 (file-name (git-file-name name version))
4842 "1wawsbjfkri4sw52n8xqrzihxc3xfpdicv3ahz83a1rsn4lb8j5q"))))
4843 (build-system dune-build-system)
4847 #:findlib ,ocaml4.07-findlib))
4849 `(("ocaml-base" ,ocaml4.07-base)
4850 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
4851 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4852 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4853 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4854 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4855 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
4856 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4857 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4858 ("ocaml-stdio" ,ocaml4.07-stdio)
4859 ("ocaml-migrate-parsetree"
4860 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4861 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)
4862 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))))
4863 (properties `((upstream-name . "ppx_expect")))
4864 (home-page "https://github.com/janestreet/ppx_expect")
4865 (synopsis "Cram like framework for OCaml")
4866 (description "Expect-test is a framework for writing tests in OCaml, similar
4867 to Cram. Expect-tests mimics the existing inline tests framework with the
4868 @code{let%expect_test} construct. The body of an expect-test can contain
4869 output-generating code, interleaved with @code{%expect} extension expressions
4870 to denote the expected output.")
4871 (license license:asl2.0)))
4873 (define-public ocaml4.07-ppx-js-style
4875 (name "ocaml4.07-ppx-js-style")
4879 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4880 (version-major+minor version)
4881 "/files/ppx_js_style-v" version ".tar.gz"))
4884 "0z3fc55jdjhhsblla6z4fqc13kljpcz29q79rvs5h2vsraqrldr2"))))
4885 (build-system dune-build-system)
4890 #:findlib ,ocaml4.07-findlib))
4892 `(("ocaml-base" ,ocaml4.07-base)
4893 ("ocaml-migrate-parsetree"
4894 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4895 ("ocaml-octavius" ,(package-with-ocaml4.07 ocaml-octavius))
4896 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4897 (properties `((upstream-name . "ppx_js_style")))
4898 (home-page "https://github.com/janestreet/ppx_js_style")
4899 (synopsis "Code style checker for Jane Street Packages")
4900 (description "This package is a no-op ppx rewriter. It is used as a
4901 @code{lint} tool to enforce some coding conventions across all Jane Street
4903 (license license:asl2.0)))
4905 (define-public ocaml4.07-ppx-typerep-conv
4907 (name "ocaml4.07-ppx-typerep-conv")
4912 (url "https://github.com/janestreet/ppx_typerep_conv.git")
4913 (commit (string-append "v" version))))
4914 (file-name (git-file-name name version))
4917 "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))
4918 (build-system dune-build-system)
4922 #:findlib ,ocaml4.07-findlib))
4924 `(("ocaml-base" ,ocaml4.07-base)
4925 ("ocaml-typerep" ,ocaml4.07-typerep)
4926 ("ocaml-migrate-parsetree"
4927 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4928 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4929 (properties `((upstream-name . "ppx_typerep_conv")))
4930 (home-page "https://github.com/janestreet/ppx_typerep_conv")
4931 (synopsis "Generation of runtime types from type declarations")
4932 (description "This package can automatically generate runtime types
4933 from type definitions.")
4934 (license license:asl2.0)))
4936 (define-public ocaml4.07-ppx-base
4938 (name "ocaml4.07-ppx-base")
4942 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4943 (version-major+minor version)
4944 "/files/ppx_base-v" version ".tar.gz"))
4947 "0aq206pg330jmj7lhcagiiwm3a0b3gsqm801m8ajd4ysyw7idkym"))))
4948 (build-system dune-build-system)
4952 #:findlib ,ocaml4.07-findlib))
4954 `(("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4955 ("ocaml-ppx-enumerate" ,ocaml4.07-ppx-enumerate)
4956 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
4957 ("ocaml-ppx-js-style" ,ocaml4.07-ppx-js-style)
4958 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4959 ("ocaml-migrate-parsetree"
4960 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4961 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4962 (properties `((upstream-name . "ppx_base")))
4963 (home-page "https://github.com/janestreet/ppx_base")
4964 (synopsis "Base set of ppx rewriters")
4965 (description "Ppx_base is the set of ppx rewriters used for Base.
4967 Note that Base doesn't need ppx to build, it is only used as a
4968 verification tool.")
4969 (license license:asl2.0)))
4971 (define-public ocaml4.07-ppx-bin-prot
4973 (name "ocaml4.07-ppx-bin-prot")
4978 (url "https://github.com/janestreet/ppx_bin_prot.git")
4979 (commit (string-append "v" version))))
4980 (file-name (git-file-name name version))
4983 "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
4984 (build-system dune-build-system)
4986 ;; Cyclic dependency with ocaml-ppx-jane
4989 #:findlib ,ocaml4.07-findlib))
4991 `(("ocaml-base" ,ocaml4.07-base)
4992 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
4993 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4994 ("ocaml-migrate-parsetree"
4995 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4996 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4997 (properties `((upstream-name . "ppx_bin_prot")))
4998 (home-page "https://github.com/janestreet/ppx_bin_prot")
4999 (synopsis "Generation of bin_prot readers and writers from types")
5000 (description "Generation of binary serialization and deserialization
5001 functions from type definitions.")
5002 (license license:asl2.0)))
5004 (define-public ocaml4.07-ppx-jane
5006 (name "ocaml4.07-ppx-jane")
5010 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5011 (version-major+minor version)
5012 "/files/ppx_jane-v" version ".tar.gz"))
5015 "0lgppkw3aixrfnixihrsz2ipafv8fpvkdpy3pw8n0r615gg8x8la"))))
5016 (build-system dune-build-system)
5020 #:findlib ,ocaml4.07-findlib))
5022 `(("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5023 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5024 ("ocaml-ppx-bench" ,ocaml4.07-ppx-bench)
5025 ("ocaml-ppx-bin-prot" ,ocaml4.07-ppx-bin-prot)
5026 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
5027 ("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)
5028 ("ocaml-ppx-fail" ,ocaml4.07-ppx-fail)
5029 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
5030 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5031 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5032 ("ocaml-ppx-let" ,ocaml4.07-ppx-let)
5033 ("ocaml-ppx-optcomp" ,ocaml4.07-ppx-optcomp)
5034 ("ocaml-ppx-optional" ,ocaml4.07-ppx-optional)
5035 ("ocaml-ppx-pipebang" ,ocaml4.07-ppx-pipebang)
5036 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5037 ("ocaml-ppx-sexp-value" ,ocaml4.07-ppx-sexp-value)
5038 ("ocaml-ppx-typerep-conv" ,ocaml4.07-ppx-typerep-conv)
5039 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
5040 ("ocaml-migrate-parsetree"
5041 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5042 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5043 (properties `((upstream-name . "ppx_jane")))
5044 (home-page "https://github.com/janestreet/ppx_jane")
5045 (synopsis "Standard Jane Street ppx rewriters")
5046 (description "This package installs a ppx-jane executable, which is a ppx
5047 driver including all standard Jane Street ppx rewriters.")
5048 (license license:asl2.0)))
5050 (define-public ocaml4.07-splittable-random
5052 (name "ocaml4.07-splittable-random")
5056 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5057 (version-major+minor version)
5058 "/files/splittable_random-v" version ".tar.gz"))
5061 "0l1wbd881mymlnpzlq5q53mmdz3g5d7qjhyc7lfaq1x0iaccn5lc"))))
5062 (build-system dune-build-system)
5064 `(#:ocaml ,ocaml-4.07
5065 #:findlib ,ocaml4.07-findlib))
5067 `(("ocaml-base" ,ocaml4.07-base)
5068 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5069 ("ocaml-migrate-parsetree"
5070 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5071 (properties `((upstream-name . "splittable_random")))
5072 (home-page "https://github.com/janestreet/splittable_random")
5073 (synopsis "PRNG that can be split into independent streams")
5074 (description "This package provides a splittable
5075 @acronym{PRNG,pseudo-random number generator} functions like a PRNG that can
5076 be used as a stream of random values; it can also be split to produce a
5077 second, independent stream of random values.
5079 This library implements a splittable pseudo-random number generator that sacrifices
5080 cryptographic-quality randomness in favor of performance.")
5081 (license license:asl2.0)))
5083 (define-public ocaml-jane-street-headers
5085 (name "ocaml-jane-street-headers")
5089 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5090 (version-major+minor version)
5091 "/files/jane-street-headers-v" version ".tar.gz"))
5094 "0afhzm08l9v883fhpqqh2lmy7az609pxif40bp7x1sk8c0yszqsh"))))
5095 (build-system dune-build-system)
5097 `(#:test-target "."))
5098 (home-page "https://github.com/janestreet/jane-street-headers")
5099 (synopsis "Jane Street C header files")
5100 (description "This package provides C header files shared between the
5101 various Jane Street packages.")
5102 (license license:asl2.0)))
5104 (define-public ocaml4.07-configurator
5106 (name "ocaml4.07-configurator")
5110 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5111 (version-major+minor version)
5112 "/files/configurator-v" version ".tar.gz"))
5115 "0kwgi3sh92v4n242dk5hgpwd85zzgnczgbkqi0q0kr6m93zgbf7p"))))
5116 (build-system dune-build-system)
5121 #:findlib ,ocaml4.07-findlib))
5123 `(("ocaml-base" ,ocaml4.07-base)
5124 ("ocaml-stdio" ,ocaml4.07-stdio)))
5125 (home-page "https://github.com/janestreet/configurator")
5126 (synopsis "Helper library for gathering system configuration")
5127 (description "Configurator is a small library that helps writing OCaml
5128 scripts that test features available on the system, in order to generate config.h
5131 Configurator allows one to:
5133 @item test if a C program compiles
5134 @item query pkg-config
5135 @item import #define from OCaml header files
5136 @item generate config.h file
5138 (license license:asl2.0)))
5140 (define-public ocaml4.07-spawn
5142 (name "ocaml4.07-spawn")
5147 (url "https://github.com/janestreet/spawn.git")
5148 (commit (string-append "v" version))))
5149 (file-name (git-file-name name version))
5152 "1w003k1kw1lmyiqlk58gkxx8rac7dchiqlz6ah7aj7bh49b36ppf"))))
5153 (build-system dune-build-system)
5156 (modify-phases %standard-phases
5157 (add-before 'check 'fix-tests
5159 (substitute* "test/tests.ml"
5160 (("/bin/pwd") (which "pwd"))
5161 (("/bin/echo") (which "echo")))
5164 #:findlib ,ocaml4.07-findlib))
5166 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
5167 (home-page "https://github.com/janestreet/spawn")
5168 (synopsis "Spawning sub-processes")
5170 "Spawn is a small library exposing only one functionality: spawning sub-process.
5172 It has three main goals:
5175 @item provide missing features of Unix.create_process such as providing a
5177 @item provide better errors when a system call fails in the
5178 sub-process. For instance if a command is not found, you get a proper
5179 @code{Unix.Unix_error} exception,
5180 @item improve performances by using vfork when available. It is often
5181 claimed that nowadays fork is as fast as vfork, however in practice
5182 fork takes time proportional to the process memory while vfork is
5183 constant time. In application using a lot of memory, vfork can be
5184 thousands of times faster than fork.
5186 (license license:asl2.0)))
5188 (define-public ocaml4.07-core
5190 (name "ocaml4.07-core")
5195 (url "https://github.com/janestreet/core.git")
5196 (commit (string-append "v" version))))
5197 (file-name (git-file-name name version))
5200 "0pzl8n09z4f3i7z2wq4cjxfqrr8mj6xcdp7rbg0nxap2zdhjgvrq"))))
5201 (build-system dune-build-system)
5204 ;; Require a cyclic dependency: core_extended
5207 #:findlib ,ocaml4.07-findlib))
5209 `(("ocaml-base" ,ocaml4.07-base)
5210 ("ocaml-configurator" ,ocaml4.07-configurator)
5211 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
5212 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5213 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5214 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5215 ("ocaml-spawn" ,ocaml4.07-spawn)
5216 ("ocaml-stdio" ,ocaml4.07-stdio)
5217 ("ocaml-migrate-parsetree"
5218 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5219 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5220 (home-page "https://github.com/janestreet/core")
5221 (synopsis "Alternative to OCaml's standard library")
5222 (description "The Core suite of libraries is an alternative to OCaml's
5223 standard library that was developed by Jane Street.")
5224 ;; Also contains parts of OCaml, relicensed to asl2.0, as permitted
5225 ;; by OCaml's license for consortium members (see THIRD-PARTY.txt).
5226 (license license:asl2.0)))
5228 (define-public ocaml4.07-core-kernel
5230 (name "ocaml4.07-core-kernel")
5235 (url "https://github.com/janestreet/core_kernel.git")
5236 (commit (string-append "v" version))))
5237 (file-name (git-file-name name version))
5240 "1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
5241 (build-system dune-build-system)
5243 ;; Cyclic dependency with ocaml-core
5246 #:findlib ,ocaml4.07-findlib))
5248 `(("ocaml-base" ,ocaml4.07-base)
5249 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
5250 ("ocaml-configurator" ,ocaml4.07-configurator)
5251 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
5252 ("ocaml-jane-street-headers"
5253 ,(package-with-ocaml4.07 ocaml-jane-street-headers))
5254 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5255 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5256 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
5257 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5258 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5259 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5260 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5261 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5262 ("ocaml-splittable-random" ,ocaml4.07-splittable-random)
5263 ("ocaml-stdio" ,ocaml4.07-stdio)
5264 ("ocaml-typerep" ,ocaml4.07-typerep)
5265 ("ocaml-variantslib" ,ocaml4.07-variantslib)
5266 ("ocaml-migrate-parsetree"
5267 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5268 (properties `((upstream-name . "core_kernel")))
5269 (home-page "https://github.com/janestreet/core_kernel")
5270 (synopsis "Portable standard library for OCaml")
5271 (description "Core is an alternative to the OCaml standard library.
5273 Core_kernel is the system-independent part of Core. It is aimed for cases when
5274 the full Core is not available, such as in Javascript.")
5276 ;; this package and parts of OCaml, relicensed by janestreet
5281 (define-public ocaml-markup
5283 (name "ocaml-markup")
5285 (home-page "https://github.com/aantron/markup.ml")
5290 (url (string-append home-page ".git"))
5292 (file-name (git-file-name name version))
5295 "13zcrwzjmifniv3bvjbkd2ah8wwa3ld75bxh1d8hrzdvfxzh9szn"))))
5296 (build-system dune-build-system)
5298 `(#:package "markup"))
5300 `(("libev" ,libev)))
5302 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
5303 ("ocaml-uchar" ,ocaml-uchar)
5304 ("ocaml-uutf" ,ocaml-uutf)
5305 ("ocaml-lwt" ,ocaml-lwt)))
5307 `(("ocaml-ounit" ,ocaml-ounit)
5308 ("pkg-config" ,pkg-config)))
5309 (synopsis "Error-recovering functional HTML5 and XML parsers and writers")
5310 (description "Markup.ml provides an HTML parser and an XML parser. The
5311 parsers are wrapped in a simple interface: they are functions that transform
5312 byte streams to parsing signal streams. Streams can be manipulated in various
5313 ways, such as processing by fold, filter, and map, assembly into DOM tree
5314 structures, or serialization back to HTML or XML.
5316 Both parsers are based on their respective standards. The HTML parser, in
5317 particular, is based on the state machines defined in HTML5.
5319 The parsers are error-recovering by default, and accept fragments. This makes
5320 it very easy to get a best-effort parse of some input. The parsers can,
5321 however, be easily configured to be strict, and to accept only full documents.
5323 Apart from this, the parsers are streaming (do not build up a document in
5324 memory), non-blocking (can be used with threading libraries), lazy (do not
5325 consume input unless the signal stream is being read), and process the input in
5326 a single pass. They automatically detect the character encoding of the input
5327 stream, and convert everything to UTF-8.")
5328 (license license:bsd-3)))
5330 (define-public ocaml-tyxml
5332 (name "ocaml-tyxml")
5338 (url "https://github.com/ocsigen/tyxml.git")
5340 (file-name (git-file-name name version))
5343 "0wv19xipkj8l2sks1h53105ywbjwk7q93fb7b8al4a2g9wr109c0"))))
5344 (build-system dune-build-system)
5346 `(("ocaml-re" ,ocaml-re)
5347 ("ocaml-seq" ,ocaml-seq)
5348 ("ocaml-uutf" ,ocaml-uutf)
5349 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5350 ("ocaml-markup" ,ocaml-markup)))
5352 `(("ocaml-alcotest" ,ocaml-alcotest)))
5353 (arguments `(#:jbuild? #t))
5354 (home-page "https://github.com/ocsigen/tyxml/")
5355 (synopsis "TyXML is a library for building correct HTML and SVG documents")
5356 (description "TyXML provides a set of convenient combinators that uses the
5357 OCaml type system to ensure the validity of the generated documents. TyXML can
5358 be used with any representation of HTML and SVG: the textual one, provided
5359 directly by this package, or DOM trees (@code{js_of_ocaml-tyxml}) virtual DOM
5360 (@code{virtual-dom}) and reactive or replicated trees (@code{eliom}). You can
5361 also create your own representation and use it to instantiate a new set of
5363 (license license:lgpl2.1)))
5365 (define-public ocaml-bisect-ppx
5367 (name "ocaml-bisect-ppx")
5373 (url "https://github.com/aantron/bisect_ppx.git")
5375 (file-name (git-file-name name version))
5378 "0900vli5kw7s5kdam0n4cqsfsfqb7mdb3azn3i55595gilg1vyn8"))))
5379 (build-system dune-build-system)
5381 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5382 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5383 ("ocaml-ounit" ,ocaml-ounit)))
5386 (modify-phases %standard-phases
5387 (add-before 'build 'fix-deprecated
5389 ;; Fixed upstream in 22dd1ad9a0c9629f60599c22d82c6488394d6d32, but
5390 ;; not in a release yet.
5391 (substitute* "src/ppx/instrument.ml"
5392 (("module Ast = Ast_405")
5393 "module Ast = Migrate_parsetree.Ast_405
5394 module Ast_405 = Ast"))
5396 (home-page "https://github.com/aantron/bisect_ppx")
5397 (synopsis "Code coverage for OCaml")
5398 (description "Bisect_ppx helps you test thoroughly. It is a small
5399 preprocessor that inserts instrumentation at places in your code, such as
5400 if-then-else and match expressions. After you run tests, Bisect_ppx gives a
5401 nice HTML report showing which places were visited and which were missed.
5403 Usage is simple - add package bisect_ppx when building tests, run your tests,
5404 then run the Bisect_ppx report tool on the generated visitation files.")
5405 (license license:mpl2.0)))
5407 (define-public ocaml4.07-odoc
5409 (name "ocaml4.07-odoc")
5415 (url "https://github.com/ocaml/odoc")
5417 (file-name (git-file-name name version))
5419 (base32 "0rvhx139jx6wmlfz355mja6mk03x4swq1xxvk5ky6jzhalq3cf5i"))))
5420 (build-system dune-build-system)
5422 `(#:ocaml ,ocaml-4.07
5423 #:findlib ,ocaml4.07-findlib
5424 #:dune ,ocaml4.07-dune))
5426 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))
5427 ("ocaml-markup" ,(package-with-ocaml4.07 ocaml-markup))
5428 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5429 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
5430 ("ocaml-uutf" ,(package-with-ocaml4.07 ocaml-uutf))))
5432 `(("ocaml-astring" ,(package-with-ocaml4.07 ocaml-astring))
5433 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
5434 ("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
5435 ("ocaml-fpath" ,(package-with-ocaml4.07 ocaml-fpath))
5436 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
5437 ("ocaml-tyxml" ,(package-with-ocaml4.07 ocaml-tyxml))
5438 ("ocaml-bisect-ppx" ,(package-with-ocaml4.07 ocaml-bisect-ppx))))
5439 (home-page "https://github.com/ocaml/odoc")
5440 (synopsis "OCaml documentation generator")
5441 (description "Odoc is a documentation generator for OCaml. It reads
5442 @emph{doc comments}, delimited with @code{(** ... *)}, and outputs
5445 Text inside doc comments is marked up in ocamldoc syntax. Odoc's main
5446 advantage over ocamldoc is an accurate cross-referencer, which handles the
5447 complexity of the OCaml module system.")
5448 (license license:isc)))
5450 (define-public ocaml4.07-fftw3
5452 (name "ocaml4.07-fftw3")
5458 (url "https://github.com/Chris00/fftw-ocaml.git")
5460 (file-name (git-file-name name version))
5463 "0l66yagjkwdcib6q55wd8wiap50vi23qiahkghlvm28z7nvbclfk"))))
5464 (build-system dune-build-system)
5467 #:test-target "tests"
5469 #:findlib ,ocaml4.07-findlib
5470 #:dune ,ocaml4.07-dune))
5475 `(("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
5476 ("ocaml-lacaml" ,ocaml4.07-lacaml)))
5478 "https://github.com/Chris00/fftw-ocaml")
5480 "Bindings to FFTW3")
5482 "Bindings providing OCaml support for the seminal Fast Fourier Transform
5484 (license license:lgpl2.1))) ; with static linking exception.
5486 (define-public ocaml4.07-lacaml
5488 (name "ocaml4.07-lacaml")
5494 (url "https://github.com/mmottl/lacaml.git")
5496 (file-name (git-file-name name version))
5499 "180yb79a3qgx067qcpm50q12hrimjygf06rgkzbish9d1zfm670c"))))
5500 (build-system dune-build-system)
5502 `(#:tests? #f ; No test target.
5504 #:findlib ,ocaml4.07-findlib
5505 #:dune ,ocaml4.07-dune))
5507 `(("openblas" ,openblas)
5509 ("ocaml-base" ,ocaml4.07-base)
5510 ("ocaml-stdio" ,ocaml4.07-stdio)))
5511 (home-page "https://mmottl.github.io/lacaml/")
5513 "OCaml-bindings to BLAS and LAPACK")
5515 "Lacaml interfaces the BLAS-library (Basic Linear Algebra Subroutines) and
5516 LAPACK-library (Linear Algebra routines). It also contains many additional
5517 convenience functions for vectors and matrices.")
5518 (license license:lgpl2.1)))
5520 (define-public ocaml-cairo2
5522 (name "ocaml-cairo2")
5527 (url "https://github.com/Chris00/ocaml-cairo.git")
5529 (file-name (git-file-name name version))
5532 "0wzysis9fa850s68qh8vrvqc6svgllhwra3kzll2ibv0wmdqrich"))))
5533 (build-system dune-build-system)
5535 `(#:test-target "tests"))
5539 ("lablgtk" ,lablgtk)))
5541 `(("pkg-config" ,pkg-config)))
5542 (home-page "https://github.com/Chris00/ocaml-cairo")
5543 (synopsis "Binding to Cairo, a 2D Vector Graphics Library")
5544 (description "Ocaml-cairo2 is a binding to Cairo, a 2D graphics library
5545 with support for multiple output devices. Currently supported output targets
5546 include the X Window System, Quartz, Win32, image buffers, PostScript, PDF,
5547 and SVG file output.")
5548 (license license:lgpl3+)))
5550 (define-public lablgtk3
5553 (version "3.0.beta8")
5557 (url "https://github.com/garrigue/lablgtk.git")
5559 (file-name (git-file-name name version))
5562 "08pgwnia240i2rw1rbgiahg673kwa7b6bvhsg3z4b47xr5sh9pvz"))))
5563 (build-system dune-build-system)
5568 (modify-phases %standard-phases
5569 (add-before 'build 'make-writable
5571 (for-each (lambda (file)
5573 (find-files "." "."))
5576 `(("ocaml-cairo2" ,ocaml-cairo2)))
5578 `(("camlp5" ,camlp5)
5580 ("gtksourceview-3" ,gtksourceview-3)
5581 ("gtkspell3" ,gtkspell3)))
5583 `(("pkg-config" ,pkg-config)))
5584 (home-page "https://github.com/garrigue/lablgtk")
5585 (synopsis "OCaml interface to GTK+3")
5586 (description "LablGtk is an OCaml interface to GTK+ 1.2, 2.x and 3.x. It
5587 provides a strongly-typed object-oriented interface that is compatible with the
5588 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
5589 also provides bindings to gdk-pixbuf, the GLArea widget (in combination with
5590 LablGL), gnomecanvas, gnomeui, gtksourceview, gtkspell, libglade (and it can
5591 generate OCaml code from .glade files), libpanel, librsvg and quartz.")
5592 ;; Version 2 only, with linking exception.
5593 (license license:lgpl2.0)))