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 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.ua/p/release/ocaml-extlib/"
274 "extlib-" version ".tar.gz"))
277 "0wfs20v1yj5apdbj7214wdsr17ayh0qqq7ihidndvc8nmmwfa1dz"))))
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 "http://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 "1a1lgsc8350afdwmsznsys7m0c0cks4nw6irqz2f92g8g4vkk9b7"))))
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 "http://camlp5.gforge.inria.fr/")
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 name "-" version ".tar.gz"))
592 "1s4yqphfcr1pf5mcj5c84mvmd107k525iiym5jdwsxz0ka0ccmfy"))))
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")
714 (url "https://gitlab.inria.fr/fpottier/menhir.git")
716 (file-name (git-file-name name version))
718 (base32 "1iqdf64ayq4s3d9jkwhs3s8wqc2s48b292hp0kcjsskfhcvwg0kr"))))
719 (build-system ocaml-build-system)
723 `(("ocamlbuild" ,ocamlbuild)))
725 `(#:make-flags `("USE_OCAMLFIND=true"
726 ,(string-append "PREFIX=" (assoc-ref %outputs "out")))
727 #:tests? #f ; No check target
729 (modify-phases %standard-phases
730 (delete 'configure))))
731 (home-page "http://gallium.inria.fr/~fpottier/menhir/")
732 (synopsis "Parser generator")
733 (description "Menhir is a parser generator. It turns high-level grammar
734 specifications, decorated with semantic actions expressed in the OCaml
735 programming language into parsers, again expressed in OCaml. It is based on
736 Knuth’s LR(1) parser construction technique.")
737 ;; The file src/standard.mly and all files listed in src/mnehirLib.mlpack
738 ;; that have an *.ml or *.mli extension are GPL licensed. All other files
740 (license (list license:gpl2+ license:qpl))))
742 (define-public ocaml-bigarray-compat
744 (name "ocaml-bigarray-compat")
749 (url "https://github.com/mirage/bigarray-compat")
750 (commit (string-append "v" version))))
751 (file-name (git-file-name name version))
754 "06j1dwlpisxshdd0nab4n4x266gg1s1n8na16lpgw3fvcznwnimz"))))
755 (build-system dune-build-system)
757 `(#:tests? #f)); no tests
758 (home-page "https://github.com/mirage/bigarray-compat")
759 (synopsis "OCaml compatibility library")
760 (description "This package contains a compatibility library for
761 @code{Stdlib.Bigarray} in OCaml.")
762 (license license:isc)))
764 (define-public lablgtk
771 (url "https://github.com/garrigue/lablgtk")
772 (commit "lablgtk2188")))
773 (file-name (git-file-name name version))
776 "0gpww8bkwi5cl68kc006970zvzwvq73h1mwrnd239apmwlxc1l8a"))))
777 (build-system gnu-build-system)
780 ("findlib" ,ocaml-findlib)
781 ("pkg-config" ,pkg-config)))
782 ;; FIXME: Add inputs gtkgl-2.0, libpanelapplet-2.0, gtkspell-2.0,
783 ;; and gtk+-quartz-2.0 once available.
786 ("gtksourceview" ,gtksourceview-2)
787 ("libgnomecanvas" ,libgnomecanvas)
788 ("libgnomeui" ,libgnomeui)
789 ("libglade" ,libglade)
790 ("librsvg" ,librsvg)))
792 `(#:tests? #f ; no check target
794 ;; opt: also install cmxa files
795 #:make-flags (list "all" "opt"
796 (string-append "FINDLIBDIR="
797 (assoc-ref %outputs "out")
799 ;; Occasionally we would get "Error: Unbound module GtkThread" when
800 ;; compiling 'gtkThInit.ml', with 'make -j'. So build sequentially.
804 (modify-phases %standard-phases
805 (add-before 'install 'prepare-install
806 (lambda* (#:key inputs outputs #:allow-other-keys)
807 (let ((out (assoc-ref outputs "out"))
808 (ocaml (assoc-ref inputs "ocaml")))
809 ;; Install into the output and not the ocaml directory.
810 (mkdir-p (string-append out "/lib/ocaml"))
811 (substitute* "config.make"
814 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-lablgtk))))
815 (home-page "http://lablgtk.forge.ocamlcore.org/")
816 (synopsis "GTK+ bindings for OCaml")
818 "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides
819 a strongly-typed object-oriented interface that is compatible with the
820 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
821 also provides bindings to
822 gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas,
823 gnomeui, gtksourceview, gtkspell,
824 libglade (and it an generate OCaml code from .glade files),
825 libpanel, librsvg and quartz.")
826 (license license:lgpl2.1)))
828 (define-public ocaml4.07-lablgtk
831 (name "ocaml4.07-lablgtk")
833 `(("ocaml" ,ocaml-4.07)
834 ("findlib" ,ocaml4.07-findlib)
835 ("pkg-config" ,pkg-config)))
838 (define-public unison
845 (url "https://github.com/bcpierce00/unison.git")
846 (commit (string-append "v" version))))
847 (file-name (git-file-name name version))
850 "1bykiyc0dc5pkw8x370qkg2kygq9pq7yqzsgczd3y13b6ivm4sdq"))))
851 (build-system gnu-build-system)
853 "doc")) ; 1.9 MiB of documentation
855 `(("ocaml" ,ocaml-4.07)
857 ("ghostscript" ,ghostscript)
858 ("texlive" ,texlive-tiny)
863 `(#:parallel-build? #f
865 #:test-target "selftest"
866 #:tests? #f ; Tests require writing to $HOME.
867 ; If some $HOME is provided, they fail with the message
868 ; "Fatal error: Skipping some tests -- remove me!"
870 (modify-phases %standard-phases
872 (add-before 'install 'prepare-install
873 (lambda* (#:key outputs #:allow-other-keys)
874 (let* ((out (assoc-ref outputs "out"))
875 (bin (string-append out "/bin")))
877 (setenv "HOME" out) ; forces correct INSTALLDIR in Makefile
879 (add-after 'install 'install-fsmonitor
880 (lambda* (#:key outputs #:allow-other-keys)
881 (let* ((out (assoc-ref outputs "out"))
882 (bin (string-append out "/bin")))
883 ;; 'unison-fsmonitor' is used in "unison -repeat watch" mode.
884 (install-file "src/unison-fsmonitor" bin)
886 (add-after 'install 'install-doc
887 (lambda* (#:key outputs #:allow-other-keys)
888 (let ((doc (string-append (assoc-ref outputs "doc")
889 "/share/doc/unison")))
891 ;; Remove an '\n' that prevents the doc to be generated
892 ;; correctly with newer hevea.
893 (substitute* "doc/local.tex"
894 (("----SNIP----.*") "----SNIP----"))
895 ;; This file needs write-permissions, because it's
896 ;; overwritten by 'docs' during documentation generation.
897 (chmod "src/strings.ml" #o600)
898 (invoke "make" "docs"
899 "TEXDIRECTIVES=\\\\draftfalse")
900 (for-each (lambda (f)
901 (install-file f doc))
903 (string-append "doc/unison-manual." ext))
904 ;; Install only html documentation,
905 ;; since the build is currently
906 ;; non-reproducible with the ps, pdf,
908 '(;; "ps" "pdf" "dvi"
911 (home-page "https://www.cis.upenn.edu/~bcpierce/unison/")
912 (synopsis "File synchronizer")
914 "Unison is a file-synchronization tool. It allows two replicas of
915 a collection of files and directories to be stored on different hosts
916 (or different disks on the same host), modified separately, and then
917 brought up to date by propagating the changes in each replica
919 (license license:gpl3+)))
921 (define-public ocaml-findlib
923 (name "ocaml-findlib")
927 (uri (string-append "http://download.camlcity.org/download/"
928 "findlib" "-" version ".tar.gz"))
931 "00s3sfb02pnjmkax25pcnljcnhcggiliccfz69a72ic7gsjwz1cf"))))
932 (build-system gnu-build-system)
937 `(#:tests? #f ; no test suite
939 #:make-flags (list "all" "opt")
940 #:phases (modify-phases %standard-phases
943 (lambda* (#:key inputs outputs #:allow-other-keys)
944 (let ((out (assoc-ref outputs "out")))
947 "-bindir" (string-append out "/bin")
948 "-config" (string-append out "/etc/ocamfind.conf")
949 "-mandir" (string-append out "/share/man")
950 "-sitelib" (string-append out "/lib/ocaml/site-lib")
953 (lambda* (#:key outputs #:allow-other-keys)
954 (let ((out (assoc-ref outputs "out")))
955 (invoke "make" "install"
956 (string-append "OCAML_CORE_STDLIB="
957 out "/lib/ocaml/site-lib"))))))))
958 (home-page "http://projects.camlcity.org/projects/findlib.html")
959 (synopsis "Management tool for OCaml libraries")
961 "The \"findlib\" library provides a scheme to manage reusable software
962 components (packages), and includes tools that support this scheme. Packages
963 are collections of OCaml modules for which metainformation can be stored. The
964 packages are kept in the file system hierarchy, but with strict directory
965 structure. The library contains functions to look the directory up that
966 stores a package, to query metainformation about a package, and to retrieve
967 dependency information about multiple packages. There is also a tool that
968 allows the user to enter queries on the command-line. In order to simplify
969 compilation and linkage, there are new frontends of the various OCaml
970 compilers that can directly deal with packages.")
971 (license license:x11)))
973 (define-public ocaml4.07-findlib
975 (inherit ocaml-findlib)
976 (name "ocaml4.07-findlib")
979 ("ocaml" ,ocaml-4.07)))))
981 ;; note that some tests may hang for no obvious reason.
982 (define-public ocaml-ounit
988 (uri (ocaml-forge-uri "ounit" version 1749))
991 "03ifp9hjcxg4m5j190iy373jcn4039d3vy10kmd8p4lfciwzwc1f"))))
992 (build-system ocaml-build-system)
994 `(("libxml2" ,libxml2) ; for xmllint
995 ("ocamlbuild" ,ocamlbuild)))
998 (modify-phases %standard-phases
999 (delete 'check)))) ; tests are run during build
1000 (home-page "http://ounit.forge.ocamlcore.org")
1001 (synopsis "Unit testing framework for OCaml")
1002 (description "Unit testing framework for OCaml. It is similar to JUnit and
1003 other XUnit testing frameworks.")
1004 (license license:expat)))
1006 (define-public camlzip
1012 (uri (ocaml-forge-uri name version 1616))
1015 "0m6gyjw46w3qnhxfsyqyag42znl5lwargks7w7rfchr9jzwpff68"))))
1016 (build-system ocaml-build-system)
1021 (modify-phases %standard-phases
1023 (add-after 'install 'install-camlzip
1024 (lambda* (#:key outputs #:allow-other-keys)
1025 (let* ((out (assoc-ref outputs "out"))
1026 (dir (string-append out "/lib/ocaml/site-lib/camlzip")))
1028 (call-with-output-file (string-append dir "/META")
1030 (format port "version=\"1.06\"\n")
1031 (format port "requires=\"unix\"\n")
1032 (format port "archive(byte)=\"zip.cma\"\n")
1033 (format port "archive(native)=\"zip.cmxa\"\n")
1034 (format port "archive(native,plugin)=\"zip.cmxs\"\n")
1035 (format port "directory=\"../zip\"\n")))))))
1036 #:install-target "install-findlib"
1038 (list "all" "allopt"
1039 (string-append "INSTALLDIR=" (assoc-ref %outputs "out")
1041 (home-page "http://forge.ocamlcore.org/projects/camlzip")
1042 (synopsis "Provides easy access to compressed files")
1043 (description "Provides easy access to compressed files in ZIP, GZIP and
1044 JAR format. It provides functions for reading from and writing to compressed
1045 files in these formats.")
1046 (license license:lgpl2.1+)))
1048 (define-public ocamlmod
1054 (uri (ocaml-forge-uri name version 1702))
1057 "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa"))))
1058 (build-system ocaml-build-system)
1060 `(("ounit" ,ocaml-ounit)
1061 ("ocamlbuild" ,ocamlbuild)))
1064 (modify-phases %standard-phases
1065 ;; Tests are done during build.
1067 (home-page "https://forge.ocamlcore.org/projects/ocamlmod")
1068 (synopsis "Generate modules from OCaml source files")
1069 (description "Generate modules from OCaml source files.")
1070 (license license:lgpl2.1+))) ; with an exception
1072 (define-public ocaml-zarith
1074 (name "ocaml-zarith")
1079 (url "https://github.com/ocaml/Zarith")
1080 (commit (string-append "release-" version))))
1081 (file-name (git-file-name name version))
1084 "0hv5ywz1q2cgn8apfz490clwk5hcynr937g2v8i13x2ax4bnv0lz"))))
1085 (build-system ocaml-build-system)
1091 `(#:tests? #f ; no test target
1093 (modify-phases %standard-phases
1095 (lambda _ (invoke "./configure"))))))
1096 (home-page "https://forge.ocamlcore.org/projects/zarith/")
1097 (synopsis "Implements arbitrary-precision integers")
1098 (description "Implements arithmetic and logical operations over
1099 arbitrary-precision integers. It uses GMP to efficiently implement arithmetic
1100 over big integers. Small integers are represented as Caml unboxed integers,
1101 for speed and space economy.")
1102 (license license:lgpl2.1+))) ; with an exception
1104 (define-public ocaml-frontc
1106 (name "ocaml-frontc")
1111 (url "https://github.com/BinaryAnalysisPlatform/FrontC")
1112 (commit (string-append
1113 "V_" (string-join (string-split version #\.) "_")))))
1114 (file-name (git-file-name name version))
1117 "0k7jk9hkglnkk27s62xl493jyqc017gyvwqb1lyc0ywbb001s102"))))
1118 (build-system ocaml-build-system)
1121 (modify-phases %standard-phases
1123 (add-after 'install 'install-meta
1124 (lambda* (#:key outputs #:allow-other-keys)
1125 (let ((out (assoc-ref outputs "out")))
1126 (with-output-to-file
1127 (string-append out "/lib/ocaml/frontc/META")
1131 "description = \"Parser for the C language\"
1132 version = \"" ,version "\"
1134 archive(byte) = \"frontc.cma\"
1135 archive(native) = \"frontc.cmxa\""))))
1136 (symlink (string-append out "/lib/ocaml/frontc")
1137 (string-append out "/lib/ocaml/FrontC"))))))
1138 #:make-flags (list (string-append "PREFIX="
1139 (assoc-ref %outputs "out"))
1140 "OCAML_SITE=$(LIB_DIR)/ocaml/")))
1141 (properties `((upstream-name . "FrontC")))
1142 (home-page "https://www.irit.fr/FrontC")
1143 (synopsis "C parser and lexer library")
1144 (description "FrontC is an OCAML library providing a C parser and lexer.
1145 The result is a syntactic tree easy to process with usual OCAML tree management.
1146 It provides support for ANSI C syntax, old-C K&R style syntax and the standard
1147 GNU CC attributes. It provides also a C pretty printer as an example of use.")
1148 (license license:lgpl2.1)))
1150 (define-public ocaml-qcheck
1152 (name "ocaml-qcheck")
1158 (url "https://github.com/c-cube/qcheck.git")
1160 (file-name (git-file-name name version))
1162 (base32 "1llnfynhlndwyjig7wrayjnds2b3mggp5lw20dwxhn2i2lkkb22m"))))
1163 (build-system dune-build-system)
1167 (modify-phases %standard-phases
1168 (add-before 'build 'fix-deprecated
1170 (substitute* "src/core/QCheck.ml"
1171 (("Pervasives.compare") "compare"))
1174 `(("ocaml-alcotest" ,ocaml-alcotest)
1175 ("ocaml-ounit" ,ocaml-ounit)))
1177 `(("ocamlbuild" ,ocamlbuild)))
1178 (home-page "https://github.com/c-cube/qcheck")
1179 (synopsis "QuickCheck inspired property-based testing for OCaml")
1180 (description "QuickCheck inspired property-based testing for OCaml. This
1181 module allows to check invariants (properties of some types) over randomly
1182 generated instances of the type. It provides combinators for generating
1183 instances and printing them.")
1184 (license license:lgpl3+)))
1186 (define-public ocaml-qtest
1188 (name "ocaml-qtest")
1193 (url "https://github.com/vincent-hugot/qtest/")
1194 (commit (string-append "v" version))))
1195 (file-name (git-file-name name version))
1198 "0gddzan4vzs0vklsxhirdjrvx3rp7hhh2yr20vi13nq8rwkn9w29"))))
1199 (build-system dune-build-system)
1202 #:test-target "tests"))
1204 `(("ounit" ,ocaml-ounit)
1205 ("qcheck" ,ocaml-qcheck)))
1206 (home-page "https://github.com/vincent-hugot/qtest")
1207 (synopsis "Inline (Unit) Tests for OCaml")
1208 (description "Qtest extracts inline unit tests written using a special
1209 syntax in comments. Those tests are then run using the oUnit framework and the
1210 qcheck library. The possibilities range from trivial tests -- extremely simple
1211 to use -- to sophisticated random generation of test cases.")
1212 (license license:lgpl3+)))
1214 (define-public ocaml-stringext
1216 (name "ocaml-stringext")
1221 (url "https://github.com/rgrinberg/stringext")
1223 (file-name (git-file-name name version))
1226 "1m09cmn3vrk3gdm60fb730qsygcfyxsyv7gl9xfzck08q1x2x9qx"))))
1227 (build-system dune-build-system)
1229 `(#:test-target "."))
1231 `(("ocamlbuild" ,ocamlbuild)
1232 ("qtest" ,ocaml-qtest)))
1233 (home-page "https://github.com/rgrinberg/stringext")
1234 (synopsis "Extra string functions for OCaml")
1235 (description "Provides a single module named Stringext that provides a grab
1236 bag of often used but missing string functions from the stdlib. E.g, split,
1237 full_split, cut, rcut, etc..")
1238 ;; the only mention of a license in this project is in its `opam' file
1239 ;; where it says `mit'.
1240 (license license:expat)))
1249 (url "https://github.com/ocaml/dune")
1251 (file-name (git-file-name name version))
1254 "0l4x0x2fz135pljv88zj8y6w1ninsqw0gn1mdxzprd6wbxbyn8wr"))))
1255 (build-system ocaml-build-system)
1257 `(#:tests? #f; require odoc
1258 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1259 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1260 "/lib/ocaml/site-lib"))
1262 (modify-phases %standard-phases
1264 (lambda* (#:key outputs #:allow-other-keys)
1265 (invoke "./configure")
1267 (home-page "https://github.com/ocaml/dune")
1268 (synopsis "OCaml build system")
1269 (description "Dune is a build system that was designed to simplify the
1270 release of Jane Street packages. It reads metadata from @file{dune} files
1271 following a very simple s-expression syntax.")
1272 (license license:expat)))
1274 (define-public ocaml4.07-dune
1275 (package-with-ocaml4.07 dune))
1277 (define-public ocaml-migrate-parsetree
1279 (name "ocaml-migrate-parsetree")
1281 (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
1286 (url (string-append home-page ".git"))
1287 (commit (string-append "v" version))))
1288 (file-name (git-file-name name version))
1291 "0sv1p4615l8gpbah4ya2c40yr6fbvahvv3ks7zhrsgcwcq2ljyr2"))))
1292 (build-system dune-build-system)
1296 `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
1297 ("ocamlbuild" ,ocamlbuild)
1298 ("ocaml-result" ,ocaml-result)))
1299 (properties `((upstream-name . "ocaml-migrate-parsetree")))
1300 (synopsis "OCaml parsetree converter")
1301 (description "This library converts between parsetrees of different OCaml
1302 versions. For each version, there is a snapshot of the parsetree and conversion
1303 functions to the next and/or previous version.")
1304 (license license:lgpl2.1+)))
1306 (define-public ocaml-ppx-tools-versioned
1308 (name "ocaml-ppx-tools-versioned")
1313 (url "https://github.com/ocaml-ppx/ppx_tools_versioned")
1315 (file-name (git-file-name name version))
1318 "1hcmpnw26zf70a71r3d2c2c0mn8q084gdn1r36ynng6fv9hq6j0y"))))
1319 (build-system dune-build-system)
1321 `(#:test-target "."))
1323 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
1324 (properties `((upstream-name . "ppx_tools_versioned")))
1325 (home-page "https://github.com/let-def/ppx_tools_versioned")
1326 (synopsis "Variant of ppx_tools")
1327 (description "This package is a variant of ppx_tools based on
1328 ocaml-migrate-parsetree")
1329 (license license:expat)))
1331 (define-public ocaml-bitstring
1333 (name "ocaml-bitstring")
1337 (uri (string-append "https://bitbucket.org/thanatonauts/bitstring/"
1338 "get/v" version ".tar.gz"))
1339 (file-name (string-append name "-" version ".tar.gz"))
1342 "15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps"))))
1343 (build-system dune-build-system)
1346 ("autoconf" ,autoconf)
1347 ("automake" ,automake)))
1349 `(("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
1351 `(#:tests? #f; Tests fail to build
1353 (home-page "https://github.com/xguerin/bitstring")
1354 (synopsis "Bitstrings and bitstring matching for OCaml")
1355 (description "Adds Erlang-style bitstrings and matching over bitstrings as
1356 a syntax extension and library for OCaml. You can use this module to both parse
1357 and generate binary formats, files and protocols. Bitstring handling is added
1358 as primitives to the language, making it exceptionally simple to use and very
1360 (license license:isc)))
1362 (define-public ocaml-result
1364 (name "ocaml-result")
1369 (url "https://github.com/janestreet/result")
1371 (file-name (git-file-name name version))
1374 "0hir97k9i72nfkm6kncxnqpyk400wlsxysbldgcvk0fd9pjnsc3p"))))
1375 (build-system dune-build-system)
1377 `(#:test-target "."))
1378 (home-page "https://github.com/janestreet/result")
1379 (synopsis "Compatibility Result module")
1380 (description "Uses the new result type defined in OCaml >= 4.03 while
1381 staying compatible with older version of OCaml should use the Result module
1382 defined in this library.")
1383 (license license:bsd-3)))
1385 (define-public ocaml-topkg
1387 (name "ocaml-topkg")
1391 (uri (string-append "http://erratique.ch/software/topkg/releases/"
1392 "topkg-" version ".tbz"))
1395 "1df61vw6v5bg2mys045682ggv058yqkqb67w7r2gz85crs04d5fw"))))
1396 (build-system ocaml-build-system)
1399 ("ocamlbuild" ,ocamlbuild)))
1401 `(("result" ,ocaml-result)))
1404 #:build-flags '("build")
1406 (modify-phases %standard-phases
1407 (delete 'configure))))
1408 (home-page "http://erratique.ch/software/topkg")
1409 (synopsis "Transitory OCaml software packager")
1410 (description "Topkg is a packager for distributing OCaml software. It
1411 provides an API to describe the files a package installs in a given build
1412 configuration and to specify information about the package's distribution,
1413 creation and publication procedures.")
1414 (license license:isc)))
1416 (define-public ocaml-rresult
1418 (name "ocaml-rresult")
1422 (uri (string-append "http://erratique.ch/software/rresult/releases/"
1423 "rresult-" version ".tbz"))
1426 "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm"))))
1427 (build-system ocaml-build-system)
1430 ("ocamlbuild" ,ocamlbuild)))
1432 `(("topkg" ,ocaml-topkg)))
1435 #:build-flags '("build")
1437 (modify-phases %standard-phases
1438 (delete 'configure))))
1439 (home-page "http://erratique.ch/software/rresult")
1440 (synopsis "Result value combinators for OCaml")
1441 (description "Handle computation results and errors in an explicit and
1442 declarative manner, without resorting to exceptions. It defines combinators
1443 to operate on the result type available from OCaml 4.03 in the standard
1445 (license license:isc)))
1447 (define-public ocaml4.07-sqlite3
1449 (name "ocaml4.07-sqlite3")
1455 (url "https://github.com/mmottl/sqlite3-ocaml")
1457 (file-name (git-file-name name version))
1460 "1536agm5fgcqysszhpd3kmw7lkc5n5ni7gmlyglrbvmnmrwf3av2"))))
1461 (build-system dune-build-system)
1463 `(#:ocaml ,ocaml-4.07
1464 #:findlib ,ocaml4.07-findlib))
1466 `(("ocaml-base" ,ocaml4.07-base)
1467 ("ocaml-stdio" ,ocaml4.07-stdio)
1468 ("pkg-config" ,pkg-config)))
1470 `(("sqlite" ,sqlite)))
1471 (home-page "https://mmottl.github.io/sqlite3-ocaml")
1472 (synopsis "SQLite3 Bindings for OCaml")
1474 "SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client
1475 API. Sqlite3 is a self-contained, serverless, zero-configuration,
1476 transactional SQL database engine with outstanding performance for many use
1477 cases. These bindings are written in a way that enables a friendly
1478 coexistence with the old (version 2) SQLite and its OCaml wrapper
1479 @code{ocaml-sqlite}.")
1480 (license license:expat)))
1482 (define-public ocaml-csv
1490 (url "https://github.com/Chris00/ocaml-csv")
1492 (file-name (git-file-name name version))
1495 "19k48517s8y1zb91a1312a0n94cbh5i5dixndcrqjmf87kkz61zx"))))
1496 (build-system dune-build-system)
1500 (home-page "https://github.com/Chris00/ocaml-csv")
1501 (synopsis "Pure OCaml functions to read and write CSV")
1503 "@dfn{Comma separated values} (CSV) is a simple tabular format supported
1504 by all major spreadsheets. This library implements pure OCaml functions to
1505 read and write files in this format as well as some convenience functions to
1506 manipulate such data.")
1507 ;; This is LGPLv2.1 with an exception that allows packages statically-linked
1508 ;; against the library to be released under any terms.
1509 (license license:lgpl2.1)))
1511 (define-public ocaml-mtime
1513 (name "ocaml-mtime")
1517 (uri (string-append "http://erratique.ch/software/mtime/releases/"
1518 "mtime-" version ".tbz"))
1521 "1qb4ljwirrc3g8brh97s76rjky2cpmy7zm87y7iqd6pxix52ydk3"))))
1522 (build-system ocaml-build-system)
1524 `(("ocamlbuild" ,ocamlbuild)
1527 `(("topkg" ,ocaml-topkg)))
1530 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1532 (modify-phases %standard-phases
1533 (delete 'configure))))
1534 (home-page "http://erratique.ch/software/mtime")
1535 (synopsis "Monotonic wall-clock time for OCaml")
1536 (description "Access monotonic wall-clock time. It allows to measure time
1537 spans without being subject to operating system calendar time adjustments.")
1538 (license license:isc)))
1540 (define-public ocaml-cmdliner
1542 (name "ocaml-cmdliner")
1546 (uri (string-append "http://erratique.ch/software/cmdliner/releases/"
1547 "cmdliner-" version ".tbz"))
1550 "0g3w4hvc1cx9x2yp5aqn6m2rl8lf9x1dn754hfq8m1sc1102lxna"))))
1551 (build-system ocaml-build-system)
1553 `(("ocaml-result" ,ocaml-result)))
1555 `(("ocamlbuild" ,ocamlbuild)))
1558 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
1559 "/lib/ocaml/site-lib/cmdliner"))
1561 (modify-phases %standard-phases
1563 (add-before 'build 'fix-source-file-order
1565 (substitute* "build.ml"
1566 (("Sys.readdir dir")
1567 "let a = Sys.readdir dir in Array.sort String.compare a; a"))
1569 (home-page "http://erratique.ch/software/cmdliner")
1570 (synopsis "Declarative definition of command line interfaces for OCaml")
1571 (description "Cmdliner is a module for the declarative definition of command
1572 line interfaces. It provides a simple and compositional mechanism to convert
1573 command line arguments to OCaml values and pass them to your functions. The
1574 module automatically handles syntax errors, help messages and UNIX man page
1575 generation. It supports programs with single or multiple commands and respects
1576 most of the POSIX and GNU conventions.")
1577 (license license:bsd-3)))
1579 (define-public ocaml-fmt
1586 (uri (string-append "http://erratique.ch/software/fmt/releases/fmt-"
1589 "1zj9azcxcn6skmb69ykgmi9z8c50yskwg03wqgh87lypgjdcz060"))))
1590 (build-system ocaml-build-system)
1592 `(("ocamlbuild" ,ocamlbuild)
1594 ("topkg" ,ocaml-topkg)))
1596 `(("result" ,ocaml-result)
1597 ("ocaml-uchar" ,ocaml-uchar)
1598 ("cmdliner" ,ocaml-cmdliner)))
1599 (arguments `(#:tests? #f
1600 #:build-flags (list "build" "--with-base-unix" "true"
1601 "--with-cmdliner" "true")
1603 (modify-phases %standard-phases
1604 (delete 'configure))))
1605 (home-page "http://erratique.ch/software/fmt")
1606 (synopsis "OCaml Format pretty-printer combinators")
1607 (description "Fmt exposes combinators to devise Format pretty-printing
1609 (license license:isc)))
1611 (define-public ocaml-astring
1613 (name "ocaml-astring")
1618 (uri (string-append "http://erratique.ch/software/astring/releases/astring-"
1621 "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0"))))
1622 (build-system ocaml-build-system)
1624 `(("ocamlbuild" ,ocamlbuild)
1626 ("topkg" ,ocaml-topkg)))
1629 #:build-flags (list "build")
1631 (modify-phases %standard-phases
1632 (delete 'configure))))
1633 (home-page "http://erratique.ch/software/astring")
1634 (synopsis "Alternative String module for OCaml")
1635 (description "Astring exposes an alternative String module for OCaml. This
1636 module balances minimality and expressiveness for basic, index-free, string
1637 processing and provides types and functions for substrings, string sets and
1638 string maps. The String module exposed by Astring has exception safe functions,
1639 removes deprecated and rarely used functions, alters some signatures and names,
1640 adds a few missing functions and fully exploits OCaml's newfound string
1642 (license license:isc)))
1644 (define-public ocaml-alcotest
1646 (name "ocaml-alcotest")
1650 (uri (string-append "https://github.com/mirage/alcotest/releases/"
1651 "download/" version "/alcotest-" version ".tbz"))
1654 "0szwjxvaahgynsx0apj81jxj3ki6yz4is9mh2wkcbx66qy7n6fvb"))))
1655 (build-system dune-build-system)
1657 `(#:package "alcotest"
1660 `(("ocamlbuild" ,ocamlbuild)))
1662 `(("ocaml-astring" ,ocaml-astring)
1663 ("ocaml-cmdliner" ,ocaml-cmdliner)
1664 ("ocaml-fmt" ,ocaml-fmt)
1665 ("ocaml-result" ,ocaml-result)
1666 ("ocaml-uuidm" ,ocaml-uuidm)))
1667 (home-page "https://github.com/mirage/alcotest")
1668 (synopsis "Lightweight OCaml test framework")
1669 (description "Alcotest exposes simple interface to perform unit tests. It
1670 exposes a simple TESTABLE module type, a check function to assert test
1671 predicates and a run function to perform a list of unit -> unit test callbacks.
1672 Alcotest provides a quiet and colorful output where only faulty runs are fully
1673 displayed at the end of the run (with the full logs ready to inspect), with a
1674 simple (yet expressive) query language to select the tests to run.")
1675 (license license:isc)))
1677 (define-public ocaml4.07-ppx-tools
1679 (name "ocaml4.07-ppx-tools")
1680 (version "5.1+4.06.0")
1685 (url "https://github.com/alainfrisch/ppx_tools.git")
1687 (file-name (git-file-name name version))
1689 "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"))))
1690 (build-system ocaml-build-system)
1692 `(#:phases (modify-phases %standard-phases (delete 'configure))
1695 #:findlib ,ocaml4.07-findlib))
1696 (properties `((upstream-name . "ppx_tools")))
1697 (home-page "https://github.com/alainfrisch/ppx_tools")
1698 (synopsis "Tools for authors of ppx rewriters and other syntactic tools")
1699 (description "Tools for authors of ppx rewriters and other syntactic tools.")
1700 (license license:expat)))
1702 (define-public ocaml-react
1704 (name "ocaml-react")
1709 (uri (string-append "http://erratique.ch/software/react/releases/react-"
1712 "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v"))))
1713 (build-system ocaml-build-system)
1715 `(("ocamlbuild" ,ocamlbuild)
1717 ("ocaml-topkg" ,ocaml-topkg)))
1720 #:build-flags (list "build")
1722 (modify-phases %standard-phases
1723 (delete 'configure))))
1724 (home-page "http://erratique.ch/software/react")
1725 (synopsis "Declarative events and signals for OCaml")
1726 (description "React is an OCaml module for functional reactive programming
1727 (FRP). It provides support to program with time varying values: declarative
1728 events and signals. React doesn't define any primitive event or signal, it
1729 lets the client choose the concrete timeline.")
1730 (license license:bsd-3)))
1732 (define-public ocaml-ssl
1740 (url "https://github.com/savonet/ocaml-ssl.git")
1742 (file-name (git-file-name name version))
1744 "04h02rvzrwp886n5hsx84rnc9b150iggy38g5v1x1rwz3pkdnmf0"))))
1745 (build-system dune-build-system)
1747 `(#:test-target "."))
1749 `(("autoconf" ,autoconf)
1750 ("automake" ,automake)
1752 (propagated-inputs `(("openssl" ,openssl)))
1753 (home-page "https://github.com/savonet/ocaml-ssl/")
1754 (synopsis "OCaml bindings for OpenSSL")
1756 "OCaml-SSL is a set of bindings for OpenSSL, a library for communicating
1757 through Transport Layer Security (@dfn{TLS}) encrypted connections.")
1758 (license license:lgpl2.1)))
1760 (define-public ocaml-mmap
1767 (url "https://github.com/mirage/mmap")
1768 (commit (string-append "v" version))))
1769 (file-name (git-file-name name version))
1772 "1jaismy5d1bhbbanysmr2k79px0yv6ya265dri3949nha1l23i60"))))
1773 (build-system dune-build-system)
1774 (home-page "https://github.com/mirage/mmap")
1775 (synopsis "File mapping for OCaml")
1776 (description "This project provides a @command{Mmap.map_file} function
1777 for mapping files in memory. This function is the same as the
1778 @command{Unix.map_file} function added in OCaml >= 4.06.")
1779 (license (list license:qpl license:lgpl2.0))))
1781 (define-public ocaml-lwt
1789 (url "https://github.com/ocsigen/lwt")
1791 (file-name (git-file-name name version))
1793 "1nl7rdnwfdhwcsm5zpay1nr9y5cbapd9x1qzily7zk9ab4v52m8g"))))
1794 (build-system dune-build-system)
1798 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
1799 ("ocaml-cppo" ,ocaml-cppo)
1800 ("pkg-config" ,pkg-config)))
1805 `(("ocaml-mmap" ,ocaml-mmap)
1806 ("ocaml-ocplib-endian" ,ocaml-ocplib-endian)
1807 ("ocaml-result" ,ocaml-result)
1808 ("ocaml-seq" ,ocaml-seq)))
1809 (home-page "https://github.com/ocsigen/lwt")
1810 (synopsis "Cooperative threads and I/O in monadic style")
1811 (description "Lwt provides typed, composable cooperative threads. These
1812 make it easy to run normally-blocking I/O operations concurrently in a single
1813 process. Also, in many cases, Lwt threads can interact without the need for
1814 locks or other synchronization primitives.")
1815 (license license:lgpl2.1)))
1817 (define-public ocaml-lwt-react
1820 (name "ocaml-lwt-react")
1825 (url "https://github.com/ocsigen/lwt")
1826 ;; Version from opam
1828 (file-name (git-file-name name version))
1831 "0f7036srqz7zmnz0n164734smgkrqz78r1i35cg30x31kkr3pnn4"))))
1833 `(#:package "lwt_react"))
1834 (properties `((upstream-name . "lwt_react")))
1836 `(("ocaml-lwt" ,ocaml-lwt)
1837 ("ocaml-react" ,ocaml-react)))))
1839 (define-public ocaml-lwt-log
1841 (name "ocaml-lwt-log")
1846 (url "https://github.com/aantron/lwt_log")
1848 (file-name (git-file-name name version))
1851 "1n12i1rmn9cjn6p8yr6qn5dwbrwvym7ckr7bla04a1xnq8qlcyj7"))))
1852 (build-system dune-build-system)
1854 `(#:tests? #f; require lwt_ppx
1857 `(("lwt" ,ocaml-lwt)))
1858 (properties `((upstream-name . "lwt_log")))
1859 (home-page "https://github.com/aantron/lwt_log")
1860 (synopsis "Logging library")
1861 (description "This package provides a deprecated logging component for
1863 (license license:lgpl2.1)))
1865 (define-public ocaml-logs
1871 (uri (string-append "http://erratique.ch/software/logs/releases/"
1872 "logs-" version ".tbz"))
1875 "1khbn7jqpid83zn8rvyh1x1sirls7zc878zj4fz985m5xlsfy853"))))
1876 (build-system ocaml-build-system)
1879 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1881 (modify-phases %standard-phases
1882 (delete 'configure))))
1884 `(("ocamlbuild" ,ocamlbuild)
1887 `(("fmt" ,ocaml-fmt)
1889 ("mtime" ,ocaml-mtime)
1890 ("result" ,ocaml-result)
1891 ("cmdliner" ,ocaml-cmdliner)
1892 ("topkg" ,ocaml-topkg)))
1893 (home-page "http://erratique.ch/software/logs")
1894 (synopsis "Logging infrastructure for OCaml")
1895 (description "Logs provides a logging infrastructure for OCaml. Logging is
1896 performed on sources whose reporting level can be set independently. Log
1897 message report is decoupled from logging and is handled by a reporter.")
1898 (license license:isc)))
1900 (define-public ocaml-fpath
1902 (name "ocaml-fpath")
1906 (uri (string-append "http://erratique.ch/software/fpath/releases/"
1907 "fpath-" version ".tbz"))
1910 "1hr05d8bpqmqcfdavn4rjk9rxr7v2zl84866f5knjifrm60sxqic"))))
1911 (build-system ocaml-build-system)
1914 #:build-flags (list "build")
1916 (modify-phases %standard-phases
1917 (delete 'configure))))
1919 `(("ocamlbuild" ,ocamlbuild)
1922 `(("topkg" ,ocaml-topkg)
1923 ("astring" ,ocaml-astring)))
1924 (home-page "http://erratique.ch/software/fpath")
1925 (synopsis "File system paths for OCaml")
1926 (description "Fpath is an OCaml module for handling file system paths with
1927 POSIX or Windows conventions. Fpath processes paths without accessing the
1928 file system and is independent from any system library.")
1929 (license license:isc)))
1931 (define-public ocaml-bos
1937 (uri (string-append "http://erratique.ch/software/bos/releases/"
1938 "bos-" version ".tbz"))
1941 "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"))))
1942 (build-system ocaml-build-system)
1945 #:build-flags (list "build")
1947 (modify-phases %standard-phases
1948 (delete 'configure))))
1950 `(("ocamlbuild" ,ocamlbuild)
1953 `(("topkg" ,ocaml-topkg)
1954 ("astring" ,ocaml-astring)
1956 ("fpath" ,ocaml-fpath)
1957 ("logs" ,ocaml-logs)
1958 ("rresult" ,ocaml-rresult)))
1959 (home-page "http://erratique.ch/software/bos")
1960 (synopsis "Basic OS interaction for OCaml")
1961 (description "Bos provides support for basic and robust interaction with
1962 the operating system in OCaml. It has functions to access the process
1963 environment, parse command line arguments, interact with the file system and
1964 run command line programs.")
1965 (license license:isc)))
1967 (define-public ocaml-xmlm
1973 (uri (string-append "http://erratique.ch/software/xmlm/releases/"
1974 "xmlm-" version ".tbz"))
1977 "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n"))))
1978 (build-system ocaml-build-system)
1981 #:build-flags (list "build")
1983 (modify-phases %standard-phases
1984 (delete 'configure))))
1986 `(("ocamlbuild" ,ocamlbuild)
1987 ("ocaml-topkg" ,ocaml-topkg)
1989 (home-page "http://erratique.ch/software/xmlm")
1990 (synopsis "Streaming XML codec for OCaml")
1991 (description "Xmlm is a streaming codec to decode and encode the XML data
1992 format. It can process XML documents without a complete in-memory
1993 representation of the data.")
1994 (license license:isc)))
1996 (define-public ocaml4.07-gen
1998 (name "ocaml4.07-gen")
2003 (url "https://github.com/c-cube/gen")
2005 (file-name (git-file-name name version))
2008 "1h9g508rnj2j8va5nvhamzscp954vrkh0hdf4pn3d10pcfyslfg2"))))
2009 (build-system dune-build-system)
2011 `(#:tests? #f; no tests
2014 #:findlib ,ocaml4.07-findlib))
2016 `(("ocaml-odoc" ,ocaml4.07-odoc)))
2018 `(("ocaml-qtest" ,(package-with-ocaml4.07 ocaml-qtest))
2019 ("ocaml-qcheck" ,(package-with-ocaml4.07 ocaml-qcheck))))
2020 (home-page "https://github.com/c-cube/gen/")
2021 (synopsis "Iterators for OCaml, both restartable and consumable")
2022 (description "Gen implements iterators of OCaml, that are both restartable
2024 (license license:bsd-2)))
2026 (define-public ocaml4.07-sedlex
2028 (name "ocaml4.07-sedlex")
2033 (url "https://github.com/ocaml-community/sedlex")
2034 (commit (string-append "v" version))))
2035 (file-name (git-file-name name version))
2038 "05f6qa8x3vhpdz1fcnpqk37fpnyyq13icqsk2gww5idjnh6kng26"))))
2039 (build-system dune-build-system)
2041 `(#:tests? #f; no tests
2044 (modify-phases %standard-phases
2045 (add-before 'build 'copy-resources
2046 (lambda* (#:key inputs #:allow-other-keys)
2047 (with-directory-excursion "src/generator/data"
2050 (copy-file (assoc-ref inputs file) file))
2051 '("DerivedCoreProperties.txt" "DerivedGeneralCategory.txt"
2054 (add-before 'build 'chmod
2056 (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*"))
2059 #:findlib ,ocaml4.07-findlib))
2061 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
2063 `(("ocaml-gen" ,ocaml4.07-gen)
2064 ("ocaml-ppx-tools-versioned"
2065 ,(package-with-ocaml4.07 ocaml-ppx-tools-versioned))
2066 ("ocaml-uchar" ,(package-with-ocaml4.07 ocaml-uchar))))
2067 ;; These three files are needed by src/generator/data/dune, but would be
2068 ;; downloaded using curl at build time.
2070 `(("DerivedCoreProperties.txt"
2073 (uri "https://www.unicode.org/Public/12.1.0/ucd/DerivedCoreProperties.txt")
2076 "0s6sn1yr9qmb2i6gf8dir2zpsbjv1frdfzy3i2yjylzvf637msx6"))))
2077 ("DerivedGeneralCategory.txt"
2080 (uri "https://www.unicode.org/Public/12.1.0/ucd/extracted/DerivedGeneralCategory.txt")
2083 "1rifzq9ba6c58dn0lrmcb5l5k4ksx3zsdkira3m5p6h4i2wriy3q"))))
2087 (uri "https://www.unicode.org/Public/12.1.0/ucd/PropList.txt")
2090 "0gsb1jpj3mnqbjgbavi4l95gl6g4agq58j82km22fdfg63j3w3fk"))))))
2091 (home-page "http://www.cduce.org/download.html#side")
2092 (synopsis "Lexer generator for Unicode and OCaml")
2093 (description "Lexer generator for Unicode and OCaml.")
2094 (license license:expat)))
2096 (define-public ocaml-uchar
2098 (name "ocaml-uchar")
2103 (uri (string-append "https://github.com/ocaml/uchar/releases/download/v"
2104 version "/uchar-" version ".tbz"))
2106 "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"))))
2107 (build-system ocaml-build-system)
2110 #:build-flags (list "native=true" "native-dynlink=true")
2112 (modify-phases %standard-phases
2113 (delete 'configure))))
2115 `(("ocamlbuild" ,ocamlbuild)
2117 (home-page "https://github.com/ocaml/uchar")
2118 (synopsis "Compatibility library for OCaml's Uchar module")
2119 (description "The uchar package provides a compatibility library for the
2120 `Uchar` module introduced in OCaml 4.03.")
2121 (license license:lgpl2.1)))
2123 (define-public ocaml-uutf
2129 (uri (string-append "http://erratique.ch/software/uutf/releases/"
2130 "uutf-" version ".tbz"))
2133 "1gp96dcggq7s84934vimxh89caaxa77lqiff1yywbwkilkkjcfqj"))))
2134 (build-system ocaml-build-system)
2137 #:build-flags (list "build")
2139 (modify-phases %standard-phases
2140 (delete 'configure))))
2142 `(("ocamlbuild" ,ocamlbuild)
2144 ("topkg" ,ocaml-topkg)))
2146 `(("uchar" ,ocaml-uchar)
2147 ("cmdliner" ,ocaml-cmdliner)))
2148 (home-page "http://erratique.ch/software/uutf")
2149 (synopsis "Non-blocking streaming Unicode codec for OCaml")
2150 (description "Uutf is a non-blocking streaming codec to decode and encode
2151 the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
2152 work character by character without blocking on IO. Decoders perform character
2153 position tracking and support newline normalization.
2155 Functions are also provided to fold over the characters of UTF encoded OCaml
2156 string values and to directly encode characters in OCaml Buffer.t values.")
2157 (license license:isc)))
2159 (define-public ocaml-jsonm
2161 (name "ocaml-jsonm")
2165 (uri (string-append "http://erratique.ch/software/jsonm/releases/"
2166 "jsonm-" version ".tbz"))
2169 "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w"))))
2170 (build-system ocaml-build-system)
2173 #:build-flags (list "build")
2175 (modify-phases %standard-phases
2176 (delete 'configure))))
2178 `(("ocamlbuild" ,ocamlbuild)
2180 ("topkg" ,ocaml-topkg)))
2182 `(("uutf" ,ocaml-uutf)
2183 ("cmdliner" ,ocaml-cmdliner)))
2184 (home-page "http://erratique.ch/software/jsonm")
2185 (synopsis "Non-blocking streaming JSON codec for OCaml")
2186 (description "Jsonm is a non-blocking streaming codec to decode and encode
2187 the JSON data format. It can process JSON text without blocking on IO and
2188 without a complete in-memory representation of the data.")
2189 (license license:isc)))
2191 (define-public ocaml-ocurl
2193 (name "ocaml-ocurl")
2197 (uri (string-append "http://ygrek.org.ua/p/release/ocurl/ocurl-"
2201 "1ax3xdlzgb1zg7d0wr9nwgmh6a45a764m0wk8p6mx07ad94hz0q9"))))
2202 (build-system ocaml-build-system)
2205 (modify-phases %standard-phases
2206 (add-before 'configure 'fix-/bin/sh
2207 (lambda* (#:key inputs #:allow-other-keys)
2208 (substitute* "configure"
2209 (("-/bin/sh") (string-append "-" (which "bash")))))))))
2211 `(("pkg-config" ,pkg-config)))
2212 (inputs `(("curl" ,curl)))
2213 (home-page "http://ocurl.forge.ocamlcore.org/")
2214 (synopsis "OCaml bindings for libcurl")
2215 (description "Client-side URL transfer library, supporting HTTP and a
2216 multitude of other network protocols (FTP/SMTP/RTSP/etc).")
2217 (license license:isc)))
2219 (define-public ocaml-base64
2221 (name "ocaml-base64")
2226 (url "https://github.com/mirage/ocaml-base64")
2227 (commit (string-append "v" version))))
2228 (file-name (git-file-name name version))
2231 "1ilw3zj0w6cq7i4pvr8m2kv5l5f2y9aldmv72drlwwns013b1gwy"))))
2232 (build-system dune-build-system)
2234 `(("ocaml-alcotest" ,ocaml-alcotest)
2235 ("ocaml-bos" ,ocaml-bos)
2236 ("ocaml-rresult" ,ocaml-rresult)))
2237 (home-page "https://github.com/mirage/ocaml-base64")
2238 (synopsis "Base64 encoding for OCaml")
2239 (description "Base64 is a group of similar binary-to-text encoding schemes
2240 that represent binary data in an ASCII string format by translating it into a
2241 radix-64 representation. It is specified in RFC 4648.")
2242 (license license:isc)))
2244 (define-public ocamlify
2250 (uri "https://download.ocamlcore.org/ocamlify/ocamlify/0.0.1/ocamlify-0.0.1.tar.gz")
2253 "1j9nb3vjqbdsx3d6jazixgrh776051zkrc06nsc5q5ilp1jhrwkm"))))
2254 (build-system ocaml-build-system)
2255 ; tests are done during build
2258 (modify-phases %standard-phases
2261 (lambda* (#:key outputs #:allow-other-keys)
2262 (invoke "ocaml" "setup.ml" "-configure" "--prefix"
2263 (assoc-ref outputs "out")))))))
2265 `(("ocamlbuild" ,ocamlbuild)))
2266 (home-page "https://forge.ocamlcore.org/projects/ocamlify")
2267 (synopsis "Include files in OCaml code")
2268 (description "OCamlify allows to create OCaml source code by including
2269 whole files into OCaml string or string list. The code generated can be
2270 compiled as a standard OCaml file. It allows embedding external resources as
2272 (license license:lgpl2.1+))); with the OCaml static compilation exception
2274 (define-public omake
2280 (uri (string-append "http://download.camlcity.org/download/"
2281 "omake-" version ".tar.gz"))
2284 "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz"))
2285 (patches (search-patches "omake-fix-non-determinism.patch"))))
2286 (build-system ocaml-build-system)
2289 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2290 #:tests? #f ; no test target
2292 (modify-phases %standard-phases
2293 (add-before 'configure 'fix-makefile
2294 (lambda* (#:key outputs #:allow-other-keys)
2295 (substitute* "mk/osconfig_unix.mk"
2296 (("CC = cc") "CC = gcc")))))))
2297 (native-inputs `(("hevea" ,hevea)))
2298 (home-page "http://projects.camlcity.org/projects/omake.html")
2299 (synopsis "Build system designed for scalability and portability")
2300 (description "Similar to make utilities you may have used, but it features
2301 many additional enhancements, including:
2304 @item Support for projects spanning several directories or directory hierarchies.
2305 @item Fast, reliable, automated, scriptable dependency analysis using MD5 digests,
2306 with full support for incremental builds.
2307 @item Dependency analysis takes the command lines into account — whenever the
2308 command line used to build a target changes, the target is considered
2310 @item Fully scriptable, includes a library that providing support for standard
2311 tasks in C, C++, OCaml, and LaTeX projects, or a mixture thereof.
2313 (license (list license:lgpl2.1 ; libmojave
2314 license:expat ; OMake scripts
2315 license:gpl2)))) ; OMake itself, with ocaml linking exception
2318 (define-public ocaml-batteries
2320 (name "ocaml-batteries")
2324 (uri (string-append "https://github.com/ocaml-batteries-team/"
2325 "batteries-included/releases/download/v"
2326 version "/batteries-" version ".tar.gz"))
2329 "08ghw87d56h1a6y1nnh3x2wy9xj25jqfk5sp6ma9nsyd37babb0h"))))
2330 (build-system ocaml-build-system)
2332 `(("ocamlbuild" ,ocamlbuild)
2333 ("qtest" ,ocaml-qtest)))
2335 `(("ocaml-num" ,ocaml-num)))
2338 (modify-phases %standard-phases
2339 (delete 'check) ; tests are run by the build phase
2340 (add-before 'build 'fix-nondeterminism
2342 (substitute* "setup.ml"
2343 (("Sys.readdir dirname")
2344 "let a = Sys.readdir dirname in Array.sort String.compare a; a"))
2347 (lambda* (#:key inputs outputs #:allow-other-keys)
2350 (substring str 0 (- (string-length str) 1)))
2352 (find-files "src" ".*.mliv")
2353 (find-files "src" ".*.mlv")
2354 (find-files "src" ".*.mlp")))))
2355 (apply invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2356 "-lflag" "-dllpath-all" files)
2357 (for-each (lambda (file)
2358 (copy-file (string-append "_build/" file) file))
2360 (invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2361 "-lflag" "-dllpath-all" "build/mkconf.byte")
2362 (copy-file "_build/build/mkconf.byte" "build/mkconf.byte")
2363 (invoke "make" "all")
2365 (home-page "http://batteries.forge.ocamlcore.org/")
2366 (synopsis "Development platform for the OCaml programming language")
2367 (description "Define a standard set of libraries which may be expected on
2368 every compliant installation of OCaml and organize these libraries into a
2369 hierarchy of modules.")
2370 (license license:lgpl2.1+)))
2372 (define-public ocaml4.07-pcre
2374 (name "ocaml4.07-pcre")
2379 (url "https://github.com/mmottl/pcre-ocaml")
2381 (file-name (git-file-name name version))
2384 "11sd8g668h48790lamz0riw9jgnfkaif5qdfa0akcndwa6aj07jf"))))
2385 (build-system dune-build-system)
2389 #:findlib ,ocaml4.07-findlib
2390 #:dune ,ocaml4.07-dune))
2392 `(("ocaml-base" ,ocaml4.07-base)
2393 ("pcre:bin" ,pcre "bin")))
2394 (propagated-inputs `(("pcre" ,pcre)))
2395 (home-page "https://mmottl.github.io/pcre-ocaml")
2396 (synopsis "Bindings to the Perl Compatibility Regular Expressions library")
2397 (description "Pcre-ocaml offers library functions for string pattern
2398 matching and substitution, similar to the functionality offered by the Perl
2400 (license license:lgpl2.1+))); with the OCaml link exception
2402 (define-public ocaml4.07-expect
2404 (name "ocaml4.07-expect")
2408 (uri (ocaml-forge-uri name version 1736))
2411 "098qvg9d4yrqzr5ax291y3whrpax0m3sx4gi6is0mblc96r9yqk0"))))
2415 #:findlib ,ocaml4.07-findlib))
2416 (build-system ocaml-build-system)
2418 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))
2419 ("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
2420 ("ocaml-pcre" ,ocaml4.07-pcre)
2421 ("ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
2423 `(("batteries" ,(package-with-ocaml4.07 ocaml-batteries))))
2424 (home-page "https://forge.ocamlcore.org/projects/ocaml-expect/")
2425 (synopsis "Simple implementation of expect")
2426 (description "Help building unitary testing of interactive program. You
2427 can match the question using a regular expression or a timeout.")
2428 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2430 (define-public ocaml-stdlib-shims
2432 (name "ocaml-stdlib-shims")
2437 (url "https://github.com/ocaml/stdlib-shims")
2439 (file-name (git-file-name name version))
2442 "007dwywsr5285z0np6a9nr0h8iqmyzfrlx6s5xaqcwj69zabsrjm"))))
2443 (build-system dune-build-system)
2444 (home-page "https://github.com/ocaml/stdlib-shims")
2445 (synopsis "OCaml stdlib features backport to older OCaml compilers")
2446 (description "This package backports some of the new stdlib features to
2447 older compilers, such as the Stdlib module. This allows projects that require
2448 compatibility with older compiler to use these new features in their code.")
2449 ;; with ocaml-linking exception
2450 (license license:lgpl2.1+)))
2452 (define-public ocaml-fileutils
2454 (name "ocaml-fileutils")
2459 (url "https://github.com/gildor478/ocaml-fileutils")
2460 (commit (string-append "v" version))))
2461 (file-name (git-file-name name version))
2464 "06gxbqfssl16xc8y4d34wpm0mwfr0jgph4lmlwfmgazyggnmvc7m"))))
2465 (build-system ocaml-build-system)
2468 (modify-phases %standard-phases
2469 (add-before 'configure 'set-topfind
2470 (lambda* (#:key inputs #:allow-other-keys)
2471 ;; add the line #directory ".." at the top of each file
2472 ;; using #use "topfind";; to be able to find topfind
2473 (let* ((findlib-path (assoc-ref inputs "findlib"))
2475 (string-append findlib-path "/lib/ocaml/site-lib")))
2476 (substitute* "setup.ml"
2477 (("#use \"topfind\";;" all)
2478 (string-append "#directory \"" findlib-libdir "\"\n"
2482 `(("ocaml-stdlib-shims" ,ocaml-stdlib-shims)))
2484 `(("ocamlbuild" ,ocamlbuild)
2485 ("ocaml-oasis" ,ocaml-oasis)
2486 ("ocaml-ounit" ,ocaml-ounit)))
2487 (home-page "http://ocaml-fileutils.forge.ocamlcore.org")
2488 (synopsis "Pure OCaml functions to manipulate real file and filename")
2489 (description "Library to provide pure OCaml functions to manipulate real
2490 file (POSIX like) and filename.")
2491 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2493 (define-public ocaml-oasis
2495 (name "ocaml-oasis")
2499 (uri (ocaml-forge-uri name version 1757))
2502 "0bn13mzfa98dq3y0jwzzndl55mnywaxv693z6f1rlvpdykp3vdqq"))
2503 (modules '((guix build utils)))
2506 (substitute* "test/test-main/Test.ml"
2507 ;; most of these tests fail because ld cannot find crti.o, but according
2508 ;; to the log file, the environment variables {LD_,}LIBRARY_PATH
2509 ;; are set correctly when LD_LIBRARY_PATH is defined beforhand.
2510 (("TestBaseCompat.tests;") "")
2511 (("TestExamples.tests;") "")
2512 (("TestFull.tests;") "")
2513 (("TestPluginDevFiles.tests;") "")
2514 (("TestPluginInternal.tests;") "")
2515 (("TestPluginOCamlbuild.tests;") "")
2516 (("TestPluginOMake.tests;") ""))
2518 (build-system ocaml-build-system)
2522 `(("ocamlbuild" ,ocamlbuild)
2523 ("ocamlify" ,ocamlify)
2524 ("ocamlmod" ,ocamlmod)))
2525 (home-page "https://oasis.forge.ocamlcore.org")
2526 (synopsis "Integrates a configure, build, install system in OCaml projects")
2527 (description "OASIS is a tool to integrate a configure, build and install
2528 system in your OCaml projects. It helps to create standard entry points in your
2529 build system and allows external tools to analyse your project easily.")
2530 (license license:lgpl2.1+))) ; with ocaml static compilation exception
2532 (define-public ocaml-js-build-tools
2534 (name "ocaml-js-build-tools")
2535 (version "113.33.06")
2536 (source (janestreet-origin "js-build-tools" version
2537 "0r8z4fz8iy5y6hkdlkpwf6rk4qigcr3dzyv35585xgg2ahf12zy6"))
2539 `(("oasis" ,ocaml-oasis)
2540 ("ocamlbuild" ,ocamlbuild)
2542 (build-system ocaml-build-system)
2543 (arguments janestreet-arguments)
2544 (home-page "https://github.com/janestreet/js-build-tools")
2545 (synopsis "Collection of tools to help building Jane Street Packages")
2546 (description "This package contains tools to help building Jane Street
2547 packages, but can be used for other purposes. It contains:
2549 @item an @command{oasis2opam-install} tool to produce a @file{.install} file
2550 from the oasis build log
2551 @item a @code{js_build_tools} ocamlbuild plugin with various goodies.
2553 (license license:asl2.0)))
2555 (define-public ocaml-cppo
2563 (url "https://github.com/mjambon/cppo")
2564 (commit (string-append "v" version))))
2565 (file-name (git-file-name name version))
2567 "1smcc0l6fh2n0y6bp96c69j5nw755jja99w0b206wx3yb2m4w2hs"))))
2568 (build-system dune-build-system)
2571 #:build-flags (list "--profile" "release")))
2573 `(("ocamlbuild" ,ocamlbuild)))
2574 (home-page "https://github.com/mjambon/cppo")
2575 (synopsis "Equivalent of the C preprocessor for OCaml programs")
2576 (description "Cppo is an equivalent of the C preprocessor for OCaml
2577 programs. It allows the definition of simple macros and file inclusion. Cpp ois:
2579 @item more OCaml-friendly than cpp
2580 @item easy to learn without consulting a manual
2581 @item reasonably fast
2582 @item simple to install and to maintain.
2584 (license license:bsd-3)))
2586 (define-public ocaml-seq
2594 (url "https://github.com/c-cube/seq.git")
2596 (file-name (git-file-name name version))
2598 (base32 "1cjpsc7q76yfgq9iyvswxgic4kfq2vcqdlmxjdjgd4lx87zvcwrv"))))
2599 (build-system ocaml-build-system)
2603 (modify-phases %standard-phases
2607 (lambda* (#:key outputs #:allow-other-keys)
2608 (let ((install-dir (string-append (assoc-ref outputs "out")
2609 "/lib/ocaml/site-lib/seq")))
2610 (mkdir-p install-dir)
2611 (with-output-to-file (string-append install-dir "/META")
2613 (display "name=\"seq\"
2614 version=\"[distributed with ocaml]\"
2615 description=\"dummy package for compatibility\"
2618 (home-page "https://github.com/c-cube/seq")
2619 (synopsis "OCaml's standard iterator type")
2620 (description "This package is a compatibility package for OCaml's
2621 standard iterator type starting from 4.07.")
2622 (license license:lgpl2.1+)))
2624 (define-public ocaml-re
2632 (url "https://github.com/ocaml/ocaml-re.git")
2634 (file-name (git-file-name name version))
2636 (base32 "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss"))))
2637 (build-system dune-build-system)
2640 #:build-flags (list "--profile" "release")))
2642 `(("ocaml-seq" ,ocaml-seq)))
2644 `(("ounit" ,ocaml-ounit)))
2645 (home-page "https://github.com/ocaml/ocaml-re/")
2646 (synopsis "Regular expression library for OCaml")
2647 (description "Pure OCaml regular expressions with:
2649 @item Perl-style regular expressions (module Re_perl)
2650 @item Posix extended regular expressions (module Re_posix)
2651 @item Emacs-style regular expressions (module Re_emacs)
2652 @item Shell-style file globbing (module Re_glob)
2653 @item Compatibility layer for OCaml's built-in Str module (module Re_str)
2655 (license license:expat)))
2657 (define-public ocaml-ocplib-endian
2659 (name "ocaml-ocplib-endian")
2664 (url "https://github.com/OCamlPro/ocplib-endian/")
2668 "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw"))
2669 (file-name (git-file-name name version))))
2670 (build-system ocaml-build-system)
2672 `(("cppo" ,ocaml-cppo)
2673 ("ocamlbuild" ,ocamlbuild)))
2674 (home-page "https://github.com/OCamlPro/ocplib-endian")
2675 (synopsis "Optimised functions to read and write int16/32/64 from strings
2677 (description "Optimised functions to read and write int16/32/64 from strings
2678 and bigarrays, based on new primitives added in version 4.01. It works on
2679 strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
2680 big- and little-endian, with their unsafe counter-parts.")
2681 (license license:lgpl2.1)))
2683 (define-public ocaml-cstruct
2685 (name "ocaml-cstruct")
2690 (url "https://github.com/mirage/ocaml-cstruct")
2691 (commit (string-append "v" version))))
2692 (file-name (git-file-name name version))
2695 "0m4bz0digcsc8l2msfikwcbi1y371kccx6xnkwrz212mf5mp98bv"))))
2696 (build-system dune-build-system)
2698 `(#:package "cstruct"
2701 `(("ocaml-alcotest" ,ocaml-alcotest)))
2702 (home-page "https://github.com/mirage/ocaml-cstruct")
2703 (synopsis "Access C structures via a camlp4 extension")
2704 (description "Cstruct is a library and syntax extension to make it easier
2705 to access C-like structures directly from OCaml. It supports both reading and
2706 writing to these structures, and they are accessed via the Bigarray module.")
2707 (license license:isc)))
2709 (define-public ocaml-hex
2716 (url "https://github.com/mirage/ocaml-hex")
2717 (commit (string-append "v" version))))
2718 (file-name (git-file-name name version))
2721 "0c8nhibcwy0ykzca4jn3gqb8ylq21ff88y82gl60wyzijr64rn0q"))))
2722 (build-system dune-build-system)
2724 `(#:test-target "."))
2726 `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat)
2727 ("cstruct" ,ocaml-cstruct)))
2728 (home-page "https://github.com/mirage/ocaml-hex/")
2729 (synopsis "Minimal library providing hexadecimal converters")
2730 (description "Hex is a minimal library providing hexadecimal converters.")
2731 (license license:isc)))
2733 (define-public ocaml4.07-ezjsonm
2735 (name "ocaml4.07-ezjsonm")
2741 (url "https://github.com/mirage/ezjsonm.git")
2742 (commit (string-append "v" version))))
2743 (file-name (git-file-name name version))
2745 (base32 "064j9pzy01p3dv947khqyn7fkjbs3jmrqsg8limb4abnlaqxxs2s"))))
2746 (build-system dune-build-system)
2748 `(#:package "ezjsonm"
2751 #:findlib ,ocaml4.07-findlib))
2753 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))))
2755 `(("ocaml-hex" ,(package-with-ocaml4.07 ocaml-hex))
2756 ("ocaml-jsonm" ,(package-with-ocaml4.07 ocaml-jsonm))
2757 ("ocaml-sexplib" ,ocaml4.07-sexplib)))
2758 (home-page "https://github.com/mirage/ezjsonm/")
2759 (synopsis "Read and write JSON data")
2760 (description "Ezjsonm provides more convenient (but far less flexible) input
2761 and output functions that go to and from [string] values than jsonm. This avoids
2762 the need to write signal code, which is useful for quick scripts that manipulate
2764 (license license:isc)))
2766 (define-public ocaml4.07-uri
2768 (name "ocaml4.07-uri")
2774 (url "https://github.com/mirage/ocaml-uri.git")
2775 (commit (string-append "v" version))))
2776 (file-name (git-file-name name version))
2778 (base32 "1ppbav41mszpjcl0zi3fyg958cxyfs57i7kvha4ds9ydn89bjmrh"))))
2779 (build-system dune-build-system)
2783 (modify-phases %standard-phases
2784 (add-before 'build 'update-deprecated
2786 (substitute* "lib/uri.ml"
2787 (("Re.get") "Re.Group.get")))))
2789 #:findlib ,ocaml4.07-findlib))
2791 `(("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))
2792 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)))
2794 `(("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
2795 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
2796 ("ocaml-stringext" ,(package-with-ocaml4.07 ocaml-stringext))))
2797 (home-page "https://github.com/mirage/ocaml-uri")
2798 (synopsis "RFC3986 URI/URL parsing library")
2799 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.")
2800 (license license:isc)))
2802 (define-public ocaml-easy-format
2804 (name "ocaml-easy-format")
2809 (url "https://github.com/mjambon/easy-format")
2811 (file-name (git-file-name name version))
2814 "1fc95q2ypck6m6rv3kiawwilh5ac93v2hcp823mj608d5kj79xkb"))))
2815 (build-system dune-build-system)
2819 (modify-phases %standard-phases
2820 (add-before 'build 'make-writable
2825 (find-files "." "."))
2827 (home-page "https://github.com/mjambon/easy-format")
2828 (synopsis "Interface to the Format module")
2829 (description "Easy-format is a high-level and functional interface to the
2830 Format module of the OCaml standard library.")
2831 (license license:bsd-3)))
2833 (define-public ocaml4.07-piqilib
2835 (name "ocaml4.07-piqilib")
2841 (url "https://github.com/alavrik/piqi.git")
2842 (commit (string-append "v" version))))
2843 (file-name (git-file-name name version))
2845 (base32 "0v04hs85xv6d4ysqxyv1dik34dx49yab9shpi4x7iv19qlzl7csb"))))
2846 (build-system ocaml-build-system)
2849 (modify-phases %standard-phases
2850 (add-before 'configure 'fix-ocamlpath
2852 (substitute* '("Makefile" "make/Makefile.ocaml")
2853 (("OCAMLPATH := ") "OCAMLPATH := $(OCAMLPATH):"))
2856 (lambda* (#:key outputs #:allow-other-keys)
2857 (let ((out (assoc-ref outputs "out")))
2858 (substitute* "make/OCamlMakefile"
2859 (("/bin/sh") (which "bash")))
2860 (invoke "./configure" "--prefix" out "--ocaml-libdir"
2861 (string-append out "/lib/ocaml/site-lib")))
2863 (add-after 'build 'build-ocaml
2864 (lambda* (#:key outputs #:allow-other-keys)
2865 (invoke "make" "ocaml")
2867 (add-after 'install 'install-ocaml
2868 (lambda* (#:key outputs #:allow-other-keys)
2869 (invoke "make" "ocaml-install")
2871 (add-after 'install-ocaml 'link-stubs
2872 (lambda* (#:key outputs #:allow-other-keys)
2873 (let* ((out (assoc-ref outputs "out"))
2874 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
2875 (lib (string-append out "/lib/ocaml/site-lib/piqilib")))
2877 (symlink (string-append lib "/dllpiqilib_stubs.so")
2878 (string-append stubs "/dllpiqilib_stubs.so"))
2881 #:findlib ,ocaml4.07-findlib))
2883 `(("which" ,which)))
2885 `(("ocaml-xmlm" ,(package-with-ocaml4.07 ocaml-xmlm))
2886 ("ocaml-sedlex" ,ocaml4.07-sedlex)
2887 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))
2888 ("ocaml-base64" ,(package-with-ocaml4.07 ocaml-base64))))
2889 (home-page "http://piqi.org")
2890 (synopsis "Data serialization and conversion library")
2891 (description "Piqilib is the common library used by the piqi command-line
2892 tool and piqi-ocaml.")
2893 (license license:asl2.0)))
2895 (define-public ocaml-uuidm
2897 (name "ocaml-uuidm")
2901 (uri (string-append "http://erratique.ch/software/uuidm/"
2902 "releases/uuidm-" version ".tbz"))
2905 "0hz4fdx0x16k0pw9995vkz5d1hmzz6b16wck9li399rcbfnv5jlc"))))
2906 (build-system ocaml-build-system)
2909 (list "build" "--tests" "true" "--with-cmdliner" "true")
2911 (modify-phases %standard-phases
2912 (delete 'configure))))
2914 `(("ocamlbuild" ,ocamlbuild)
2917 `(("cmdliner" ,ocaml-cmdliner)
2918 ("topkg" ,ocaml-topkg)))
2919 (home-page "http://erratique.ch/software/uuidm")
2920 (synopsis "Universally unique identifiers for OCaml")
2921 (description "Uuidm is an OCaml module implementing 128 bits universally
2922 unique identifiers (UUIDs) version 3, 5 (named based with MD5, SHA-1 hashing)
2923 and 4 (random based) according to RFC 4122.")
2924 (license license:isc)))
2926 (define-public ocaml-graph
2928 (name "ocaml-graph")
2932 (uri (string-append "http://ocamlgraph.lri.fr/download/"
2933 "ocamlgraph-" version ".tar.gz"))
2936 "0m9g16wrrr86gw4fz2fazrh8nkqms0n863w7ndcvrmyafgxvxsnr"))))
2937 (build-system ocaml-build-system)
2939 `(#:install-target "install-findlib"
2942 (modify-phases %standard-phases
2943 (add-before 'configure 'set-shell
2944 (lambda* (#:key inputs #:allow-other-keys)
2945 (setenv "CONFIG_SHELL" (string-append (assoc-ref inputs "bash")
2947 (inputs `(("lablgtk" ,lablgtk)))
2948 (properties `((upstream-name . "ocamlgraph")))
2949 (home-page "http://ocamlgraph.lri.fr/")
2950 (synopsis "Graph library for OCaml")
2951 (description "OCamlgraph is a generic graph library for OCaml.")
2952 (license license:lgpl2.1)))
2954 (define-public ocaml4.07-piqi
2956 (name "ocaml4.07-piqi")
2960 (uri (string-append "https://github.com/alavrik/piqi-ocaml/"
2961 "archive/v" version ".tar.gz"))
2962 (file-name (string-append name "-" version ".tar.gz"))
2965 "1l0b4saxmwqgw9mb10mwrz31lvpj3l0abh3cwarqp0x4vdrzshbh"))))
2966 (build-system ocaml-build-system)
2969 (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
2970 (string-append "SHELL=" (assoc-ref %build-inputs "bash")
2973 (modify-phases %standard-phases
2974 (delete 'configure))
2976 #:findlib ,ocaml4.07-findlib))
2979 ("protobuf" ,protobuf))) ; for tests
2981 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
2982 ("ocaml-piqilib" ,ocaml4.07-piqilib)
2983 ("ocaml-stdlib-shims" ,(package-with-ocaml4.07 ocaml-stdlib-shims))))
2984 (home-page "https://github.com/alavrik/piqi-ocaml")
2985 (synopsis "Protocol serialization system for OCaml")
2986 (description "Piqi is a multi-format data serialization system for OCaml.
2987 It provides a uniform interface for serializing OCaml data structures to JSON,
2988 XML and Protocol Buffers formats.")
2989 (license license:asl2.0)))
2995 (home-page "https://github.com/BinaryAnalysisPlatform/bap")
3000 (commit (string-append "v" version))))
3001 (file-name (git-file-name name version))
3004 "0ryf2xb37pj2f9mc3p5prqgqrylph9qgq7q9jnbx8b03nzzpa6h6"))))
3005 (build-system ocaml-build-system)
3007 `(("ocaml-oasis" ,(package-with-ocaml4.07 ocaml-oasis))
3008 ("clang" ,clang-3.8)
3009 ("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
3011 `(("camlzip" ,(package-with-ocaml4.07 camlzip))
3012 ("ocaml-bitstring" ,(package-with-ocaml4.07 ocaml-bitstring))
3013 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
3014 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
3015 ("ocaml-ezjsonm" ,ocaml4.07-ezjsonm)
3016 ("ocaml-fileutils" ,(package-with-ocaml4.07 ocaml-fileutils))
3017 ("ocaml-frontc" ,(package-with-ocaml4.07 ocaml-frontc))
3018 ("ocaml-graph" ,(package-with-ocaml4.07 ocaml-graph))
3019 ("ocaml-ocurl" ,(package-with-ocaml4.07 ocaml-ocurl))
3020 ("ocaml-piqi" ,ocaml4.07-piqi)
3021 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
3022 ("ocaml-uuidm" ,(package-with-ocaml4.07 ocaml-uuidm))
3023 ("ocaml-uri" ,ocaml4.07-uri)
3024 ("ocaml-zarith" ,(package-with-ocaml4.07 ocaml-zarith))))
3026 `(("llvm" ,llvm-3.8)
3031 (modify-phases %standard-phases
3033 (lambda* (#:key outputs inputs #:allow-other-keys)
3034 ;; add write for user, to prevent a failure in the install phase
3037 (let ((stat (stat file)))
3038 (chmod file (+ #o200 (stat:mode stat)))))
3039 (find-files "." "."))
3040 (invoke "./configure" "--prefix"
3041 (assoc-ref outputs "out")
3044 (assoc-ref outputs "out")
3045 "/lib/ocaml/site-lib")
3046 "--with-llvm-version=3.8"
3047 "--with-llvm-config=llvm-config"
3048 "--enable-everything"))))
3050 #:findlib ,ocaml4.07-findlib))
3051 (synopsis "Binary Analysis Platform")
3052 (description "Binary Analysis Platform is a framework for writing program
3053 analysis tools, that target binary files. The framework consists of a plethora
3054 of libraries, plugins, and frontends. The libraries provide code reusability,
3055 the plugins facilitate extensibility, and the frontends serve as entry points.")
3056 (license license:expat)))
3058 (define-public ocaml-camomile
3060 (name "ocaml-camomile")
3062 (home-page "https://github.com/yoriyuki/Camomile")
3065 (uri (string-append home-page "/releases/download/" version
3066 "/camomile-" version ".tbz"))
3069 "0chn7ldqb3wyf95yhmsxxq65cif56smgz1mhhc7m0dpwmyq1k97h"))))
3070 (build-system dune-build-system)
3072 `(#:build-flags (list "--profile" "release")
3073 #:test-target "camomile-test"
3074 #:tests? #f; Tests fail, see https://github.com/yoriyuki/Camomile/issues/82
3076 (modify-phases %standard-phases
3077 (add-before 'build 'fix-usr-share
3078 (lambda* (#:key outputs #:allow-other-keys)
3079 (substitute* '("Camomile/dune" "configure.ml")
3080 (("/usr/share") (string-append (assoc-ref outputs "out") "/share")))
3082 (synopsis "Comprehensive Unicode library")
3083 (description "Camomile is a Unicode library for OCaml. Camomile provides
3084 Unicode character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about
3085 200 encodings, collation and locale-sensitive case mappings, and more. The
3086 library is currently designed for Unicode Standard 3.2.")
3087 ;; with an exception for linked libraries to use a different license
3088 (license license:lgpl2.0+)))
3090 (define-public ocaml4.07-charinfo-width
3092 (name "ocaml4.07-charinfo-width")
3096 (uri (string-append "https://bitbucket.org/zandoye/charinfo_width"
3097 "/get/" version ".tar.gz"))
3098 (file-name (string-append name "-" version ".tar.gz"))
3101 "00bv4p1yqs8y0z4z07wd9w9yyv669dikp9b04dcjbwpiy2wy0086"))))
3102 (build-system dune-build-system)
3104 `(#:ocaml ,ocaml-4.07
3105 #:findlib ,ocaml4.07-findlib))
3107 `(("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
3108 ("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))))
3110 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
3112 `((upstream-name . "charInfo_width")))
3113 (home-page "https://bitbucket.org/zandoye/charinfo_width/")
3114 (synopsis "Determine column width for a character")
3115 (description "This module is implements purely in OCaml a character width
3116 function that follows the prototype of POSIX's wcwidth.")
3117 (license license:expat)))
3119 (define-public ocaml4.07-zed
3121 (name "ocaml4.07-zed")
3127 (url "https://github.com/diml/zed.git")
3129 (file-name (git-file-name name version))
3131 (base32 "0pa9awinqr0plp4b2az78dwpvh01pwaljnn5ydg8mc6hi7rmir55"))))
3132 (build-system dune-build-system)
3137 #:findlib ,ocaml4.07-findlib))
3139 `(("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3140 ("ocaml-charinfo-width" ,ocaml4.07-charinfo-width)
3141 ("ocaml-react" ,(package-with-ocaml4.07 ocaml-react))))
3142 (home-page "https://github.com/diml/zed")
3143 (synopsis "Abstract engine for text editing in OCaml")
3144 (description "Zed is an abstract engine for text edition. It can be used
3145 to write text editors, edition widgets, readlines, etc. You just have to
3146 connect an engine to your inputs and rendering functions to get an editor.")
3147 (license license:bsd-3)))
3149 (define-public ocaml4.07-lambda-term
3151 (name "ocaml4.07-lambda-term")
3157 (url "https://github.com/diml/lambda-term.git")
3159 (file-name (git-file-name name version))
3161 (base32 "0zcjy6fvf0d3i2ssz96asl889n3r6bplyzk7xvb2s3dkxbgcisyy"))))
3162 (build-system dune-build-system)
3164 `(#:build-flags (list "--profile" "release")
3167 #:findlib ,ocaml4.07-findlib))
3169 `(("ocaml-lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3170 ("ocaml-lwt-log" ,(package-with-ocaml4.07 ocaml-lwt-log))
3171 ("ocaml-lwt-react" ,(package-with-ocaml4.07 ocaml-lwt-react))
3172 ("ocaml-zed" ,ocaml4.07-zed)))
3174 `(("libev" ,libev)))
3175 (home-page "https://github.com/diml/lambda-term")
3176 (synopsis "Terminal manipulation library for OCaml")
3177 (description "Lambda-Term is a cross-platform library for manipulating the
3178 terminal. It provides an abstraction for keys, mouse events, colors, as well as
3179 a set of widgets to write curses-like applications. The main objective of
3180 Lambda-Term is to provide a higher level functional interface to terminal
3181 manipulation than, for example, ncurses, by providing a native OCaml interface
3182 instead of bindings to a C library.")
3183 (license license:bsd-3)))
3185 (define-public ocaml4.07-utop
3187 (name "ocaml4.07-utop")
3193 (url "https://github.com/ocaml-community/utop.git")
3195 (file-name (git-file-name name version))
3197 (base32 "1bl4943qpi3qy152dbdm5glhx19zsiylmn4rcxi8l66g58hikyjp"))))
3198 (build-system dune-build-system)
3203 #:findlib ,ocaml4.07-findlib))
3205 `(("cppo" ,(package-with-ocaml4.07 ocaml-cppo))))
3207 `(("lambda-term" ,ocaml4.07-lambda-term)
3208 ("lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3209 ("react" ,(package-with-ocaml4.07 ocaml-react))
3210 ("camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3211 ("zed" ,ocaml4.07-zed)))
3212 (home-page "https://github.com/ocaml-community/utop")
3213 (synopsis "Improved interface to the OCaml toplevel")
3214 (description "UTop is an improved toplevel for OCaml. It can run in a
3215 terminal or in Emacs. It supports line editing, history, real-time and context
3216 sensitive completion, colors, and more.")
3217 (license license:bsd-3)))
3219 (define-public ocaml-integers
3221 (name "ocaml-integers")
3223 (home-page "https://github.com/ocamllabs/ocaml-integers")
3226 (uri (string-append home-page
3227 "/releases/download/v0.2.2/integers-"
3229 (file-name (string-append name "-" version ".tbz"))
3232 "08b1ljw88ny3l0mdq6xmffjk8anfc77igryva5jz1p6f4f746ywk"))))
3233 (build-system ocaml-build-system)
3235 `(#:tests? #f; no tests
3236 #:build-flags (list "build")
3238 (modify-phases %standard-phases
3239 (delete 'configure))))
3241 `(("ocamlbuild" ,ocamlbuild)))
3243 `(("topkg" ,ocaml-topkg)
3245 (synopsis "Various signed and unsigned integer types for OCaml")
3246 (description "The ocaml-integers library provides a number of 8-, 16-, 32-
3247 and 64-bit signed and unsigned integer types, together with aliases such as
3248 long and size_t whose sizes depend on the host platform.")
3249 (license license:expat)))
3251 (define-public ocaml-ctypes
3253 (name "ocaml-ctypes")
3255 (home-page "https://github.com/ocamllabs/ocaml-ctypes")
3261 (file-name (git-file-name name version))
3264 "1b2q3h63ngf4x9qp65qwapf2dg9q0mcdah6qjm2q0c7v2p5vysv9"))))
3265 (build-system ocaml-build-system)
3267 `(#:tests? #f; require an old lwt
3269 (list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
3271 (modify-phases %standard-phases
3272 (add-after 'unpack 'make-writable
3276 (let ((stat (stat file)))
3277 (chmod file (+ #o200 (stat:mode stat)))))
3278 (find-files "." "."))
3280 (delete 'configure))))
3282 `(("pkg-config" ,pkg-config)))
3284 `(("libffi" ,libffi)
3285 ("ounit" ,ocaml-ounit)
3286 ("integers" ,ocaml-integers)
3288 ("topkg" ,ocaml-topkg)
3290 (synopsis "Library for binding to C libraries using pure OCaml")
3291 (description "Ctypes is a library for binding to C libraries using pure
3292 OCaml. The primary aim is to make writing C extensions as straightforward as
3293 possible. The core of ctypes is a set of combinators for describing the
3294 structure of C types -- numeric types, arrays, pointers, structs, unions and
3295 functions. You can use these combinators to describe the types of the
3296 functions that you want to call, then bind directly to those functions -- all
3297 without writing or generating any C!")
3298 (license license:expat)))
3300 (define-public ocaml-ocb-stubblr
3302 (name "ocaml-ocb-stubblr")
3304 (home-page "https://github.com/pqwy/ocb-stubblr")
3308 home-page "/releases/download/v0.1.1/ocb-stubblr-"
3310 (file-name (string-append name "-" version ".tbz"))
3313 "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
3314 (build-system ocaml-build-system)
3316 `(#:build-flags (list "build" "--tests" "true")
3318 (modify-phases %standard-phases
3320 (add-before 'build 'fix-for-guix
3322 (substitute* "src/ocb_stubblr.ml"
3323 ;; Do not fail when opam is not present or initialized
3324 (("error_msgf \"error running opam\"") "\"\"")
3325 ;; Guix doesn't have cc, but it has gcc
3326 (("\"cc\"") "\"gcc\""))
3329 `(("topkg" ,ocaml-topkg)
3332 `(("astring" ,ocaml-astring)
3333 ("ocamlbuild" ,ocamlbuild)))
3334 (synopsis "OCamlbuild plugin for C stubs")
3335 (description "Ocb-stubblr is about ten lines of code that you need to
3336 repeat over, over, over and over again if you are using ocamlbuild to build
3337 OCaml projects that contain C stubs.")
3338 (license license:isc)))
3340 (define-public ocaml-tsdl
3344 (home-page "http://erratique.ch/software/tsdl")
3347 (uri (string-append home-page "/releases/tsdl-"
3349 (file-name (string-append name "-" version ".tar.gz"))
3352 "00krjhmnchsnz33h9zhh0v69xbvi86l0xf0dvy7iivylb7f7x3n4"))))
3353 (build-system ocaml-build-system)
3355 `(#:build-flags '("build")
3356 #:tests? #f; tests require a display device
3358 (modify-phases %standard-phases
3359 (delete 'configure))))
3361 `(("ocamlbuild" ,ocamlbuild)
3362 ("ocaml-astring" ,ocaml-astring)
3363 ("ocaml-ocb-stubblr" ,ocaml-ocb-stubblr)
3365 ("pkg-config" ,pkg-config)))
3367 `(("topkg" ,ocaml-topkg)
3368 ("result" ,ocaml-result)
3370 ("integers" ,ocaml-integers)
3371 ("ctypes" ,ocaml-ctypes)))
3372 (synopsis "Thin bindings to SDL for OCaml")
3373 (description "Tsdl is an OCaml library providing thin bindings to the
3374 cross-platform SDL C library.")
3375 (license license:isc)))
3377 (define-public dedukti
3381 (home-page "https://deducteam.github.io/")
3386 (url "https://github.com/deducteam/dedukti.git")
3387 (commit (string-append "v" version))))
3388 (file-name (git-file-name name version))
3391 "0frl3diff033i4fmq304b8wbsdnc9mvlhmwd7a3zd699ng2lzbxb"))))
3393 `(("menhir" ,ocaml-menhir)))
3395 `(("ocamlbuild" ,ocamlbuild)))
3396 (build-system ocaml-build-system)
3399 (modify-phases %standard-phases
3407 (invoke "make" "tests")
3409 (add-before 'install 'set-binpath
3410 ;; Change binary path in the makefile
3412 (let ((out (assoc-ref %outputs "out")))
3413 (substitute* "GNUmakefile"
3415 (string-append "BINDIR = " out "/bin"))))
3419 (invoke "make" "install")
3421 (synopsis "Proof-checker for the λΠ-calculus modulo theory, an extension of
3423 (description "Dedukti is a proof-checker for the λΠ-calculus modulo
3424 theory. The λΠ-calculus is an extension of the simply typed λ-calculus with
3425 dependent types. The λΠ-calculus modulo theory is itself an extension of the
3426 λΠ-calculus where the context contains variable declaration as well as rewrite
3427 rules. This system is not designed to develop proofs, but to check proofs
3428 developed in other systems. In particular, it enjoys a minimalistic syntax.")
3429 (license license:cecill-c)))
3431 (define-public emacs-dedukti-mode
3432 (let ((commit "d7c3505a1046187de3c3aeb144455078d514594e"))
3434 (name "emacs-dedukti-mode")
3435 (version (git-version "0" "0" commit))
3436 (home-page "https://github.com/rafoo/dedukti-mode")
3444 "1842wikq24c8rg0ac84vb1qby9ng1nssxswyyni4kq85lng5lcrp"))
3445 (file-name (git-file-name name version))))
3447 `(("dedukti" ,dedukti)))
3448 (build-system emacs-build-system)
3451 (modify-phases %standard-phases
3452 (add-before 'install 'patch-dkpath
3454 (let ((dkcheck-path (which "dkcheck")))
3455 (substitute* "dedukti-mode.el"
3456 (("dedukti-path \"(.*)\"")
3457 (string-append "dedukti-path \"" dkcheck-path "\"")))))))))
3458 (synopsis "Emacs major mode for Dedukti files")
3459 (description "This package provides an Emacs major mode for editing
3461 (license license:cecill-b))))
3463 (define-public emacs-flycheck-dedukti
3464 (let ((commit "3dbff5646355f39d57a3ec514f560a6b0082a1cd"))
3466 (name "emacs-flycheck-dedukti")
3467 (version (git-version "0" "0" commit))
3468 (home-page "https://github.com/rafoo/flycheck-dedukti")
3476 "1ffpxnwl3wx244n44mbw81g00nhnykd0lnid29f4aw1av7w6nw8l"))
3477 (file-name (git-file-name name version))))
3478 (build-system emacs-build-system)
3480 `(("dedukti-mode" ,emacs-dedukti-mode)
3481 ("flycheck-mode" ,emacs-flycheck)))
3482 (synopsis "Flycheck integration for the dedukti language")
3483 (description "This package provides a frontend for Flycheck to perform
3484 syntax checking on dedukti files.")
3485 (license license:cecill-b))))
3487 (define-public ocaml4.07-ppx-inline-test
3489 (name "ocaml4.07-ppx-inline-test")
3491 (home-page "https://github.com/janestreet/ppx_inline_test")
3496 (url (string-append home-page ".git"))
3497 (commit (string-append "v" version))))
3498 (file-name (git-file-name name version))
3501 "0nyz411zim94pzbxm2l2v2l9jishcxwvxhh142792g2s18r4vn50"))))
3502 (build-system dune-build-system)
3504 ;see home page README for further information
3507 #:findlib ,ocaml4.07-findlib))
3509 `(("ocaml-base" ,ocaml4.07-base)
3510 ("ocaml-migrate-parsetree"
3511 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
3512 ("ocaml-compiler-libs" ,(package-with-ocaml4.07 ocaml-compiler-libs))
3513 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
3514 ("ocaml-stdio" ,ocaml4.07-stdio)
3515 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
3516 (properties `((upstream-name . "ppx_inline_test")))
3517 (synopsis "Syntax extension for writing in-line tests in ocaml code")
3518 (description "This package contains a syntax extension for writing
3519 in-line tests in ocaml code. It is part of Jane Street's PPX rewriters
3521 (license license:expat)))
3523 (define-public ocaml-bindlib
3525 (name "ocaml-bindlib")
3531 (url "https://github.com/rlepigre/ocaml-bindlib.git")
3532 (commit (string-append "ocaml-bindlib_" version))))
3533 (file-name (git-file-name name version))
3536 "1f8kr81w8vsi4gv61xn1qbc6zrzkjp8l9ix0942vjh4gjxc74v75"))))
3537 (build-system ocaml-build-system)
3539 `(#:tests? #f ;no tests
3542 (modify-phases %standard-phases
3549 (invoke "make" "install"))))))
3551 `(("ocamlbuild" ,ocamlbuild)
3552 ("ocaml-findlib" ,ocaml-findlib)))
3553 (home-page "https://rlepigre.github.io/ocaml-bindlib/")
3554 (synopsis "OCaml Bindlib library for bound variables")
3555 (description "Bindlib is a library allowing the manipulation of data
3556 structures with bound variables. It is particularly useful when writing ASTs
3557 for programming languages, but also for manipulating terms of the λ-calculus
3558 or quantified formulas.")
3559 (license license:gpl3+)))
3561 (define-public ocaml4.07-earley
3563 (name "ocaml4.07-earley")
3565 (home-page "https://github.com/rlepigre/ocaml-earley")
3570 (url (string-append home-page ".git"))
3572 (file-name (git-file-name name version))
3575 "18k7bi7krc4bvqnhijz1q0pfr0nfahghfjifci8rh1q4i5zd0xz5"))))
3576 (build-system dune-build-system)
3580 #:findlib ,ocaml4.07-findlib))
3581 (synopsis "Parsing library based on Earley Algorithm")
3582 (description "Earley is a parser combinator library base on Earley's
3583 algorithm. It is intended to be used in conjunction with an OCaml syntax
3584 extension which allows the definition of parsers inside the language. There
3585 is also support for writing OCaml syntax extensions in a camlp4 style.")
3586 (license license:cecill-b)))
3588 (define-public ocaml-timed
3590 (name "ocaml-timed")
3592 (home-page "https://github.com/rlepigre/ocaml-timed")
3596 (url (string-append home-page ".git"))
3597 (commit (string-append name "_" version))))
3600 "0hfxz710faxy5yk97bkfnw87r732jcxxhmjppwrbfdb6pd0wks96"))
3601 (file-name (git-file-name name version))))
3602 (build-system ocaml-build-system)
3605 (modify-phases %standard-phases
3612 (invoke "make" "install")))
3615 (invoke "make" "tests"))))))
3616 (synopsis "Timed references for imperative state")
3617 (description "Timed references for imperative state. This module provides
3618 an alternative type for references (or mutable cells) supporting undo/redo
3619 operations. In particular, an abstract notion of time is used to capture the
3620 state of the references at any given point, so that it can be restored. Note
3621 that usual reference operations only have a constant time / memory overhead
3622 (compared to those of the standard library).
3624 Moreover, we provide an alternative implementation based on the references
3625 of the standard library (Pervasives module). However, it is less efficient
3626 than the first one.")
3627 (license license:expat)))
3629 (define-public ocaml-biniou
3631 (name "ocaml-biniou")
3633 (home-page "https://github.com/mjambon/biniou")
3638 (url (string-append home-page ".git"))
3640 (file-name (git-file-name name version))
3643 "0x2kiy809n1j0yf32l7hj102y628jp5jdrkbi3z7ld8jq04h1790"))))
3644 (build-system dune-build-system)
3647 (modify-phases %standard-phases
3648 (add-before 'build 'make-writable
3653 (find-files "." "."))
3656 `(("ocaml-easy-format" ,ocaml-easy-format)))
3658 `(("which" ,which)))
3659 (synopsis "Data format designed for speed, safety, ease of use and backward
3661 (description "Biniou (pronounced \"be new\" is a binary data format
3662 designed for speed, safety, ease of use and backward compatibility as
3663 protocols evolve. Biniou is vastly equivalent to JSON in terms of
3664 functionality but allows implementations several times faster (4 times faster
3665 than yojson), with 25-35% space savings.")
3666 (license license:bsd-3)))
3668 (define-public ocaml-yojson
3670 (name "ocaml-yojson")
3672 (home-page "https://github.com/ocaml-community/yojson")
3677 (url (string-append home-page ".git"))
3679 (file-name (git-file-name name version))
3682 "0zncsw8bgbkh1pfvfc7nh628hfj84lgx6jwhp9ashj3z1z0w3xjn"))))
3683 (build-system dune-build-system)
3685 `(#:test-target "."))
3687 `(("ocaml-biniou" ,ocaml-biniou)
3688 ("ocaml-easy-format" ,ocaml-easy-format)))
3690 `(("ocaml-alcotest" ,ocaml-alcotest)
3691 ("ocaml-cppo" ,ocaml-cppo)))
3692 (synopsis "Low-level JSON library for OCaml")
3693 (description "Yojson is an optimized parsing and printing library for the
3694 JSON format. It addresses a few shortcomings of json-wheel including 2x
3695 speedup, polymorphic variants and optional syntax for tuples and variants.
3696 @code{ydump} is a pretty printing command-line program provided with the
3697 yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
3698 serializers and deserializers from type definitions.")
3699 (license license:bsd-3)))
3701 (define-public ocaml-craml
3703 (name "ocaml-craml")
3705 (home-page "https://github.com/realworldocaml/craml")
3710 (url (string-append home-page ".git"))
3712 (file-name (git-file-name name version))
3715 "197xjp4vmzdymf2ndinw271ihpf45h04mx8gqj8ypspxdr5fj1a5"))))
3716 (build-system dune-build-system)
3718 `(("ocaml-fmt" ,ocaml-fmt)
3719 ("ocaml-astring" ,ocaml-astring)
3720 ("ocaml-logs" ,ocaml-logs)
3721 ("ocaml-cmdliner" ,ocaml-cmdliner)))
3723 "CRAM-testing framework for testing command line applications")
3724 (description "CRAM is a is functional testing framework for command line
3725 applications. @code{craml} is freely inspired by the
3726 Mercurial's @code{https://www.selenic.com/blog/?p=663, unified test
3727 format}. @code{craml} is released as a single binary (called @code{craml}).")
3728 (license license:isc)))
3730 (define-public ocaml4.07-merlin
3732 (name "ocaml4.07-merlin")
3734 (home-page "https://ocaml.github.io/merlin/")
3739 (url "https://github.com/ocaml/merlin.git")
3740 (commit (string-append "v" version))))
3741 (file-name (git-file-name name version))
3744 "15ssgmwdxylbwhld9p1cq8x6kadxyhll5bfyf11dddj6cldna3hb"))))
3745 (build-system dune-build-system)
3747 `(("ocaml-biniou" ,(package-with-ocaml4.07 ocaml-biniou))
3748 ("ocaml-yojson" ,(package-with-ocaml4.07 ocaml-yojson))
3749 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))))
3751 `(("ocaml-findlib" ,ocaml-findlib)))
3754 #:tests? #f ;; Errors in tests in version 3.2.2
3756 #:findlib ,ocaml4.07-findlib))
3757 (synopsis "Context sensitive completion for OCaml in Vim and Emacs")
3758 (description "Merlin is an editor service that provides modern IDE
3759 features for OCaml. Emacs and Vim support is provided out-of-the-box.
3760 External contributors added support for Visual Studio Code, Sublime Text and
3762 (license license:expat)))
3764 (define-public ocaml4.07-gsl
3766 (name "ocaml4.07-gsl")
3773 "https://github.com/mmottl/gsl-ocaml/releases/download/"
3774 version "/gsl-" version ".tbz"))
3777 "1l5zkkkg8sglsihrbf10ivq9s8xzl1y6ag89i4jqpnmi4m43fy34"))))
3778 (build-system dune-build-system)
3782 (modify-phases %standard-phases
3783 (add-after 'unpack 'fix-gsl-directory
3784 (lambda* (#:key inputs #:allow-other-keys)
3785 (substitute* "src/config/discover.ml"
3786 (("/usr") (assoc-ref inputs "gsl")))
3789 #:findlib ,ocaml4.07-findlib
3790 #:dune ,ocaml4.07-dune))
3794 `(("ocaml-base" ,ocaml4.07-base)
3795 ("ocaml-stdio" ,ocaml4.07-stdio)))
3796 (home-page "https://mmottl.github.io/gsl-ocaml")
3797 (synopsis "Bindings to the GNU Scientific Library")
3799 "GSL-OCaml is an interface to the @dfn{GNU scientific library} (GSL) for
3800 the OCaml language.")
3801 (license license:gpl3+)))
3803 (define-public ocaml4.07-gsl-1
3805 (inherit ocaml4.07-gsl)
3809 (uri (string-append "https://github.com/mmottl/gsl-ocaml"
3810 "/releases/download/v"
3811 version "/gsl-ocaml-" version ".tar.gz"))
3814 "0nzp43hp8pbjqkrxnwp5lgjrabxayf61h18fjaydi0s5faq6f3xh"))))
3815 (build-system ocaml-build-system)
3819 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
3821 `(#:ocaml ,ocaml-4.07
3822 #:findlib ,ocaml4.07-findlib))
3823 (propagated-inputs '())))
3825 (define-public cubicle
3831 (uri (string-append "http://cubicle.lri.fr/cubicle-"
3835 "10kk80jdmpdvql88sdjsh7vqzlpaphd8vip2lp47aarxjkwjlz1q"))))
3836 (build-system gnu-build-system)
3838 `(("automake" ,automake)
3840 ("which" ,(@@ (gnu packages base) which))))
3842 `(("ocaml-num" ,ocaml-num)
3845 `(#:configure-flags (list "--with-z3")
3846 #:make-flags (list "QUIET=")
3849 (modify-phases %standard-phases
3850 (add-before 'configure 'configure-for-release
3852 (substitute* "Makefile.in"
3853 (("SVNREV=") "#SVNREV="))
3855 (add-before 'configure 'fix-/bin/sh
3857 (substitute* "configure"
3858 (("-/bin/sh") (string-append "-" (which "sh"))))
3860 (add-before 'configure 'fix-smt-z3wrapper.ml
3862 (substitute* "Makefile.in"
3865 (add-before 'configure 'fix-ocaml-num
3866 (lambda* (#:key inputs #:allow-other-keys)
3867 (substitute* "Makefile.in"
3868 (("= \\$\\(FUNCTORYLIB\\)")
3869 (string-append "= -I "
3870 (assoc-ref inputs "ocaml-num")
3871 "/lib/ocaml/site-lib"
3872 " $(FUNCTORYLIB)")))
3874 (home-page "http://cubicle.lri.fr/")
3875 (synopsis "Model checker for array-based systems")
3876 (description "Cubicle is a model checker for verifying safety properties
3877 of array-based systems. This is a syntactically restricted class of
3878 parametrized transition systems with states represented as arrays indexed by
3879 an arbitrary number of processes. Cache coherence protocols and mutual
3880 exclusion algorithms are typical examples of such systems.")
3881 (license license:asl2.0)))
3883 (define-public ocaml4.07-sexplib0
3885 (name "ocaml4.07-sexplib0")
3887 (home-page "https://github.com/janestreet/sexplib0")
3892 (url (string-append home-page ".git"))
3893 (commit (string-append "v" version))))
3894 (file-name (git-file-name name version))
3897 "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
3898 (build-system dune-build-system)
3900 `(#:tests? #f ;no tests
3902 #:findlib ,ocaml4.07-findlib))
3903 (synopsis "Library containing the definition of S-expressions and some
3905 (description "Part of Jane Street's Core library The Core suite of
3906 libraries is an industrial strength alternative to OCaml's standard library
3907 that was developed by Jane Street, the largest industrial user of OCaml.")
3908 (license license:expat)))
3910 (define-public ocaml4.07-parsexp
3912 (name "ocaml4.07-parsexp")
3914 (home-page "https://github.com/janestreet/parsexp")
3919 (url (string-append home-page ".git"))
3920 (commit (string-append "v" version))))
3921 (file-name (git-file-name name version))
3924 "1nyq23s5igd8cf3n4qxprjvhbmb6ighb3fy5mw7hxl0mdgsw5fvz"))))
3925 (build-system dune-build-system)
3927 `(#:ocaml ,ocaml-4.07
3928 #:findlib ,ocaml4.07-findlib))
3930 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3931 (synopsis "S-expression parsing library")
3933 "This library provides generic parsers for parsing S-expressions from
3934 strings or other medium.
3936 The library is focused on performances but still provide full generic
3937 parsers that can be used with strings, bigstrings, lexing buffers,
3938 character streams or any other sources effortlessly.
3940 It provides three different class of parsers:
3943 the normal parsers, producing [Sexp.t] or [Sexp.t list] values
3945 the parsers with positions, building compact position sequences so
3946 that one can recover original positions in order to report properly
3947 located errors at little cost
3949 the Concrete Syntax Tree parsers, produce values of type
3950 @code{Parsexp.Cst.t} which record the concrete layout of the s-expression
3951 syntax, including comments
3954 This library is portable and doesn't provide IO functions. To read
3955 s-expressions from files or other external sources, you should use
3957 (license license:expat)))
3959 (define-public ocaml4.07-sexplib
3961 (name "ocaml4.07-sexplib")
3963 (home-page "https://github.com/janestreet/sexplib")
3968 (url (string-append home-page ".git"))
3969 (commit (string-append "v" version))))
3970 (file-name (git-file-name name version))
3973 "1qfl0m04rpcjvc4yw1hzh6r16jpwmap0sa9ax6zjji67dz4szpyb"))))
3974 (build-system dune-build-system)
3976 `(#:ocaml ,ocaml-4.07
3977 #:findlib ,ocaml4.07-findlib))
3979 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
3980 ("ocaml-parsexp" ,ocaml4.07-parsexp)
3981 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3983 "Library for serializing OCaml values to and from S-expressions")
3985 "This package is part of Jane Street's Core library. Sexplib contains
3986 functionality for parsing and pretty-printing s-expressions.")
3987 (license license:expat)))
3989 (define-public ocaml4.07-base
3991 (name "ocaml4.07-base")
3993 (home-page "https://github.com/janestreet/base")
3998 (url (string-append home-page ".git"))
3999 (commit (string-append "v" version))))
4000 (file-name (git-file-name name version))
4003 "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
4004 (build-system dune-build-system)
4006 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4009 (modify-phases %standard-phases
4011 ;; make warnings non fatal (jbuilder behaviour)
4013 (invoke "dune" "build" "@install" "--profile=release"))))
4015 #:findlib ,ocaml4.07-findlib))
4017 "Full standard library replacement for OCaml")
4019 "Base is a complete and portable alternative to the OCaml standard
4020 library. It provides all standard functionalities one would expect
4021 from a language standard library. It uses consistent conventions
4022 across all of its module.
4024 Base aims to be usable in any context. As a result system dependent
4025 features such as I/O are not offered by Base. They are instead
4026 provided by companion libraries such as
4027 @url{https://github.com/janestreet/stdio, ocaml-stdio}.")
4028 (license license:expat)))
4030 (define-public ocaml-compiler-libs
4032 (name "ocaml-compiler-libs")
4034 (home-page "https://github.com/janestreet/ocaml-compiler-libs")
4039 (url (string-append home-page ".git"))
4040 (commit (string-append "v" version))))
4041 (file-name (git-file-name name version))
4044 "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
4045 (build-system dune-build-system)
4047 '(#:tests? #f)) ;no tests
4048 (properties `((upstream-name . "ocaml-compiler-libs")))
4049 (synopsis "Compiler libraries repackaged")
4050 (description "This package simply repackages the OCaml compiler libraries
4051 so they don't expose everything at toplevel. For instance, @code{Ast_helper}
4052 is now @code{Ocaml_common.Ast_helper}.")
4053 (license license:expat)))
4055 (define-public ocaml4.07-stdio
4057 (name "ocaml4.07-stdio")
4059 (home-page "https://github.com/janestreet/stdio")
4064 (url (string-append home-page ".git"))
4065 (commit (string-append "v" version))))
4066 (file-name (git-file-name name version))
4069 "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
4070 (build-system dune-build-system)
4072 `(("ocaml-base" ,ocaml4.07-base)
4073 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4075 `(#:tests? #f ;no tests
4077 #:findlib ,ocaml4.07-findlib))
4078 (synopsis "Standard IO library for OCaml")
4080 "Stdio implements simple input/output functionalities for OCaml. It
4081 re-exports the input/output functions of the OCaml standard libraries using
4082 a more consistent API.")
4083 (license license:expat)))
4085 (define-public ocaml-ppx-derivers
4087 (name "ocaml-ppx-derivers")
4090 "https://github.com/ocaml-ppx/ppx_derivers")
4095 (url (string-append home-page ".git"))
4097 (file-name (git-file-name name version))
4100 "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"))))
4101 (build-system dune-build-system)
4103 '(#:tests? #f)) ;no tests
4104 (properties `((upstream-name . "ppx_derivers")))
4105 (synopsis "Shared @code{@@deriving} plugin registry")
4107 "Ppx_derivers is a tiny package whose sole purpose is to allow
4108 ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
4109 as part of the same ocaml-migrate-parsetree driver.")
4110 (license license:bsd-3)))
4112 (define-public ocaml4.07-ppxlib
4114 (name "ocaml4.07-ppxlib")
4116 (home-page "https://github.com/ocaml-ppx/ppxlib")
4121 (url (string-append home-page ".git"))
4123 (file-name (git-file-name name version))
4126 "0my9x7sxb329h0lzshppdaawiyfbaw6g5f41yiy7bhl071rnlvbv"))))
4127 (build-system dune-build-system)
4129 `(("ocaml-base" ,ocaml4.07-base)
4130 ("ocaml-compiler-libs" ,(package-with-ocaml4.07 ocaml-compiler-libs))
4131 ("ocaml-migrate-parsetree"
4132 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4133 ("ocaml-ppx-derivers" ,(package-with-ocaml4.07 ocaml-ppx-derivers))
4134 ("ocaml-stdio" ,ocaml4.07-stdio)
4135 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
4136 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4139 (modify-phases %standard-phases
4140 (add-before 'check 'set-topfind
4141 (lambda* (#:key inputs #:allow-other-keys)
4142 ;; add the line #directory ".." at the top of each file
4143 ;; using #use "topfind";; to be able to find topfind
4144 (let* ((findlib-path (assoc-ref inputs "findlib"))
4146 (string-append findlib-path "/lib/ocaml/site-lib")))
4147 (substitute* '("test/base/test.ml"
4148 "test/code_path/test.ml"
4149 "test/deriving/test.ml"
4150 "test/driver/attributes/test.ml"
4151 "test/driver/non-compressible-suffix/test.ml"
4152 "test/driver/transformations/test.ml")
4153 (("#use \"topfind\";;" all)
4154 (string-append "#directory \"" findlib-libdir "\"\n"
4158 #:findlib ,ocaml4.07-findlib))
4160 "Base library and tools for ppx rewriters")
4162 "A comprehensive toolbox for ppx development. It features:
4164 @item an OCaml AST / parser / pretty-printer snapshot, to create a full frontend
4165 independent of the version of OCaml;
4166 @item a library for library for ppx rewriters in general, and type-driven code
4167 generators in particular;
4169 a feature-full driver for OCaml AST transformers;
4170 @item a quotation mechanism allowing to write values representing the
4171 OCaml AST in the OCaml syntax;
4172 @item a generator of open recursion classes from type definitions.
4174 (license license:expat)))
4176 (define-public ocaml4.07-ppx-compare
4178 (name "ocaml4.07-ppx-compare")
4183 (url "https://github.com/janestreet/ppx_compare.git")
4184 (commit (string-append "v" version))))
4185 (file-name (git-file-name name version))
4188 "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
4189 (build-system dune-build-system)
4191 `(("ocaml-base" ,ocaml4.07-base)
4192 ("ocaml-migrate-parsetree"
4193 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4194 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4196 `(#:ocaml ,ocaml-4.07
4197 #:findlib ,ocaml4.07-findlib))
4198 (properties `((upstream-name . "ppx_compare")))
4199 (home-page "https://github.com/janestreet/ppx_compare")
4200 (synopsis "Generation of comparison functions from types")
4201 (description "Generation of fast comparison functions from type expressions
4202 and definitions. Ppx_compare is a ppx rewriter that derives comparison functions
4203 from type representations. The scaffolded functions are usually much faster
4204 than ocaml's Pervasives.compare. Scaffolding functions also gives you more
4205 flexibility by allowing you to override them for a specific type and more safety
4206 by making sure that you only compare comparable values.")
4207 (license license:asl2.0)))
4209 (define-public ocaml4.07-fieldslib
4211 (name "ocaml4.07-fieldslib")
4215 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4216 (version-major+minor version) "/files/"
4217 "fieldslib-v" version ".tar.gz"))
4220 "12948pzxrl360lybm9fzyvplgcl87zjbn4m3sk1aw75zk85p1388"))))
4221 (build-system dune-build-system)
4226 #:findlib ,ocaml4.07-findlib))
4228 `(("ocaml-base" ,ocaml4.07-base)
4229 ("ocaml-migrate-parsetree"
4230 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4231 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4232 (properties `((upstream-name . "fieldslib")))
4233 (home-page "https://github.com/janestreet/fieldslib")
4234 (synopsis "Syntax extension to record fields")
4235 (description "Syntax extension to define first class values representing
4236 record fields, to get and set record fields, iterate and fold over all fields
4237 of a record and create new record values.")
4238 (license license:asl2.0)))
4240 (define-public ocaml4.07-variantslib
4242 (name "ocaml4.07-variantslib")
4246 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4247 (version-major+minor version)
4248 "/files/variantslib-v" version ".tar.gz"))
4251 "1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
4252 (build-system dune-build-system)
4257 #:findlib ,ocaml4.07-findlib))
4259 `(("ocaml-base" ,ocaml4.07-base)
4260 ("ocaml-migrate-parsetree"
4261 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4262 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4263 (properties `((upstream-name . "variantslib")))
4264 (home-page "https://github.com/janestreet/variantslib")
4265 (synopsis "OCaml variants as first class values")
4266 (description "The Core suite of libraries is an alternative to OCaml's
4268 (license license:asl2.0)))
4270 (define-public ocaml4.07-ppx-fields-conv
4272 (name "ocaml4.07-ppx-fields-conv")
4276 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4277 (version-major+minor version)
4278 "/files/ppx_fields_conv-v" version ".tar.gz"))
4281 "07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
4282 (build-system dune-build-system)
4284 `(("ocaml-base" ,ocaml4.07-base)
4285 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
4286 ("ocaml-migrate-parsetree"
4287 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4288 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4290 `(#:ocaml ,ocaml-4.07
4291 #:findlib ,ocaml4.07-findlib))
4292 (properties `((upstream-name . "ppx_fields_conv")))
4293 (home-page "https://github.com/janestreet/ppx_fields_conv")
4294 (synopsis "Generation of accessor and iteration functions for ocaml records")
4295 (description "Ppx_fields_conv is a ppx rewriter that can be used to define
4296 first class values representing record fields, and additional routines, to get
4297 and set record fields, iterate and fold over all fields of a record and create
4298 new record values.")
4299 (license license:asl2.0)))
4301 (define-public ocaml4.07-ppx-sexp-conv
4303 (name "ocaml4.07-ppx-sexp-conv")
4308 (url "https://github.com/janestreet/ppx_sexp_conv.git")
4309 (commit (string-append "v" version))))
4310 (file-name (git-file-name name version))
4313 "0pqwnqy1xp309wvdcaax4lg02yk64lq2w03mbgfvf6ps5ry4gis9"))))
4314 (build-system dune-build-system)
4316 `(("ocaml-base" ,ocaml4.07-base)
4317 ("ocaml-migrate-parsetree"
4318 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4319 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4321 `(#:ocaml ,ocaml-4.07
4322 #:findlib ,ocaml4.07-findlib))
4323 (properties `((upstream-name . "ppx_sexp_conv")))
4324 (home-page "https://github.com/janestreet/ppx_sexp_conv")
4325 (synopsis "Generation of S-expression conversion functions from type definitions")
4326 (description "This package generates S-expression conversion functions from type
4328 (license license:asl2.0)))
4330 (define-public ocaml4.07-ppx-variants-conv
4332 (name "ocaml4.07-ppx-variants-conv")
4337 (url "https://github.com/janestreet/ppx_variants_conv.git")
4338 (commit (string-append "v" version))))
4339 (file-name (git-file-name name version))
4342 "1yc0gsds5m2nv39zga8nnrca2n75rkqy5dz4xj1635ybz20hhbjd"))))
4343 (build-system dune-build-system)
4345 `(("ocaml-base" ,ocaml4.07-base)
4346 ("ocaml-variantslib" ,ocaml4.07-variantslib)
4347 ("ocaml-migrate-parsetree"
4348 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4349 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4351 `(#:ocaml ,ocaml-4.07
4352 #:findlib ,ocaml4.07-findlib))
4354 `((upstream-name . "ppx_variants_conv")))
4356 "https://github.com/janestreet/ppx_variants_conv")
4357 (synopsis "Generation of accessor and iteration functions for OCaml variant types")
4359 "This package generates accessors and interation functions for OCaml
4361 (license license:asl2.0)))
4363 (define-public ocaml4.07-ppx-custom-printf
4365 (name "ocaml4.07-ppx-custom-printf")
4369 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4370 (version-major+minor version)
4371 "/files/ppx_custom_printf-v" version ".tar.gz"))
4374 "11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))))
4375 (build-system dune-build-system)
4377 `(("ocaml-base" ,ocaml4.07-base)
4378 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4379 ("ocaml-migrate-parsetree"
4380 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4381 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4383 `(#:ocaml ,ocaml-4.07
4384 #:findlib ,ocaml4.07-findlib))
4385 (properties `((upstream-name . "ppx_custom_printf")))
4386 (home-page "https://github.com/janestreet/ppx_custom_printf")
4387 (synopsis "Printf-style format-strings for user-defined string conversion")
4388 (description "Extensions to printf-style format-strings for user-defined
4389 string conversion.")
4390 (license license:asl2.0)))
4392 (define-public ocaml4.07-bin-prot
4394 (name "ocaml4.07-bin-prot")
4398 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4399 (version-major+minor version)
4400 "/files/bin_prot-v" version ".tar.gz"))
4403 "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
4404 (build-system dune-build-system)
4406 `(("ocaml-base" ,ocaml4.07-base)
4407 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4408 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4409 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4410 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4411 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4412 ("ocaml-migrate-parsetree"
4413 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
4415 `(#:ocaml ,ocaml-4.07
4416 #:findlib ,ocaml4.07-findlib))
4417 (properties `((upstream-name . "bin_prot")))
4418 (home-page "https://github.com/janestreet/bin_prot")
4419 (synopsis "Binary protocol generator")
4420 (description "This library contains functionality for reading and writing
4421 OCaml-values in a type-safe binary protocol. It is extremely efficient,
4422 typically supporting type-safe marshalling and unmarshalling of even highly
4423 structured values at speeds sufficient to saturate a gigabit connection. The
4424 protocol is also heavily optimized for size, making it ideal for long-term
4425 storage of large amounts of data.")
4430 (define-public ocaml-octavius
4432 (name "ocaml-octavius")
4437 (url "https://github.com/ocaml-doc/octavius")
4438 (commit (string-append "v" version))))
4439 (file-name (git-file-name name version))
4442 "1ck6yj6z5rvqyl39rz87ca1bnk0f1dpgvlk115631hjh8bwpfvfq"))))
4443 (build-system dune-build-system)
4444 (properties `((upstream-name . "octavius")))
4445 (home-page "https://github.com/ocaml-doc/octavius")
4446 (synopsis "Ocamldoc comment syntax parser")
4447 (description "Octavius is a library to parse the `ocamldoc` comment syntax.")
4448 (license license:isc)))
4450 (define-public ocaml4.07-ppx-hash
4452 (name "ocaml4.07-ppx-hash")
4457 (url "https://github.com/janestreet/ppx_hash.git")
4458 (commit (string-append "v" version))))
4459 (file-name (git-file-name name version))
4462 "1p0ic6aijxlrdggpmycj12q3cy9xksbq2vq727215maz4snvlf5p"))))
4463 (build-system dune-build-system)
4465 `(("ocaml-base" ,ocaml4.07-base)
4466 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4467 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4468 ("ocaml-migrate-parsetree"
4469 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4470 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4472 `(#:ocaml ,ocaml-4.07
4473 #:findlib ,ocaml4.07-findlib))
4474 (properties `((upstream-name . "ppx_hash")))
4475 (home-page "https://github.com/janestreet/ppx_hash")
4476 (synopsis "Generation of hash functions from type expressions and definitions")
4477 (description "This package is a collection of ppx rewriters that generate
4478 hash functions from type exrpessions and definitions.")
4479 (license license:asl2.0)))
4481 (define-public ocaml4.07-ppx-enumerate
4483 (name "ocaml4.07-ppx-enumerate")
4488 (url "https://github.com/janestreet/ppx_enumerate.git")
4489 (commit (string-append "v" version))))
4490 (file-name (git-file-name name version))
4493 "0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
4494 (build-system dune-build-system)
4496 `(#:tests? #f; no test suite
4498 #:findlib ,ocaml4.07-findlib))
4500 `(("ocaml-base" ,ocaml4.07-base)
4501 ("ocaml-migrate-parsetree"
4502 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4503 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4504 (properties `((upstream-name . "ppx_enumerate")))
4505 (home-page "https://github.com/janestreet/ppx_enumerate")
4506 (synopsis "Generate a list containing all values of a finite type")
4507 (description "Ppx_enumerate is a ppx rewriter which generates a definition
4508 for the list of all values of a type (for a type which only has finitely
4510 (license license:asl2.0)))
4512 (define-public ocaml4.07-ppx-bench
4514 (name "ocaml4.07-ppx-bench")
4518 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4519 (version-major+minor version)
4520 "/files/ppx_bench-v" version ".tar.gz"))
4523 "0ys4pblbcjbk9dn073rqiwm7r6rc7fah03j7riklkwnb5n44andl"))))
4524 (build-system dune-build-system)
4529 #:findlib ,ocaml4.07-findlib))
4531 `(("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
4532 ("ocaml-migrate-parsetree"
4533 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4534 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4535 (properties `((upstream-name . "ppx_bench")))
4536 (home-page "https://github.com/janestreet/ppx_bench")
4537 (synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
4538 (description "Syntax extension for writing in-line benchmarks in ocaml code.")
4539 (license license:asl2.0)))
4541 (define-public ocaml4.07-ppx-here
4543 (name "ocaml4.07-ppx-here")
4547 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4548 (version-major+minor version)
4549 "/files/ppx_here-v" version ".tar.gz"))
4552 "0wxcak3ay4jpigm3pfdcpr65qw4hxfa8whhkryhcd8gy71x056z5"))))
4553 (build-system dune-build-system)
4558 #:findlib ,ocaml4.07-findlib))
4560 `(("ocaml-base" ,ocaml4.07-base)
4561 ("ocaml-migrate-parsetree"
4562 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4563 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4564 (properties `((upstream-name . "ppx_here")))
4565 (home-page "https://github.com/janestreet/ppx_here")
4566 (synopsis "Expands [%here] into its location")
4568 "Part of the Jane Street's PPX rewriters collection.")
4569 (license license:asl2.0)))
4571 (define-public ocaml4.07-typerep
4573 (name "ocaml4.07-typerep")
4577 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4578 (version-major+minor version)
4579 "/files/typerep-v" version ".tar.gz"))
4582 "1zi7hy0prpgzqhr4lkacr04wvlvbp21jfbdfvffhrm6cd400rb5v"))))
4583 (build-system dune-build-system)
4587 #:findlib ,ocaml4.07-findlib))
4588 (propagated-inputs `(("ocaml-base" ,ocaml4.07-base)))
4589 (home-page "https://github.com/janestreet/typerep")
4590 (synopsis "Typerep is a library for runtime types")
4591 (description "Typerep is a library for runtime types.")
4592 (license license:asl2.0)))
4594 (define-public ocaml4.07-ppx-sexp-value
4596 (name "ocaml4.07-ppx-sexp-value")
4600 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4601 (version-major+minor version)
4602 "/files/ppx_sexp_value-v" version ".tar.gz"))
4605 "1xnalfrln6k5khsyxvxkg6v32q8fpr4cqamsjqfih29jdv486xrs"))))
4606 (build-system dune-build-system)
4608 `(#:ocaml ,ocaml-4.07
4609 #:findlib ,ocaml4.07-findlib))
4611 `(("ocaml-base" ,ocaml4.07-base)
4612 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4613 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4614 ("ocaml-migrate-parsetree"
4615 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4616 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4617 (properties `((upstream-name . "ppx_sexp_value")))
4618 (home-page "https://github.com/janestreet/ppx_sexp_value")
4619 (synopsis "Simplify building s-expressions from ocaml values")
4620 (description "A ppx rewriter that simplifies building s-expressions from
4622 (license license:asl2.0)))
4624 (define-public ocaml4.07-ppx-sexp-message
4626 (name "ocaml4.07-ppx-sexp-message")
4630 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4631 (version-major+minor version)
4632 "/files/ppx_sexp_message-v" version ".tar.gz"))
4635 "1yh440za0w9cvrbxbmqacir8715kdaw6sw24ys9xj80av9nqpiw7"))))
4636 (build-system dune-build-system)
4638 `(#:ocaml ,ocaml-4.07
4639 #:findlib ,ocaml4.07-findlib))
4641 `(("ocaml-base" ,ocaml4.07-base)
4642 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4643 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4644 ("ocaml-migrate-parsetree"
4645 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4646 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4647 (properties `((upstream-name . "ppx_sexp_message")))
4648 (home-page "https://github.com/janestreet/ppx_sexp_message")
4649 (synopsis "A ppx rewriter for easy construction of s-expressions")
4650 (description "Ppx_sexp_message aims to ease the creation of s-expressions
4651 in OCaml. This is mainly motivated by writing error and debugging messages,
4652 where one needs to construct a s-expression based on various element of the
4653 context such as function arguments.")
4654 (license license:asl2.0)))
4656 (define-public ocaml4.07-ppx-pipebang
4658 (name "ocaml4.07-ppx-pipebang")
4662 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4663 (version-major+minor version)
4664 "/files/ppx_pipebang-v" version ".tar.gz"))
4667 "1wrrzlb4kdvkkcmzi01fw25jar38r2jlnyn0i6pn4z0lq4gpm9m0"))))
4668 (build-system dune-build-system)
4673 #:findlib ,ocaml4.07-findlib))
4675 `(("ocaml-migrate-parsetree"
4676 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4677 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4678 (properties `((upstream-name . "ppx_pipebang")))
4679 (home-page "https://github.com/janestreet/ppx_pipebang")
4680 (synopsis "Inline reverse application operators `|>` and `|!`")
4681 (description "A ppx rewriter that inlines reverse application operators
4682 @code{|>} and @code{|!}.")
4683 (license license:asl2.0)))
4685 (define-public ocaml4.07-ppx-optional
4687 (name "ocaml4.07-ppx-optional")
4691 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4692 (version-major+minor version)
4693 "/files/ppx_optional-v" version ".tar.gz"))
4696 "1z8z2bga95k2vksljljfglg10vygkjd24kn1b37sk4z3nmp47x0h"))))
4697 (build-system dune-build-system)
4702 #:findlib ,ocaml4.07-findlib))
4704 `(("ocaml-base" ,ocaml4.07-base)
4705 ("ocaml-migrate-parsetree"
4706 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4707 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4708 (properties `((upstream-name . "ppx_optional")))
4709 (home-page "https://github.com/janestreet/ppx_optional")
4710 (synopsis "Pattern matching on flat options")
4712 "A ppx rewriter that rewrites simple match statements with an if then
4714 (license license:asl2.0)))
4716 (define-public ocaml4.07-ppx-optcomp
4718 (name "ocaml4.07-ppx-optcomp")
4722 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4723 (version-major+minor version)
4724 "/files/ppx_optcomp-v" version ".tar.gz"))
4727 "1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))))
4728 (build-system dune-build-system)
4730 `(#:ocaml ,ocaml-4.07
4731 #:findlib ,ocaml4.07-findlib))
4733 `(("ocaml-base" ,ocaml4.07-base)
4734 ("ocaml-stdio" ,ocaml4.07-stdio)
4735 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4736 (properties `((upstream-name . "ppx_optcomp")))
4737 (home-page "https://github.com/janestreet/ppx_optcomp")
4738 (synopsis "Optional compilation for OCaml")
4739 (description "Ppx_optcomp stands for Optional Compilation. It is a tool
4740 used to handle optional compilations of pieces of code depending of the word
4741 size, the version of the compiler, ...")
4742 (license license:asl2.0)))
4744 (define-public ocaml4.07-ppx-let
4746 (name "ocaml4.07-ppx-let")
4750 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4751 (version-major+minor version)
4752 "/files/ppx_let-v" version ".tar.gz"))
4755 "1wdfw6w4xbg97a35yg6bif9gggxniy9ddnrjfw1a0inkl2yamxkj"))))
4756 (build-system dune-build-system)
4758 `(#:ocaml ,ocaml-4.07
4759 #:findlib ,ocaml4.07-findlib))
4761 `(("ocaml-base" ,ocaml4.07-base)
4762 ("ocaml-migrate-parsetree"
4763 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4764 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4765 (properties `((upstream-name . "ppx_let")))
4766 (home-page "https://github.com/janestreet/ppx_let")
4767 (synopsis "Monadic let-bindings")
4768 (description "A ppx rewriter for monadic and applicative let bindings,
4769 match expressions, and if expressions.")
4770 (license license:asl2.0)))
4772 (define-public ocaml4.07-ppx-fail
4774 (name "ocaml4.07-ppx-fail")
4778 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4779 (version-major+minor version)
4780 "/files/ppx_fail-v" version ".tar.gz"))
4783 "07plqsvljiwvngggfypwq55g46s5my55y45mvlmalrxyppzr03s8"))))
4784 (build-system dune-build-system)
4786 `(#:ocaml ,ocaml-4.07
4787 #:findlib ,ocaml4.07-findlib))
4789 `(("ocaml-base" ,ocaml4.07-base)
4790 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4791 ("ocaml-migrate-parsetree"
4792 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4793 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4794 (properties `((upstream-name . "ppx_fail")))
4795 (home-page "https://github.com/janestreet/ppx_fail")
4796 (synopsis "Add location to calls to failwiths")
4797 (description "Syntax extension that makes [failwiths] always include a
4799 (license license:asl2.0)))
4801 (define-public ocaml4.07-ppx-assert
4803 (name "ocaml4.07-ppx-assert")
4807 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4808 (version-major+minor version)
4809 "/files/ppx_assert-v" version ".tar.gz"))
4812 "17kd311n0l9f72gblf9kv8i5rghr106w37x4f0m5qwh6nlgl0j9k"))))
4813 (build-system dune-build-system)
4815 `(#:ocaml ,ocaml-4.07
4816 #:findlib ,ocaml4.07-findlib))
4818 `(("ocaml-base" ,ocaml4.07-base)
4819 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4820 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4821 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4822 ("ocaml-migrate-parsetree"
4823 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4824 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4825 (properties `((upstream-name . "ppx_assert")))
4826 (home-page "https://github.com/janestreet/ppx_assert")
4827 (synopsis "Assert-like extension nodes that raise useful errors on failure")
4828 (description "This package contains assert-like extension nodes that raise
4829 useful errors on failure.")
4830 (license license:asl2.0)))
4832 (define-public ocaml4.07-ppx-expect
4834 (name "ocaml4.07-ppx-expect")
4839 (url "https://github.com/janestreet/ppx_expect.git")
4840 (commit (string-append "v" version))))
4841 (file-name (git-file-name name version))
4844 "1wawsbjfkri4sw52n8xqrzihxc3xfpdicv3ahz83a1rsn4lb8j5q"))))
4845 (build-system dune-build-system)
4849 #:findlib ,ocaml4.07-findlib))
4851 `(("ocaml-base" ,ocaml4.07-base)
4852 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
4853 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4854 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4855 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4856 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4857 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
4858 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4859 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4860 ("ocaml-stdio" ,ocaml4.07-stdio)
4861 ("ocaml-migrate-parsetree"
4862 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4863 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)
4864 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))))
4865 (properties `((upstream-name . "ppx_expect")))
4866 (home-page "https://github.com/janestreet/ppx_expect")
4867 (synopsis "Cram like framework for OCaml")
4868 (description "Expect-test is a framework for writing tests in OCaml, similar
4869 to Cram. Expect-tests mimics the existing inline tests framework with the
4870 @code{let%expect_test} construct. The body of an expect-test can contain
4871 output-generating code, interleaved with @code{%expect} extension expressions
4872 to denote the expected output.")
4873 (license license:asl2.0)))
4875 (define-public ocaml4.07-ppx-js-style
4877 (name "ocaml4.07-ppx-js-style")
4881 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4882 (version-major+minor version)
4883 "/files/ppx_js_style-v" version ".tar.gz"))
4886 "0z3fc55jdjhhsblla6z4fqc13kljpcz29q79rvs5h2vsraqrldr2"))))
4887 (build-system dune-build-system)
4892 #:findlib ,ocaml4.07-findlib))
4894 `(("ocaml-base" ,ocaml4.07-base)
4895 ("ocaml-migrate-parsetree"
4896 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4897 ("ocaml-octavius" ,(package-with-ocaml4.07 ocaml-octavius))
4898 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4899 (properties `((upstream-name . "ppx_js_style")))
4900 (home-page "https://github.com/janestreet/ppx_js_style")
4901 (synopsis "Code style checker for Jane Street Packages")
4902 (description "This package is a no-op ppx rewriter. It is used as a
4903 @code{lint} tool to enforce some coding conventions across all Jane Street
4905 (license license:asl2.0)))
4907 (define-public ocaml4.07-ppx-typerep-conv
4909 (name "ocaml4.07-ppx-typerep-conv")
4914 (url "https://github.com/janestreet/ppx_typerep_conv.git")
4915 (commit (string-append "v" version))))
4916 (file-name (git-file-name name version))
4919 "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))
4920 (build-system dune-build-system)
4924 #:findlib ,ocaml4.07-findlib))
4926 `(("ocaml-base" ,ocaml4.07-base)
4927 ("ocaml-typerep" ,ocaml4.07-typerep)
4928 ("ocaml-migrate-parsetree"
4929 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4930 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4931 (properties `((upstream-name . "ppx_typerep_conv")))
4932 (home-page "https://github.com/janestreet/ppx_typerep_conv")
4933 (synopsis "Generation of runtime types from type declarations")
4934 (description "This package can automatically generate runtime types
4935 from type definitions.")
4936 (license license:asl2.0)))
4938 (define-public ocaml4.07-ppx-base
4940 (name "ocaml4.07-ppx-base")
4944 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4945 (version-major+minor version)
4946 "/files/ppx_base-v" version ".tar.gz"))
4949 "0aq206pg330jmj7lhcagiiwm3a0b3gsqm801m8ajd4ysyw7idkym"))))
4950 (build-system dune-build-system)
4954 #:findlib ,ocaml4.07-findlib))
4956 `(("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4957 ("ocaml-ppx-enumerate" ,ocaml4.07-ppx-enumerate)
4958 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
4959 ("ocaml-ppx-js-style" ,ocaml4.07-ppx-js-style)
4960 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4961 ("ocaml-migrate-parsetree"
4962 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4963 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4964 (properties `((upstream-name . "ppx_base")))
4965 (home-page "https://github.com/janestreet/ppx_base")
4966 (synopsis "Base set of ppx rewriters")
4967 (description "Ppx_base is the set of ppx rewriters used for Base.
4969 Note that Base doesn't need ppx to build, it is only used as a
4970 verification tool.")
4971 (license license:asl2.0)))
4973 (define-public ocaml4.07-ppx-bin-prot
4975 (name "ocaml4.07-ppx-bin-prot")
4980 (url "https://github.com/janestreet/ppx_bin_prot.git")
4981 (commit (string-append "v" version))))
4982 (file-name (git-file-name name version))
4985 "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
4986 (build-system dune-build-system)
4988 ;; Cyclic dependency with ocaml-ppx-jane
4991 #:findlib ,ocaml4.07-findlib))
4993 `(("ocaml-base" ,ocaml4.07-base)
4994 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
4995 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4996 ("ocaml-migrate-parsetree"
4997 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4998 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4999 (properties `((upstream-name . "ppx_bin_prot")))
5000 (home-page "https://github.com/janestreet/ppx_bin_prot")
5001 (synopsis "Generation of bin_prot readers and writers from types")
5002 (description "Generation of binary serialization and deserialization
5003 functions from type definitions.")
5004 (license license:asl2.0)))
5006 (define-public ocaml4.07-ppx-jane
5008 (name "ocaml4.07-ppx-jane")
5012 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5013 (version-major+minor version)
5014 "/files/ppx_jane-v" version ".tar.gz"))
5017 "0lgppkw3aixrfnixihrsz2ipafv8fpvkdpy3pw8n0r615gg8x8la"))))
5018 (build-system dune-build-system)
5022 #:findlib ,ocaml4.07-findlib))
5024 `(("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5025 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5026 ("ocaml-ppx-bench" ,ocaml4.07-ppx-bench)
5027 ("ocaml-ppx-bin-prot" ,ocaml4.07-ppx-bin-prot)
5028 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
5029 ("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)
5030 ("ocaml-ppx-fail" ,ocaml4.07-ppx-fail)
5031 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
5032 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5033 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5034 ("ocaml-ppx-let" ,ocaml4.07-ppx-let)
5035 ("ocaml-ppx-optcomp" ,ocaml4.07-ppx-optcomp)
5036 ("ocaml-ppx-optional" ,ocaml4.07-ppx-optional)
5037 ("ocaml-ppx-pipebang" ,ocaml4.07-ppx-pipebang)
5038 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5039 ("ocaml-ppx-sexp-value" ,ocaml4.07-ppx-sexp-value)
5040 ("ocaml-ppx-typerep-conv" ,ocaml4.07-ppx-typerep-conv)
5041 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
5042 ("ocaml-migrate-parsetree"
5043 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5044 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5045 (properties `((upstream-name . "ppx_jane")))
5046 (home-page "https://github.com/janestreet/ppx_jane")
5047 (synopsis "Standard Jane Street ppx rewriters")
5048 (description "This package installs a ppx-jane executable, which is a ppx
5049 driver including all standard Jane Street ppx rewriters.")
5050 (license license:asl2.0)))
5052 (define-public ocaml4.07-splittable-random
5054 (name "ocaml4.07-splittable-random")
5058 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5059 (version-major+minor version)
5060 "/files/splittable_random-v" version ".tar.gz"))
5063 "0l1wbd881mymlnpzlq5q53mmdz3g5d7qjhyc7lfaq1x0iaccn5lc"))))
5064 (build-system dune-build-system)
5066 `(#:ocaml ,ocaml-4.07
5067 #:findlib ,ocaml4.07-findlib))
5069 `(("ocaml-base" ,ocaml4.07-base)
5070 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5071 ("ocaml-migrate-parsetree"
5072 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5073 (properties `((upstream-name . "splittable_random")))
5074 (home-page "https://github.com/janestreet/splittable_random")
5075 (synopsis "PRNG that can be split into independent streams")
5076 (description "This package provides a splittable
5077 @acronym{PRNG,pseudo-random number generator} functions like a PRNG that can
5078 be used as a stream of random values; it can also be split to produce a
5079 second, independent stream of random values.
5081 This library implements a splittable pseudo-random number generator that sacrifices
5082 cryptographic-quality randomness in favor of performance.")
5083 (license license:asl2.0)))
5085 (define-public ocaml-jane-street-headers
5087 (name "ocaml-jane-street-headers")
5091 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5092 (version-major+minor version)
5093 "/files/jane-street-headers-v" version ".tar.gz"))
5096 "0afhzm08l9v883fhpqqh2lmy7az609pxif40bp7x1sk8c0yszqsh"))))
5097 (build-system dune-build-system)
5099 `(#:test-target "."))
5100 (home-page "https://github.com/janestreet/jane-street-headers")
5101 (synopsis "Jane Street C header files")
5102 (description "This package provides C header files shared between the
5103 various Jane Street packages.")
5104 (license license:asl2.0)))
5106 (define-public ocaml4.07-configurator
5108 (name "ocaml4.07-configurator")
5112 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5113 (version-major+minor version)
5114 "/files/configurator-v" version ".tar.gz"))
5117 "0kwgi3sh92v4n242dk5hgpwd85zzgnczgbkqi0q0kr6m93zgbf7p"))))
5118 (build-system dune-build-system)
5123 #:findlib ,ocaml4.07-findlib))
5125 `(("ocaml-base" ,ocaml4.07-base)
5126 ("ocaml-stdio" ,ocaml4.07-stdio)))
5127 (home-page "https://github.com/janestreet/configurator")
5128 (synopsis "Helper library for gathering system configuration")
5129 (description "Configurator is a small library that helps writing OCaml
5130 scripts that test features available on the system, in order to generate config.h
5133 Configurator allows one to:
5135 @item test if a C program compiles
5136 @item query pkg-config
5137 @item import #define from OCaml header files
5138 @item generate config.h file
5140 (license license:asl2.0)))
5142 (define-public ocaml4.07-spawn
5144 (name "ocaml4.07-spawn")
5149 (url "https://github.com/janestreet/spawn.git")
5150 (commit (string-append "v" version))))
5151 (file-name (git-file-name name version))
5154 "1w003k1kw1lmyiqlk58gkxx8rac7dchiqlz6ah7aj7bh49b36ppf"))))
5155 (build-system dune-build-system)
5158 (modify-phases %standard-phases
5159 (add-before 'check 'fix-tests
5161 (substitute* "test/tests.ml"
5162 (("/bin/pwd") (which "pwd"))
5163 (("/bin/echo") (which "echo")))
5166 #:findlib ,ocaml4.07-findlib))
5168 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
5169 (home-page "https://github.com/janestreet/spawn")
5170 (synopsis "Spawning sub-processes")
5172 "Spawn is a small library exposing only one functionality: spawning sub-process.
5174 It has three main goals:
5177 @item provide missing features of Unix.create_process such as providing a
5179 @item provide better errors when a system call fails in the
5180 sub-process. For instance if a command is not found, you get a proper
5181 @code{Unix.Unix_error} exception,
5182 @item improve performances by using vfork when available. It is often
5183 claimed that nowadays fork is as fast as vfork, however in practice
5184 fork takes time proportional to the process memory while vfork is
5185 constant time. In application using a lot of memory, vfork can be
5186 thousands of times faster than fork.
5188 (license license:asl2.0)))
5190 (define-public ocaml4.07-core
5192 (name "ocaml4.07-core")
5197 (url "https://github.com/janestreet/core.git")
5198 (commit (string-append "v" version))))
5199 (file-name (git-file-name name version))
5202 "0pzl8n09z4f3i7z2wq4cjxfqrr8mj6xcdp7rbg0nxap2zdhjgvrq"))))
5203 (build-system dune-build-system)
5206 ;; Require a cyclic dependency: core_extended
5209 #:findlib ,ocaml4.07-findlib))
5211 `(("ocaml-base" ,ocaml4.07-base)
5212 ("ocaml-configurator" ,ocaml4.07-configurator)
5213 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
5214 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5215 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5216 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5217 ("ocaml-spawn" ,ocaml4.07-spawn)
5218 ("ocaml-stdio" ,ocaml4.07-stdio)
5219 ("ocaml-migrate-parsetree"
5220 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5221 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5222 (home-page "https://github.com/janestreet/core")
5223 (synopsis "Alternative to OCaml's standard library")
5224 (description "The Core suite of libraries is an alternative to OCaml's
5225 standard library that was developed by Jane Street.")
5226 ;; Also contains parts of OCaml, relicensed to asl2.0, as permitted
5227 ;; by OCaml's license for consortium members (see THIRD-PARTY.txt).
5228 (license license:asl2.0)))
5230 (define-public ocaml4.07-core-kernel
5232 (name "ocaml4.07-core-kernel")
5237 (url "https://github.com/janestreet/core_kernel.git")
5238 (commit (string-append "v" version))))
5239 (file-name (git-file-name name version))
5242 "1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
5243 (build-system dune-build-system)
5245 ;; Cyclic dependency with ocaml-core
5248 #:findlib ,ocaml4.07-findlib))
5250 `(("ocaml-base" ,ocaml4.07-base)
5251 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
5252 ("ocaml-configurator" ,ocaml4.07-configurator)
5253 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
5254 ("ocaml-jane-street-headers"
5255 ,(package-with-ocaml4.07 ocaml-jane-street-headers))
5256 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5257 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5258 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
5259 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5260 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5261 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5262 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5263 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5264 ("ocaml-splittable-random" ,ocaml4.07-splittable-random)
5265 ("ocaml-stdio" ,ocaml4.07-stdio)
5266 ("ocaml-typerep" ,ocaml4.07-typerep)
5267 ("ocaml-variantslib" ,ocaml4.07-variantslib)
5268 ("ocaml-migrate-parsetree"
5269 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5270 (properties `((upstream-name . "core_kernel")))
5271 (home-page "https://github.com/janestreet/core_kernel")
5272 (synopsis "Portable standard library for OCaml")
5273 (description "Core is an alternative to the OCaml standard library.
5275 Core_kernel is the system-independent part of Core. It is aimed for cases when
5276 the full Core is not available, such as in Javascript.")
5278 ;; this package and parts of OCaml, relicensed by janestreet
5283 (define-public ocaml-markup
5285 (name "ocaml-markup")
5287 (home-page "https://github.com/aantron/markup.ml")
5292 (url (string-append home-page ".git"))
5294 (file-name (git-file-name name version))
5297 "13zcrwzjmifniv3bvjbkd2ah8wwa3ld75bxh1d8hrzdvfxzh9szn"))))
5298 (build-system dune-build-system)
5300 `(#:package "markup"))
5302 `(("libev" ,libev)))
5304 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
5305 ("ocaml-uchar" ,ocaml-uchar)
5306 ("ocaml-uutf" ,ocaml-uutf)
5307 ("ocaml-lwt" ,ocaml-lwt)))
5309 `(("ocaml-ounit" ,ocaml-ounit)
5310 ("pkg-config" ,pkg-config)))
5311 (synopsis "Error-recovering functional HTML5 and XML parsers and writers")
5312 (description "Markup.ml provides an HTML parser and an XML parser. The
5313 parsers are wrapped in a simple interface: they are functions that transform
5314 byte streams to parsing signal streams. Streams can be manipulated in various
5315 ways, such as processing by fold, filter, and map, assembly into DOM tree
5316 structures, or serialization back to HTML or XML.
5318 Both parsers are based on their respective standards. The HTML parser, in
5319 particular, is based on the state machines defined in HTML5.
5321 The parsers are error-recovering by default, and accept fragments. This makes
5322 it very easy to get a best-effort parse of some input. The parsers can,
5323 however, be easily configured to be strict, and to accept only full documents.
5325 Apart from this, the parsers are streaming (do not build up a document in
5326 memory), non-blocking (can be used with threading libraries), lazy (do not
5327 consume input unless the signal stream is being read), and process the input in
5328 a single pass. They automatically detect the character encoding of the input
5329 stream, and convert everything to UTF-8.")
5330 (license license:bsd-3)))
5332 (define-public ocaml-tyxml
5334 (name "ocaml-tyxml")
5340 (url "https://github.com/ocsigen/tyxml.git")
5342 (file-name (git-file-name name version))
5345 "0wv19xipkj8l2sks1h53105ywbjwk7q93fb7b8al4a2g9wr109c0"))))
5346 (build-system dune-build-system)
5348 `(("ocaml-re" ,ocaml-re)
5349 ("ocaml-seq" ,ocaml-seq)
5350 ("ocaml-uutf" ,ocaml-uutf)
5351 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5352 ("ocaml-markup" ,ocaml-markup)))
5354 `(("ocaml-alcotest" ,ocaml-alcotest)))
5355 (arguments `(#:jbuild? #t))
5356 (home-page "https://github.com/ocsigen/tyxml/")
5357 (synopsis "TyXML is a library for building correct HTML and SVG documents")
5358 (description "TyXML provides a set of convenient combinators that uses the
5359 OCaml type system to ensure the validity of the generated documents. TyXML can
5360 be used with any representation of HTML and SVG: the textual one, provided
5361 directly by this package, or DOM trees (@code{js_of_ocaml-tyxml}) virtual DOM
5362 (@code{virtual-dom}) and reactive or replicated trees (@code{eliom}). You can
5363 also create your own representation and use it to instantiate a new set of
5365 (license license:lgpl2.1)))
5367 (define-public ocaml-bisect-ppx
5369 (name "ocaml-bisect-ppx")
5375 (url "https://github.com/aantron/bisect_ppx.git")
5377 (file-name (git-file-name name version))
5380 "0900vli5kw7s5kdam0n4cqsfsfqb7mdb3azn3i55595gilg1vyn8"))))
5381 (build-system dune-build-system)
5383 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5384 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5385 ("ocaml-ounit" ,ocaml-ounit)))
5388 (modify-phases %standard-phases
5389 (add-before 'build 'fix-deprecated
5391 ;; Fixed upstream in 22dd1ad9a0c9629f60599c22d82c6488394d6d32, but
5392 ;; not in a release yet.
5393 (substitute* "src/ppx/instrument.ml"
5394 (("module Ast = Ast_405")
5395 "module Ast = Migrate_parsetree.Ast_405
5396 module Ast_405 = Ast"))
5398 (home-page "https://github.com/aantron/bisect_ppx")
5399 (synopsis "Code coverage for OCaml")
5400 (description "Bisect_ppx helps you test thoroughly. It is a small
5401 preprocessor that inserts instrumentation at places in your code, such as
5402 if-then-else and match expressions. After you run tests, Bisect_ppx gives a
5403 nice HTML report showing which places were visited and which were missed.
5405 Usage is simple - add package bisect_ppx when building tests, run your tests,
5406 then run the Bisect_ppx report tool on the generated visitation files.")
5407 (license license:mpl2.0)))
5409 (define-public ocaml4.07-odoc
5411 (name "ocaml4.07-odoc")
5417 (url "https://github.com/ocaml/odoc")
5419 (file-name (git-file-name name version))
5421 (base32 "0rvhx139jx6wmlfz355mja6mk03x4swq1xxvk5ky6jzhalq3cf5i"))))
5422 (build-system dune-build-system)
5424 `(#:ocaml ,ocaml-4.07
5425 #:findlib ,ocaml4.07-findlib
5426 #:dune ,ocaml4.07-dune))
5428 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))
5429 ("ocaml-markup" ,(package-with-ocaml4.07 ocaml-markup))
5430 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5431 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
5432 ("ocaml-uutf" ,(package-with-ocaml4.07 ocaml-uutf))))
5434 `(("ocaml-astring" ,(package-with-ocaml4.07 ocaml-astring))
5435 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
5436 ("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
5437 ("ocaml-fpath" ,(package-with-ocaml4.07 ocaml-fpath))
5438 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
5439 ("ocaml-tyxml" ,(package-with-ocaml4.07 ocaml-tyxml))
5440 ("ocaml-bisect-ppx" ,(package-with-ocaml4.07 ocaml-bisect-ppx))))
5441 (home-page "https://github.com/ocaml/odoc")
5442 (synopsis "OCaml documentation generator")
5443 (description "Odoc is a documentation generator for OCaml. It reads
5444 @emph{doc comments}, delimited with @code{(** ... *)}, and outputs
5447 Text inside doc comments is marked up in ocamldoc syntax. Odoc's main
5448 advantage over ocamldoc is an accurate cross-referencer, which handles the
5449 complexity of the OCaml module system.")
5450 (license license:isc)))
5452 (define-public ocaml4.07-fftw3
5454 (name "ocaml4.07-fftw3")
5460 (url "https://github.com/Chris00/fftw-ocaml.git")
5462 (file-name (git-file-name name version))
5465 "0l66yagjkwdcib6q55wd8wiap50vi23qiahkghlvm28z7nvbclfk"))))
5466 (build-system dune-build-system)
5469 #:test-target "tests"
5471 #:findlib ,ocaml4.07-findlib
5472 #:dune ,ocaml4.07-dune))
5477 `(("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
5478 ("ocaml-lacaml" ,ocaml4.07-lacaml)))
5480 "https://github.com/Chris00/fftw-ocaml")
5482 "Bindings to FFTW3")
5484 "Bindings providing OCaml support for the seminal Fast Fourier Transform
5486 (license license:lgpl2.1))) ; with static linking exception.
5488 (define-public ocaml4.07-lacaml
5490 (name "ocaml4.07-lacaml")
5496 (url "https://github.com/mmottl/lacaml.git")
5498 (file-name (git-file-name name version))
5501 "180yb79a3qgx067qcpm50q12hrimjygf06rgkzbish9d1zfm670c"))))
5502 (build-system dune-build-system)
5504 `(#:tests? #f ; No test target.
5506 #:findlib ,ocaml4.07-findlib
5507 #:dune ,ocaml4.07-dune))
5509 `(("openblas" ,openblas)
5511 ("ocaml-base" ,ocaml4.07-base)
5512 ("ocaml-stdio" ,ocaml4.07-stdio)))
5513 (home-page "https://mmottl.github.io/lacaml/")
5515 "OCaml-bindings to BLAS and LAPACK")
5517 "Lacaml interfaces the BLAS-library (Basic Linear Algebra Subroutines) and
5518 LAPACK-library (Linear Algebra routines). It also contains many additional
5519 convenience functions for vectors and matrices.")
5520 (license license:lgpl2.1)))
5522 (define-public ocaml-cairo2
5524 (name "ocaml-cairo2")
5529 (url "https://github.com/Chris00/ocaml-cairo.git")
5531 (file-name (git-file-name name version))
5534 "0wzysis9fa850s68qh8vrvqc6svgllhwra3kzll2ibv0wmdqrich"))))
5535 (build-system dune-build-system)
5537 `(#:test-target "tests"))
5541 ("lablgtk" ,lablgtk)))
5543 `(("pkg-config" ,pkg-config)))
5544 (home-page "https://github.com/Chris00/ocaml-cairo")
5545 (synopsis "Binding to Cairo, a 2D Vector Graphics Library")
5546 (description "Ocaml-cairo2 is a binding to Cairo, a 2D graphics library
5547 with support for multiple output devices. Currently supported output targets
5548 include the X Window System, Quartz, Win32, image buffers, PostScript, PDF,
5549 and SVG file output.")
5550 (license license:lgpl3+)))
5552 (define-public lablgtk3
5555 (version "3.0.beta8")
5559 (url "https://github.com/garrigue/lablgtk.git")
5561 (file-name (git-file-name name version))
5564 "08pgwnia240i2rw1rbgiahg673kwa7b6bvhsg3z4b47xr5sh9pvz"))))
5565 (build-system dune-build-system)
5570 (modify-phases %standard-phases
5571 (add-before 'build 'make-writable
5573 (for-each (lambda (file)
5575 (find-files "." "."))
5578 `(("ocaml-cairo2" ,ocaml-cairo2)))
5580 `(("camlp5" ,camlp5)
5582 ("gtksourceview-3" ,gtksourceview-3)
5583 ("gtkspell3" ,gtkspell3)))
5585 `(("pkg-config" ,pkg-config)))
5586 (home-page "https://github.com/garrigue/lablgtk")
5587 (synopsis "OCaml interface to GTK+3")
5588 (description "LablGtk is an OCaml interface to GTK+ 1.2, 2.x and 3.x. It
5589 provides a strongly-typed object-oriented interface that is compatible with the
5590 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
5591 also provides bindings to gdk-pixbuf, the GLArea widget (in combination with
5592 LablGL), gnomecanvas, gnomeui, gtksourceview, gtkspell, libglade (and it can
5593 generate OCaml code from .glade files), libpanel, librsvg and quartz.")
5594 ;; Version 2 only, with linking exception.
5595 (license license:lgpl2.0)))