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 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016-2018 Julien Lepiller <julien@lepiller.eu>
10 ;;; Copyright © 2017 Ben Woodcroft <donttrustben@gmail.com>
11 ;;; Copyright © 2017, 2018 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>
17 ;;; This file is part of GNU Guix.
19 ;;; GNU Guix is free software; you can redistribute it and/or modify it
20 ;;; under the terms of the GNU General Public License as published by
21 ;;; the Free Software Foundation; either version 3 of the License, or (at
22 ;;; your option) any later version.
24 ;;; GNU Guix is distributed in the hope that it will be useful, but
25 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ;;; GNU General Public License for more details.
29 ;;; You should have received a copy of the GNU General Public License
30 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
32 (define-module (gnu packages ocaml)
33 #:use-module (gnu packages)
34 #:use-module (gnu packages autotools)
35 #:use-module (gnu packages base)
36 #:use-module (gnu packages bison)
37 #:use-module (gnu packages boost)
38 #:use-module (gnu packages compression)
39 #:use-module (gnu packages curl)
40 #:use-module (gnu packages emacs)
41 #:use-module (gnu packages emacs-xyz)
42 #:use-module (gnu packages flex)
43 #:use-module (gnu packages gcc)
44 #:use-module (gnu packages ghostscript)
45 #:use-module (gnu packages glib)
46 #:use-module (gnu packages gnome)
47 #:use-module (gnu packages gtk)
48 #:use-module (gnu packages libevent)
49 #:use-module (gnu packages libffi)
50 #:use-module (gnu packages llvm)
51 #:use-module (gnu packages m4)
52 #:use-module (gnu packages maths)
53 #:use-module (gnu packages multiprecision)
54 #:use-module (gnu packages ncurses)
55 #:use-module (gnu packages pcre)
56 #:use-module (gnu packages perl)
57 #:use-module (gnu packages pkg-config)
58 #:use-module (gnu packages protobuf)
59 #:use-module (gnu packages python)
60 #:use-module (gnu packages sdl)
61 #:use-module (gnu packages sqlite)
62 #:use-module (gnu packages tex)
63 #:use-module (gnu packages texinfo)
64 #:use-module (gnu packages time)
65 #:use-module (gnu packages tls)
66 #:use-module (gnu packages version-control)
67 #:use-module (gnu packages virtualization)
68 #:use-module (gnu packages web-browsers)
69 #:use-module (gnu packages xml)
70 #:use-module (gnu packages xorg)
71 #:use-module (guix build-system dune)
72 #:use-module (guix build-system emacs)
73 #:use-module (guix build-system gnu)
74 #:use-module (guix build-system ocaml)
75 #:use-module (guix download)
76 #:use-module (guix git-download)
77 #:use-module ((guix licenses) #:prefix license:)
78 #:use-module (guix packages)
79 #:use-module (guix svn-download)
80 #:use-module (guix utils)
81 #:use-module ((srfi srfi-1) #:hide (zip)))
83 ;; A shortcut for files from ocaml forge. Downloaded files are computed from
84 ;; their number, not their name.
85 (define (ocaml-forge-uri name version file-number)
86 (string-append "https://forge.ocamlcore.org/frs/download.php/"
87 (number->string file-number) "/" name "-" version
90 ;; Janestreet packages are found in a similar way and all need the same patch.
91 (define (janestreet-origin name version hash)
92 (origin (method url-fetch)
93 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/"
94 (version-major+minor version) "/files/"
95 name "-" version ".tar.gz"))
96 (sha256 (base32 hash))
97 (modules '((guix build utils)))
99 (let ((pattern (string-append "lib/" name)))
101 ;; install.ml contains an invalid reference to the ppx file and
102 ;; propagates this error to the generated META file. It
103 ;; looks for it in the "lib" directory, but it is installed in
104 ;; "lib/ocaml/site-lib/package". This substitute does not change
105 ;; this file for non ppx packages.
106 (substitute* "install.ml"
107 ((,pattern) (string-append "lib/ocaml/site-lib/" ,name)))
108 ;; The standard Makefile would try to install janestreet modules
109 ;; in OCaml's directory in the store, which is read-only.
110 (substitute* "Makefile"
112 "--libdir $(LIBDIR) --prefix"))
115 ;; They also require almost the same set of arguments
116 (define janestreet-arguments
119 (list (string-append "CONFIGUREFLAGS=--prefix "
120 (assoc-ref %outputs "out")
122 (string-append "LIBDIR="
123 (assoc-ref %outputs "out")
124 "/lib/ocaml/site-lib")
125 ;; for ocaml-bin-prot, otherwise ignored
126 (string-append "OCAML_TOPLEVEL_PATH="
127 (assoc-ref %build-inputs "findlib")
128 "/lib/ocaml/site-lib"))
129 #:phases (modify-phases %standard-phases (delete 'configure))))
131 (define-public ocaml-4.02
138 "http://caml.inria.fr/pub/distrib/ocaml-"
139 (version-major+minor version)
140 "/ocaml-" version ".tar.xz"))
143 "1qwwvy8nzd87hk8rd9sm667nppakiapnx4ypdwcrlnav2dz6kil3"))
146 "ocaml-CVE-2015-8869.patch"
147 "ocaml-Add-a-.file-directive.patch"
148 "ocaml-enable-ocamldoc-reproducibility.patch"))))
149 (build-system gnu-build-system)
151 (list (search-path-specification
152 (variable "OCAMLPATH")
153 (files (list "lib/ocaml" "lib/ocaml/site-lib")))
154 (search-path-specification
155 (variable "CAML_LD_LIBRARY_PATH")
156 (files (list "lib/ocaml/site-lib/stubslibs"
157 "lib/ocaml/site-lib/stublibs")))))
160 ("pkg-config" ,pkg-config)))
163 ;; For libiberty, needed for objdump support.
164 ("gcc:lib" ,(canonical-package gcc) "lib")
165 ("zlib" ,zlib))) ;also needed for objdump support
167 `(#:modules ((guix build gnu-build-system)
171 (modify-phases %standard-phases
172 (add-after 'unpack 'patch-/bin/sh-references
173 (lambda* (#:key inputs #:allow-other-keys)
174 (let* ((sh (string-append (assoc-ref inputs "bash")
176 (quoted-sh (string-append "\"" sh "\"")))
177 (with-fluids ((%default-port-encoding #f))
183 (format (current-error-port) "\
184 patch-/bin/sh-references: ~a: changing `\"/bin/sh\"' to `~a'~%"
187 (find-files "." "\\.ml$"))
190 (lambda* (#:key outputs #:allow-other-keys)
191 (let* ((out (assoc-ref outputs "out"))
192 (mandir (string-append out "/share/man")))
193 ;; Custom configure script doesn't recognize
194 ;; --prefix=<PREFIX> syntax (with equals sign).
195 (invoke "./configure"
197 "--mandir" mandir))))
200 (invoke "make" "-j" (number->string (parallel-job-count))
203 (add-after 'install 'check
205 (with-directory-excursion "testsuite"
206 (invoke "make" "all"))))
207 (add-before 'check 'prepare-socket-test
209 (format (current-error-port)
210 "Spawning local test web server on port 8080~%")
211 (when (zero? (primitive-fork))
212 (run-server (lambda (request request-body)
213 (values '((content-type . (text/plain)))
215 'http '(#:port 8080)))
216 (let ((file "testsuite/tests/lib-threads/testsocket.ml"))
217 (format (current-error-port)
218 "Patching ~a to use localhost port 8080~%"
221 (("caml.inria.fr") "localhost")
223 (("HTTP1.0") "HTTP/1.0"))
225 (home-page "https://ocaml.org/")
226 (synopsis "The OCaml programming language")
228 "OCaml is a general purpose industrial-strength programming language with
229 an emphasis on expressiveness and safety. Developed for more than 20 years at
230 Inria it benefits from one of the most advanced type systems and supports
231 functional, imperative and object-oriented styles of programming.")
232 ;; The compiler is distributed under qpl1.0 with a change to choice of
233 ;; law: the license is governed by the laws of France. The library is
234 ;; distributed under lgpl2.0.
235 (license (list license:qpl license:lgpl2.0))))
237 (define-public ocaml-4.01
244 "http://caml.inria.fr/pub/distrib/ocaml-"
245 (version-major+minor version)
246 "/ocaml-" version ".tar.xz"))
249 "03d7ida94s1gpr3gadf4jyhmh5rrszd5s4m4z59daaib25rvfyv7"))))
251 (substitute-keyword-arguments (package-arguments ocaml-4.02)
253 `(modify-phases ,phases
256 ;; Specifying '-j' at all causes the build to fail.
257 (invoke "make" "world.opt")))
258 ,@(if (string=? "aarch64-linux" (%current-system))
259 ;; Custom configure script doesn't recongnize aarch64.
260 '((replace 'configure
261 (lambda* (#:key outputs #:allow-other-keys)
262 (let* ((out (assoc-ref outputs "out"))
263 (mandir (string-append out "/share/man")))
264 (invoke "./configure"
267 "-host" "armv8l-unknown-linux-gnu")))))
271 (with-directory-excursion "testsuite"
274 "TOPDIR=" (getcwd) "/..")))))))))))
276 (define-public ocaml-4.07
283 "http://caml.inria.fr/pub/distrib/ocaml-"
284 (version-major+minor version)
285 "/ocaml-" version ".tar.xz"))
288 "1f07hgj5k45cylj1q3k5mk8yi02cwzx849b1fwnwia8xlcfqpr6z"))))
290 (substitute-keyword-arguments (package-arguments ocaml-4.02)
292 `(modify-phases ,phases
293 (delete 'prepare-socket-test)
296 (with-directory-excursion "testsuite"
297 (invoke "make" "all"))
300 (define-public ocaml ocaml-4.07)
302 (define-public ocamlbuild
308 (uri (string-append "https://github.com/ocaml/ocamlbuild/archive/"
310 (file-name (string-append name "-" version ".tar.gz"))
313 "1320cfkixs1xlng5av04pa5qjb3ynvi2kl3k1ngqzg5fpi29b0vr"))))
314 (build-system gnu-build-system)
316 `(#:test-target "test"
317 #:tests? #f; tests require findlib
319 (list (string-append "OCAMLBUILD_PREFIX=" (assoc-ref %outputs "out"))
320 (string-append "OCAMLBUILD_BINDIR=" (assoc-ref %outputs "out")
322 (string-append "OCAMLBUILD_LIBDIR=" (assoc-ref %outputs "out")
323 "/lib/ocaml/site-lib")
324 (string-append "OCAMLBUILD_MANDIR=" (assoc-ref %outputs "out")
327 (modify-phases %standard-phases
330 (add-before 'build 'findlib-environment
331 (lambda* (#:key outputs #:allow-other-keys)
332 (let* ((out (assoc-ref outputs "out")))
333 (setenv "OCAMLFIND_DESTDIR" (string-append out "/lib/ocaml/site-lib"))
334 (setenv "OCAMLFIND_LDCONF" "ignore")
338 (home-page "https://github.com/ocaml/ocamlbuild")
339 (synopsis "OCaml build tool")
340 (description "OCamlbuild is a generic build tool, that has built-in rules
341 for building OCaml library and programs.")
342 (license license:lgpl2.1+)))
350 ;; Use the '-full' version, which includes all the dependencies.
352 "https://github.com/ocaml/opam/releases/download/"
353 version "/opam-full-" version ".tar.gz")
354 ;; (string-append "https://github.com/ocaml/opam/archive/"
355 ;; version ".tar.gz")
359 "0z6r9qr4awcdn7wyrl5y5jm34jsjlnzd00py893f1hd0c6vg3xw1"))))
360 (build-system gnu-build-system)
362 '(;; Sometimes, 'make -jX' would fail right after ./configure with
363 ;; "Fatal error: exception End_of_file".
366 ;; For some reason, 'ocp-build' needs $TERM to be set.
367 #:make-flags `("TERM=screen"
368 ,(string-append "SHELL="
369 (assoc-ref %build-inputs "bash")
371 #:test-target "tests"
373 ;; FIXME: There's an obscure test failure:
374 ;; …/_obuild/opam/opam.asm install P1' failed.
377 #:phases (modify-phases %standard-phases
378 (add-before 'build 'pre-build
379 (lambda* (#:key inputs make-flags #:allow-other-keys)
380 (let ((bash (assoc-ref inputs "bash"))
381 (bwrap (string-append (assoc-ref inputs "bubblewrap")
383 (substitute* "src/core/opamSystem.ml"
385 (string-append "\"" bash "/bin/sh\""))
388 ;; Use bwrap from the store directly.
389 (substitute* "src/state/shellscripts/bwrap.sh"
390 (("-v bwrap") (string-append "-v " bwrap))
391 (("exec bwrap") (string-append "exec " bwrap))
392 ;; Mount /gnu and /run/current-system in the
393 ;; isolated environment when building with opam.
394 ;; This is necessary for packages to find external
395 ;; dependencies, such as a C compiler, make, etc...
396 (("^add_mounts ro /usr")
397 "add_mounts ro /gnu /run/current-system /usr"))
398 (substitute* "src/client/opamInitDefaults.ml"
399 (("\"bwrap\"") (string-append "\"" bwrap "\"")))
400 ;; Build dependencies
401 (apply invoke "make" "lib-ext" make-flags)
403 (add-before 'check 'pre-check
405 (setenv "HOME" (getcwd))
406 (invoke "git" "config" "--global" "user.email" "guix@gnu.org")
407 (invoke "git" "config" "--global" "user.name" "Guix")
410 `(("git" ,git) ;for the tests
411 ("python" ,python) ;for the tests
417 ("bubblewrap" ,bubblewrap)))
418 (home-page "http://opam.ocamlpro.com/")
419 (synopsis "Package manager for OCaml")
421 "OPAM is a tool to manage OCaml packages. It supports multiple
422 simultaneous compiler installations, flexible package constraints, and a
423 Git-friendly development workflow.")
425 ;; The 'LICENSE' file waives some requirements compared to LGPLv3.
426 (license license:lgpl3)))
428 (define-public camlp4-4.02
434 (uri (string-append "https://github.com/ocaml/camlp4/archive/"
438 "0icdfzhsbgf89925gc8gl3fm8z2xzszzlib0v9dj5wyzkyv3a342"))
439 (file-name (string-append name "-" version ".tar.gz"))))
440 (build-system gnu-build-system)
441 (native-inputs `(("ocaml" ,ocaml-4.02)
443 (inputs `(("ocaml" ,ocaml-4.02)))
445 '(#:tests? #f ;no documented test target
446 ;; a race-condition will lead byte and native targets to mkdir _build
447 ;; which fails on the second attempt.
449 #:make-flags '("all")
451 (modify-phases %standard-phases
453 (lambda* (#:key outputs #:allow-other-keys)
454 ;; This is a home-made 'configure' script.
455 (let ((out (assoc-ref outputs "out")))
456 (invoke "./configure"
457 (string-append "--libdir=" out
458 "/lib/ocaml/site-lib")
459 (string-append "--bindir=" out "/bin")
460 (string-append "--pkgdir=" out
461 "/lib/ocaml/site-lib")))))
462 (add-after 'install 'install-meta
463 (lambda* (#:key outputs #:allow-other-keys)
464 (let ((out (assoc-ref outputs "out")))
465 (substitute* "camlp4/META.in"
467 (string-append "directory = \"" out
468 "/lib/ocaml/site-lib/camlp4\"\n")))
469 (invoke "make" "install-META")))))))
470 (home-page "https://github.com/ocaml/camlp4")
471 (synopsis "Write parsers in OCaml")
473 "Camlp4 is a software system for writing extensible parsers for
474 programming languages. It provides a set of OCaml libraries that are used to
475 define grammars as well as loadable syntax extensions of such grammars.
476 Camlp4 stands for Caml Preprocessor and Pretty-Printer and one of its most
477 important applications is the definition of domain-specific extensions of the
480 ;; This is LGPLv2 with an exception that allows packages statically-linked
481 ;; against the library to be released under any terms.
482 (license license:lgpl2.0)))
484 (define-public camlp4-4.07
486 (inherit camlp4-4.02)
491 (uri (string-append "https://github.com/ocaml/camlp4/archive/"
495 "143hhxv1i6aq413z0i1pynrjcfl2g5gnh5r3863v6h9z0riqknzc"))
496 (file-name (string-append name "-" version ".tar.gz"))))
498 `((ocaml4.02-variant . ,(delay camlp4-4.02))))
500 `(("ocaml" ,ocaml-4.07)
501 ("ocamlbuild" ,ocamlbuild)
504 `(("ocaml" ,ocaml-4.07)))))
506 (define-public camlp4 camlp4-4.07)
508 (define-public camlp5
514 (uri (string-append "https://github.com/camlp5/camlp5/archive/rel"
515 (string-delete #\. version) ".tar.gz"))
516 (file-name (string-append name "-" version ".tar.gz"))
519 "148r6p93xlxi6v7kbsqv8i70r6av04cyn0109pwss5xj6fw97i52"))))
520 (build-system gnu-build-system)
524 `(#:tests? #f ; XXX TODO figure out how to run the tests
526 (modify-phases %standard-phases
528 (lambda* (#:key outputs #:allow-other-keys)
529 (let* ((out (assoc-ref outputs "out"))
530 (mandir (string-append out "/share/man")))
531 ;; Custom configure script doesn't recognize
532 ;; --prefix=<PREFIX> syntax (with equals sign).
533 (invoke "./configure"
535 "--mandir" mandir))))
536 (add-before 'build 'fix-/bin-references
538 (substitute* "config/Makefile"
543 (invoke "make" "-j" (number->string
544 (parallel-job-count))
546 ;; Required for findlib to find camlp5's libraries
547 (add-after 'install 'install-meta
548 (lambda* (#:key outputs #:allow-other-keys)
549 (install-file "etc/META" (string-append (assoc-ref outputs "out")
550 "/lib/ocaml/camlp5/"))
552 (home-page "http://camlp5.gforge.inria.fr/")
553 (synopsis "Pre-processor Pretty Printer for OCaml")
555 "Camlp5 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers
556 tools for syntax (Stream Parsers and Grammars) and the ability to modify the
557 concrete syntax of the language (Quotations, Syntax Extensions).")
558 ;; Most files are distributed under bsd-3, but ocaml_stuff/* is under qpl.
559 (license (list license:bsd-3 license:qpl))))
567 (uri (string-append "http://hevea.inria.fr/old/"
568 name "-" version ".tar.gz"))
571 "1s4yqphfcr1pf5mcj5c84mvmd107k525iiym5jdwsxz0ka0ccmfy"))))
572 (build-system gnu-build-system)
576 `(("ocamlbuild" ,ocamlbuild)))
578 `(#:tests? #f ; no test suite
579 #:make-flags (list (string-append "PREFIX=" %output))
580 #:phases (modify-phases %standard-phases
582 (add-before 'build 'patch-/bin/sh
585 (("/bin/sh") (which "sh")))
587 (home-page "http://hevea.inria.fr/")
588 (synopsis "LaTeX to HTML translator")
590 "HeVeA is a LaTeX to HTML translator that generates modern HTML 5. It is
591 written in Objective Caml.")
592 (license license:qpl)))
594 (define-public ocaml-num
600 (uri (string-append "https://github.com/ocaml/num/archive/v"
602 (file-name (string-append name "-" version ".tar.gz"))
605 "1xlkd0svc0mgq5s7nrm2rjrsvg15i9wxqkc1kvwjp6sv8vv8bb04"))))
606 (build-system ocaml-build-system)
609 (modify-phases %standard-phases
611 (add-before 'build 'fix-makefile
612 (lambda* (#:key outputs #:allow-other-keys)
613 ;; This package supposes we install to the same directory as
614 ;; the ocaml package.
615 (substitute* "src/META"
616 (("\"\\^\"") (string-append "\"" (assoc-ref outputs "out")
617 "/lib/ocaml/site-lib\"")))
618 (substitute* "src/Makefile"
619 (("\\) \\$\\(STDLIBDIR\\)")
620 (string-append ") " (assoc-ref outputs "out")
621 "/lib/ocaml/site-lib")))
623 (add-after 'install 'fix-stubslib
624 (lambda* (#:key outputs #:allow-other-keys)
625 (format #t "~a~%" (find-files "." ".*.so"))
626 (let ((stubdir (string-append (assoc-ref outputs "out")
627 "/lib/ocaml/site-lib")))
629 (install-file "src/dllnums.so" stubdir))
631 (home-page "https://github.com/ocaml/num")
632 (synopsis "Arbitrary-precision integer and rational arithmetic")
633 (description "OCaml-Num contains the legacy Num library for
634 arbitrary-precision integer and rational arithmetic that used to be part of
635 the OCaml core distribution.")
636 (license license:lgpl2.1+))); with linking exception
638 (define-public emacs-tuareg
640 (name "emacs-tuareg")
644 (uri (string-append "https://github.com/ocaml/tuareg/archive/"
646 (file-name (string-append name "-" version ".tar.gz"))
649 "1ynpfc170f9jqx49biji9npfkvfpflbm29xf24wc7fnxxayr49ig"))))
650 (build-system gnu-build-system)
651 (native-inputs `(("emacs" ,emacs-minimal)
655 (modify-phases %standard-phases
657 (add-before 'install 'fix-install-path
658 (lambda* (#:key outputs #:allow-other-keys)
659 (substitute* "Makefile"
660 (("/emacs/site-lisp")
661 (string-append (assoc-ref %outputs "out")
662 "/share/emacs/site-lisp/")))
664 (add-after 'install 'post-install
665 (lambda* (#:key outputs #:allow-other-keys)
667 (string-append (assoc-ref outputs "out")
668 "/share/emacs/site-lisp/"
669 "tuareg-autoloads.el"))
671 (home-page "https://github.com/ocaml/tuareg")
672 (synopsis "OCaml programming mode, REPL, debugger for Emacs")
673 (description "Tuareg helps editing OCaml code, to highlight important
674 parts of the code, to run an OCaml REPL, and to run the OCaml debugger within
676 (license license:gpl2+)))
678 (define-public ocaml-menhir
680 (name "ocaml-menhir")
685 "http://gallium.inria.fr/~fpottier/menhir/"
686 "menhir-" version ".tar.gz"))
689 "1j8nmcj2gq6hyyi16z27amiahplgrnk4ppchpm0v4qy80kwkf47k"))))
690 (build-system gnu-build-system)
694 `(("ocamlbuild" ,ocamlbuild)))
696 `(#:parallel-build? #f ; Parallel build causes failure
697 #:tests? #f ; No check target
699 (modify-phases %standard-phases
701 (lambda* (#:key outputs #:allow-other-keys)
702 (let ((out (assoc-ref outputs "out")))
703 (setenv "PREFIX" out))
706 `((ocaml4.02-variant . ,(delay ocaml4.02-menhir))))
707 (home-page "http://gallium.inria.fr/~fpottier/menhir")
708 (synopsis "Parser generator")
709 (description "Menhir is a parser generator. It turns high-level grammar
710 specifications, decorated with semantic actions expressed in the OCaml
711 programming language into parsers, again expressed in OCaml. It is based on
712 Knuth’s LR(1) parser construction technique.")
713 ;; The file src/standard.mly and all files listed in src/mnehirLib.mlpack
714 ;; that have an *.ml or *.mli extension are GPL licensed. All other files
716 (license (list license:gpl2+ license:qpl))))
718 (define-public ocaml4.02-menhir
720 (inherit ocaml-menhir)
721 (name "ocaml4.02-menhir")
722 (inputs `(("ocaml" ,ocaml-4.02)))
723 (native-inputs '())))
725 (define-public lablgtk
731 (uri (ocaml-forge-uri name version 1726))
734 "1y38fdvswy6hmppm65qvgdk4pb3ghhnvz7n4ialf46340r1s5p2d"))))
735 (build-system gnu-build-system)
737 `((ocaml4.02-variant . ,(delay ocaml4.02-lablgtk))))
741 ("findlib" ,ocaml-findlib)
742 ("pkg-config" ,pkg-config)))
743 ;; FIXME: Add inputs gtkgl-2.0, libpanelapplet-2.0, gtkspell-2.0,
744 ;; and gtk+-quartz-2.0 once available.
747 ("gtksourceview" ,gtksourceview-2)
748 ("libgnomecanvas" ,libgnomecanvas)
749 ("libgnomeui" ,libgnomeui)
750 ("libglade" ,libglade)
751 ("librsvg" ,librsvg)))
753 `(#:tests? #f ; no check target
755 ;; opt: also install cmxa files
756 #:make-flags (list "all" "opt"
757 (string-append "FINDLIBDIR="
758 (assoc-ref %outputs "out")
760 ;; Occasionally we would get "Error: Unbound module GtkThread" when
761 ;; compiling 'gtkThInit.ml', with 'make -j'. So build sequentially.
765 (modify-phases %standard-phases
766 (add-before 'install 'prepare-install
767 (lambda* (#:key inputs outputs #:allow-other-keys)
768 (let ((out (assoc-ref outputs "out"))
769 (ocaml (assoc-ref inputs "ocaml")))
770 ;; Install into the output and not the ocaml directory.
771 (mkdir-p (string-append out "/lib/ocaml"))
772 (substitute* "config.make"
775 (home-page "http://lablgtk.forge.ocamlcore.org/")
776 (synopsis "GTK+ bindings for OCaml")
778 "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides
779 a strongly-typed object-oriented interface that is compatible with the
780 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
781 also provides bindings to
782 gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas,
783 gnomeui, gtksourceview, gtkspell,
784 libglade (and it an generate OCaml code from .glade files),
785 libpanel, librsvg and quartz.")
786 (license license:lgpl2.1)))
788 (define-public ocaml4.02-lablgtk
791 (name "ocaml4.02-lablgtk")
795 (uri (ocaml-forge-uri name version 1627))
798 "0cyj6sfdvzx8hw7553lhgwc0krlgvlza0ph3dk9gsxy047dm3wib"))))
800 `(("camlp4" ,camlp4-4.02)
801 ("ocaml" ,ocaml-4.02)
802 ("findlib" ,ocaml4.02-findlib)
803 ("pkg-config" ,pkg-config)))))
805 (define-public unison
812 (url "https://github.com/bcpierce00/unison.git")
813 (commit (string-append "v" version))))
814 (file-name (git-file-name name version))
817 "1bykiyc0dc5pkw8x370qkg2kygq9pq7yqzsgczd3y13b6ivm4sdq"))))
818 (build-system gnu-build-system)
820 "doc")) ; 1.9 MiB of documentation
824 ("ghostscript" ,ghostscript)
825 ("texlive" ,texlive-tiny)
830 `(#:parallel-build? #f
832 #:test-target "selftest"
833 #:tests? #f ; Tests require writing to $HOME.
834 ; If some $HOME is provided, they fail with the message
835 ; "Fatal error: Skipping some tests -- remove me!"
837 (modify-phases %standard-phases
839 (add-before 'install 'prepare-install
840 (lambda* (#:key outputs #:allow-other-keys)
841 (let* ((out (assoc-ref outputs "out"))
842 (bin (string-append out "/bin")))
844 (setenv "HOME" out) ; forces correct INSTALLDIR in Makefile
846 (add-after 'install 'install-fsmonitor
847 (lambda* (#:key outputs #:allow-other-keys)
848 (let* ((out (assoc-ref outputs "out"))
849 (bin (string-append out "/bin")))
850 ;; 'unison-fsmonitor' is used in "unison -repeat watch" mode.
851 (install-file "src/unison-fsmonitor" bin)
853 (add-after 'install 'install-doc
854 (lambda* (#:key outputs #:allow-other-keys)
855 (let ((doc (string-append (assoc-ref outputs "doc")
856 "/share/doc/unison")))
858 ;; This is a workaround to prevent a build failure. Running
859 ;; make docs somehow allows it to pass, but the generated
860 ;; documentation is not pretty.
863 (invoke "make" "docs"
864 "TEXDIRECTIVES=\\\\draftfalse"))
866 ;; This file needs write-permissions, because it's
867 ;; overwritten by 'docs' during documentation generation.
868 (chmod "src/strings.ml" #o600)
869 (invoke "make" "docs"
870 "TEXDIRECTIVES=\\\\draftfalse")
871 (for-each (lambda (f)
872 (install-file f doc))
874 (string-append "doc/unison-manual." ext))
875 ;; Install only html documentation,
876 ;; since the build is currently
877 ;; non-reproducible with the ps, pdf,
879 '(;; "ps" "pdf" "dvi"
882 (home-page "https://www.cis.upenn.edu/~bcpierce/unison/")
883 (synopsis "File synchronizer")
885 "Unison is a file-synchronization tool. It allows two replicas of
886 a collection of files and directories to be stored on different hosts
887 (or different disks on the same host), modified separately, and then
888 brought up to date by propagating the changes in each replica
890 (license license:gpl3+)))
892 (define-public ocaml-findlib
894 (name "ocaml-findlib")
898 (uri (string-append "http://download.camlcity.org/download/"
899 "findlib" "-" version ".tar.gz"))
902 "1b97zqjdriqd2ikgh4rmqajgxwdwn013riji5j53y3xvcmnpsyrb"))))
903 (build-system gnu-build-system)
909 `(#:tests? #f ; no test suite
911 #:make-flags (list "all" "opt")
912 #:phases (modify-phases %standard-phases
915 (lambda* (#:key inputs outputs #:allow-other-keys)
916 (let ((out (assoc-ref outputs "out")))
919 "-bindir" (string-append out "/bin")
920 "-config" (string-append out "/etc/ocamfind.conf")
921 "-mandir" (string-append out "/share/man")
922 "-sitelib" (string-append out "/lib/ocaml/site-lib")
925 (lambda* (#:key outputs #:allow-other-keys)
926 (let ((out (assoc-ref outputs "out")))
927 (invoke "make" "install"
928 (string-append "OCAML_CORE_STDLIB="
929 out "/lib/ocaml/site-lib")))))
930 (add-after 'install 'remove-camlp4
931 (lambda* (#:key outputs #:allow-other-keys)
932 (let ((out (assoc-ref outputs "out")))
933 (delete-file-recursively
934 (string-append out "/lib/ocaml/site-lib/camlp4"))
936 (home-page "http://projects.camlcity.org/projects/findlib.html")
937 (synopsis "Management tool for OCaml libraries")
939 "The \"findlib\" library provides a scheme to manage reusable software
940 components (packages), and includes tools that support this scheme. Packages
941 are collections of OCaml modules for which metainformation can be stored. The
942 packages are kept in the file system hierarchy, but with strict directory
943 structure. The library contains functions to look the directory up that
944 stores a package, to query metainformation about a package, and to retrieve
945 dependency information about multiple packages. There is also a tool that
946 allows the user to enter queries on the command-line. In order to simplify
947 compilation and linkage, there are new frontends of the various OCaml
948 compilers that can directly deal with packages.")
949 (license license:x11)))
951 (define-public ocaml4.02-findlib
953 (inherit ocaml-findlib)
954 (name "ocaml4.02-findlib")
956 `(("camlp4" ,camlp4-4.02)
958 ("ocaml" ,ocaml-4.02)))))
960 (define-public ocaml4.01-findlib
962 (inherit ocaml-findlib)
963 (name "ocaml4.01-findlib")
966 ("ocaml" ,ocaml-4.01)))))
968 ;; note that some tests may hang for no obvious reason.
969 (define-public ocaml-ounit
975 (uri (ocaml-forge-uri "ounit" version 1749))
978 "03ifp9hjcxg4m5j190iy373jcn4039d3vy10kmd8p4lfciwzwc1f"))))
979 (build-system ocaml-build-system)
981 `(("libxml2" ,libxml2) ; for xmllint
982 ("ocamlbuild" ,ocamlbuild)))
985 (modify-phases %standard-phases
986 (delete 'check)))) ; tests are run during build
987 (home-page "http://ounit.forge.ocamlcore.org")
988 (synopsis "Unit testing framework for OCaml")
989 (description "Unit testing framework for OCaml. It is similar to JUnit and
990 other XUnit testing frameworks.")
991 (license license:expat)))
993 (define-public ocaml4.01-ounit
994 (package-with-ocaml4.01 ocaml-ounit))
996 (define-public ocaml4.02-ounit
997 (package-with-ocaml4.02 ocaml-ounit))
999 (define-public camlzip
1005 (uri (ocaml-forge-uri name version 1616))
1008 "0m6gyjw46w3qnhxfsyqyag42znl5lwargks7w7rfchr9jzwpff68"))))
1009 (build-system ocaml-build-system)
1014 (modify-phases %standard-phases
1016 (add-after 'install 'install-camlzip
1017 (lambda* (#:key outputs #:allow-other-keys)
1018 (let* ((out (assoc-ref outputs "out"))
1019 (dir (string-append out "/lib/ocaml/site-lib/camlzip")))
1021 (call-with-output-file (string-append dir "/META")
1023 (format port "version=\"1.06\"\n")
1024 (format port "requires=\"unix\"\n")
1025 (format port "archive(byte)=\"zip.cma\"\n")
1026 (format port "archive(native)=\"zip.cmxa\"\n")
1027 (format port "archive(native,plugin)=\"zip.cmxs\"\n")
1028 (format port "directory=\"../zip\"\n")))))))
1029 #:install-target "install-findlib"
1031 (list "all" "allopt"
1032 (string-append "INSTALLDIR=" (assoc-ref %outputs "out")
1034 (home-page "http://forge.ocamlcore.org/projects/camlzip")
1035 (synopsis "Provides easy access to compressed files")
1036 (description "Provides easy access to compressed files in ZIP, GZIP and
1037 JAR format. It provides functions for reading from and writing to compressed
1038 files in these formats.")
1039 (license license:lgpl2.1+)))
1041 (define-public ocaml4.01-camlzip
1042 (let ((base (package-with-ocaml4.01 camlzip)))
1045 (name "ocaml4.01-camlzip")
1046 ;; Version 1.05 is the last version to support OCaml 4.01.0.
1053 "http://forge.ocamlcore.org/frs/download.php/1037/camlzip-"
1057 "0syh72jk9s0qwjmmfrkqchaj98m020ii082jn38pwnmb6v3p02wk")))))))
1059 (define-public ocaml4.02-camlzip
1060 (package-with-ocaml4.02 camlzip))
1062 (define-public ocamlmod
1068 (uri (ocaml-forge-uri name version 1702))
1071 "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa"))))
1072 (build-system ocaml-build-system)
1074 `(("ounit" ,ocaml-ounit)
1075 ("ocamlbuild" ,ocamlbuild)))
1078 (modify-phases %standard-phases
1079 ;; Tests are done during build.
1081 (home-page "https://forge.ocamlcore.org/projects/ocamlmod")
1082 (synopsis "Generate modules from OCaml source files")
1083 (description "Generate modules from OCaml source files.")
1084 (license license:lgpl2.1+))) ; with an exception
1086 (define-public ocaml4.02-ocamlmod
1087 (package-with-ocaml4.02 ocamlmod))
1089 (define-public ocaml-zarith
1091 (name "ocaml-zarith")
1095 (uri (ocaml-forge-uri "zarith" version 1574))
1098 "0l36hzmfbvdai2kcgynh13vfdim5x2grnaw61fxqalyjm90c3di3"))))
1099 (build-system ocaml-build-system)
1105 `(#:tests? #f ; no test target
1107 (modify-phases %standard-phases
1109 (lambda _ (invoke "./configure"))))))
1110 (home-page "https://forge.ocamlcore.org/projects/zarith/")
1111 (synopsis "Implements arbitrary-precision integers")
1112 (description "Implements arithmetic and logical operations over
1113 arbitrary-precision integers. It uses GMP to efficiently implement arithmetic
1114 over big integers. Small integers are represented as Caml unboxed integers,
1115 for speed and space economy.")
1116 (license license:lgpl2.1+))) ; with an exception
1118 (define-public ocaml4.02-zarith
1119 (package-with-ocaml4.02 ocaml-zarith))
1121 (define-public ocaml-frontc
1123 (name "ocaml-frontc")
1127 (uri (string-append "https://www.irit.fr/recherches/ARCHI/MARCH/"
1128 "frontc/Frontc-" version ".tgz"))
1131 "16dz153s92dgbw1rrfwbhscy73did87kfmjwyh3qpvs748h1sc4g"))))
1132 (build-system ocaml-build-system)
1134 `(#:ocaml ,ocaml-4.02
1135 #:findlib ,ocaml4.02-findlib
1137 (modify-phases %standard-phases
1139 (add-after 'install 'install-meta
1140 (lambda* (#:key outputs #:allow-other-keys)
1141 (let ((out (assoc-ref outputs "out")))
1142 (with-output-to-file
1143 (string-append out "/lib/ocaml/frontc/META")
1147 "description = \"Parser for the C language\"
1148 version = \"" ,version "\"
1150 archive(byte) = \"frontc.cma\"
1151 archive(native) = \"frontc.cmxa\""))))
1152 (symlink (string-append out "/lib/ocaml/frontc")
1153 (string-append out "/lib/ocaml/FrontC"))))))
1154 #:make-flags (list (string-append "PREFIX="
1155 (assoc-ref %outputs "out"))
1156 "OCAML_SITE=$(LIB_DIR)/ocaml/")))
1157 (home-page "https://www.irit.fr/FrontC")
1158 (synopsis "C parser and lexer library")
1159 (description "FrontC is an OCAML library providing a C parser and lexer.
1160 The result is a syntactic tree easy to process with usual OCAML tree management.
1161 It provides support for ANSI C syntax, old-C K&R style syntax and the standard
1162 GNU CC attributes. It provides also a C pretty printer as an example of use.")
1163 (license license:lgpl2.1)))
1165 (define-public ocaml-qcheck
1167 (name "ocaml-qcheck")
1171 (uri (string-append "https://github.com/c-cube/qcheck/archive/"
1173 (file-name (string-append name "-" version ".tar.gz"))
1176 "1zs1pg5cb1iry554v3cdmmiglsrwmsqa9x8zxmzb118fnk5d3ha6"))))
1177 (build-system ocaml-build-system)
1179 `(("ounit" ,ocaml-ounit)
1180 ("ocamlbuild" ,ocamlbuild)))
1181 (home-page "https://github.com/c-cube/qcheck")
1182 (synopsis "QuickCheck inspired property-based testing for OCaml")
1183 (description "QuickCheck inspired property-based testing for OCaml. This
1184 module allows to check invariants (properties of some types) over randomly
1185 generated instances of the type. It provides combinators for generating
1186 instances and printing them.")
1187 (license license:lgpl3+)))
1189 (define-public ocaml4.02-qcheck
1190 (package-with-ocaml4.02 ocaml-qcheck))
1192 (define-public ocaml-qtest
1194 (name "ocaml-qtest")
1198 (uri (string-append "https://github.com/vincent-hugot/qtest/"
1199 "archive/" version ".tar.gz"))
1200 (file-name (string-append name "-" version ".tar.gz"))
1203 "1ff4if64mc9c7wmhjdgnlnh6k6a713piqzr4043zzj4s5pw7smxk"))))
1204 (build-system ocaml-build-system)
1206 `(("ocamlbuild" ,ocamlbuild)))
1208 `(("ounit" ,ocaml-ounit)
1209 ("qcheck" ,ocaml-qcheck)))
1211 `(#:tests? #f ; No test target.
1213 (list (string-append "BIN=" (assoc-ref %outputs "out") "/bin"))
1215 (modify-phases %standard-phases
1216 (delete 'configure))))
1217 (home-page "https://github.com/vincent-hugot/qtest")
1218 (synopsis "Inline (Unit) Tests for OCaml")
1219 (description "Qtest extracts inline unit tests written using a special
1220 syntax in comments. Those tests are then run using the oUnit framework and the
1221 qcheck library. The possibilities range from trivial tests -- extremely simple
1222 to use -- to sophisticated random generation of test cases.")
1223 (license license:lgpl3+)))
1225 (define-public ocaml4.01-qtest
1226 (package-with-ocaml4.01 ocaml-qtest))
1228 (define-public ocaml4.02-qtest
1229 (package-with-ocaml4.02 ocaml-qtest))
1231 (define-public ocaml-stringext
1233 (name "ocaml-stringext")
1237 (uri (string-append "https://github.com/rgrinberg/stringext"
1238 "/archive/v" version ".tar.gz"))
1239 (file-name (string-append name "-" version ".tar.gz"))
1242 "19g6lfn03iki9f8h91hi0yiqn0b3wkxyq08b3y23wgv6jw6mssfh"))))
1243 (build-system ocaml-build-system)
1245 `(("ocamlbuild" ,ocamlbuild)
1246 ("qtest" ,ocaml-qtest)))
1247 (home-page "https://github.com/rgrinberg/stringext")
1248 (synopsis "Extra string functions for OCaml")
1249 (description "Provides a single module named Stringext that provides a grab
1250 bag of often used but missing string functions from the stdlib. E.g, split,
1251 full_split, cut, rcut, etc..")
1252 ;; the only mention of a license in this project is in its `opam' file
1253 ;; where it says `mit'.
1254 (license license:expat)))
1256 (define-public ocaml4.02-stringext
1257 (package-with-ocaml4.02 ocaml-stringext))
1259 (define-public ocaml-bisect
1261 (name "ocaml-bisect")
1265 (uri (string-append "https://github.com/gasche/bisect/archive/"
1267 (file-name (string-append name "-" version ".tar.gz"))
1270 "0p67fppk5ifb63b00kxwrb1xg75hrqhknng3bsdyw3gxxqyjlpmx"))
1273 "ocaml-bisect-fix-camlp4-in-another-directory.patch"))))
1274 (build-system ocaml-build-system)
1276 `(("camlp4" ,camlp4)
1277 ("libxml2" ,libxml2)
1278 ("ocamlbuild" ,ocamlbuild)
1281 `(("camlp4" ,camlp4)))
1283 `(#:test-target "tests"
1285 (list "all" (string-append "CAMLP4_LIBDIR="
1286 (assoc-ref %build-inputs "camlp4")
1287 "/lib/ocaml/site-lib/camlp4"))
1289 (modify-phases %standard-phases
1291 (lambda* (#:key inputs outputs #:allow-other-keys)
1292 (invoke "./configure" "-prefix" (assoc-ref outputs "out")
1293 "-ocaml-prefix" (assoc-ref inputs "ocaml")
1294 "-camlp4-prefix" (assoc-ref inputs "camlp4"))
1296 (home-page "http://bisect.x9c.fr")
1297 (synopsis "Code coverage tool for the OCaml language")
1298 (description "Bisect is a code coverage tool for the OCaml language. It is
1299 a camlp4-based tool that allows to instrument your application before running
1300 tests. After application execution, it is possible to generate a report in HTML
1301 format that is the replica of the application source code annotated with code
1302 coverage information.")
1304 `((ocaml4.01-variant . ,(delay ocaml4.01-bisect))
1305 (ocaml4.02-variant . ,(delay ocaml4.02-bisect))))
1306 (license license:gpl3+)))
1308 (define-public ocaml4.01-bisect
1309 (let ((base (package-with-ocaml4.01 (strip-ocaml4.01-variant ocaml-bisect))))
1315 (uri (string-append "https://github.com/gasche/bisect/archive/"
1317 (file-name (string-append "ocaml-bisect-" version ".tar.gz"))
1320 "1ip49jqf0kkbrqf8qspmfjbg9ap9fhvjkg718myzix88dg5rv8d4"))))
1322 `(#:ocaml ,ocaml-4.01
1323 ,@(substitute-keyword-arguments (package-arguments ocaml-bisect)
1324 ((#:make-flags flags)
1327 `(modify-phases ,phases
1329 (lambda* (#:key inputs outputs #:allow-other-keys)
1330 (invoke "./configure"
1331 "-ocaml-prefix" (assoc-ref inputs "ocaml"))
1333 (native-inputs `(,@(alist-delete "camlp4" (package-native-inputs base))))
1335 `(,@(alist-delete "camlp4" (package-propagated-inputs base)))))))
1337 (define-public ocaml4.02-bisect
1338 (let ((base (package-with-ocaml4.02 (strip-ocaml4.02-variant ocaml-bisect))))
1342 `(("camlp4" ,camlp4-4.02)
1343 ("libxml2" ,libxml2)
1346 `(("camlp4" ,camlp4-4.02))))))
1354 (uri (string-append "https://github.com/ocaml/dune/releases/"
1355 "download/" version "/dune-" version ".tbz"))
1358 "0dmf0wbfmgdy5plz1bjiisc2hjgblvxsnrqjmw2c8y45v1h23mdz"))))
1359 (build-system ocaml-build-system)
1361 `(#:tests? #f; require odoc
1362 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
1364 (modify-phases %standard-phases
1366 (lambda* (#:key outputs #:allow-other-keys)
1367 (invoke "./configure")
1369 (home-page "https://github.com/ocaml/dune")
1370 (synopsis "OCaml build system")
1371 (description "Dune is a build system that was designed to simplify the
1372 release of Jane Street packages. It reads metadata from @file{dune} files
1373 following a very simple s-expression syntax.")
1374 (license license:expat)))
1376 (define-public ocaml-migrate-parsetree
1378 (name "ocaml-migrate-parsetree")
1380 (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
1385 (url (string-append home-page ".git"))
1386 (commit (string-append "v" version))))
1389 "16kas19iwm4afijv3yxd250s08absabmdcb4yj57wc8r4fmzv5dm"))))
1390 (build-system dune-build-system)
1394 `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
1395 ("ocamlbuild" ,ocamlbuild)
1396 ("ocaml-result" ,ocaml-result)))
1397 (synopsis "OCaml parsetree convertor")
1398 (description "This library converts between parsetrees of different OCaml
1399 versions. For each version, there is a snapshot of the parsetree and conversion
1400 functions to the next and/or previous version.")
1401 (license license:lgpl2.1+)))
1403 (define-public ocaml-ppx-tools-versioned
1405 (name "ocaml-ppx-tools-versioned")
1409 (uri (string-append "https://github.com/ocaml-ppx/"
1410 "ppx_tools_versioned/archive/"
1412 (file-name (string-append name "-" version ".tar.gz"))
1415 "1x2xfjpkzbcz4rza1d7gh3ipliw6jqfcklbsln82v3561qgkqgmh"))))
1416 (build-system dune-build-system)
1418 `(#:test-target "."))
1420 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
1421 (home-page "https://github.com/let-def/ppx_tools_versioned")
1422 (synopsis "Variant of ppx_tools")
1423 (description "This package is a variant of ppx_tools based on
1424 ocaml-migrate-parsetree")
1425 (license license:expat)))
1427 (define-public ocaml-bitstring
1429 (name "ocaml-bitstring")
1433 (uri (string-append "https://bitbucket.org/thanatonauts/bitstring/"
1434 "get/v" version ".tar.gz"))
1435 (file-name (string-append name "-" version ".tar.gz"))
1438 "15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps"))))
1439 (build-system dune-build-system)
1441 `(("camlp4" ,camlp4)
1443 ("autoconf" ,autoconf)
1444 ("automake" ,automake)
1445 ("bisect" ,ocaml-bisect)))
1447 `(("camlp4" ,camlp4)
1448 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
1450 `(#:tests? #f; Tests fail to build
1453 `((ocaml4.02-variant . ,(delay ocaml4.02-bitstring))))
1454 (home-page "https://github.com/xguerin/bitstring")
1455 (synopsis "Bitstrings and bitstring matching for OCaml")
1456 (description "Adds Erlang-style bitstrings and matching over bitstrings as
1457 a syntax extension and library for OCaml. You can use this module to both parse
1458 and generate binary formats, files and protocols. Bitstring handling is added
1459 as primitives to the language, making it exceptionally simple to use and very
1461 (license license:isc)))
1463 (define-public ocaml4.02-bitstring
1464 (let ((base (package-with-ocaml4.02 (strip-ocaml4.02-variant ocaml-bitstring))))
1470 (uri (string-append "https://github.com/xguerin/bitstring"
1471 "/archive/v" version ".tar.gz"))
1472 (file-name (string-append "ocaml-bitstring-" version ".tar.gz"))
1475 "0vy8ibrxccii1jbsk5q6yh1kxjigqvi7lhhcmizvd5gfhf7mfyc8"))
1476 (patches (search-patches "ocaml-bitstring-fix-configure.patch"))))
1477 (build-system ocaml-build-system)
1479 `(#:ocaml ,ocaml-4.02
1480 #:findlib ,ocaml4.02-findlib
1482 (list "CAMLP4OF=camlp4of" "--enable-coverage")
1484 (list (string-append "BISECTLIB="
1485 (assoc-ref %build-inputs "bisect")
1486 "/lib/ocaml/site-lib")
1487 (string-append "OCAMLCFLAGS=-g -I "
1488 (assoc-ref %build-inputs "camlp4")
1489 "/lib/ocaml/site-lib/camlp4 -I "
1490 "$(BISECTLIB)/bisect")
1491 (string-append "OCAMLOPTFLAGS=-g -I "
1492 (assoc-ref %build-inputs "camlp4")
1493 "/lib/ocaml/site-lib/camlp4 -I "
1494 "$(BISECTLIB)/bisect"))
1496 (modify-phases %standard-phases
1497 (add-after 'install 'link-lib
1498 (lambda* (#:key outputs #:allow-other-keys)
1499 (let* ((out (assoc-ref outputs "out"))
1500 (stubs (string-append out
1501 "/lib/ocaml/site-lib/stubslibs"))
1502 (lib (string-append out
1503 "/lib/ocaml/site-lib/bitstring")))
1505 (symlink (string-append lib "/dllbitstring.so")
1506 (string-append stubs "/dllbitstring.so")))
1508 (add-before 'configure 'fix-configure
1509 (lambda* (#:key inputs #:allow-other-keys)
1510 (substitute* "Makefile.in"
1511 (("@abs_top_builddir@")
1512 (string-append "@abs_top_builddir@:" (getenv "LIBRARY_PATH"))))
1513 (substitute* "configure"
1514 (("-/bin/sh") (string-append "-" (assoc-ref inputs "bash")
1517 `(("camlp4" ,camlp4-4.02)
1519 ("autoconf" ,autoconf)
1520 ("automake" ,automake)
1521 ("bisect" ,ocaml4.02-bisect)))
1523 `(("camlp4" ,camlp4-4.02))))))
1525 (define-public ocaml-result
1527 (name "ocaml-result")
1531 (uri (string-append "https://github.com/janestreet/result"
1532 "/archive/" version ".tar.gz"))
1533 (file-name (string-append name "-" version ".tar.gz"))
1536 "1pgpfsgvhxnh0i37fkvp9j8nadns9hz9iqgabj4dr519j2gr1xvw"))))
1537 (build-system ocaml-build-system)
1541 (modify-phases %standard-phases
1542 (delete 'configure))))
1543 (home-page "https://github.com/janestreet/result")
1544 (synopsis "Compatibility Result module")
1545 (description "Uses the new result type defined in OCaml >= 4.03 while
1546 staying compatible with older version of OCaml should use the Result module
1547 defined in this library.")
1548 (license license:bsd-3)))
1550 (define-public ocaml4.02-result
1551 (package-with-ocaml4.02 ocaml-result))
1553 (define-public ocaml-topkg
1555 (name "ocaml-topkg")
1559 (uri (string-append "http://erratique.ch/software/topkg/releases/"
1560 "topkg-" version ".tbz"))
1563 "18rrh6fmf708z7dd30amljmcgaypj3kk49jrmrj68r4wnw8004j8"))))
1564 (build-system ocaml-build-system)
1567 ("ocamlbuild" ,ocamlbuild)))
1569 `(("result" ,ocaml-result)))
1572 #:build-flags '("build")
1574 (modify-phases %standard-phases
1575 (delete 'configure))))
1576 (home-page "http://erratique.ch/software/topkg")
1577 (synopsis "Transitory OCaml software packager")
1578 (description "Topkg is a packager for distributing OCaml software. It
1579 provides an API to describe the files a package installs in a given build
1580 configuration and to specify information about the package's distribution,
1581 creation and publication procedures.")
1582 (license license:isc)))
1584 (define-public ocaml4.02-topkg
1585 (package-with-ocaml4.02 ocaml-topkg))
1587 (define-public ocaml-rresult
1589 (name "ocaml-rresult")
1593 (uri (string-append "http://erratique.ch/software/rresult/releases/"
1594 "rresult-" version ".tbz"))
1597 "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm"))))
1598 (build-system ocaml-build-system)
1601 ("ocamlbuild" ,ocamlbuild)))
1603 `(("topkg" ,ocaml-topkg)))
1606 #:build-flags '("build")
1608 (modify-phases %standard-phases
1609 (delete 'configure))))
1610 (home-page "http://erratique.ch/software/rresult")
1611 (synopsis "Result value combinators for OCaml")
1612 (description "Handle computation results and errors in an explicit and
1613 declarative manner, without resorting to exceptions. It defines combinators
1614 to operate on the result type available from OCaml 4.03 in the standard
1616 (license license:isc)))
1618 (define-public ocaml4.02-rresult
1619 (package-with-ocaml4.02 ocaml-rresult))
1621 (define-public ocaml-sqlite3
1623 (name "ocaml-sqlite3")
1629 "https://github.com/mmottl/sqlite3-ocaml/releases/download/v"
1630 version "/sqlite3-ocaml-" version ".tar.gz"))
1633 "14c1nir7c6bivajg0vyx853y7la7r5d25g1v5hjb2wfi73r15p1m"))))
1634 (build-system ocaml-build-system)
1636 `(("ocamlbuild" ,ocamlbuild)
1637 ("pkg-config" ,pkg-config)))
1639 `(("sqlite" ,sqlite)))
1640 (home-page "https://mmottl.github.io/sqlite3-ocaml")
1641 (synopsis "SQLite3 Bindings for OCaml")
1643 "SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client
1644 API. Sqlite3 is a self-contained, serverless, zero-configuration,
1645 transactional SQL database engine with outstanding performance for many use
1646 cases. These bindings are written in a way that enables a friendly
1647 coexistence with the old (version 2) SQLite and its OCaml wrapper
1648 @code{ocaml-sqlite}.")
1649 (license license:expat)))
1651 (define-public ocaml4.01-sqlite3
1652 (package-with-ocaml4.01 ocaml-sqlite3))
1654 (define-public ocaml4.02-sqlite3
1655 (package-with-ocaml4.02 ocaml-sqlite3))
1657 (define-public ocaml-csv
1666 "https://github.com/Chris00/ocaml-csv/releases/download/"
1667 version "/csv-" version ".tar.gz"))
1670 "0rv7x843vn6scxj87hzl01yqrl26rc27lr8s7z6rp9vs745g05zj"))))
1671 (build-system ocaml-build-system)
1673 `(("ocamlbuild" ,ocamlbuild)))
1674 (home-page "https://github.com/Chris00/ocaml-csv")
1675 (synopsis "Pure OCaml functions to read and write CSV")
1677 "@dfn{Comma separated values} (CSV) is a simple tabular format supported
1678 by all major spreadsheets. This library implements pure OCaml functions to
1679 read and write files in this format as well as some convenience functions to
1680 manipulate such data.")
1681 (license (package-license camlp4))))
1683 (define-public ocaml4.01-csv
1684 (package-with-ocaml4.01 ocaml-csv))
1686 (define-public ocaml4.02-csv
1687 (package-with-ocaml4.02 ocaml-csv))
1689 (define-public ocaml-mtime
1691 (name "ocaml-mtime")
1695 (uri (string-append "http://erratique.ch/software/mtime/releases/"
1696 "mtime-" version ".tbz"))
1699 "1hfx4ny2dkw6jf3jppz0640dafl5xgn8r2si9kpwzhmibal8qrah"))))
1700 (build-system ocaml-build-system)
1702 `(("ocamlbuild" ,ocamlbuild)
1705 `(("topkg" ,ocaml-topkg)))
1709 '("native=true" "native-dynlink=true" "jsoo=false")
1711 (modify-phases %standard-phases
1712 (delete 'configure))))
1713 (home-page "http://erratique.ch/software/mtime")
1714 (synopsis "Monotonic wall-clock time for OCaml")
1715 (description "Access monotonic wall-clock time. It allows to measure time
1716 spans without being subject to operating system calendar time adjustments.")
1717 (license license:isc)))
1719 (define-public ocaml4.02-mtime
1720 (package-with-ocaml4.02 ocaml-mtime))
1722 (define-public ocaml-cmdliner
1724 (name "ocaml-cmdliner")
1728 (uri (string-append "http://erratique.ch/software/cmdliner/releases/"
1729 "cmdliner-" version ".tbz"))
1732 "18jqphjiifljlh9jg8zpl6310p3iwyaqphdkmf89acyaix0s4kj1"))))
1733 (build-system ocaml-build-system)
1735 `(("ocaml-result" ,ocaml-result)))
1737 `(("ocamlbuild" ,ocamlbuild)
1741 #:build-flags '("native=true" "native-dynlink=true")
1743 (modify-phases %standard-phases
1745 ;; The makefile says 'adjust on cli invocation'
1746 (lambda* (#:key outputs #:allow-other-keys)
1747 (let ((out (assoc-ref outputs "out")))
1748 (invoke "make" "install" (string-append "PREFIX=" out))
1750 (delete 'configure))))
1751 (home-page "http://erratique.ch/software/cmdliner")
1752 (synopsis "Declarative definition of command line interfaces for OCaml")
1753 (description "Cmdliner is a module for the declarative definition of command
1754 line interfaces. It provides a simple and compositional mechanism to convert
1755 command line arguments to OCaml values and pass them to your functions. The
1756 module automatically handles syntax errors, help messages and UNIX man page
1757 generation. It supports programs with single or multiple commands and respects
1758 most of the POSIX and GNU conventions.")
1759 (license license:bsd-3)))
1761 (define-public ocaml4.02-cmdliner
1762 (package-with-ocaml4.02 ocaml-cmdliner))
1764 (define-public ocaml-fmt
1771 (uri (string-append "http://erratique.ch/software/fmt/releases/fmt-"
1774 "1zj9azcxcn6skmb69ykgmi9z8c50yskwg03wqgh87lypgjdcz060"))))
1775 (build-system ocaml-build-system)
1777 `(("ocamlbuild" ,ocamlbuild)
1779 ("topkg" ,ocaml-topkg)))
1781 `(("result" ,ocaml-result)
1782 ("ocaml-uchar" ,ocaml-uchar)
1783 ("cmdliner" ,ocaml-cmdliner)))
1784 (arguments `(#:tests? #f
1785 #:build-flags (list "build" "--with-base-unix" "true"
1786 "--with-cmdliner" "true")
1788 (modify-phases %standard-phases
1789 (delete 'configure))))
1790 (home-page "http://erratique.ch/software/fmt")
1791 (synopsis "OCaml Format pretty-printer combinators")
1792 (description "Fmt exposes combinators to devise Format pretty-printing
1794 (license license:isc)))
1796 (define-public ocaml4.02-fmt
1797 (package-with-ocaml4.02 ocaml-fmt))
1799 (define-public ocaml-astring
1801 (name "ocaml-astring")
1806 (uri (string-append "http://erratique.ch/software/astring/releases/astring-"
1809 "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0"))))
1810 (build-system ocaml-build-system)
1812 `(("ocamlbuild" ,ocamlbuild)
1814 ("topkg" ,ocaml-topkg)))
1817 #:build-flags (list "build")
1819 (modify-phases %standard-phases
1820 (delete 'configure))))
1821 (home-page "http://erratique.ch/software/astring")
1822 (synopsis "Alternative String module for OCaml")
1823 (description "Astring exposes an alternative String module for OCaml. This
1824 module balances minimality and expressiveness for basic, index-free, string
1825 processing and provides types and functions for substrings, string sets and
1826 string maps. The String module exposed by Astring has exception safe functions,
1827 removes deprecated and rarely used functions, alters some signatures and names,
1828 adds a few missing functions and fully exploits OCaml's newfound string
1830 (license license:isc)))
1832 (define-public ocaml4.02-astring
1833 (package-with-ocaml4.02 ocaml-astring))
1835 (define-public ocaml-alcotest
1837 (name "ocaml-alcotest")
1841 (uri (string-append "https://github.com/mirage/alcotest/releases/"
1842 "download/" version "/alcotest-" version ".tbz"))
1845 "0g5lzk0gpfx4q8hyhr460gr4lab5wakfxsmhfwvb3yinxwzs95gc"))))
1846 (build-system ocaml-build-system)
1849 #:build-flags (list "build")
1851 (modify-phases %standard-phases
1852 (delete 'configure))))
1854 `(("ocamlbuild" ,ocamlbuild)
1856 ("topkg" ,ocaml-topkg)))
1858 `(("fmt" ,ocaml-fmt)
1859 ("astring" ,ocaml-astring)))
1860 (home-page "https://github.com/mirage/alcotest")
1861 (synopsis "Lightweight OCaml test framework")
1862 (description "Alcotest exposes simple interface to perform unit tests. It
1863 exposes a simple TESTABLE module type, a check function to assert test
1864 predicates and a run function to perform a list of unit -> unit test callbacks.
1865 Alcotest provides a quiet and colorful output where only faulty runs are fully
1866 displayed at the end of the run (with the full logs ready to inspect), with a
1867 simple (yet expressive) query language to select the tests to run.")
1868 (license license:isc)))
1870 (define-public ocaml4.02-alcotest
1871 (package-with-ocaml4.02 ocaml-alcotest))
1873 (define-public ocaml-ppx-tools
1875 (name "ocaml-ppx-tools")
1876 (version "5.1+4.06.0")
1880 (uri (string-append "https://github.com/alainfrisch/ppx_tools/archive/"
1883 "0mncpy9v2mcjgnj7s2vqpp2b1ixv54djicfx66ic9wny9d202gj1"))))
1884 (build-system ocaml-build-system)
1886 `(#:phases (modify-phases %standard-phases (delete 'configure))
1889 `((ocaml4.02-variant . ,(delay ocaml4.02-ppx-tools))))
1890 (home-page "https://github.com/alainfrisch/ppx_tools")
1891 (synopsis "Tools for authors of ppx rewriters and other syntactic tools")
1892 (description "Tools for authors of ppx rewriters and other syntactic tools.")
1893 (license license:expat)))
1895 (define-public ocaml4.02-ppx-tools
1896 (let ((base (package-with-ocaml4.02 (strip-ocaml4.02-variant ocaml-ppx-tools))))
1899 (version "5.0+4.02.0")
1903 (uri (string-append "https://github.com/alainfrisch/ppx_tools/archive/"
1906 "0rjg4rngi8k9873z4zq95zn9hj8qyw1vcrf11y15aqasfpqq16rc")))))))
1908 (define-public ocaml-react
1910 (name "ocaml-react")
1915 (uri (string-append "http://erratique.ch/software/react/releases/react-"
1918 "0knhgbngphv5sp1yskfd97crf169qhpc0igr6w7vqw0q36lswyl8"))))
1919 (build-system ocaml-build-system)
1921 `(("ocamlbuild" ,ocamlbuild)
1925 #:build-flags (list "native=true" "native-dynlink=true")
1927 (modify-phases %standard-phases
1928 (delete 'configure))))
1929 (home-page "http://erratique.ch/software/react")
1930 (synopsis "Declarative events and signals for OCaml")
1931 (description "React is an OCaml module for functional reactive programming
1932 (FRP). It provides support to program with time varying values: declarative
1933 events and signals. React doesn't define any primitive event or signal, it
1934 lets the client choose the concrete timeline.")
1935 (license license:bsd-3)))
1937 (define-public ocaml4.02-react
1938 (package-with-ocaml4.02 ocaml-react))
1940 (define-public ocaml-ssl
1948 (url "https://github.com/savonet/ocaml-ssl.git")
1950 (file-name (git-file-name name version))
1952 "0fviq8xhp3qk7pmkl7knchywsipxgb7p0z489hj8qnf2sx8xzdmy"))))
1953 (build-system ocaml-build-system)
1956 #:make-flags (list "OCAMLFIND_LDCONF=ignore")
1958 (modify-phases %standard-phases
1959 (add-after 'unpack 'bootstrap
1960 (lambda* (#:key #:allow-other-keys)
1961 (system* "sh" "bootstrap")
1962 (substitute* "src/OCamlMakefile"
1963 (("/bin/sh") (which "bash")))
1964 (substitute* "configure"
1965 (("/bin/sh") (which "bash")))
1968 `(("autoconf" ,autoconf)
1969 ("automake" ,automake)
1971 (propagated-inputs `(("openssl" ,openssl)))
1972 (home-page "https://github.com/savonet/ocaml-ssl/")
1973 (synopsis "OCaml bindings for OpenSSL")
1975 "OCaml-SSL is a set of bindings for OpenSSL, a library for communicating
1976 through Transport Layer Security (@dfn{TLS}) encrypted connections.")
1977 (license license:lgpl2.1)))
1979 (define-public ocaml4.02-ssl
1980 (package-with-ocaml4.02 ocaml-ssl))
1982 (define-public ocaml-lwt
1989 (uri (string-append "https://github.com/ocsigen/lwt/archive/" version
1991 (file-name (string-append name "-" version ".tar.gz"))
1993 "0mhh019bjkg5xfvpy1pxs4xdxb759fyydmgb6l4j0qww1qgr8klp"))))
1994 (build-system dune-build-system)
1996 `(#:tests? #f; require lwt_ppx
1999 (modify-phases %standard-phases
2000 (add-before 'build 'configure
2002 (invoke "ocaml" "src/util/configure.ml" "-use-libev" "true")
2005 `(("ocaml-cppo" ,ocaml-cppo)
2006 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
2007 ("pkg-config" ,pkg-config)
2008 ("ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
2013 `(("result" ,ocaml-result)
2014 ("ocaml-ssl" ,ocaml-ssl)
2015 ("ocaml-react" ,ocaml-react)))
2016 (home-page "https://github.com/ocsigen/lwt")
2017 (synopsis "Cooperative threads and I/O in monadic style")
2018 (description "Lwt provides typed, composable cooperative threads. These
2019 make it easy to run normally-blocking I/O operations concurrently in a single
2020 process. Also, in many cases, Lwt threads can interact without the need for
2021 locks or other synchronization primitives.")
2022 (license license:lgpl2.1)))
2024 (define-public ocaml4.02-lwt
2025 (package-with-ocaml4.02 ocaml-lwt))
2027 (define-public ocaml-lwt-log
2029 (name "ocaml-lwt-log")
2034 (uri (string-append "https://github.com/aantron/lwt_log/archive/" version
2036 (file-name (string-append name "-" version ".tar.gz"))
2038 "1lr62j2266pbsi54xmzsfvl2z7fi7smhak7fp1ybl8hssxwi6in2"))))
2039 (build-system dune-build-system)
2041 `(#:tests? #f; require lwt_ppx
2044 `(("lwt" ,ocaml-lwt)))
2045 (home-page "https://github.com/aantron/lwt_log")
2046 (synopsis "Logging library")
2047 (description "This package provides a deprecated logging component for
2049 (license license:lgpl2.1)))
2051 (define-public ocaml4.02-lwt-log
2052 (package-with-ocaml4.02 ocaml-lwt-log))
2054 (define-public ocaml-logs
2060 (uri (string-append "http://erratique.ch/software/logs/releases/"
2061 "logs-" version ".tbz"))
2064 "1khbn7jqpid83zn8rvyh1x1sirls7zc878zj4fz985m5xlsfy853"))))
2065 (build-system ocaml-build-system)
2068 #:build-flags (list "build" "--with-js_of_ocaml" "false")
2070 (modify-phases %standard-phases
2071 (delete 'configure))))
2073 `(("ocamlbuild" ,ocamlbuild)
2076 `(("fmt" ,ocaml-fmt)
2078 ("mtime" ,ocaml-mtime)
2079 ("result" ,ocaml-result)
2080 ("cmdliner" ,ocaml-cmdliner)
2081 ("topkg" ,ocaml-topkg)))
2082 (home-page "http://erratique.ch/software/logs")
2083 (synopsis "Logging infrastructure for OCaml")
2084 (description "Logs provides a logging infrastructure for OCaml. Logging is
2085 performed on sources whose reporting level can be set independently. Log
2086 message report is decoupled from logging and is handled by a reporter.")
2087 (license license:isc)))
2089 (define-public ocaml4.02-logs
2090 (package-with-ocaml4.02 ocaml-logs))
2092 (define-public ocaml-fpath
2094 (name "ocaml-fpath")
2098 (uri (string-append "http://erratique.ch/software/fpath/releases/"
2099 "fpath-" version ".tbz"))
2102 "05134ij27xjl6gaqsc65yl19vfj6cjxq3mbm9bf4mija8grdpn6g"))))
2103 (build-system ocaml-build-system)
2106 #:build-flags (list "build")
2108 (modify-phases %standard-phases
2109 (delete 'configure))))
2111 `(("ocamlbuild" ,ocamlbuild)
2114 `(("topkg" ,ocaml-topkg)
2115 ("astring" ,ocaml-astring)))
2116 (home-page "http://erratique.ch/software/fpath")
2117 (synopsis "File system paths for OCaml")
2118 (description "Fpath is an OCaml module for handling file system paths with
2119 POSIX or Windows conventions. Fpath processes paths without accessing the
2120 file system and is independent from any system library.")
2121 (license license:isc)))
2123 (define-public ocaml4.02-fpath
2124 (package-with-ocaml4.02 ocaml-fpath))
2126 (define-public ocaml-bos
2132 (uri (string-append "http://erratique.ch/software/bos/releases/"
2133 "bos-" version ".tbz"))
2136 "1ly66lysk4w6mdy4k1n3ynlpfpq7lw4wshcpzgx58v6x613w5s7q"))))
2137 (build-system ocaml-build-system)
2140 #:build-flags (list "build")
2142 (modify-phases %standard-phases
2143 (delete 'configure))))
2145 `(("ocamlbuild" ,ocamlbuild)
2148 `(("topkg" ,ocaml-topkg)
2149 ("astring" ,ocaml-astring)
2151 ("fpath" ,ocaml-fpath)
2152 ("logs" ,ocaml-logs)
2153 ("rresult" ,ocaml-rresult)))
2154 (home-page "http://erratique.ch/software/bos")
2155 (synopsis "Basic OS interaction for OCaml")
2156 (description "Bos provides support for basic and robust interaction with
2157 the operating system in OCaml. It has functions to access the process
2158 environment, parse command line arguments, interact with the file system and
2159 run command line programs.")
2160 (license license:isc)))
2162 (define-public ocaml4.02-bos
2163 (package-with-ocaml4.02 ocaml-bos))
2165 (define-public ocaml-xmlm
2171 (uri (string-append "http://erratique.ch/software/xmlm/releases/"
2172 "xmlm-" version ".tbz"))
2175 "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n"))))
2176 (build-system ocaml-build-system)
2179 #:build-flags (list "build")
2181 (modify-phases %standard-phases
2182 (delete 'configure))))
2184 `(("ocamlbuild" ,ocamlbuild)
2185 ("ocaml-topkg" ,ocaml-topkg)
2187 (home-page "http://erratique.ch/software/xmlm")
2188 (synopsis "Streaming XML codec for OCaml")
2189 (description "Xmlm is a streaming codec to decode and encode the XML data
2190 format. It can process XML documents without a complete in-memory
2191 representation of the data.")
2192 (license license:isc)))
2194 (define-public ocaml4.01-xmlm
2195 (package-with-ocaml4.01 ocaml-xmlm))
2197 (define-public ocaml4.02-xmlm
2198 (package-with-ocaml4.02 ocaml-xmlm))
2200 (define-public ocaml-ulex
2206 (uri (string-append "https://github.com/whitequark/ulex/archive/v"
2208 (file-name (string-append name "-" version ".tar.gz"))
2211 "16gnbhqs6y2v89vw4igzvxdf2g8ybh5643636824aldcv8sscac0"))))
2212 (build-system ocaml-build-system)
2214 `(#:phases (modify-phases %standard-phases (delete 'configure))
2218 (string-append "OCAMLBUILD=ocamlbuild -byte-plugin "
2219 "-cflags -I," (assoc-ref %build-inputs "camlp4")
2220 "/lib/ocaml/site-lib/camlp4"))))
2222 `(("camlp4" ,camlp4)
2223 ("ocamlbuild" ,ocamlbuild)))
2224 (home-page "http://www.cduce.org/download.html#side")
2225 (synopsis "Lexer generator for Unicode and OCaml")
2226 (description "Lexer generator for Unicode and OCaml.")
2227 (license license:expat)))
2229 (define-public ocaml4.02-ulex
2230 (package-with-ocaml4.02 ocaml-ulex))
2232 (define-public ocaml-uchar
2234 (name "ocaml-uchar")
2239 (uri (string-append "https://github.com/ocaml/uchar/releases/download/v"
2240 version "/uchar-" version ".tbz"))
2242 "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"))))
2243 (build-system ocaml-build-system)
2246 #:build-flags (list "native=true" "native-dynlink=true")
2248 (modify-phases %standard-phases
2249 (delete 'configure))))
2251 `(("ocamlbuild" ,ocamlbuild)
2253 (home-page "https://github.com/ocaml/uchar")
2254 (synopsis "Compatibility library for OCaml's Uchar module")
2255 (description "The uchar package provides a compatibility library for the
2256 `Uchar` module introduced in OCaml 4.03.")
2257 (license license:lgpl2.1)))
2259 (define-public ocaml4.02-uchar
2260 (package-with-ocaml4.02 ocaml-uchar))
2262 (define-public ocaml-uutf
2268 (uri (string-append "http://erratique.ch/software/uutf/releases/"
2269 "uutf-" version ".tbz"))
2272 "1gp96dcggq7s84934vimxh89caaxa77lqiff1yywbwkilkkjcfqj"))))
2273 (build-system ocaml-build-system)
2276 #:build-flags (list "build")
2278 (modify-phases %standard-phases
2279 (delete 'configure))))
2281 `(("ocamlbuild" ,ocamlbuild)
2283 ("topkg" ,ocaml-topkg)))
2285 `(("uchar" ,ocaml-uchar)
2286 ("cmdliner" ,ocaml-cmdliner)))
2287 (home-page "http://erratique.ch/software/uutf")
2288 (synopsis "Non-blocking streaming Unicode codec for OCaml")
2289 (description "Uutf is a non-blocking streaming codec to decode and encode
2290 the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
2291 work character by character without blocking on IO. Decoders perform character
2292 position tracking and support newline normalization.
2294 Functions are also provided to fold over the characters of UTF encoded OCaml
2295 string values and to directly encode characters in OCaml Buffer.t values.")
2296 (license license:isc)))
2298 (define-public ocaml4.02-uutf
2299 (package-with-ocaml4.02 ocaml-uutf))
2301 (define-public ocaml-jsonm
2303 (name "ocaml-jsonm")
2307 (uri (string-append "http://erratique.ch/software/jsonm/releases/"
2308 "jsonm-" version ".tbz"))
2311 "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w"))))
2312 (build-system ocaml-build-system)
2315 #:build-flags (list "build")
2317 (modify-phases %standard-phases
2318 (delete 'configure))))
2320 `(("ocamlbuild" ,ocamlbuild)
2322 ("topkg" ,ocaml-topkg)))
2324 `(("uutf" ,ocaml-uutf)
2325 ("cmdliner" ,ocaml-cmdliner)))
2326 (home-page "http://erratique.ch/software/jsonm")
2327 (synopsis "Non-blocking streaming JSON codec for OCaml")
2328 (description "Jsonm is a non-blocking streaming codec to decode and encode
2329 the JSON data format. It can process JSON text without blocking on IO and
2330 without a complete in-memory representation of the data.")
2331 (license license:isc)))
2333 (define-public ocaml4.02-jsonm
2334 (package-with-ocaml4.02 ocaml-jsonm))
2336 (define-public ocaml-ocurl
2338 (name "ocaml-ocurl")
2342 (uri (string-append "http://ygrek.org.ua/p/release/ocurl/ocurl-"
2346 "1ax3xdlzgb1zg7d0wr9nwgmh6a45a764m0wk8p6mx07ad94hz0q9"))))
2347 (build-system ocaml-build-system)
2350 (modify-phases %standard-phases
2351 (add-before 'configure 'fix-/bin/sh
2352 (lambda* (#:key inputs #:allow-other-keys)
2353 (substitute* "configure"
2354 (("-/bin/sh") (string-append "-" (which "bash")))))))))
2356 `(("pkg-config" ,pkg-config)))
2357 (inputs `(("curl" ,curl)))
2358 (home-page "http://ocurl.forge.ocamlcore.org/")
2359 (synopsis "OCaml bindings for libcurl")
2360 (description "Client-side URL transfer library, supporting HTTP and a
2361 multitude of other network protocols (FTP/SMTP/RTSP/etc).")
2362 (license license:isc)))
2364 (define-public ocaml4.02-ocurl
2365 (package-with-ocaml4.02 ocaml-ocurl))
2367 (define-public ocaml-base64
2369 (name "ocaml-base64")
2373 (uri (string-append "https://github.com/mirage/ocaml-base64/"
2374 "releases/download/v" version "/base64-"
2376 (file-name (string-append name "-" version ".tar.gz"))
2379 "1p45sawchmrkr22gkmydjc4ary23pisp58zsnb7iq7d82nxs1lfq"))))
2380 (build-system ocaml-build-system)
2382 `(#:build-flags (list "build" "--tests" "true")
2384 (modify-phases %standard-phases
2385 (delete 'configure))))
2387 `(("topkg" ,ocaml-topkg)
2388 ("ocamlbuild" ,ocamlbuild)
2390 ("rresult" ,ocaml-rresult)
2392 ("alcotest" ,ocaml-alcotest)))
2393 (home-page "https://github.com/mirage/ocaml-base64")
2394 (synopsis "Base64 encoding for OCaml")
2395 (description "Base64 is a group of similar binary-to-text encoding schemes
2396 that represent binary data in an ASCII string format by translating it into a
2397 radix-64 representation. It is specified in RFC 4648.")
2398 (license license:isc)))
2400 (define-public ocaml4.02-base64
2401 (package-with-ocaml4.02 ocaml-base64))
2403 (define-public ocamlify
2409 (uri (ocaml-forge-uri name version 1209))
2412 "1f0fghvlbfryf5h3j4as7vcqrgfjb4c8abl5y0y5h069vs4kp5ii"))))
2413 (build-system ocaml-build-system)
2414 ; tests are done during build
2416 `(#:ocaml ,ocaml-4.02
2417 #:findlib ,ocaml4.02-findlib
2419 (modify-phases %standard-phases
2421 (home-page "https://forge.ocamlcore.org/projects/ocamlify")
2422 (synopsis "Include files in OCaml code")
2423 (description "OCamlify allows to create OCaml source code by including
2424 whole files into OCaml string or string list. The code generated can be
2425 compiled as a standard OCaml file. It allows embedding external resources as
2427 (license license:lgpl2.1+))); with the OCaml static compilation exception
2429 (define-public omake
2435 (uri (string-append "http://download.camlcity.org/download/"
2436 "omake-" version ".tar.gz"))
2439 "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz"))
2440 (patches (search-patches "omake-fix-non-determinism.patch"))))
2441 (build-system ocaml-build-system)
2444 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2445 #:tests? #f ; no test target
2447 (modify-phases %standard-phases
2448 (add-before 'configure 'fix-makefile
2449 (lambda* (#:key outputs #:allow-other-keys)
2450 (substitute* "mk/osconfig_unix.mk"
2451 (("CC = cc") "CC = gcc")))))))
2453 `((ocaml4.02-variant . ,(delay ocaml4.02-omake))))
2454 (native-inputs `(("hevea" ,hevea)))
2455 (home-page "http://projects.camlcity.org/projects/omake.html")
2456 (synopsis "Build system designed for scalability and portability")
2457 (description "Similar to make utilities you may have used, but it features
2458 many additional enhancements, including:
2461 @item Support for projects spanning several directories or directory hierarchies.
2462 @item Fast, reliable, automated, scriptable dependency analysis using MD5 digests,
2463 with full support for incremental builds.
2464 @item Dependency analysis takes the command lines into account — whenever the
2465 command line used to build a target changes, the target is considered
2467 @item Fully scriptable, includes a library that providing support for standard
2468 tasks in C, C++, OCaml, and LaTeX projects, or a mixture thereof.
2470 (license (list license:lgpl2.1 ; libmojave
2471 license:expat ; OMake scripts
2472 license:gpl2)))) ; OMake itself, with ocaml linking exception
2475 (define-public ocaml4.02-omake
2476 (let ((base (package-with-ocaml4.02 (strip-ocaml4.02-variant omake))))
2482 (uri (string-append "http://download.camlcity.org/download/"
2483 "omake-" version ".tar.gz"))
2486 "1znnlkpz89hk44byvnl1pr92ym6hwfyyw2qm9clq446r6l2z4m64"))
2487 (patches (search-patches "omake-fix-non-determinism.patch")))))))
2489 (define-public ocaml-batteries
2491 (name "ocaml-batteries")
2495 (uri (string-append "https://github.com/ocaml-batteries-team/"
2496 "batteries-included/releases/download/v"
2497 version "/batteries-" version ".tar.gz"))
2500 "0lkdmv2my5hirkswmci2cch341n6wkkj2q8apjhs83sg6528caxi"))))
2501 (build-system ocaml-build-system)
2503 `(("ocamlbuild" ,ocamlbuild)
2504 ("qtest" ,ocaml-qtest)
2505 ("bisect" ,ocaml-bisect)
2506 ("ounit" ,ocaml-ounit)))
2508 `(("ocaml-num" ,ocaml-num)))
2511 (modify-phases %standard-phases
2512 (delete 'check) ; tests are run by the build phase
2514 (lambda* (#:key inputs outputs #:allow-other-keys)
2517 (substring str 0 (- (string-length str) 1)))
2519 (find-files "src" ".*.mliv")
2520 (find-files "src" ".*.mlv")
2521 (find-files "src" ".*.mlp")))))
2522 (apply invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2523 "-lflag" "-dllpath-all" files)
2524 (for-each (lambda (file)
2525 (copy-file (string-append "_build/" file) file))
2527 (invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2528 "-lflag" "-dllpath-all" "build/mkconf.byte")
2529 (copy-file "_build/build/mkconf.byte" "build/mkconf.byte")
2530 (invoke "make" "all")
2533 `((ocaml4.01-variant . ,(delay ocaml4.01-batteries))
2534 (ocaml4.02-variant . ,(delay ocaml4.02-batteries))))
2535 (home-page "http://batteries.forge.ocamlcore.org/")
2536 (synopsis "Development platform for the OCaml programming language")
2537 (description "Define a standard set of libraries which may be expected on
2538 every compliant installation of OCaml and organize these libraries into a
2539 hierarchy of modules.")
2540 (license license:lgpl2.1+)))
2542 (define-public ocaml4.02-batteries
2543 (let ((base (package-with-ocaml4.02 (strip-ocaml4.02-variant ocaml-batteries))))
2549 (uri (ocaml-forge-uri "batteries" version 1650))
2552 "1a97w3x2l1jr5x9kj5gqm1x6b0q9fjqdcsvls7arnl3bvzgsia0n"))))
2553 (propagated-inputs '()))))
2555 (define-public ocaml4.01-batteries
2556 (let ((base (package-with-ocaml4.01 (strip-ocaml4.01-variant ocaml4.02-batteries))))
2559 (name "ocaml4.01-batteries"))))
2561 (define-public ocaml-pcre
2567 (uri (string-append "https://github.com/mmottl/pcre-ocaml/archive"
2568 "/v" version ".tar.gz"))
2569 (file-name (string-append name "-" version ".tar.gz"))
2572 "0rj6dw79px4sj2kq0iss2nzq3rnsn9wivvc0f44wa1mppr6njfb3"))))
2573 (build-system ocaml-build-system)
2576 (modify-phases %standard-phases
2577 (add-after 'install 'link-lib
2578 (lambda* (#:key outputs #:allow-other-keys)
2579 (let* ((out (assoc-ref outputs "out"))
2580 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
2581 (lib (string-append out "/lib/ocaml/site-lib/pcre")))
2583 (symlink (string-append lib "/dllpcre_stubs.so")
2584 (string-append stubs "/dllpcre_stubs.so")))
2587 `(("batteries" ,ocaml-batteries)
2588 ("ocamlbuild" ,ocamlbuild)
2589 ("pcre:bin" ,pcre "bin")))
2590 (propagated-inputs `(("pcre" ,pcre)))
2591 (home-page "https://mmottl.github.io/pcre-ocaml")
2592 (synopsis "Bindings to the Perl Compatibility Regular Expressions library")
2593 (description "Pcre-ocaml offers library functions for string pattern
2594 matching and substitution, similar to the functionality offered by the Perl
2596 (license license:lgpl2.1+))); with the OCaml link exception
2598 (define-public ocaml4.02-pcre
2599 (package-with-ocaml4.02 ocaml-pcre))
2601 (define-public ocaml-expect
2603 (name "ocaml-expect")
2607 (uri (ocaml-forge-uri name version 1736))
2610 "098qvg9d4yrqzr5ax291y3whrpax0m3sx4gi6is0mblc96r9yqk0"))))
2613 (build-system ocaml-build-system)
2615 `(("ocamlbuild" ,ocamlbuild)
2616 ("ocaml-num" ,ocaml-num)
2617 ("ocaml-pcre" ,ocaml-pcre)
2618 ("ounit" ,ocaml-ounit)))
2619 (propagated-inputs `(("batteries" ,ocaml-batteries)))
2620 (home-page "https://forge.ocamlcore.org/projects/ocaml-expect/")
2621 (synopsis "Simple implementation of expect")
2622 (description "Help building unitary testing of interactive program. You
2623 can match the question using a regular expression or a timeout.")
2624 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2626 (define-public ocaml4.02-fileutils
2628 (name "ocaml4.02-fileutils")
2632 (uri (ocaml-forge-uri name version 1728))
2635 "1rc4cqlvdhbs55i85zfbfhz938fsy4fj6kwlkfm3ra7bpwn8bmpd"))))
2636 (build-system ocaml-build-system)
2638 `(#:ocaml ,ocaml-4.02
2639 #:findlib ,ocaml4.02-findlib))
2641 `(("ounit" ,ocaml4.02-ounit)))
2642 (home-page "http://ocaml-fileutils.forge.ocamlcore.org")
2643 (synopsis "Pure OCaml functions to manipulate real file and filename")
2644 (description "Library to provide pure OCaml functions to manipulate real
2645 file (POSIX like) and filename.")
2646 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2648 (define-public ocaml-oasis
2650 (name "ocaml-oasis")
2654 (uri (ocaml-forge-uri name version 1757))
2657 "0bn13mzfa98dq3y0jwzzndl55mnywaxv693z6f1rlvpdykp3vdqq"))
2658 (modules '((guix build utils)))
2661 (substitute* "test/test-main/Test.ml"
2662 ;; most of these tests fail because ld cannot find crti.o, but according
2663 ;; to the log file, the environment variables {LD_,}LIBRARY_PATH
2664 ;; are set correctly when LD_LIBRARY_PATH is defined beforhand.
2665 (("TestBaseCompat.tests;") "")
2666 (("TestExamples.tests;") "")
2667 (("TestFull.tests;") "")
2668 (("TestPluginDevFiles.tests;") "")
2669 (("TestPluginInternal.tests;") "")
2670 (("TestPluginOCamlbuild.tests;") "")
2671 (("TestPluginOMake.tests;") ""))
2673 (build-system ocaml-build-system)
2677 `(("ocamlbuild" ,ocamlbuild)
2678 ("ocamlify" ,ocamlify)
2679 ("ocamlmod" ,ocamlmod)))
2680 (home-page "https://oasis.forge.ocamlcore.org")
2681 (synopsis "Integrates a configure, build, install system in OCaml projects")
2682 (description "OASIS is a tool to integrate a configure, build and install
2683 system in your OCaml projects. It helps to create standard entry points in your
2684 build system and allows external tools to analyse your project easily.")
2685 (license license:lgpl2.1+))) ; with ocaml static compilation exception
2687 (define-public ocaml4.02-oasis
2688 (package-with-ocaml4.02 ocaml-oasis))
2690 (define-public ocaml-js-build-tools
2692 (name "ocaml-js-build-tools")
2693 (version "113.33.06")
2694 (source (janestreet-origin "js-build-tools" version
2695 "0r8z4fz8iy5y6hkdlkpwf6rk4qigcr3dzyv35585xgg2ahf12zy6"))
2697 `(("oasis" ,ocaml-oasis)
2698 ("ocamlbuild" ,ocamlbuild)
2700 (build-system ocaml-build-system)
2701 (arguments janestreet-arguments)
2702 (home-page "https://github.com/janestreet/js-build-tools")
2703 (synopsis "Collection of tools to help building Jane Street Packages")
2704 (description "This package contains tools to help building Jane Street
2705 packages, but can be used for other purposes. It contains:
2707 @item an @command{oasis2opam-install} tool to produce a @file{.install} file
2708 from the oasis build log
2709 @item a @code{js_build_tools} ocamlbuild plugin with various goodies.
2711 (license license:asl2.0)))
2713 (define-public ocaml4.02-js-build-tools
2714 (package-with-ocaml4.02 ocaml-js-build-tools))
2716 (define-public ocaml4.02-bin-prot
2718 (name "ocaml4.02-bin-prot")
2719 (version "113.33.03")
2720 (source (janestreet-origin "bin_prot" version
2721 "1ws8c017z8nbj3vw92ndvjk9011f71rmp3llncbv8r5fc76wqv3l"))
2722 (build-system ocaml-build-system)
2724 `(("js-build-tools" ,ocaml4.02-js-build-tools)
2727 (ensure-keyword-arguments janestreet-arguments
2728 `(#:ocaml ,ocaml-4.02
2729 #:findlib ,ocaml4.02-findlib)))
2730 (home-page "https://github.com/janestreet/bin_prot/")
2731 (synopsis "Binary protocol generator")
2732 (description "This library contains functionality for reading and writing
2733 OCaml-values in a type-safe binary protocol. It is extremely efficient,
2734 typically supporting type-safe marshalling and unmarshalling of even highly
2735 structured values at speeds sufficient to saturate a gigabit connection. The
2736 protocol is also heavily optimized for size, making it ideal for long-term
2737 storage of large amounts of data.")
2738 (license license:asl2.0)))
2740 (define-public ocaml4.02-fieldslib
2742 (name "ocaml4.02-fieldslib")
2743 (version "113.33.03")
2744 (source (janestreet-origin "fieldslib" version
2745 "1rm3bn54bzk2hlq8f3w067ak8s772w4a8f78i3yh79vxfzq8ncvv"))
2746 (build-system ocaml-build-system)
2748 `(("js-build-tools" ,ocaml4.02-js-build-tools)
2751 (ensure-keyword-arguments janestreet-arguments
2752 `(#:ocaml ,ocaml-4.02
2753 #:findlib ,ocaml4.02-findlib)))
2754 (home-page "https://github.com/janestreet/fieldslib/")
2755 (synopsis "Syntax extension to record fields")
2756 (description "Syntax extension to define first class values representing
2757 record fields, to get and set record fields, iterate and fold over all fields
2758 of a record and create new record values.")
2759 (license license:asl2.0)))
2761 (define-public ocaml4.02-ppx-core
2763 (name "ocaml4.02-ppx-core")
2764 (version "113.33.03")
2765 (source (janestreet-origin "ppx_core" version
2766 "0f69l4czhgssnhb5ds2j9dbqjyz8dp1y3i3x0i4h6pxnms20zbxa"))
2767 (build-system ocaml-build-system)
2769 `(("js-build-tools" ,ocaml4.02-js-build-tools)
2771 (inputs `(("ppx-tools" ,ocaml4.02-ppx-tools)))
2773 (ensure-keyword-arguments janestreet-arguments
2774 `(#:ocaml ,ocaml-4.02
2775 #:findlib ,ocaml4.02-findlib)))
2776 (home-page "https://github.com/janestreet/ppx_core/")
2777 (synopsis "Standard library for ppx rewriters")
2778 (description "Ppx_core is a standard library for OCaml AST transformers.
2781 @item various auto-generated AST traversal using an open recursion scheme
2782 @item helpers for building AST fragments
2783 @item helpers for matching AST fragments
2784 @item a framework for dealing with attributes and extension points.
2786 (license license:asl2.0)))
2788 (define-public ocaml4.02-ppx-optcomp
2790 (name "ocaml4.02-ppx-optcomp")
2791 (version "113.33.03")
2792 (source (janestreet-origin "ppx_optcomp" version
2793 "13an8p2r7sd0d5lv54mlzrxdni47408bwqi3bjcx4m6005170q30"))
2794 (build-system ocaml-build-system)
2796 `(("js-build-tools" ,ocaml4.02-js-build-tools)
2799 `(("ppx-tools" ,ocaml4.02-ppx-tools)
2800 ("ppx-core" ,ocaml4.02-ppx-core)))
2802 (ensure-keyword-arguments janestreet-arguments
2803 `(#:ocaml ,ocaml-4.02
2804 #:findlib ,ocaml4.02-findlib)))
2805 (home-page "https://github.com/janestreet/ppx_optcomp/")
2806 (synopsis "Optional compilation for OCaml")
2807 (description "Ppx_optcomp stands for Optional Compilation. It is a tool
2808 used to handle optional compilations of pieces of code depending of the word
2809 size, the version of the compiler, ...")
2810 (license license:asl2.0)))
2812 (define-public ocaml4.02-ppx-driver
2814 (name "ocaml4.02-ppx-driver")
2815 (version "113.33.03")
2816 (source (janestreet-origin "ppx_driver" version
2817 "011zzr45897j49b7iiybb29k7pspcx36mlnp7nh6pxb8b0ga76fh"))
2818 (build-system ocaml-build-system)
2820 `(("js-build-tools" ,ocaml4.02-js-build-tools)
2822 ("ppx-optcomp" ,ocaml4.02-ppx-optcomp)))
2824 `(("ppx-optcomp" ,ocaml4.02-ppx-optcomp)
2825 ("ppx-core" ,ocaml4.02-ppx-core)))
2827 (ensure-keyword-arguments janestreet-arguments
2828 `(#:ocaml ,ocaml-4.02
2829 #:findlib ,ocaml4.02-findlib)))
2830 (home-page "https://github.com/janestreet/ppx_driver/")
2831 (synopsis "Feature-full driver for OCaml AST transformers")
2832 (description "A driver is an executable created from a set of OCaml AST
2833 transformers linked together with a command line frontend. The aim is to
2834 provide a tool that can be used to:
2836 @item easily view the pre-processed version of a file, no need to construct a
2837 complex command line: @command{ppx file.ml} will do
2838 @item use a single executable to run several transformations: no need to fork
2839 many times just for pre-processing
2840 @item improved errors for misspelled/misplaced attributes and extension points.
2842 (license license:asl2.0)))
2844 (define-public ocaml-cppo
2851 (uri (string-append "https://github.com/mjambon/cppo/archive/v" version
2854 "1dkm3d5h6h56y937gcdk2wixlpzl59vv5pmiafglr89p20kf7gqf"))
2855 (file-name (string-append name "-" version ".tar.gz"))))
2856 (build-system dune-build-system)
2859 #:build-flags (list "--profile" "release")))
2861 `(("ocamlbuild" ,ocamlbuild)))
2862 (home-page "https://github.com/mjambon/cppo")
2863 (synopsis "Equivalent of the C preprocessor for OCaml programs")
2864 (description "Cppo is an equivalent of the C preprocessor for OCaml
2865 programs. It allows the definition of simple macros and file inclusion. Cpp ois:
2867 @item more OCaml-friendly than cpp
2868 @item easy to learn without consulting a manual
2869 @item reasonably fast
2870 @item simple to install and to maintain.
2872 (license license:bsd-3)))
2874 (define-public ocaml4.02-cppo
2875 (package-with-ocaml4.02 ocaml-cppo))
2877 ;; this package is not reproducible. This is related to temporary filenames
2878 ;; such as findlib_initxxxxx where xxxxx is random.
2879 (define-public ocaml4.02-ppx-deriving
2881 (name "ocaml4.02-ppx-deriving")
2886 (uri (string-append "https://github.com/whitequark/ppx_deriving//archive/v"
2889 "1fr16g121j6zinwcprzlhx2py4271n9jzs2m9hq2f3qli2b1p0vl"))
2890 (file-name (string-append name "-" version ".tar.gz"))))
2891 (build-system ocaml-build-system)
2893 `(("js-build-tools" ,ocaml4.02-js-build-tools)
2894 ("cppo" ,ocaml4.02-cppo)
2895 ("ounit" ,ocaml4.02-ounit)
2898 `(("result" ,ocaml4.02-result)
2899 ("ppx-tools" ,ocaml4.02-ppx-tools)))
2901 `(#:ocaml ,ocaml-4.02
2902 #:findlib ,ocaml4.02-findlib
2904 (modify-phases %standard-phases
2906 (add-before 'install 'fix-environment
2907 (lambda* (#:key outputs #:allow-other-keys)
2908 ;; the installation procedures looks for the installed module
2910 (string-append (getenv "OCAMLPATH") ":"
2911 (getenv "OCAMLFIND_DESTDIR"))))))))
2912 (home-page "https://github.com/whitequark/ppx_deriving/")
2913 (synopsis "Type-driven code generation for OCaml >=4.02")
2914 (description "Ppx_deriving provides common infrastructure for generating
2915 code based on type definitions, and a set of useful plugins for common tasks.")
2916 (license license:expat)))
2918 (define-public ocaml4.02-ppx-type-conv
2920 (name "ocaml4.02-ppx-type-conv")
2921 (version "113.33.03")
2923 (janestreet-origin "ppx_type_conv" version
2924 "1sp602ads2f250nv4d4rgw54d14k7flyhb4w8ff084f657hhmxv2"))
2925 (build-system ocaml-build-system)
2927 `(("js-build-tools" ,ocaml4.02-js-build-tools)
2930 `(("ppx-deriving" ,ocaml4.02-ppx-deriving)
2931 ("ppx-core" ,ocaml4.02-ppx-core)
2932 ("ppx-driver" ,ocaml4.02-ppx-driver)))
2934 (ensure-keyword-arguments janestreet-arguments
2935 `(#:ocaml ,ocaml-4.02
2936 #:findlib ,ocaml4.02-findlib)))
2937 (home-page "https://github.com/janestreet/ppx_type_conv/")
2938 (synopsis "Support Library for type-driven code generators")
2939 (description "The type_conv library factors out functionality needed by
2940 different preprocessors that generate code from type specifications.")
2941 (license license:asl2.0)))
2943 (define-public ocaml4.02-ppx-inline-test
2945 (name "ocaml4.02-ppx-inline-test")
2946 (version "113.33.03")
2947 (source (janestreet-origin "ppx_inline_test" version
2948 "0859ni43fl39dd5g6cxfhq0prxmx59bd2bfq8jafp593ba4q0icq"))
2949 (build-system ocaml-build-system)
2951 `(("js-build-tools" ,ocaml4.02-js-build-tools)
2953 ("ppx-core" ,ocaml4.02-ppx-core)))
2955 `(("ppx-driver" ,ocaml4.02-ppx-driver)
2956 ("ppx-tools" ,ocaml4.02-ppx-tools)
2957 ("ppx-core" ,ocaml4.02-ppx-core)))
2959 (ensure-keyword-arguments janestreet-arguments
2960 `(#:ocaml ,ocaml-4.02
2961 #:findlib ,ocaml4.02-findlib)))
2962 (home-page "https://github.com/janestreet/ppx_inline_test/")
2963 (synopsis "Syntax extension for writing in-line tests in ocaml code")
2964 (description "Syntax extension for writing in-line tests in ocaml code.")
2965 (license license:asl2.0)))
2967 (define-public ocaml4.02-ppx-bench
2969 (name "ocaml4.02-ppx-bench")
2970 (version "113.33.03")
2971 (source (janestreet-origin "ppx_bench" version
2972 "1hky3y17qpb925rymf97wv54di9gaqdmkix7wpkjw14qzl512b68"))
2973 (build-system ocaml-build-system)
2975 `(("js-build-tools" ,ocaml4.02-js-build-tools)
2977 ("ppx-core" ,ocaml4.02-ppx-core)))
2979 `(("ppx-driver" ,ocaml4.02-ppx-driver)
2980 ("ppx-tools" ,ocaml4.02-ppx-tools)
2981 ("ppx-inline-test" ,ocaml4.02-ppx-inline-test)
2982 ("ppx-core" ,ocaml4.02-ppx-core)))
2984 (ensure-keyword-arguments janestreet-arguments
2985 `(#:ocaml ,ocaml-4.02
2986 #:findlib ,ocaml4.02-findlib)))
2987 (home-page "https://github.com/janestreet/ppx_bench/")
2988 (synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
2989 (description "Syntax extension for writing in-line benchmarks in ocaml code.")
2990 (license license:asl2.0)))
2992 (define-public ocaml4.02-ppx-compare
2994 (name "ocaml4.02-ppx-compare")
2995 (version "113.33.03")
2996 (source (janestreet-origin "ppx_compare" version
2997 "0bfhi33kq9l4q6zzc6svki2csracz5j4731c3npcy6cs73jynn0z"))
2998 (build-system ocaml-build-system)
3000 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3002 ("ppx-core" ,ocaml4.02-ppx-core)))
3004 `(("ppx-driver" ,ocaml4.02-ppx-driver)
3005 ("ppx-tools" ,ocaml4.02-ppx-tools)
3006 ("ppx-core" ,ocaml4.02-ppx-core)
3007 ("ppx-type-conv" ,ocaml4.02-ppx-type-conv)))
3009 (ensure-keyword-arguments janestreet-arguments
3010 `(#:ocaml ,ocaml-4.02
3011 #:findlib ,ocaml4.02-findlib)))
3012 (home-page "https://github.com/janestreet/ppx_compare/")
3013 (synopsis "Generation of comparison functions from types")
3014 (description "Generation of fast comparison functions from type expressions
3015 and definitions. Ppx_compare is a ppx rewriter that derives comparison functions
3016 from type representations. The scaffolded functions are usually much faster
3017 than ocaml's Pervasives.compare. Scaffolding functions also gives you more
3018 flexibility by allowing you to override them for a specific type and more safety
3019 by making sure that you only compare comparable values.")
3020 (license license:asl2.0)))
3022 (define-public ocaml4.02-sexplib
3024 (name "ocaml4.02-sexplib")
3025 (version "113.33.03")
3026 (source (janestreet-origin "sexplib" version
3027 "1ffjmj8if9lyv965cgn2ld1xv7g52qsr8mqflbm515ck1i8l2ima"))
3028 (build-system ocaml-build-system)
3030 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3033 (ensure-keyword-arguments janestreet-arguments
3034 `(#:ocaml ,ocaml-4.02
3035 #:findlib ,ocaml4.02-findlib)))
3036 (home-page "https://github.com/janestreet/sexplib/")
3037 (synopsis "Library for serializing OCaml values to and from S-expressions")
3038 (description "Sexplib contains functionality for parsing and pretty-printing
3040 (license license:asl2.0)))
3042 (define-public ocaml4.02-typerep
3044 (name "ocaml4.02-typerep")
3045 (version "113.33.03")
3046 (source (janestreet-origin "typerep" version
3047 "1b9v5bmi824a9d4sx0f40ixq0yfcbiqxafg4a1jx95xg9199zafy"))
3048 (build-system ocaml-build-system)
3050 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3053 (ensure-keyword-arguments janestreet-arguments
3054 `(#:ocaml ,ocaml-4.02
3055 #:findlib ,ocaml4.02-findlib)))
3056 (home-page "https://github.com/janestreet/typerep/")
3057 (synopsis "Typerep is a library for runtime types")
3058 (description "Typerep is a library for runtime types.")
3059 (license license:asl2.0)))
3061 (define-public ocaml4.02-variantslib
3063 (name "ocaml4.02-variantslib")
3064 (version "113.33.03")
3065 (source (janestreet-origin "variantslib" version
3066 "05vp799vl38fvl98ga5miwbzh09cnnpapi6q6gdvwyqi6w7s919n"))
3067 (build-system ocaml-build-system)
3069 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3072 (ensure-keyword-arguments janestreet-arguments
3073 `(#:ocaml ,ocaml-4.02
3074 #:findlib ,ocaml4.02-findlib)))
3075 (home-page "https://github.com/janestreet/variantslib")
3076 (synopsis "OCaml variants as first class values")
3077 (description "OCaml variants as first class values.")
3078 (license license:asl2.0)))
3080 (define-public ocaml4.02-ppx-sexp-conv
3082 (name "ocaml4.02-ppx-sexp-conv")
3083 (version "113.33.03")
3084 (source (janestreet-origin "ppx_sexp_conv" version
3085 "1rbj6d5dl625gdxih34xcrdvikci6h8i2dl9x3wraa4qrgishiw7"))
3086 (build-system ocaml-build-system)
3088 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3090 ("ppx-core" ,ocaml4.02-ppx-core)))
3092 `(("sexplib" ,ocaml4.02-sexplib)
3093 ("ppx-core" ,ocaml4.02-ppx-core)
3094 ("ppx-type-conv" ,ocaml4.02-ppx-type-conv)
3095 ("ppx-tools" ,ocaml4.02-ppx-tools)))
3097 (ensure-keyword-arguments janestreet-arguments
3098 `(#:ocaml ,ocaml-4.02
3099 #:findlib ,ocaml4.02-findlib)))
3100 (home-page "https://github.com/janestreet/ppx_sexp_conv")
3101 (synopsis "Generation of S-expression conversion functions from type definitions")
3102 (description "Generation of S-expression conversion functions from type
3104 (license license:asl2.0)))
3106 (define-public ocaml4.02-ppx-variants-conv
3108 (name "ocaml4.02-ppx-variants-conv")
3109 (version "113.33.03")
3110 (source (janestreet-origin "ppx_variants_conv" version
3111 "0vnn2l1118cj72413d3f7frlw6yc09l8f64jlzkzbgb9bxpalx34"))
3112 (build-system ocaml-build-system)
3114 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3117 `(("ppx-core" ,ocaml4.02-ppx-core)
3118 ("variantslib" ,ocaml4.02-variantslib)
3119 ("ppx-tools" ,ocaml4.02-ppx-tools)
3120 ("ppx-type-conv" ,ocaml4.02-ppx-type-conv)))
3122 (ensure-keyword-arguments janestreet-arguments
3123 `(#:ocaml ,ocaml-4.02
3124 #:findlib ,ocaml4.02-findlib)))
3125 (home-page "https://github.com/janestreet/ppx_variants_conv")
3126 (synopsis "Generation of accessor and iteration functions for ocaml variant
3128 (description "Generation of accessor and iteration functions for ocaml
3130 (license license:asl2.0)))
3132 (define-public ocaml4.02-ppx-here
3134 (name "ocaml4.02-ppx-here")
3135 (version "113.33.03")
3136 (source (janestreet-origin "ppx_here" version
3137 "1ay8lfxi0qg3ib2zkwh4h0vqk3gjmxaz572gzab0bbxyqn3z86v7"))
3138 (build-system ocaml-build-system)
3140 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3143 `(("ppx-driver" ,ocaml4.02-ppx-driver)
3144 ("ppx-core" ,ocaml4.02-ppx-core)))
3146 (ensure-keyword-arguments janestreet-arguments
3147 `(#:ocaml ,ocaml-4.02
3148 #:findlib ,ocaml4.02-findlib)))
3149 (home-page "https://github.com/janestreet/ppx_here")
3150 (synopsis "Expands [%here] into its location")
3151 (description "Expands [%here] into its location.")
3152 (license license:asl2.0)))
3154 (define-public ocaml4.02-ppx-assert
3156 (name "ocaml4.02-ppx-assert")
3157 (version "113.33.03")
3158 (source (janestreet-origin "ppx_assert" version
3159 "1k5kxmqkibp5fk25pgz81f3c1r4mgvb5byzf6bnmxd24y60wn46p"))
3160 (build-system ocaml-build-system)
3162 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3165 `(("ppx-compare" ,ocaml4.02-ppx-compare)
3166 ("ppx-core" ,ocaml4.02-ppx-core)
3167 ("ppx-driver" ,ocaml4.02-ppx-driver)
3168 ("ppx-sexp-conv" ,ocaml4.02-ppx-sexp-conv)
3169 ("ppx-tools" ,ocaml4.02-ppx-tools)
3170 ("ppx-type-conv" ,ocaml4.02-ppx-type-conv)
3171 ("ppx-sexplib" ,ocaml4.02-sexplib)
3172 ("ppx-here" ,ocaml4.02-ppx-here)))
3174 (ensure-keyword-arguments janestreet-arguments
3175 `(#:ocaml ,ocaml-4.02
3176 #:findlib ,ocaml4.02-findlib)))
3177 (home-page "https://github.com/janestreet/ppx_assert")
3178 (synopsis "Assert-like extension nodes that raise useful errors on failure")
3179 (description "Assert-like extension nodes that raise useful errors on failure.")
3180 (license license:asl2.0)))
3182 (define-public ocaml4.02-ppx-enumerate
3184 (name "ocaml4.02-ppx-enumerate")
3185 (version "113.33.03")
3186 (source (janestreet-origin "ppx_enumerate" version
3187 "15g7yfv9wg2h9r6k6q1zrhygmsl4xrfn25mrb0i4czjjivzmxjh4"))
3188 (build-system ocaml-build-system)
3190 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3193 `(("ppx-tools" ,ocaml4.02-ppx-tools)
3194 ("ppx-type-conv" ,ocaml4.02-ppx-type-conv)
3195 ("ppx-core" ,ocaml4.02-ppx-core)))
3197 (ensure-keyword-arguments janestreet-arguments
3198 `(#:ocaml ,ocaml-4.02
3199 #:findlib ,ocaml4.02-findlib)))
3200 (home-page "https://github.com/janestreet/ppx_enumerate")
3201 (synopsis "Generate a list containing all values of a finite type")
3202 (description "Ppx_enumerate is a ppx rewriter which generates a definition
3203 for the list of all values of a type (for a type which only has finitely
3205 (license license:asl2.0)))
3207 (define-public ocaml4.02-ppx-let
3209 (name "ocaml4.02-ppx-let")
3210 (version "113.33.03")
3211 (source (janestreet-origin "ppx_let" version
3212 "0gd6d3gdaqfwjcs7gaw1qxc30i584q6a86ndaj1bx1q63xqd6yx9"))
3213 (build-system ocaml-build-system)
3215 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3218 `(("ppx-driver" ,ocaml4.02-ppx-driver)
3219 ("ppx-core" ,ocaml4.02-ppx-core)))
3221 (ensure-keyword-arguments janestreet-arguments
3222 `(#:ocaml ,ocaml-4.02
3223 #:findlib ,ocaml4.02-findlib)))
3224 (home-page "https://github.com/janestreet/ppx_let")
3225 (synopsis "Monadic let-bindings")
3226 (description "A ppx rewriter for monadic and applicative let bindings,
3227 match expressions, and if expressions.")
3228 (license license:asl2.0)))
3230 (define-public ocaml4.02-ppx-typerep-conv
3232 (name "ocaml4.02-ppx-typerep-conv")
3233 (version "113.33.03")
3234 (source (janestreet-origin "ppx_typerep_conv" version
3235 "0g0xqm9s1b2jjvxb8yp69281q2s3bwz6sibn10fvgcdawpa0rmrg"))
3236 (build-system ocaml-build-system)
3238 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3241 `(("ppx-tools" ,ocaml4.02-ppx-tools)
3242 ("ppx-type-conv" ,ocaml4.02-ppx-type-conv)
3243 ("ppx-core" ,ocaml4.02-ppx-core)
3244 ("typerep" ,ocaml4.02-typerep)))
3246 (ensure-keyword-arguments janestreet-arguments
3247 `(#:ocaml ,ocaml-4.02
3248 #:findlib ,ocaml4.02-findlib)))
3249 (home-page "https://github.com/janestreet/ppx_typerep_conv")
3250 (synopsis "Generation of runtime types from type declarations")
3251 (description "Automatic generation of runtime types from type definitions.")
3252 (license license:asl2.0)))
3254 (define-public ocaml4.02-ppx-sexp-value
3256 (name "ocaml4.02-ppx-sexp-value")
3257 (version "113.33.03")
3258 (source (janestreet-origin "ppx_sexp_value" version
3259 "0m3ag23mbqm0i2pv1dzilfks15ipa5q60mf57a0cd3p0pvarq10g"))
3260 (build-system ocaml-build-system)
3262 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3265 `(("ppx-driver" ,ocaml4.02-ppx-driver)
3266 ("ppx-here" ,ocaml4.02-ppx-here)
3267 ("ppx-sexp-conv" ,ocaml4.02-ppx-sexp-conv)
3268 ("ppx-tools" ,ocaml4.02-ppx-tools)
3269 ("ppx-core" ,ocaml4.02-ppx-core)))
3271 (ensure-keyword-arguments janestreet-arguments
3272 `(#:ocaml ,ocaml-4.02
3273 #:findlib ,ocaml4.02-findlib)))
3274 (home-page "https://github.com/janestreet/ppx_sexp_value/")
3275 (synopsis "Simplify building s-expressions from ocaml values")
3276 (description "A ppx rewriter that simplifies building s-expressions from
3278 (license license:asl2.0)))
3280 (define-public ocaml4.02-ppx-pipebang
3282 (name "ocaml4.02-ppx-pipebang")
3283 (version "113.33.03")
3284 (source (janestreet-origin "ppx_pipebang" version
3285 "1965c7hymp26ncmjs0pfxi2s5jlj60z2c9b194lgcwxqiav56pcw"))
3286 (build-system ocaml-build-system)
3288 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3291 `(("ppx-driver" ,ocaml4.02-ppx-driver)
3292 ("ppx-tools" ,ocaml4.02-ppx-tools)
3293 ("ppx-core" ,ocaml4.02-ppx-core)))
3295 (ensure-keyword-arguments janestreet-arguments
3296 `(#:ocaml ,ocaml-4.02
3297 #:findlib ,ocaml4.02-findlib)))
3298 (home-page "https://github.com/janestreet/ppx_pipebang/")
3299 (synopsis "Inline reverse application operators `|>` and `|!`")
3300 (description "A ppx rewriter that inlines reverse application operators
3301 @code{|>} and @code{|!}.")
3302 (license license:asl2.0)))
3304 (define-public ocaml4.02-ppx-bin-prot
3306 (name "ocaml4.02-ppx-bin-prot")
3307 (version "113.33.03")
3308 (source (janestreet-origin "ppx_bin_prot" version
3309 "173kjv36giik11zgfvsbzwfbpr66dm2pcha9vf990jgzh8hqz39h"))
3310 (build-system ocaml-build-system)
3312 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3315 `(("bin-prot" ,ocaml4.02-bin-prot)
3316 ("ppx-tools" ,ocaml4.02-ppx-tools)
3317 ("ppx-type-conv" ,ocaml4.02-ppx-type-conv)
3318 ("ppx-core" ,ocaml4.02-ppx-core)))
3320 (ensure-keyword-arguments janestreet-arguments
3321 `(#:ocaml ,ocaml-4.02
3322 #:findlib ,ocaml4.02-findlib)))
3323 (home-page "https://github.com/janestreet/ppx_bin_prot/")
3324 (synopsis "Generation of bin_prot readers and writers from types")
3325 (description "Generation of binary serialization and deserialization
3326 functions from type definitions.")
3327 (license license:asl2.0)))
3329 (define-public ocaml4.02-ppx-fail
3331 (name "ocaml4.02-ppx-fail")
3332 (version "113.33.03")
3333 (source (janestreet-origin "ppx_fail" version
3334 "1dwgad0f05gqp5rnwf9dcasidpfi7q3mrpazsw3a2vijjblbhjgn"))
3335 (build-system ocaml-build-system)
3337 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3340 `(("ppx-driver" ,ocaml4.02-ppx-driver)
3341 ("ppx-tools" ,ocaml4.02-ppx-tools)
3342 ("ppx-here" ,ocaml4.02-ppx-here)
3343 ("ppx-core" ,ocaml4.02-ppx-core)))
3345 (ensure-keyword-arguments janestreet-arguments
3346 `(#:ocaml ,ocaml-4.02
3347 #:findlib ,ocaml4.02-findlib)))
3348 (home-page "https://github.com/janestreet/ppx_fail/")
3349 (synopsis "Add location to calls to failwiths")
3350 (description "Syntax extension that makes [failwiths] always include a
3352 (license license:asl2.0)))
3354 (define-public ocaml4.02-ppx-custom-printf
3356 (name "ocaml4.02-ppx-custom-printf")
3357 (version "113.33.03")
3358 (source (janestreet-origin "ppx_custom_printf" version
3359 "11jlx0n87g2j1vyyp343dibx7lvvwig5j5q0nq0b80kbsq0k6yr8"))
3360 (build-system ocaml-build-system)
3362 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3365 `(("ppx-sexp-conv" ,ocaml4.02-ppx-sexp-conv)
3366 ("ppx-tools" ,ocaml4.02-ppx-tools)
3367 ("ppx-core" ,ocaml4.02-ppx-core)
3368 ("ppx-driver" ,ocaml4.02-ppx-driver)))
3370 (ensure-keyword-arguments janestreet-arguments
3371 `(#:ocaml ,ocaml-4.02
3372 #:findlib ,ocaml4.02-findlib)))
3373 (home-page "https://github.com/janestreet/ppx_custom_printf/")
3374 (synopsis "Printf-style format-strings for user-defined string conversion")
3375 (description "Extensions to printf-style format-strings for user-defined
3376 string conversion.")
3377 (license license:asl2.0)))
3379 (define-public ocaml4.02-ppx-sexp-message
3381 (name "ocaml4.02-ppx-sexp-message")
3382 (version "113.33.03")
3383 (source (janestreet-origin "ppx_sexp_message" version
3384 "084w1l3gnyw4ri9vbn7bv9b2xkw1520qczfxpxdarfivdrz8xr68"))
3385 (build-system ocaml-build-system)
3387 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3390 `(("ppx-driver" ,ocaml4.02-ppx-driver)
3391 ("ppx-here" ,ocaml4.02-ppx-here)
3392 ("ppx-sexp-conv" ,ocaml4.02-ppx-sexp-conv)
3393 ("ppx-tools" ,ocaml4.02-ppx-tools)
3394 ("ppx-core" ,ocaml4.02-ppx-core)))
3396 (ensure-keyword-arguments janestreet-arguments
3397 `(#:ocaml ,ocaml-4.02
3398 #:findlib ,ocaml4.02-findlib)))
3399 (home-page "https://github.com/janestreet/ppx_sexp_message/")
3400 (synopsis "A ppx rewriter for easy construction of s-expressions")
3401 (description "Ppx_sexp_message aims to ease the creation of s-expressions
3402 in OCaml. This is mainly motivated by writing error and debugging messages,
3403 where one needs to construct a s-expression based on various element of the
3404 context such as function arguments.")
3405 (license license:asl2.0)))
3407 (define-public ocaml4.02-ppx-fields-conv
3409 (name "ocaml4.02-ppx-fields-conv")
3410 (version "113.33.03")
3411 (source (janestreet-origin "ppx_fields_conv" version
3412 "1vzbdz27g5qhhfs7wx6rjf979q4xyssxqbmp6sc1sxknbghslbdv"))
3413 (build-system ocaml-build-system)
3415 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3417 ("ppx-core" ,ocaml4.02-ppx-core)))
3419 `(("fieldslib" ,ocaml4.02-fieldslib)
3420 ("ppx-tools" ,ocaml4.02-ppx-tools)
3421 ("ppx-core" ,ocaml4.02-ppx-core)
3422 ("ppx-type-conv" ,ocaml4.02-ppx-type-conv)))
3424 (ensure-keyword-arguments janestreet-arguments
3425 `(#:ocaml ,ocaml-4.02
3426 #:findlib ,ocaml4.02-findlib)))
3427 (home-page "https://github.com/janestreet/ppx_fields_conv/")
3428 (synopsis "Generation of accessor and iteration functions for ocaml records")
3429 (description "Ppx_fields_conv is a ppx rewriter that can be used to define
3430 first class values representing record fields, and additional routines, to get
3431 and set record fields, iterate and fold over all fields of a record and create
3432 new record values.")
3433 (license license:asl2.0)))
3435 (define-public ocaml-seq
3441 (uri (string-append "https://github.com/c-cube/seq/archive/"
3443 (file-name (string-append name "-" version ".tar.gz"))
3446 "02lb2d9i12bxrz2ba5wygk2bycan316skqlyri0597q7j9210g8r"))))
3447 (build-system ocaml-build-system)
3451 (modify-phases %standard-phases
3455 (lambda* (#:key outputs #:allow-other-keys)
3456 (let ((install-dir (string-append (assoc-ref outputs "out")
3457 "/lib/ocaml/site-lib/seq")))
3458 (mkdir-p install-dir)
3459 (with-output-to-file (string-append install-dir "/META")
3461 (display "name=\"seq\"
3462 version=\"[distributed with ocaml]\"
3463 description=\"dummy package for compatibility\"
3467 `((ocaml4.02-variant . ,(delay ocaml4.02-seq))))
3468 (home-page "https://github.com/c-cube/seq")
3469 (synopsis "OCaml's standard iterator type")
3470 (description "This package is a compatibility package for OCaml's
3471 standard iterator type starting from 4.07.")
3472 (license license:lgpl2.1+)))
3474 (define-public ocaml4.02-seq
3475 (let ((base (package-with-ocaml4.02 (strip-ocaml4.02-variant ocaml-seq))))
3479 `(#:ocaml ,ocaml-4.02
3480 #:findlib ,ocaml4.02-findlib
3481 #:tests? #f; no tests
3482 #:phases (modify-phases %standard-phases (delete 'configure)))))))
3484 (define-public ocaml-re
3490 (uri (string-append "https://github.com/ocaml/ocaml-re//archive/"
3492 (file-name (string-append name "-" version ".tar.gz"))
3495 "1pdb0mr6z5ax6szblr3f5lbdnqq9grm97cmsfjmdma60yrx2rqhd"))))
3496 (build-system dune-build-system)
3499 #:build-flags (list "--profile" "release")))
3501 `(("ocaml-seq" ,ocaml-seq)))
3503 `(("ounit" ,ocaml-ounit)))
3504 (home-page "https://github.com/ocaml/ocaml-re/")
3505 (synopsis "Regular expression library for OCaml")
3506 (description "Pure OCaml regular expressions with:
3508 @item Perl-style regular expressions (module Re_perl)
3509 @item Posix extended regular expressions (module Re_posix)
3510 @item Emacs-style regular expressions (module Re_emacs)
3511 @item Shell-style file globbing (module Re_glob)
3512 @item Compatibility layer for OCaml's built-in Str module (module Re_str)
3514 (license license:expat)))
3516 (define-public ocaml4.02-re
3517 (package-with-ocaml4.02 ocaml-re))
3519 (define-public ocaml4.02-ppx-expect
3521 (name "ocaml4.02-ppx-expect")
3522 (version "113.33.03")
3523 (source (janestreet-origin "ppx_expect" version
3524 "03sbs4s5i8l9syr45v25f5hzy7msd2b47k2a9wsq9m43d4imgkrc"))
3525 (build-system ocaml-build-system)
3527 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3530 `(("fieldslib" ,ocaml4.02-fieldslib)
3531 ("ppx-tools" ,ocaml4.02-ppx-tools)
3532 ("ppx-assert" ,ocaml4.02-ppx-assert)
3533 ("ppx-compare" ,ocaml4.02-ppx-compare)
3534 ("ppx-core" ,ocaml4.02-ppx-core)
3535 ("ppx-custom-printf" ,ocaml4.02-ppx-custom-printf)
3536 ("ppx-driver" ,ocaml4.02-ppx-driver)
3537 ("ppx-fields-conv" ,ocaml4.02-ppx-fields-conv)
3538 ("ppx-inline-test" ,ocaml4.02-ppx-inline-test)
3539 ("ppx-sexp-conv" ,ocaml4.02-ppx-sexp-conv)
3540 ("ppx-variants-conv" ,ocaml4.02-ppx-variants-conv)
3541 ("re" ,ocaml4.02-re)
3542 ("sexplib" ,ocaml4.02-sexplib)
3543 ("variantslib" ,ocaml4.02-variantslib)))
3545 (ensure-keyword-arguments janestreet-arguments
3546 `(#:ocaml ,ocaml-4.02
3547 #:findlib ,ocaml4.02-findlib)))
3548 (home-page "https://github.com/janestreet/ppx_expect/")
3549 (synopsis "Cram like framework for OCaml")
3550 (description "Expect-test is a framework for writing tests in OCaml, similar
3551 to Cram. Expect-tests mimic the existing inline tests framework with the
3552 let%expect_test construct. The body of an expect-test can contain
3553 output-generating code, interleaved with %expect extension expressions to denote
3554 the expected output.")
3555 (license license:asl2.0)))
3557 (define-public ocaml4.02-ppx-jane
3559 (name "ocaml4.02-ppx-jane")
3560 (version "113.33.03")
3561 (source (janestreet-origin "ppx_jane" version
3562 "0bjxkhmzgm6x9dcvjwybbccn34khbvyyjimcbaja30fp6qcqk5yl"))
3563 (build-system ocaml-build-system)
3565 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3568 `(("ppx-assert" ,ocaml4.02-ppx-assert)
3569 ("ppx-bench" ,ocaml4.02-ppx-bench)
3570 ("ppx-bin-prot" ,ocaml4.02-ppx-bin-prot)
3571 ("ppx-compare" ,ocaml4.02-ppx-compare)
3572 ("ppx-custom-printf" ,ocaml4.02-ppx-custom-printf)
3573 ("ppx-deriving" ,ocaml4.02-ppx-deriving)
3574 ("ppx-enumerate" ,ocaml4.02-ppx-enumerate)
3575 ("ppx-expect" ,ocaml4.02-ppx-expect)
3576 ("ppx-fail" ,ocaml4.02-ppx-fail)
3577 ("ppx-fields-conv" ,ocaml4.02-ppx-fields-conv)
3578 ("ppx-here" ,ocaml4.02-ppx-here)
3579 ("ppx-inline-test" ,ocaml4.02-ppx-inline-test)
3580 ("ppx-let" ,ocaml4.02-ppx-let)
3581 ("ppx-pipebang" ,ocaml4.02-ppx-pipebang)
3582 ("ppx-sexp-conv" ,ocaml4.02-ppx-sexp-conv)
3583 ("ppx-sexp-message" ,ocaml4.02-ppx-sexp-message)
3584 ("ppx-sexp-value" ,ocaml4.02-ppx-sexp-value)
3585 ("ppx-typerep-conv" ,ocaml4.02-ppx-typerep-conv)
3586 ("ppx-variants-conv" ,ocaml4.02-ppx-variants-conv)))
3588 (ensure-keyword-arguments janestreet-arguments
3589 `(#:ocaml ,ocaml-4.02
3590 #:findlib ,ocaml4.02-findlib)))
3591 (home-page "https://github.com/janestreet/ppx_jane/")
3592 (synopsis "Standard Jane Street ppx rewriters")
3593 (description "Ppx_jane is a ppx_driver including all standard ppx rewriters.")
3594 (license license:asl2.0)))
3596 (define-public ocaml4.02-core-kernel
3598 (name "ocaml4.02-core-kernel")
3599 (version "113.33.03")
3600 (source (janestreet-origin "core_kernel" version
3601 "0fl23jrwivixawhxinbwaw9cabqnzn7fini7dxpxjjvkxdc8ip5y"))
3603 `(("js-build-tools" ,ocaml4.02-js-build-tools)
3604 ("ppx-jane" ,ocaml4.02-ppx-jane)
3607 `(("bin_prot" ,ocaml4.02-bin-prot)
3608 ("ppx-assert" ,ocaml4.02-ppx-assert)
3609 ("ppx-bench" ,ocaml4.02-ppx-bench)
3610 ("ppx-driver" ,ocaml4.02-ppx-driver)
3611 ("ppx-expect" ,ocaml4.02-ppx-expect)
3612 ("ppx-inline-test" ,ocaml4.02-ppx-inline-test)
3613 ("typerep" ,ocaml4.02-typerep)
3614 ("sexplib" ,ocaml4.02-sexplib)
3615 ("variantslib" ,ocaml4.02-variantslib)
3616 ("result" ,ocaml4.02-result)
3617 ("fieldslib" ,ocaml4.02-fieldslib)))
3618 (build-system ocaml-build-system)
3620 (ensure-keyword-arguments janestreet-arguments
3621 `(#:ocaml ,ocaml-4.02
3622 #:findlib ,ocaml4.02-findlib)))
3623 (home-page "https://github.com/janestreet/core_kernel/")
3624 (synopsis "Portable standard library for OCaml")
3625 (description "Core is an alternative to the OCaml standard library.
3627 Core_kernel is the system-independent part of Core. It is aimed for cases when
3628 the full Core is not available, such as in Javascript.")
3629 (license license:asl2.0)))
3631 (define-public ocaml4.02-async-kernel
3633 (name "ocaml4.02-async-kernel")
3634 (version "113.33.03")
3635 (source (janestreet-origin "async_kernel" version
3636 "04bjsaa23j831r09r38x6xx9nhryvp0z5ihickvhxqa4fb2snyvd"))
3638 `(("oasis" ,ocaml-oasis)
3639 ("js-build-tools" ,ocaml4.02-js-build-tools)
3640 ("ppx-jane" ,ocaml4.02-ppx-jane)
3643 `(("core-kernel" ,ocaml4.02-core-kernel)))
3644 (build-system ocaml-build-system)
3646 (ensure-keyword-arguments janestreet-arguments
3647 `(#:ocaml ,ocaml-4.02
3648 #:findlib ,ocaml4.02-findlib)))
3649 (home-page "https://github.com/janestreet/async_kernel/")
3650 (synopsis "Monadic concurrency library")
3651 (description "Async-kernel is a library for concurrent programming in OCaml.")
3652 (license license:asl2.0)))
3654 (define-public ocaml4.02-async-rpc-kernel
3656 (name "ocaml4.02-async-rpc-kernel")
3657 (version "113.33.03")
3658 (source (janestreet-origin "async_rpc_kernel" version
3659 "0y97h9pkb00v7jpf87m8cbb0ffkclj9g26ph6sq97q8dpisnkjwh"))
3661 `(("oasis" ,ocaml-oasis)
3662 ("js-build-tools" ,ocaml4.02-js-build-tools)
3663 ("ppx-jane" ,ocaml4.02-ppx-jane)
3666 `(("async-kernel" ,ocaml4.02-async-kernel)))
3667 (build-system ocaml-build-system)
3669 (ensure-keyword-arguments janestreet-arguments
3670 `(#:ocaml ,ocaml-4.02
3671 #:findlib ,ocaml4.02-findlib)))
3672 (home-page "https://github.com/janestreet/async_rpc_kernel/")
3673 (synopsis "Platform-independent core of the Async RPC library")
3674 (description "Async_rpc_kernel is the platform-independent core of
3675 the Async RPC library.")
3676 (license license:asl2.0)))
3678 (define-public ocaml4.02-core
3680 (name "ocaml4.02-core")
3681 (version "113.33.03")
3682 (source (janestreet-origin "core" version
3683 "1znll157qg56g9d3247fjibv1hxv3r9wxgr4nhy19j2vzdh6a268"))
3685 `(("oasis" ,ocaml-oasis)
3686 ("js-build-tools" ,ocaml4.02-js-build-tools)
3687 ("ppx-jane" ,ocaml4.02-ppx-jane)
3690 `(("core-kernel" ,ocaml4.02-core-kernel)))
3691 (build-system ocaml-build-system)
3693 (ensure-keyword-arguments janestreet-arguments
3694 `(#:ocaml ,ocaml-4.02
3695 #:findlib ,ocaml4.02-findlib)))
3696 (home-page "https://github.com/janestreet/core/")
3697 (synopsis "Alternative to OCaml's standard library")
3698 (description "The Core suite of libraries is an alternative to OCaml's
3699 standard library that was developed by Jane Street.")
3700 (license license:asl2.0)))
3702 (define-public ocaml4.02-async-unix
3704 (name "ocaml4.02-async-unix")
3705 (version "113.33.03")
3706 (source (janestreet-origin "async_unix" version
3707 "1fwl0lfrizllcfjk8hk8m7lsz9ha2jg6qgk4gssfyz377qvpcq4h"))
3709 `(("oasis" ,ocaml-oasis)
3710 ("js-build-tools" ,ocaml4.02-js-build-tools)
3711 ("ppx-jane" ,ocaml4.02-ppx-jane)
3714 `(("async-kernel" ,ocaml4.02-async-kernel)
3715 ("core" ,ocaml4.02-core)))
3716 (build-system ocaml-build-system)
3718 (ensure-keyword-arguments janestreet-arguments
3719 `(#:ocaml ,ocaml-4.02
3720 #:findlib ,ocaml4.02-findlib)))
3721 (home-page "https://github.com/janestreet/async_unix")
3722 (synopsis "Asynchronous execution library for Unix")
3723 (description "Async_unix is an asynchronous execution library for Unix.")
3724 (license license:asl2.0)))
3726 (define-public ocaml4.02-async-extra
3728 (name "ocaml4.02-async-extra")
3729 (version "113.33.03")
3730 (source (janestreet-origin "async_extra" version
3731 "1si8jgiq5xh5sl9f2b7f9p17p7zx5h1pg557x2cxywi2x7pxqg4f"))
3733 `(("oasis" ,ocaml-oasis)
3734 ("js-build-tools" ,ocaml4.02-js-build-tools)
3735 ("ppx-jane" ,ocaml4.02-ppx-jane)
3738 `(("async-rpc-kernel" ,ocaml4.02-async-rpc-kernel)
3739 ("async-unix" ,ocaml4.02-async-unix)
3740 ("core" ,ocaml4.02-core)))
3741 (build-system ocaml-build-system)
3743 (ensure-keyword-arguments janestreet-arguments
3744 `(#:ocaml ,ocaml-4.02
3745 #:findlib ,ocaml4.02-findlib)))
3746 (home-page "https://github.com/janestreet/async_extra")
3747 (synopsis "Extra functionnalities for the async library")
3748 (description "Async_extra provides additional functionnalities for the
3750 (license license:asl2.0)))
3752 (define-public ocaml4.02-async
3754 (name "ocaml4.02-async")
3755 (version "113.33.03")
3756 (source (janestreet-origin "async" version
3757 "0210fyhcs12kpmmd26015bgivkfd2wqkyn3c5wd7688d0f872y25"))
3759 `(("oasis" ,ocaml-oasis)
3760 ("js-build-tools" ,ocaml4.02-js-build-tools)
3761 ("ppx-jane" ,ocaml4.02-ppx-jane)
3764 `(("async-extra" ,ocaml4.02-async-extra)))
3765 (build-system ocaml-build-system)
3767 (ensure-keyword-arguments janestreet-arguments
3768 `(#:ocaml ,ocaml-4.02
3769 #:findlib ,ocaml4.02-findlib)))
3770 (home-page "https://github.com/janestreet/async")
3771 (synopsis "Monadic concurrency library")
3772 (description "Async is a library for concurrent programming in OCaml.")
3773 (license license:asl2.0)))
3775 (define-public ocaml-ocplib-endian
3777 (name "ocaml-ocplib-endian")
3781 (uri (string-append "https://github.com/OCamlPro/ocplib-endian/"
3782 "archive/" version ".tar.gz"))
3785 "0hwj09rnzjs0m0kazz5h2mgs6p95j0zlga8cda5srnzqmzhniwkn"))
3786 (file-name (string-append name "-" version ".tar.gz"))))
3787 (build-system ocaml-build-system)
3789 `(("cppo" ,ocaml-cppo)
3790 ("ocamlbuild" ,ocamlbuild)))
3791 (home-page "https://github.com/OCamlPro/ocplib-endian")
3792 (synopsis "Optimised functions to read and write int16/32/64 from strings
3794 (description "Optimised functions to read and write int16/32/64 from strings
3795 and bigarrays, based on new primitives added in version 4.01. It works on
3796 strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
3797 big- and little-endian, with their unsafe counter-parts.")
3798 (license license:lgpl2.1)))
3800 (define-public ocaml4.02-ocplib-endian
3801 (package-with-ocaml4.02 ocaml-ocplib-endian))
3803 (define-public ocaml4.02-cstruct
3805 (name "ocaml4.02-cstruct")
3809 (uri (string-append "https://github.com/mirage/ocaml-cstruct/"
3810 "archive/v" version ".tar.gz"))
3813 "15qpdc8421shq4pprdas9jznpva45229wkfqbwcxw9khaiiz7949"))
3814 (file-name (string-append name "-" version ".tar.gz"))))
3815 (build-system ocaml-build-system)
3817 `(#:ocaml ,ocaml-4.02
3818 #:findlib ,ocaml4.02-findlib
3820 (list "--enable-lwt" "--enable-async")
3822 (modify-phases %standard-phases
3823 (add-after 'install 'link-stubs
3824 (lambda* (#:key outputs #:allow-other-keys)
3825 (let* ((out (assoc-ref outputs "out"))
3826 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
3827 (lib (string-append out "/lib/ocaml/site-lib/cstruct")))
3829 (symlink (string-append lib "/dllcstruct_stubs.so")
3830 (string-append stubs "/dllcstruct_stubs.so"))))))))
3832 `(("ounit" ,ocaml4.02-ounit)
3833 ("ppx-tools" ,ocaml4.02-ppx-tools)
3834 ("camlp4" ,camlp4-4.02)))
3836 `(("ocplib-endian" ,ocaml4.02-ocplib-endian)
3837 ("lwt" ,ocaml4.02-lwt)
3838 ("async" ,ocaml4.02-async)
3839 ("sexplib" ,ocaml4.02-sexplib)))
3840 (home-page "https://github.com/mirage/ocaml-cstruct")
3841 (synopsis "Access C structures via a camlp4 extension")
3842 (description "Cstruct is a library and syntax extension to make it easier
3843 to access C-like structures directly from OCaml. It supports both reading and
3844 writing to these structures, and they are accessed via the Bigarray module.")
3845 (license license:isc)))
3847 (define-public ocaml4.02-hex
3849 (name "ocaml4.02-hex")
3853 (uri (string-append "https://github.com/mirage/ocaml-hex/"
3854 "archive/" version ".tar.gz"))
3857 "0s63g0b8gfv2xm6fv6xg7bva8h76b5pcjb0zw3f8cygs0lq9072v"))
3858 (file-name (string-append name "-" version ".tar.gz"))))
3859 (build-system ocaml-build-system)
3861 `(#:ocaml ,ocaml-4.02
3862 #:findlib ,ocaml4.02-findlib))
3864 `(("cstruct" ,ocaml4.02-cstruct)))
3865 (home-page "https://github.com/mirage/ocaml-hex/")
3866 (synopsis "Minimal library providing hexadecimal converters")
3867 (description "Hex is a minimal library providing hexadecimal converters.")
3868 (license license:isc)))
3870 (define-public ocaml4.02-ezjsonm
3872 (name "ocaml4.02-ezjsonm")
3876 (uri (string-append "https://github.com/mirage/ezjsonm/archive/"
3880 "1kag0z2xlk4rw73a240dmkxh9rj6psxxcxkm7d7z0rrj6hzjajgq"))
3881 (file-name (string-append name "-" version ".tar.gz"))))
3882 (build-system ocaml-build-system)
3884 `(("alcotest" ,ocaml4.02-alcotest)))
3886 `(("hex" ,ocaml4.02-hex)
3887 ("jsonm" ,ocaml4.02-jsonm)
3888 ("lwt" ,ocaml4.02-lwt)
3889 ("sexplib" ,ocaml4.02-sexplib)))
3891 `(#:configure-flags (list "--enable-lwt")
3893 #:findlib ,ocaml4.02-findlib))
3894 (home-page "https://github.com/mirage/ezjsonm/")
3895 (synopsis "Read and write JSON data")
3896 (description "Ezjsonm provides more convenient (but far less flexible) input
3897 and output functions that go to and from [string] values than jsonm. This avoids
3898 the need to write signal code, which is useful for quick scripts that manipulate
3900 (license license:isc)))
3902 (define-public ocaml4.02-uri
3904 (name "ocaml4.02-uri")
3908 (uri (string-append "https://github.com/mirage/ocaml-uri/archive/v"
3912 "02bzrag79prx261rxf9mlak749pwf4flpfl8p012x1xznv9m0clc"))
3913 (file-name (string-append name "-" version ".tar.gz"))))
3914 (build-system ocaml-build-system)
3916 `(#:ocaml ,ocaml-4.02
3917 #:findlib ,ocaml4.02-findlib))
3919 `(("ounit" ,ocaml4.02-ounit)))
3921 `(("ppx-sexp-conv" ,ocaml4.02-ppx-sexp-conv)
3922 ("re" ,ocaml4.02-re)
3923 ("ppx-deriving" ,ocaml4.02-ppx-deriving)
3924 ("sexplib" ,ocaml4.02-sexplib)
3925 ("stringext" ,ocaml4.02-stringext)))
3926 (home-page "https://github.com/mirage/ocaml-uri")
3927 (synopsis "RFC3986 URI/URL parsing library")
3928 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.")
3929 (license license:isc)))
3931 (define-public ocaml-easy-format
3933 (name "ocaml-easy-format")
3937 (uri (string-append "https://github.com/mjambon/easy-format/"
3938 "archive/v" version ".tar.gz"))
3941 "1zcz682y9figa84k7lgdjcab5qbzk3yy14ygfqp2dhhrvjygm252"))
3942 (file-name (string-append name "-" version ".tar.gz"))))
3943 (build-system ocaml-build-system)
3946 (modify-phases %standard-phases
3947 (delete 'configure))))
3948 (home-page "https://github.com/mjambon/easy-format")
3949 (synopsis "Interface to the Format module")
3950 (description "Easy-format is a high-level and functional interface to the
3951 Format module of the OCaml standard library.")
3952 (license license:bsd-3)))
3954 (define-public ocaml4.02-easy-format
3955 (package-with-ocaml4.02 ocaml-easy-format))
3957 (define-public optcomp
3963 (uri (string-append "https://github.com/diml/optcomp/archive/"
3967 "0hhhb2gisah1h22zlg5iszbgqxdd7x85cwd57bd4mfkx9l7dh8jh"))
3968 (file-name (string-append name "-" version ".tar.gz"))))
3969 (build-system ocaml-build-system)
3971 `(#:ocaml ,ocaml-4.02
3972 #:findlib ,ocaml4.02-findlib
3975 (list (string-append "BUILDFLAGS=\"-cflags -I,"
3976 (assoc-ref %build-inputs "camlp4")
3977 "/lib/ocaml/site-lib/camlp4/Camlp4Parsers\""))))
3978 (native-inputs `(("camlp4" ,camlp4-4.02)))
3979 (propagated-inputs `(("camlp4" ,camlp4-4.02)))
3980 (home-page "https://github.com/diml/optcomp")
3981 (synopsis "Optional compilation for OCaml")
3982 (description "Optcomp provides an optional compilation facility with
3983 cpp-like directives.")
3984 (license license:bsd-3)))
3986 (define-public ocaml-piqilib
3988 (name "ocaml-piqilib")
3992 (uri (string-append "https://github.com/alavrik/piqi/archive/v"
3996 "1ssccnwqzfyf7syfq2fv4zyhwayxwd75rhq9y28mvq1w6qbww4l7"))
3997 (file-name (string-append name "-" version ".tar.gz"))))
3998 (build-system ocaml-build-system)
4001 (modify-phases %standard-phases
4002 (add-before 'configure 'fix-ocamlpath
4004 (substitute* '("Makefile" "make/Makefile.ocaml")
4005 (("OCAMLPATH := ") "OCAMLPATH := $(OCAMLPATH):"))
4008 (lambda* (#:key outputs #:allow-other-keys)
4009 (let ((out (assoc-ref outputs "out")))
4010 (substitute* "make/OCamlMakefile"
4011 (("/bin/sh") (which "bash")))
4012 (invoke "./configure" "--prefix" out "--ocaml-libdir"
4013 (string-append out "/lib/ocaml/site-lib")))
4015 (add-after 'build 'build-ocaml
4016 (lambda* (#:key outputs #:allow-other-keys)
4017 (invoke "make" "ocaml")
4019 (add-after 'install 'install-ocaml
4020 (lambda* (#:key outputs #:allow-other-keys)
4021 (invoke "make" "ocaml-install")
4023 (add-after 'install-ocaml 'link-stubs
4024 (lambda* (#:key outputs #:allow-other-keys)
4025 (let* ((out (assoc-ref outputs "out"))
4026 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
4027 (lib (string-append out "/lib/ocaml/site-lib/piqilib")))
4029 (symlink (string-append lib "/dllpiqilib_stubs.so")
4030 (string-append stubs "/dllpiqilib_stubs.so"))
4034 ("camlp4" ,camlp4)))
4036 `(("xmlm" ,ocaml-xmlm)
4037 ("ulex" ,ocaml-ulex)
4038 ("easy-format" ,ocaml-easy-format)
4039 ("base64" ,ocaml-base64)))
4040 (home-page "http://piqi.org")
4041 (synopsis "Data serialization and conversion library")
4042 (description "Piqilib is the common library used by the piqi command-line
4043 tool and piqi-ocaml.")
4044 (license license:asl2.0)))
4046 (define-public ocaml4.02-piqilib
4047 (package-with-ocaml4.02 ocaml-piqilib))
4049 (define-public ocaml-uuidm
4051 (name "ocaml-uuidm")
4055 (uri (string-append "http://erratique.ch/software/uuidm/"
4056 "releases/uuidm-" version ".tbz"))
4059 "0hz4fdx0x16k0pw9995vkz5d1hmzz6b16wck9li399rcbfnv5jlc"))))
4060 (build-system ocaml-build-system)
4063 (list "build" "--tests" "true" "--with-cmdliner" "true")
4065 (modify-phases %standard-phases
4066 (delete 'configure))))
4068 `(("ocamlbuild" ,ocamlbuild)
4071 `(("cmdliner" ,ocaml-cmdliner)
4072 ("topkg" ,ocaml-topkg)))
4073 (home-page "http://erratique.ch/software/uuidm")
4074 (synopsis "Universally unique identifiers for OCaml")
4075 (description "Uuidm is an OCaml module implementing 128 bits universally
4076 unique identifiers (UUIDs) version 3, 5 (named based with MD5, SHA-1 hashing)
4077 and 4 (random based) according to RFC 4122.")
4078 (license license:isc)))
4080 (define-public ocaml4.02-uuidm
4081 (package-with-ocaml4.02 ocaml-uuidm))
4083 (define-public ocaml-graph
4085 (name "ocaml-graph")
4089 (uri (string-append "http://ocamlgraph.lri.fr/download/"
4090 "ocamlgraph-" version ".tar.gz"))
4093 "0m9g16wrrr86gw4fz2fazrh8nkqms0n863w7ndcvrmyafgxvxsnr"))))
4094 (build-system ocaml-build-system)
4096 `(#:install-target "install-findlib"
4099 (modify-phases %standard-phases
4100 (add-before 'configure 'set-shell
4101 (lambda* (#:key inputs #:allow-other-keys)
4102 (setenv "CONFIG_SHELL" (string-append (assoc-ref inputs "bash")
4104 (inputs `(("lablgtk" ,lablgtk)))
4105 (properties `((upstream-name . "ocamlgraph")))
4106 (home-page "http://ocamlgraph.lri.fr/")
4107 (synopsis "Graph library for OCaml")
4108 (description "OCamlgraph is a generic graph library for OCaml.")
4109 (license license:lgpl2.1)))
4111 (define-public ocaml4.02-graph
4112 (package-with-ocaml4.02 ocaml-graph))
4114 (define-public ocaml-piqi
4120 (uri (string-append "https://github.com/alavrik/piqi-ocaml/"
4121 "archive/v" version ".tar.gz"))
4122 (file-name (string-append name "-" version ".tar.gz"))
4125 "0da0v2v28aj65b0cwpvvmcqyrfvz94pp3j5zgfdr1jrl5s37c21g"))))
4126 (build-system ocaml-build-system)
4129 (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
4130 (string-append "SHELL=" (assoc-ref %build-inputs "bash")
4133 (modify-phases %standard-phases
4134 (delete 'configure))))
4138 ("protobuf" ,protobuf))) ; for tests
4140 `(("num" ,ocaml-num)
4141 ("piqilib" ,ocaml-piqilib)))
4143 `((ocaml4.02-variant . ,(delay ocaml4.02-piqi))))
4144 (home-page "https://github.com/alavrik/piqi-ocaml")
4145 (synopsis "Protocol serialization system for OCaml")
4146 (description "Piqi is a multi-format data serialization system for OCaml.
4147 It provides a uniform interface for serializing OCaml data structures to JSON,
4148 XML and Protocol Buffers formats.")
4149 (license license:asl2.0)))
4151 (define-public ocaml4.02-piqi
4152 (let ((base (package-with-ocaml4.02 (strip-ocaml4.02-variant ocaml-piqi))))
4156 `(("piqilib" ,ocaml4.02-piqilib))))))
4162 (home-page "https://github.com/BinaryAnalysisPlatform/bap")
4165 (uri (string-append home-page "/archive/v" version ".tar.gz"))
4168 "0v95v9mp7mg8fj25ry0w7566zd9xp6cs8nnqj4l38q54fb1hfav9"))
4169 (file-name (string-append name "-" version ".tar.gz"))))
4170 (build-system ocaml-build-system)
4172 `(("oasis" ,ocaml4.02-oasis)
4173 ("clang" ,clang-3.8)
4174 ("ounit" ,ocaml4.02-ounit)))
4176 `(("core-kernel" ,ocaml4.02-core-kernel)
4177 ("ppx-driver" ,ocaml4.02-ppx-driver)
4178 ("bin-prot" ,ocaml4.02-bin-prot)
4179 ("uri" ,ocaml4.02-uri)
4182 ("clang-runtime" ,clang-runtime)
4183 ("fileutils" ,ocaml4.02-fileutils)
4184 ("cmdliner" ,ocaml4.02-cmdliner)
4185 ("zarith" ,ocaml4.02-zarith)
4186 ("uuidm" ,ocaml4.02-uuidm)
4187 ("camlzip" ,ocaml4.02-camlzip)
4188 ("frontc" ,ocaml-frontc)
4189 ("ezjsonm" ,ocaml4.02-ezjsonm)
4190 ("ocurl" ,ocaml4.02-ocurl)
4191 ("piqi" ,ocaml4.02-piqi)
4192 ("ocamlgraph" ,ocaml4.02-graph)
4193 ("bitstring" ,ocaml4.02-bitstring)
4194 ("ppx-jane" ,ocaml4.02-ppx-jane)
4195 ("re" ,ocaml4.02-re)))
4196 (inputs `(("llvm" ,llvm-3.8)))
4198 `(#:ocaml ,ocaml-4.02
4199 #:findlib ,ocaml4.02-findlib
4202 (modify-phases %standard-phases
4204 (lambda* (#:key outputs inputs #:allow-other-keys)
4205 (invoke "./configure" "--prefix"
4206 (assoc-ref outputs "out")
4209 (assoc-ref outputs "out")
4210 "/lib/ocaml/site-lib")
4211 "--with-llvm-version=3.8"
4212 "--with-llvm-config=llvm-config"
4213 "--enable-everything")
4214 (substitute* "plugins/objdump/objdump_main.ml"
4215 (("Re_perl") "Re.Perl"))
4216 (substitute* "oasis/objdump"
4217 (("re.pcre") "re.pcre, re.perl")))))))
4218 (synopsis "Binary Analysis Platform")
4219 (description "Binary Analysis Platform is a framework for writing program
4220 analysis tools, that target binary files. The framework consists of a plethora
4221 of libraries, plugins, and frontends. The libraries provide code reusability,
4222 the plugins facilitate extensibility, and the frontends serve as entry points.")
4223 (license license:expat)))
4225 (define-public ocaml-camomile
4227 (name "ocaml-camomile")
4229 (home-page "https://github.com/yoriyuki/Camomile")
4232 (uri (string-append home-page "/releases/download/" version
4233 "/camomile-" version ".tbz"))
4236 "01ssjrqz41jvrqh27jxnh9cx7ywi9b5sgsykd00i7z9nrcwhlfy2"))))
4237 (build-system dune-build-system)
4239 `(("camlp4" ,camlp4)))
4241 `(#:build-flags (list "--profile" "realease")
4243 (synopsis "Comprehensive Unicode library")
4244 (description "Camomile is a Unicode library for OCaml. Camomile provides
4245 Unicode character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about
4246 200 encodings, collation and locale-sensitive case mappings, and more. The
4247 library is currently designed for Unicode Standard 3.2.")
4248 ;; with an exception for linked libraries to use a different license
4249 (license license:lgpl2.0+)))
4251 (define-public ocaml4.02-camomile
4252 (package-with-ocaml4.02 ocaml-camomile))
4254 (define-public ocaml-jbuilder
4256 (name "ocaml-jbuilder")
4257 (version "1.0+beta16")
4261 "https://github.com/janestreet/jbuilder/archive/"
4263 (file-name (string-append name "-" version ".tar.gz"))
4266 "1cy07pwvbrlysszs938yd74yyvvbgkffpb82qrjph77zf0h2gdi7"))))
4267 (build-system ocaml-build-system)
4269 `(#:ocaml ,ocaml-4.02
4270 #:findlib ,ocaml4.02-findlib
4272 (modify-phases %standard-phases
4274 (lambda* (#:key outputs #:allow-other-keys)
4275 (let ((out (assoc-ref outputs "out")))
4276 (setenv "PREFIX" out))
4279 `(("menhir" ,ocaml4.02-menhir)))
4282 (home-page "https://github.com/janestreet/jbuilder")
4283 (synopsis "Composable build system for OCaml")
4284 (description "Jbuilder is a build system designed for OCaml/Reason projects
4285 only. It focuses on providing the user with a consistent experience and takes
4286 care of most of the low-level details of OCaml compilation. All you have to do
4287 is provide a description of your project and Jbuilder will do the rest.")
4288 (license license:asl2.0)))
4290 (define-public ocaml-zed
4296 (uri (string-append "https://github.com/diml/zed/archive/"
4298 (file-name (string-append name "-" version ".tar.gz"))
4301 "19m5vrj60vg1b63qfsv0aabdlzgn40cqmx65s3wafqi4fs9xp6jn"))))
4302 (build-system ocaml-build-system)
4305 (modify-phases %standard-phases
4308 (lambda _ (invoke "jbuilder" "build")))
4311 (lambda* (#:key outputs #:allow-other-keys)
4312 (let ((out (assoc-ref outputs "out")))
4313 (invoke "jbuilder" "install" "--prefix" out)))))))
4315 `(("jbuilder" ,ocaml-jbuilder)))
4317 `(("camomile" ,ocaml-camomile)
4318 ("react" ,ocaml-react)))
4319 (home-page "https://github.com/diml/zed")
4320 (synopsis "Abstract engine for text editing in OCaml")
4321 (description "Zed is an abstract engine for text edition. It can be used
4322 to write text editors, edition widgets, readlines, etc. You just have to
4323 connect an engine to your inputs and rendering functions to get an editor.")
4324 (license license:bsd-3)))
4326 (define-public ocaml4.02-zed
4327 (package-with-ocaml4.02 ocaml-zed))
4329 (define-public ocaml-lambda-term
4331 (name "ocaml-lambda-term")
4336 (uri (string-append "https://github.com/diml/lambda-term/archive/"
4338 (file-name (string-append name "-" version ".tar.gz"))
4340 (base32 "1hy5ryagqclgdm9lzh1qil5mrynlypv7mn6qm858hdcnmz9zzn0l"))))
4341 (build-system dune-build-system)
4343 `(#:build-flags (list "--profile" "release")
4346 `(("lwt" ,ocaml-lwt)
4347 ("lwt-log" ,ocaml-lwt-log)
4348 ("zed" ,ocaml-zed)))
4349 (home-page "https://github.com/diml/lambda-term")
4350 (synopsis "Terminal manipulation library for OCaml")
4351 (description "Lambda-Term is a cross-platform library for manipulating the
4352 terminal. It provides an abstraction for keys, mouse events, colors, as well as
4353 a set of widgets to write curses-like applications. The main objective of
4354 Lambda-Term is to provide a higher level functional interface to terminal
4355 manipulation than, for example, ncurses, by providing a native OCaml interface
4356 instead of bindings to a C library.")
4357 (license license:bsd-3)))
4359 (define-public ocaml4.02-lambda-term
4360 (package-with-ocaml4.02 ocaml-lambda-term))
4362 (define-public ocaml-utop
4368 (uri (string-append "https://github.com/ocaml-community/utop/archive/"
4370 (file-name (string-append name "-" version ".tar.gz"))
4373 "1414snwmqaxs1x8wbpjf6fn3jsl01hq0phrr7639xmb5vh15mgd4"))))
4374 (build-system gnu-build-system)
4376 `(#:test-target "test"
4378 (modify-phases %standard-phases
4381 (lambda* (#:key outputs #:allow-other-keys)
4382 (let* ((out (assoc-ref outputs "out"))
4383 (libdir (string-append out "/lib/ocaml/site-lib")))
4385 (invoke "jbuilder" "install"
4387 "--libdir" libdir)))))))
4390 ("cppo" ,ocaml-cppo)
4391 ("jbuilder" ,ocaml-jbuilder)))
4393 `(("ocaml-findlib" ,ocaml-findlib)
4394 ("lambda-term" ,ocaml-lambda-term)
4396 ("react" ,ocaml-react)
4397 ("camomile" ,ocaml-camomile)
4398 ("zed" ,ocaml-zed)))
4399 (home-page "https://github.com/diml/utop")
4400 (synopsis "Improved interface to the OCaml toplevel")
4401 (description "UTop is an improved toplevel for OCaml. It can run in a
4402 terminal or in Emacs. It supports line editing, history, real-time and context
4403 sensitive completion, colors, and more.")
4404 (license license:bsd-3)))
4406 (define-public ocaml-integers
4408 (name "ocaml-integers")
4410 (home-page "https://github.com/ocamllabs/ocaml-integers")
4413 (uri (string-append home-page
4414 "/releases/download/v0.2.2/integers-"
4416 (file-name (string-append name "-" version ".tbz"))
4419 "08b1ljw88ny3l0mdq6xmffjk8anfc77igryva5jz1p6f4f746ywk"))))
4420 (build-system ocaml-build-system)
4422 `(#:tests? #f; no tests
4423 #:build-flags (list "build")
4425 (modify-phases %standard-phases
4426 (delete 'configure))))
4428 `(("ocamlbuild" ,ocamlbuild)))
4430 `(("topkg" ,ocaml-topkg)
4432 (synopsis "Various signed and unsigned integer types for OCaml")
4433 (description "The ocaml-integers library provides a number of 8-, 16-, 32-
4434 and 64-bit signed and unsigned integer types, together with aliases such as
4435 long and size_t whose sizes depend on the host platform.")
4436 (license license:expat)))
4438 (define-public ocaml-ctypes
4440 (name "ocaml-ctypes")
4442 (home-page "https://github.com/ocamllabs/ocaml-ctypes")
4445 (uri (string-append home-page "/archive/" version ".tar.gz"))
4446 (file-name (string-append name "-" version ".tar.gz"))
4449 "0zrsd42q2nciyg9375g2kydqax6ay299rhyfgms59qiw7d9ylyp9"))))
4450 (build-system ocaml-build-system)
4452 `(#:tests? #f; require an old lwt
4454 (list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
4456 (modify-phases %standard-phases
4457 (delete 'configure))))
4459 `(("pkg-config" ,pkg-config)))
4461 `(("libffi" ,libffi)
4462 ("ounit" ,ocaml-ounit)
4463 ("integers" ,ocaml-integers)
4465 ("topkg" ,ocaml-topkg)
4467 (synopsis "Library for binding to C libraries using pure OCaml")
4468 (description "Ctypes is a library for binding to C libraries using pure
4469 OCaml. The primary aim is to make writing C extensions as straightforward as
4470 possible. The core of ctypes is a set of combinators for describing the
4471 structure of C types -- numeric types, arrays, pointers, structs, unions and
4472 functions. You can use these combinators to describe the types of the
4473 functions that you want to call, then bind directly to those functions -- all
4474 without writing or generating any C!")
4475 (license license:expat)))
4477 (define-public ocaml-ocb-stubblr
4479 (name "ocaml-ocb-stubblr")
4481 (home-page "https://github.com/pqwy/ocb-stubblr")
4485 home-page "/releases/download/v0.1.1/ocb-stubblr-"
4487 (file-name (string-append name "-" version ".tbz"))
4490 "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
4491 (build-system ocaml-build-system)
4493 `(#:build-flags (list "build" "--tests" "true")
4495 (modify-phases %standard-phases
4496 (delete 'configure))))
4498 `(("topkg" ,ocaml-topkg)
4501 `(("astring" ,ocaml-astring)
4502 ("ocamlbuild" ,ocamlbuild)))
4503 (synopsis "OCamlbuild plugin for C stubs")
4504 (description "Ocb-stubblr is about ten lines of code that you need to
4505 repeat over, over, over and over again if you are using ocamlbuild to build
4506 OCaml projects that contain C stubs.")
4507 (license license:isc)))
4509 (define-public ocaml-tsdl
4513 (home-page "http://erratique.ch/software/tsdl")
4516 (uri (string-append home-page "/releases/tsdl-"
4518 (file-name (string-append name "-" version ".tar.gz"))
4521 "08bb97fhvz829fb0sgjn2p20mp7b04v98zy2qxpk2w390a6c4b34"))))
4522 (build-system ocaml-build-system)
4524 `(#:build-flags '("build")
4525 #:tests? #f; tests require a display device
4527 (modify-phases %standard-phases
4528 (delete 'configure))))
4530 `(("ocamlbuild" ,ocamlbuild)
4532 ("pkg-config" ,pkg-config)))
4534 `(("topkg" ,ocaml-topkg)
4535 ("result" ,ocaml-result)
4537 ("integers" ,ocaml-integers)
4538 ("ctypes" ,ocaml-ctypes)))
4539 (synopsis "Thin bindings to SDL for OCaml")
4540 (description "Tsdl is an OCaml library providing thin bindings to the
4541 cross-platform SDL C library.")
4542 (license license:isc)))
4544 (define-public dedukti
4548 (home-page "https://deducteam.github.io/")
4553 (url "https://github.com/deducteam/dedukti.git")
4554 (commit (string-append "v" version))))
4555 (file-name (git-file-name name version))
4558 "0frl3diff033i4fmq304b8wbsdnc9mvlhmwd7a3zd699ng2lzbxb"))))
4560 `(("menhir" ,ocaml-menhir)))
4562 `(("ocamlbuild" ,ocamlbuild)))
4563 (build-system ocaml-build-system)
4566 (modify-phases %standard-phases
4574 (invoke "make" "tests")
4576 (add-before 'install 'set-binpath
4577 ;; Change binary path in the makefile
4579 (let ((out (assoc-ref %outputs "out")))
4580 (substitute* "GNUmakefile"
4582 (string-append "BINDIR = " out "/bin"))))
4586 (invoke "make" "install")
4588 (synopsis "Proof-checker for the λΠ-calculus modulo theory, an extension of
4590 (description "Dedukti is a proof-checker for the λΠ-calculus modulo
4591 theory. The λΠ-calculus is an extension of the simply typed λ-calculus with
4592 dependent types. The λΠ-calculus modulo theory is itself an extension of the
4593 λΠ-calculus where the context contains variable declaration as well as rewrite
4594 rules. This system is not designed to develop proofs, but to check proofs
4595 developed in other systems. In particular, it enjoys a minimalistic syntax.")
4596 (license license:cecill-c)))
4598 (define-public emacs-dedukti-mode
4599 (let ((commit "d7c3505a1046187de3c3aeb144455078d514594e"))
4601 (name "emacs-dedukti-mode")
4602 (version (git-version "0" "0" commit))
4603 (home-page "https://github.com/rafoo/dedukti-mode")
4611 "1842wikq24c8rg0ac84vb1qby9ng1nssxswyyni4kq85lng5lcrp"))
4612 (file-name (git-file-name name version))))
4614 `(("dedukti" ,dedukti)))
4615 (build-system emacs-build-system)
4618 (modify-phases %standard-phases
4619 (add-before 'install 'patch-dkpath
4621 (let ((dkcheck-path (which "dkcheck")))
4622 (substitute* "dedukti-mode.el"
4623 (("dedukti-path \"(.*)\"")
4624 (string-append "dedukti-path \"" dkcheck-path "\"")))))))))
4625 (synopsis "Emacs major mode for Dedukti files")
4626 (description "This package provides an Emacs major mode for editing
4628 (license license:cecill-b))))
4630 (define-public emacs-flycheck-dedukti
4631 (let ((commit "3dbff5646355f39d57a3ec514f560a6b0082a1cd"))
4633 (name "emacs-flycheck-dedukti")
4634 (version (git-version "0" "0" commit))
4635 (home-page "https://github.com/rafoo/flycheck-dedukti")
4643 "1ffpxnwl3wx244n44mbw81g00nhnykd0lnid29f4aw1av7w6nw8l"))
4644 (file-name (git-file-name name version))))
4645 (build-system emacs-build-system)
4647 `(("dedukti-mode" ,emacs-dedukti-mode)
4648 ("flycheck-mode" ,emacs-flycheck)))
4649 (synopsis "Flycheck integration for the dedukti language")
4650 (description "This package provides a frontend for Flycheck to perform
4651 syntax checking on dedukti files.")
4652 (license license:cecill-b))))
4654 (define-public ocaml-ppx-inline-test
4656 (name "ocaml-ppx-inline-test")
4658 (home-page "https://github.com/janestreet/ppx_inline_test")
4663 (url (string-append home-page ".git"))
4664 (commit (string-append "v" version))))
4665 (file-name (git-file-name name version))
4668 "11n94fz1asjf5vqdgriv0pvsa5lbfpqcyk525c7816w23vskcvq6"))))
4669 (build-system dune-build-system)
4671 ;see home page README for further information
4674 `(("ocaml-base" ,ocaml-base)
4675 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
4676 ("ocaml-compiler-libs" ,ocaml-compiler-libs)
4677 ("ocaml-sexplib0" ,ocaml-sexplib0)
4678 ("ocaml-stdio" ,ocaml-stdio)
4679 ("ocaml-ppxlib" ,ocaml-ppxlib)))
4680 (synopsis "Syntax extension for writing in-line tests in ocaml code")
4681 (description "This package contains a syntax extension for writing
4682 in-line tests in ocaml code. It is part of Jane Street's PPX rewriters
4684 (license license:expat)))
4686 (define-public ocaml-biniou
4688 (name "ocaml-biniou")
4690 (home-page "https://github.com/mjambon/biniou")
4695 (url (string-append home-page ".git"))
4696 (commit (string-append "v" version))))
4697 (file-name (git-file-name name version))
4700 "0mjpgwyfq2b2izjw0flmlpvdjgqpq8shs89hxj1np2r50csr8dcb"))))
4701 (build-system dune-build-system)
4703 `(("ocaml-easy-format" ,ocaml-easy-format)))
4705 `(("which" ,which)))
4706 (synopsis "Data format designed for speed, safety, ease of use and backward
4708 (description "Biniou (pronounced \"be new\" is a binary data format
4709 designed for speed, safety, ease of use and backward compatibility as
4710 protocols evolve. Biniou is vastly equivalent to JSON in terms of
4711 functionality but allows implementations several times faster (4 times faster
4712 than yojson), with 25-35% space savings.")
4713 (license license:bsd-3)))
4715 (define-public ocaml-yojson
4717 (name "ocaml-yojson")
4719 (home-page "https://github.com/ocaml-community/yojson")
4724 (url (string-append home-page ".git"))
4725 (commit (string-append "v" version))))
4726 (file-name (git-file-name name version))
4729 "0nwsfkmqpyfab4rxq76q8ff7giyanghw08094jyrp275v99zdjr9"))))
4730 (build-system dune-build-system)
4732 `(#:test-target "."))
4734 `(("ocaml-biniou" ,ocaml-biniou)
4735 ("ocaml-easy-format" ,ocaml-easy-format)))
4737 `(("ocaml-cppo" ,ocaml-cppo)))
4738 (synopsis "Low-level JSON library for OCaml")
4739 (description "Yojson is an optimized parsing and printing library for the
4740 JSON format. It addresses a few shortcomings of json-wheel including 2x
4741 speedup, polymorphic variants and optional syntax for tuples and variants.
4742 @code{ydump} is a pretty printing command-line program provided with the
4743 yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
4744 serializers and deserializers from type definitions.")
4745 (license license:bsd-3)))
4747 (define-public ocaml-craml
4749 (name "ocaml-craml")
4751 (home-page "https://github.com/realworldocaml/craml")
4756 (url (string-append home-page ".git"))
4758 (file-name (git-file-name name version))
4761 "197xjp4vmzdymf2ndinw271ihpf45h04mx8gqj8ypspxdr5fj1a5"))))
4762 (build-system dune-build-system)
4764 `(("ocaml-fmt" ,ocaml-fmt)
4765 ("ocaml-astring" ,ocaml-astring)
4766 ("ocaml-logs" ,ocaml-logs)
4767 ("ocaml-cmdliner" ,ocaml-cmdliner)))
4769 "CRAM-testing framework for testing command line applications")
4770 (description "CRAM is a is functional testing framework for command line
4771 applications. @code{craml} is freely inspired by the
4772 Mercurial's @code{https://www.selenic.com/blog/?p=663, unified test
4773 format}. @code{craml} is released as a single binary (called @code{craml}).")
4774 (license license:isc)))
4776 (define-public ocaml-merlin
4778 (name "ocaml-merlin")
4780 (home-page "https://ocaml.github.io/merlin/")
4785 (url "https://github.com/ocaml/merlin.git")
4786 (commit (string-append "v" version))))
4787 (file-name (git-file-name name version))
4790 "15ssgmwdxylbwhld9p1cq8x6kadxyhll5bfyf11dddj6cldna3hb"))))
4791 (build-system dune-build-system)
4793 `(("ocaml-biniou" ,ocaml-biniou)
4794 ("ocaml-yojson" ,ocaml-yojson)
4795 ("ocaml-easy-format" ,ocaml-easy-format)))
4797 `(("ocaml-findlib" ,ocaml-findlib)))
4799 '(#:tests? #f)) ;; Errors in tests in version 3.2.2
4800 (synopsis "Context sensitive completion for OCaml in Vim and Emacs")
4801 (description "Merlin is an editor service that provides modern IDE
4802 features for OCaml. Emacs and Vim support is provided out-of-the-box.
4803 External contributors added support for Visual Studio Code, Sublime Text and
4805 (license license:expat)))
4807 (define-public ocaml-gsl
4816 "https://github.com/mmottl/gsl-ocaml/releases/download/"
4817 version "/gsl-" version ".tbz"))
4820 "17vcswipliq1b2idbzx1z95kskn1a4q4s5v04igilg0f7lnkaarb"))))
4821 (build-system ocaml-build-system)
4824 (home-page "https://mmottl.github.io/gsl-ocaml")
4825 (synopsis "Bindings to the GNU Scientific Library")
4827 "GSL-OCaml is an interface to the @dfn{GNU scientific library} (GSL) for
4828 the OCaml language.")
4829 (license license:gpl3+)))
4831 (define-public ocaml4.01-gsl
4832 (package-with-ocaml4.01 ocaml-gsl))
4834 (define-public cubicle
4840 (uri (string-append "http://cubicle.lri.fr/cubicle-"
4844 "10kk80jdmpdvql88sdjsh7vqzlpaphd8vip2lp47aarxjkwjlz1q"))))
4845 (build-system gnu-build-system)
4847 `(("automake" ,automake)
4849 ("which" ,(@@ (gnu packages base) which))))
4851 `(("ocaml-num" ,ocaml-num)
4854 `(#:configure-flags (list "--with-z3")
4855 #:make-flags (list "QUIET=")
4858 (modify-phases %standard-phases
4859 (add-before 'configure 'configure-for-release
4861 (substitute* "Makefile.in"
4862 (("SVNREV=") "#SVNREV="))
4864 (add-before 'configure 'fix-/bin/sh
4866 (substitute* "configure"
4867 (("-/bin/sh") (string-append "-" (which "sh"))))
4869 (add-before 'configure 'fix-smt-z3wrapper.ml
4871 (substitute* "Makefile.in"
4874 (add-before 'configure 'fix-ocaml-num
4875 (lambda* (#:key inputs #:allow-other-keys)
4876 (substitute* "Makefile.in"
4877 (("= \\$\\(FUNCTORYLIB\\)")
4878 (string-append "= -I "
4879 (assoc-ref inputs "ocaml-num")
4880 "/lib/ocaml/site-lib"
4881 " $(FUNCTORYLIB)")))
4883 (home-page "http://cubicle.lri.fr/")
4884 (synopsis "Model checker for array-based systems")
4885 (description "Cubicle is a model checker for verifying safety properties
4886 of array-based systems. This is a syntactically restricted class of
4887 parametrized transition systems with states represented as arrays indexed by
4888 an arbitrary number of processes. Cache coherence protocols and mutual
4889 exclusion algorithms are typical examples of such systems.")
4890 (license license:asl2.0)))
4892 (define-public ocaml-sexplib0
4894 (name "ocaml-sexplib0")
4896 (home-page "https://github.com/janestreet/sexplib0")
4901 (url (string-append home-page ".git"))
4902 (commit (string-append "v" version))))
4903 (file-name (git-file-name name version))
4906 "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
4907 (build-system dune-build-system)
4909 '(#:tests? #f)) ;no tests
4910 (synopsis "Library containing the definition of S-expressions and some
4912 (description "Part of Jane Street's Core library The Core suite of
4913 libraries is an industrial strength alternative to OCaml's standard library
4914 that was developed by Jane Street, the largest industrial user of OCaml.")
4915 (license license:expat)))
4917 (define-public ocaml-parsexp
4919 (name "ocaml-parsexp")
4921 (home-page "https://github.com/janestreet/parsexp")
4926 (url (string-append home-page ".git"))
4927 (commit (string-append "v" version))))
4928 (file-name (git-file-name name version))
4931 "1nyq23s5igd8cf3n4qxprjvhbmb6ighb3fy5mw7hxl0mdgsw5fvz"))))
4932 (build-system dune-build-system)
4934 `(("ocaml-sexplib0" ,ocaml-sexplib0)))
4935 (synopsis "S-expression parsing library")
4937 "This library provides generic parsers for parsing S-expressions from
4938 strings or other medium.
4940 The library is focused on performances but still provide full generic
4941 parsers that can be used with strings, bigstrings, lexing buffers,
4942 character streams or any other sources effortlessly.
4944 It provides three different class of parsers:
4947 the normal parsers, producing [Sexp.t] or [Sexp.t list] values
4949 the parsers with positions, building compact position sequences so
4950 that one can recover original positions in order to report properly
4951 located errors at little cost
4953 the Concrete Syntax Tree parsers, produce values of type
4954 @code{Parsexp.Cst.t} which record the concrete layout of the s-expression
4955 syntax, including comments
4958 This library is portable and doesn't provide IO functions. To read
4959 s-expressions from files or other external sources, you should use
4961 (license license:expat)))
4963 (define-public ocaml-sexplib
4965 (name "ocaml-sexplib")
4967 (home-page "https://github.com/janestreet/sexplib")
4972 (url (string-append home-page ".git"))
4973 (commit (string-append "v" version))))
4974 (file-name (git-file-name name version))
4977 "1qfl0m04rpcjvc4yw1hzh6r16jpwmap0sa9ax6zjji67dz4szpyb"))))
4978 (build-system dune-build-system)
4980 `(("ocaml-num" ,ocaml-num)
4981 ("ocaml-parsexp" ,ocaml-parsexp)
4982 ("ocaml-sexplib0" ,ocaml-sexplib0)))
4984 "Library for serializing OCaml values to and from S-expressions")
4986 "This package is part of Jane Street's Core library. Sexplib contains
4987 functionality for parsing and pretty-printing s-expressions.")
4988 (license license:expat)))
4990 (define-public ocaml-base
4994 (home-page "https://github.com/janestreet/base")
4999 (url (string-append home-page ".git"))
5000 (commit (string-append "v" version))))
5001 (file-name (git-file-name name version))
5004 "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
5005 (build-system dune-build-system)
5007 `(("ocaml-sexplib0" ,ocaml-sexplib0)))
5010 (modify-phases %standard-phases
5012 ;; make warnings non fatal (jbuilder behaviour)
5014 (invoke "dune" "build" "@install" "--profile=release"))))))
5016 "Full standard library replacement for OCaml")
5018 "Base is a complete and portable alternative to the OCaml standard
5019 library. It provides all standard functionalities one would expect
5020 from a language standard library. It uses consistent conventions
5021 across all of its module.
5023 Base aims to be usable in any context. As a result system dependent
5024 features such as I/O are not offered by Base. They are instead
5025 provided by companion libraries such as
5026 @url{https://github.com/janestreet/stdio, ocaml-stdio}.")
5027 (license license:expat)))
5029 (define-public ocaml-compiler-libs
5031 (name "ocaml-compiler-libs")
5033 (home-page "https://github.com/janestreet/ocaml-compiler-libs")
5038 (url (string-append home-page ".git"))
5039 (commit (string-append "v" version))))
5040 (file-name (git-file-name name version))
5043 "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
5044 (build-system dune-build-system)
5046 '(#:tests? #f)) ;no tests
5047 (synopsis "Compiler libraries repackaged")
5048 (description "This packaeg simply repackages the OCaml compiler libraries
5049 so they don't expose everything at toplevel. For instance, @code{Ast_helper}
5050 is now @code{Ocaml_common.Ast_helper}.")
5051 (license license:expat)))
5053 (define-public ocaml-stdio
5055 (name "ocaml-stdio")
5057 (home-page "https://github.com/janestreet/stdio")
5062 (url (string-append home-page ".git"))
5063 (commit (string-append "v" version))))
5064 (file-name (git-file-name name version))
5067 "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
5068 (build-system dune-build-system)
5070 `(("ocaml-base" ,ocaml-base)
5071 ("ocaml-sexplib0" ,ocaml-sexplib0)))
5073 '(#:tests? #f)) ;no tests
5074 (synopsis "Standard IO library for OCaml")
5076 "Stdio implements simple input/output functionalities for OCaml. It
5077 re-exports the input/output functions of the OCaml standard libraries using
5078 a more consistent API.")
5079 (license license:expat)))
5081 (define-public ocaml-ppx-derivers
5083 (name "ocaml-ppx-derivers")
5086 "https://github.com/ocaml-ppx/ppx_derivers")
5091 (url (string-append home-page ".git"))
5093 (file-name (git-file-name name version))
5096 "0bnhihl1w31as5w2czly1v3d6pbir9inmgsjg2cj6aaj9v1dzd85"))))
5097 (build-system dune-build-system)
5099 '(#:tests? #f)) ;no tests
5100 (properties `((upstream-name . "ppx_derivers")))
5101 (synopsis "Shared @code{@@deriving} plugin registry")
5103 "Ppx_derivers is a tiny package whose sole purpose is to allow
5104 ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
5105 as part of the same ocaml-migrate-parsetree driver.")
5106 (license license:bsd-3)))
5108 (define-public ocaml-ppxlib
5110 (name "ocaml-ppxlib")
5112 (home-page "https://github.com/ocaml-ppx/ppxlib")
5117 (url (string-append home-page ".git"))
5119 (file-name (git-file-name name version))
5122 "1nr4igf5m4prvigvv470dnhfdhdw0p6hz6zw8gnm5bzcv7s2lg5l"))))
5123 (build-system dune-build-system)
5125 `(("ocaml-base" ,ocaml-base)
5126 ("ocaml-compiler-libs" ,ocaml-compiler-libs)
5127 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5128 ("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
5129 ("ocaml-stdio" ,ocaml-stdio)
5130 ("ocaml-result" ,ocaml-result)
5131 ("ocaml-sexplib0" ,ocaml-sexplib0)))
5134 (modify-phases %standard-phases
5135 (add-before 'check 'set-topfind
5136 (lambda* (#:key inputs #:allow-other-keys)
5137 ;; add the line #directory ".." at the top of each file
5138 ;; using #use "topfind";; to be able to find topfind
5139 (let* ((findlib-path (assoc-ref inputs "findlib"))
5141 (string-append findlib-path "/lib/ocaml/site-lib")))
5142 (substitute* '("test/base/test.ml"
5143 "test/deriving/test.ml"
5144 "test/driver/attributes/test.ml"
5145 "test/driver/non-compressible-suffix/test.ml"
5146 "test/driver/transformations/test.ml")
5147 (("#use \"topfind\";;" all)
5148 (string-append "#directory \"" findlib-libdir "\"\n"
5152 "Base library and tools for ppx rewriters")
5154 "A comprehensive toolbox for ppx development. It features:
5156 @item an OCaml AST / parser / pretty-printer snapshot, to create a full frontend
5157 independent of the version of OCaml;
5158 @item a library for library for ppx rewriters in general, and type-driven code
5159 generators in particular;
5161 a feature-full driver for OCaml AST transformers;
5162 @item a quotation mechanism allowing to write values representing the
5163 OCaml AST in the OCaml syntax;
5164 @item a generator of open recursion classes from type definitions.
5166 (license license:expat)))
5168 (define-public ocaml-ppx-compare
5170 (name "ocaml-ppx-compare")
5175 (url "https://github.com/janestreet/ppx_compare.git")
5176 (commit (string-append "v" version))))
5177 (file-name (git-file-name name version))
5180 "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
5181 (build-system dune-build-system)
5183 `(("ocaml-base" ,ocaml-base)
5184 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5185 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5186 (properties `((upstream-name . "ppx_compare")))
5187 (home-page "https://github.com/janestreet/ppx_compare")
5188 (synopsis "Generation of comparison functions from types")
5189 (description "Generation of fast comparison functions from type expressions
5190 and definitions. Ppx_compare is a ppx rewriter that derives comparison functions
5191 from type representations. The scaffolded functions are usually much faster
5192 than ocaml's Pervasives.compare. Scaffolding functions also gives you more
5193 flexibility by allowing you to override them for a specific type and more safety
5194 by making sure that you only compare comparable values.")
5195 (license license:asl2.0)))
5197 (define-public ocaml-fieldslib
5199 (name "ocaml-fieldslib")
5203 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5204 (version-major+minor version) "/files/"
5205 "fieldslib-v" version ".tar.gz"))
5208 "12948pzxrl360lybm9fzyvplgcl87zjbn4m3sk1aw75zk85p1388"))))
5209 (build-system dune-build-system)
5214 `(("ocaml-base" ,ocaml-base)
5215 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5216 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5217 (properties `((upstream-name . "fieldslib")))
5218 (home-page "https://github.com/janestreet/fieldslib")
5219 (synopsis "Syntax extension to record fields")
5220 (description "Syntax extension to define first class values representing
5221 record fields, to get and set record fields, iterate and fold over all fields
5222 of a record and create new record values.")
5223 (license license:asl2.0)))
5225 (define-public ocaml-variantslib
5227 (name "ocaml-variantslib")
5231 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5232 (version-major+minor version)
5233 "/files/variantslib-v" version ".tar.gz"))
5236 "1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
5237 (build-system dune-build-system)
5242 `(("ocaml-base" ,ocaml-base)
5243 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5244 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5245 (properties `((upstream-name . "variantslib")))
5246 (home-page "https://github.com/janestreet/variantslib")
5247 (synopsis "OCaml variants as first class values")
5248 (description "The Core suite of libraries is an alternative to OCaml's
5250 (license license:asl2.0)))
5252 (define-public ocaml-ppx-fields-conv
5254 (name "ocaml-ppx-fields-conv")
5258 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5259 (version-major+minor version)
5260 "/files/ppx_fields_conv-v" version ".tar.gz"))
5263 "07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
5264 (build-system dune-build-system)
5266 `(("ocaml-base" ,ocaml-base)
5267 ("ocaml-fieldslib" ,ocaml-fieldslib)
5268 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5269 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5270 (properties `((upstream-name . "ppx_fields_conv")))
5271 (home-page "https://github.com/janestreet/ppx_fields_conv")
5272 (synopsis "Generation of accessor and iteration functions for ocaml records")
5273 (description "Ppx_fields_conv is a ppx rewriter that can be used to define
5274 first class values representing record fields, and additional routines, to get
5275 and set record fields, iterate and fold over all fields of a record and create
5276 new record values.")
5277 (license license:asl2.0)))
5279 (define-public ocaml-ppx-sexp-conv
5281 (name "ocaml-ppx-sexp-conv")
5286 (url "https://github.com/janestreet/ppx_sexp_conv.git")
5287 (commit (string-append "v" version))))
5288 (file-name (git-file-name name version))
5291 "0pqwnqy1xp309wvdcaax4lg02yk64lq2w03mbgfvf6ps5ry4gis9"))))
5292 (build-system dune-build-system)
5294 `(("ocaml-base" ,ocaml-base)
5295 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5296 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5297 (properties `((upstream-name . "ppx_sexp_conv")))
5298 (home-page "https://github.com/janestreet/ppx_sexp_conv")
5299 (synopsis "Generation of S-expression conversion functions from type definitions")
5300 (description "This package generates S-expression conversion functions from type
5302 (license license:asl2.0)))
5304 (define-public ocaml-ppx-variants-conv
5306 (name "ocaml-ppx-variants-conv")
5311 (url "https://github.com/janestreet/ppx_variants_conv.git")
5312 (commit (string-append "v" version))))
5313 (file-name (git-file-name name version))
5316 "1yc0gsds5m2nv39zga8nnrca2n75rkqy5dz4xj1635ybz20hhbjd"))))
5317 (build-system dune-build-system)
5319 `(("ocaml-base" ,ocaml-base)
5320 ("ocaml-variantslib" ,ocaml-variantslib)
5321 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5322 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5324 `((upstream-name . "ppx_variants_conv")))
5326 "https://github.com/janestreet/ppx_variants_conv")
5327 (synopsis "Generation of accessor and iteration functions for OCaml variant types")
5329 "This package generates accessors and interation functions for OCaml
5331 (license license:asl2.0)))
5333 (define-public ocaml-ppx-custom-printf
5335 (name "ocaml-ppx-custom-printf")
5339 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5340 (version-major+minor version)
5341 "/files/ppx_custom_printf-v" version ".tar.gz"))
5344 "11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))))
5345 (build-system dune-build-system)
5347 `(("ocaml-base" ,ocaml-base)
5348 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
5349 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5350 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5351 (properties `((upstream-name . "ppx_custom_printf")))
5352 (home-page "https://github.com/janestreet/ppx_custom_printf")
5353 (synopsis "Printf-style format-strings for user-defined string conversion")
5354 (description "Extensions to printf-style format-strings for user-defined
5355 string conversion.")
5356 (license license:asl2.0)))
5358 (define-public ocaml-bin-prot
5360 (name "ocaml-bin-prot")
5364 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5365 (version-major+minor version)
5366 "/files/bin_prot-v" version ".tar.gz"))
5369 "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
5370 (build-system dune-build-system)
5372 `(("ocaml-base" ,ocaml-base)
5373 ("ocaml-ppx-compare" ,ocaml-ppx-compare)
5374 ("ocaml-ppx-custom-printf" ,ocaml-ppx-custom-printf)
5375 ("ocaml-ppx-fields-conv" ,ocaml-ppx-fields-conv)
5376 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
5377 ("ocaml-ppx-variants-conv" ,ocaml-ppx-variants-conv)
5378 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
5379 (properties `((upstream-name . "bin_prot")))
5380 (home-page "https://github.com/janestreet/bin_prot")
5381 (synopsis "Binary protocol generator")
5382 (description "This library contains functionality for reading and writing
5383 OCaml-values in a type-safe binary protocol. It is extremely efficient,
5384 typically supporting type-safe marshalling and unmarshalling of even highly
5385 structured values at speeds sufficient to saturate a gigabit connection. The
5386 protocol is also heavily optimized for size, making it ideal for long-term
5387 storage of large amounts of data.")
5392 (define-public ocaml-octavius
5394 (name "ocaml-octavius")
5399 (url "https://github.com/ocaml-doc/octavius")
5400 (commit (string-append "v" version))))
5401 (file-name (git-file-name name version))
5404 "0gqfbwsh0zq4b9mvvlmg3zhpbfbvq8swqr31320aibbqydwf77hr"))))
5405 (build-system dune-build-system)
5406 (properties `((upstream-name . "octavius")))
5407 (home-page "https://github.com/ocaml-doc/octavius")
5408 (synopsis "Ocamldoc comment syntax parser")
5409 (description "Octavius is a library to parse the `ocamldoc` comment syntax.")
5410 (license license:isc)))
5412 (define-public ocaml-ppx-hash
5414 (name "ocaml-ppx-hash")
5419 (url "https://github.com/janestreet/ppx_hash.git")
5420 (commit (string-append "v" version))))
5423 "1p0ic6aijxlrdggpmycj12q3cy9xksbq2vq727215maz4snvlf5p"))))
5424 (build-system dune-build-system)
5426 `(("ocaml-base" ,ocaml-base)
5427 ("ocaml-ppx-compare" ,ocaml-ppx-compare)
5428 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
5429 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5430 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5431 (properties `((upstream-name . "ppx_hash")))
5432 (home-page "https://github.com/janestreet/ppx_hash")
5433 (synopsis "Generation of hash functions from type expressions and definitions")
5434 (description "This package is a collecton of ppx rewriters that generate
5435 hash functions from type exrpessions and definitions.")
5436 (license license:asl2.0)))
5438 (define-public ocaml-ppx-enumerate
5440 (name "ocaml-ppx-enumerate")
5445 (url "https://github.com/janestreet/ppx_enumerate.git")
5446 (commit (string-append "v" version))))
5449 "0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
5450 (build-system dune-build-system)
5455 `(("ocaml-base" ,ocaml-base)
5456 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5457 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5458 (properties `((upstream-name . "ppx_enumerate")))
5459 (home-page "https://github.com/janestreet/ppx_enumerate")
5460 (synopsis "Generate a list containing all values of a finite type")
5461 (description "Ppx_enumerate is a ppx rewriter which generates a definition
5462 for the list of all values of a type (for a type which only has finitely
5464 (license license:asl2.0)))
5466 (define-public ocaml-ppx-bench
5468 (name "ocaml-ppx-bench")
5472 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5473 (version-major+minor version)
5474 "/files/ppx_bench-v" version ".tar.gz"))
5477 "0ys4pblbcjbk9dn073rqiwm7r6rc7fah03j7riklkwnb5n44andl"))))
5478 (build-system dune-build-system)
5483 `(("ocaml-ppx-inline-test" ,ocaml-ppx-inline-test)
5484 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5485 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5486 (properties `((upstream-name . "ppx_bench")))
5487 (home-page "https://github.com/janestreet/ppx_bench")
5488 (synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
5489 (description "Syntax extension for writing in-line benchmarks in ocaml code.")
5490 (license license:asl2.0)))
5492 (define-public ocaml-ppx-here
5494 (name "ocaml-ppx-here")
5498 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5499 (version-major+minor version)
5500 "/files/ppx_here-v" version ".tar.gz"))
5503 "0wxcak3ay4jpigm3pfdcpr65qw4hxfa8whhkryhcd8gy71x056z5"))))
5504 (build-system dune-build-system)
5509 `(("ocaml-base" ,ocaml-base)
5510 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5511 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5512 (properties `((upstream-name . "ppx_here")))
5513 (home-page "https://github.com/janestreet/ppx_here")
5514 (synopsis "Expands [%here] into its location")
5516 "Part of the Jane Street's PPX rewriters collection.")
5517 (license license:asl2.0)))
5519 (define-public ocaml-typerep
5521 (name "ocaml-typerep")
5525 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5526 (version-major+minor version)
5527 "/files/typerep-v" version ".tar.gz"))
5530 "1zi7hy0prpgzqhr4lkacr04wvlvbp21jfbdfvffhrm6cd400rb5v"))))
5531 (build-system dune-build-system)
5534 (propagated-inputs `(("ocaml-base" ,ocaml-base)))
5535 (home-page "https://github.com/janestreet/typerep")
5536 (synopsis "Typerep is a library for runtime types")
5537 (description "Typerep is a library for runtime types.")
5538 (license license:asl2.0)))
5540 (define-public ocaml-ppx-sexp-value
5542 (name "ocaml-ppx-sexp-value")
5546 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5547 (version-major+minor version)
5548 "/files/ppx_sexp_value-v" version ".tar.gz"))
5551 "1xnalfrln6k5khsyxvxkg6v32q8fpr4cqamsjqfih29jdv486xrs"))))
5552 (build-system dune-build-system)
5554 `(("ocaml-base" ,ocaml-base)
5555 ("ocaml-ppx-here" ,ocaml-ppx-here)
5556 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
5557 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5558 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5559 (properties `((upstream-name . "ppx_sexp_value")))
5560 (home-page "https://github.com/janestreet/ppx_sexp_value")
5561 (synopsis "Simplify building s-expressions from ocaml values")
5562 (description "A ppx rewriter that simplifies building s-expressions from
5564 (license license:asl2.0)))
5566 (define-public ocaml-ppx-sexp-message
5568 (name "ocaml-ppx-sexp-message")
5572 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5573 (version-major+minor version)
5574 "/files/ppx_sexp_message-v" version ".tar.gz"))
5577 "1yh440za0w9cvrbxbmqacir8715kdaw6sw24ys9xj80av9nqpiw7"))))
5578 (build-system dune-build-system)
5580 `(("ocaml-base" ,ocaml-base)
5581 ("ocaml-ppx-here" ,ocaml-ppx-here)
5582 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
5583 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5584 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5585 (properties `((upstream-name . "ppx_sexp_message")))
5586 (home-page "https://github.com/janestreet/ppx_sexp_message")
5587 (synopsis "A ppx rewriter for easy construction of s-expressions")
5588 (description "Ppx_sexp_message aims to ease the creation of s-expressions
5589 in OCaml. This is mainly motivated by writing error and debugging messages,
5590 where one needs to construct a s-expression based on various element of the
5591 context such as function arguments.")
5592 (license license:asl2.0)))
5594 (define-public ocaml-ppx-pipebang
5596 (name "ocaml-ppx-pipebang")
5600 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5601 (version-major+minor version)
5602 "/files/ppx_pipebang-v" version ".tar.gz"))
5605 "1wrrzlb4kdvkkcmzi01fw25jar38r2jlnyn0i6pn4z0lq4gpm9m0"))))
5606 (build-system dune-build-system)
5611 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5612 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5613 (properties `((upstream-name . "ppx_pipebang")))
5614 (home-page "https://github.com/janestreet/ppx_pipebang")
5615 (synopsis "Inline reverse application operators `|>` and `|!`")
5616 (description "A ppx rewriter that inlines reverse application operators
5617 @code{|>} and @code{|!}.")
5618 (license license:asl2.0)))
5620 (define-public ocaml-ppx-optional
5622 (name "ocaml-ppx-optional")
5626 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5627 (version-major+minor version)
5628 "/files/ppx_optional-v" version ".tar.gz"))
5631 "1z8z2bga95k2vksljljfglg10vygkjd24kn1b37sk4z3nmp47x0h"))))
5632 (build-system dune-build-system)
5637 `(("ocaml-base" ,ocaml-base)
5638 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5639 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5640 (properties `((upstream-name . "ppx_optional")))
5641 (home-page "https://github.com/janestreet/ppx_optional")
5642 (synopsis "Pattern matching on flat options")
5644 "A ppx rewriter that rewrites simple match statements with an if then
5646 (license license:asl2.0)))
5648 (define-public ocaml-ppx-optcomp
5650 (name "ocaml-ppx-optcomp")
5654 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5655 (version-major+minor version)
5656 "/files/ppx_optcomp-v" version ".tar.gz"))
5659 "1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))))
5660 (build-system dune-build-system)
5662 `(("ocaml-base" ,ocaml-base)
5663 ("ocaml-stdio" ,ocaml-stdio)
5664 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5665 (properties `((upstream-name . "ppx_optcomp")))
5666 (home-page "https://github.com/janestreet/ppx_optcomp")
5667 (synopsis "Optional compilation for OCaml")
5668 (description "Ppx_optcomp stands for Optional Compilation. It is a tool
5669 used to handle optional compilations of pieces of code depending of the word
5670 size, the version of the compiler, ...")
5671 (license license:asl2.0)))
5673 (define-public ocaml-ppx-let
5675 (name "ocaml-ppx-let")
5679 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5680 (version-major+minor version)
5681 "/files/ppx_let-v" version ".tar.gz"))
5684 "1wdfw6w4xbg97a35yg6bif9gggxniy9ddnrjfw1a0inkl2yamxkj"))))
5685 (build-system dune-build-system)
5687 `(("ocaml-base" ,ocaml-base)
5688 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5689 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5690 (properties `((upstream-name . "ppx_let")))
5691 (home-page "https://github.com/janestreet/ppx_let")
5692 (synopsis "Monadic let-bindings")
5693 (description "A ppx rewriter for monadic and applicative let bindings,
5694 match expressions, and if expressions.")
5695 (license license:asl2.0)))
5697 (define-public ocaml-ppx-fail
5699 (name "ocaml-ppx-fail")
5703 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5704 (version-major+minor version)
5705 "/files/ppx_fail-v" version ".tar.gz"))
5708 "07plqsvljiwvngggfypwq55g46s5my55y45mvlmalrxyppzr03s8"))))
5709 (build-system dune-build-system)
5711 `(("ocaml-base" ,ocaml-base)
5712 ("ocaml-ppx-here" ,ocaml-ppx-here)
5713 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5714 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5715 (properties `((upstream-name . "ppx_fail")))
5716 (home-page "https://github.com/janestreet/ppx_fail")
5717 (synopsis "Add location to calls to failwiths")
5718 (description "Syntax extension that makes [failwiths] always include a
5720 (license license:asl2.0)))
5722 (define-public ocaml-ppx-assert
5724 (name "ocaml-ppx-assert")
5728 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5729 (version-major+minor version)
5730 "/files/ppx_assert-v" version ".tar.gz"))
5733 "17kd311n0l9f72gblf9kv8i5rghr106w37x4f0m5qwh6nlgl0j9k"))))
5734 (build-system dune-build-system)
5736 `(("ocaml-base" ,ocaml-base)
5737 ("ocaml-ppx-compare" ,ocaml-ppx-compare)
5738 ("ocaml-ppx-here" ,ocaml-ppx-here)
5739 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
5740 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5741 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5742 (properties `((upstream-name . "ppx_assert")))
5743 (home-page "https://github.com/janestreet/ppx_assert")
5744 (synopsis "Assert-like extension nodes that raise useful errors on failure")
5745 (description "This package contains assert-like extension nodes that raise
5746 useful errors on failure.")
5747 (license license:asl2.0)))
5749 (define-public ocaml-ppx-expect
5751 (name "ocaml-ppx-expect")
5756 (url "https://github.com/janestreet/ppx_expect.git")
5757 (commit (string-append "v" version))))
5758 (file-name (git-file-name name version))
5761 "0bnz3cpj3vwdw409r6f8raakl8n364q5l7wy4i6gckr34a4vla69"))))
5762 (build-system dune-build-system)
5766 `(("ocaml-base" ,ocaml-base)
5767 ("ocaml-ppx-assert" ,ocaml-ppx-assert)
5768 ("ocaml-ppx-compare" ,ocaml-ppx-compare)
5769 ("ocaml-ppx-custom-printf" ,ocaml-ppx-custom-printf)
5770 ("ocaml-ppx-fields-conv" ,ocaml-ppx-fields-conv)
5771 ("ocaml-ppx-here" ,ocaml-ppx-here)
5772 ("ocaml-ppx-inline-test" ,ocaml-ppx-inline-test)
5773 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
5774 ("ocaml-ppx-variants-conv" ,ocaml-ppx-variants-conv)
5775 ("ocaml-stdio" ,ocaml-stdio)
5776 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5777 ("ocaml-ppxlib" ,ocaml-ppxlib)
5778 ("ocaml-re" ,ocaml-re)))
5779 (properties `((upstream-name . "ppx_expect")))
5780 (home-page "https://github.com/janestreet/ppx_expect")
5781 (synopsis "Cram like framework for OCaml")
5782 (description "Expect-test is a framework for writing tests in OCaml, similar
5783 to Cram. Expect-tests mimics the existing inline tests framework with the
5784 @code{let%expect_test} construct. The body of an expect-test can contain
5785 output-generating code, interleaved with @code{%expect} extension expressions
5786 to denote the expected output.")
5787 (license license:asl2.0)))
5789 (define-public ocaml-ppx-js-style
5791 (name "ocaml-ppx-js-style")
5795 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5796 (version-major+minor version)
5797 "/files/ppx_js_style-v" version ".tar.gz"))
5800 "0z3fc55jdjhhsblla6z4fqc13kljpcz29q79rvs5h2vsraqrldr2"))))
5801 (build-system dune-build-system)
5806 `(("ocaml-base" ,ocaml-base)
5807 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5808 ("ocaml-octavius" ,ocaml-octavius)
5809 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5810 (properties `((upstream-name . "ppx_js_style")))
5811 (home-page "https://github.com/janestreet/ppx_js_style")
5812 (synopsis "Code style checker for Jane Street Packages")
5813 (description "This packages is a no-op ppx rewriter. It is used as a
5814 @code{lint} tool to enforce some coding conventions across all Jane Street
5816 (license license:asl2.0)))
5818 (define-public ocaml-ppx-typerep-conv
5820 (name "ocaml-ppx-typerep-conv")
5825 (url "https://github.com/janestreet/ppx_typerep_conv.git")
5826 (commit (string-append "v" version))))
5829 "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))
5830 (build-system dune-build-system)
5832 `(#:test-target "."))
5834 `(("ocaml-base" ,ocaml-base)
5835 ("ocaml-typerep" ,ocaml-typerep)
5836 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5837 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5838 (properties `((upstream-name . "ppx_typerep_conv")))
5839 (home-page "https://github.com/janestreet/ppx_typerep_conv")
5840 (synopsis "Generation of runtime types from type declarations")
5841 (description "This package can automatically generate runtime types
5842 from type definitions.")
5843 (license license:asl2.0)))
5845 (define-public ocaml-ppx-base
5847 (name "ocaml-ppx-base")
5851 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5852 (version-major+minor version)
5853 "/files/ppx_base-v" version ".tar.gz"))
5856 "0aq206pg330jmj7lhcagiiwm3a0b3gsqm801m8ajd4ysyw7idkym"))))
5857 (build-system dune-build-system)
5859 `(#:test-target "."))
5861 `(("ocaml-ppx-compare" ,ocaml-ppx-compare)
5862 ("ocaml-ppx-enumerate" ,ocaml-ppx-enumerate)
5863 ("ocaml-ppx-hash" ,ocaml-ppx-hash)
5864 ("ocaml-ppx-js-style" ,ocaml-ppx-js-style)
5865 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
5866 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5867 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5868 (properties `((upstream-name . "ppx_base")))
5869 (home-page "https://github.com/janestreet/ppx_base")
5870 (synopsis "Base set of ppx rewriters")
5871 (description "Ppx_base is the set of ppx rewriters used for Base.
5873 Note that Base doesn't need ppx to build, it is only used as a
5874 verification tool.")
5875 (license license:asl2.0)))
5877 (define-public ocaml-ppx-bin-prot
5879 (name "ocaml-ppx-bin-prot")
5884 (url "https://github.com/janestreet/ppx_bin_prot.git")
5885 (commit (string-append "v" version))))
5886 (file-name (git-file-name name version))
5889 "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
5890 (build-system dune-build-system)
5892 ;; Cyclic dependency with ocaml-ppx-jane
5895 `(("ocaml-base" ,ocaml-base)
5896 ("ocaml-bin-prot" ,ocaml-bin-prot)
5897 ("ocaml-ppx-here" ,ocaml-ppx-here)
5898 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5899 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5900 (properties `((upstream-name . "ppx_bin_prot")))
5901 (home-page "https://github.com/janestreet/ppx_bin_prot")
5902 (synopsis "Generation of bin_prot readers and writers from types")
5903 (description "Generation of binary serialization and deserialization
5904 functions from type definitions.")
5905 (license license:asl2.0)))
5907 (define-public ocaml-ppx-jane
5909 (name "ocaml-ppx-jane")
5913 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5914 (version-major+minor version)
5915 "/files/ppx_jane-v" version ".tar.gz"))
5918 "0lgppkw3aixrfnixihrsz2ipafv8fpvkdpy3pw8n0r615gg8x8la"))))
5919 (build-system dune-build-system)
5921 `(#:test-target "."))
5923 `(("ocaml-ppx-assert" ,ocaml-ppx-assert)
5924 ("ocaml-ppx-base" ,ocaml-ppx-base)
5925 ("ocaml-ppx-bench" ,ocaml-ppx-bench)
5926 ("ocaml-ppx-bin-prot" ,ocaml-ppx-bin-prot)
5927 ("ocaml-ppx-custom-printf" ,ocaml-ppx-custom-printf)
5928 ("ocaml-ppx-expect" ,ocaml-ppx-expect)
5929 ("ocaml-ppx-fail" ,ocaml-ppx-fail)
5930 ("ocaml-ppx-fields-conv" ,ocaml-ppx-fields-conv)
5931 ("ocaml-ppx-here" ,ocaml-ppx-here)
5932 ("ocaml-ppx-inline-test" ,ocaml-ppx-inline-test)
5933 ("ocaml-ppx-let" ,ocaml-ppx-let)
5934 ("ocaml-ppx-optcomp" ,ocaml-ppx-optcomp)
5935 ("ocaml-ppx-optional" ,ocaml-ppx-optional)
5936 ("ocaml-ppx-pipebang" ,ocaml-ppx-pipebang)
5937 ("ocaml-ppx-sexp-message" ,ocaml-ppx-sexp-message)
5938 ("ocaml-ppx-sexp-value" ,ocaml-ppx-sexp-value)
5939 ("ocaml-ppx-typerep-conv" ,ocaml-ppx-typerep-conv)
5940 ("ocaml-ppx-variants-conv" ,ocaml-ppx-variants-conv)
5941 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5942 ("ocaml-ppxlib" ,ocaml-ppxlib)))
5943 (properties `((upstream-name . "ppx_jane")))
5944 (home-page "https://github.com/janestreet/ppx_jane")
5945 (synopsis "Standard Jane Street ppx rewriters")
5946 (description "This package installs a ppx-jane executable, which is a ppx
5947 driver including all standard Jane Street ppx rewriters.")
5948 (license license:asl2.0)))
5950 (define-public ocaml-splittable-random
5952 (name "ocaml-splittable-random")
5956 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5957 (version-major+minor version)
5958 "/files/splittable_random-v" version ".tar.gz"))
5961 "0l1wbd881mymlnpzlq5q53mmdz3g5d7qjhyc7lfaq1x0iaccn5lc"))))
5962 (build-system dune-build-system)
5964 `(("ocaml-base" ,ocaml-base)
5965 ("ocaml-ppx-jane" ,ocaml-ppx-jane)
5966 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
5967 (properties `((upstream-name . "splittable_random")))
5968 (home-page "https://github.com/janestreet/splittable_random")
5969 (synopsis "PRNG that can be split into independent streams")
5970 (description "This package provides a splittable
5971 @acronym{PRNG,pseudo-random number generator} functions like a PRNG that can
5972 be used as a stream of random values; it can also be split to produce a
5973 second, independent stream of random values.
5975 This library implements a splittable pseudo-random number generator that sacrifices
5976 cryptographic-quality randomness in favor of performance.")
5977 (license license:asl2.0)))
5979 (define-public ocaml-jane-street-headers
5981 (name "ocaml-jane-street-headers")
5985 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5986 (version-major+minor version)
5987 "/files/jane-street-headers-v" version ".tar.gz"))
5990 "0afhzm08l9v883fhpqqh2lmy7az609pxif40bp7x1sk8c0yszqsh"))))
5991 (build-system dune-build-system)
5993 `(#:test-target "."))
5994 (home-page "https://github.com/janestreet/jane-street-headers")
5995 (synopsis "Jane Street C header files")
5996 (description "This package provides C header files shared between the
5997 various Jane Street packages.")
5998 (license license:asl2.0)))
6000 (define-public ocaml-configurator
6002 (name "ocaml-configurator")
6006 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
6007 (version-major+minor version)
6008 "/files/configurator-v" version ".tar.gz"))
6011 "0kwgi3sh92v4n242dk5hgpwd85zzgnczgbkqi0q0kr6m93zgbf7p"))))
6012 (build-system dune-build-system)
6017 `(("ocaml-base" ,ocaml-base)
6018 ("ocaml-stdio" ,ocaml-stdio)))
6019 (home-page "https://github.com/janestreet/configurator")
6020 (synopsis "Helper library for gathering system configuration")
6021 (description "Configurator is a small library that helps writing OCaml
6022 scripts that test features available on the system, in order to generate config.h
6025 Configurator allows one to:
6027 @item test if a C program compiles
6028 @item query pkg-config
6029 @item import #define from OCaml header files
6030 @item generate config.h file
6032 (license license:asl2.0)))
6034 (define-public ocaml-spawn
6036 (name "ocaml-spawn")
6041 (url "https://github.com/janestreet/spawn.git")
6042 (commit (string-append "v" version))))
6045 "0amgj7g9sjlbjivn1mg7yjdmxd21hgp4a0ak2zrm95dmm4gi846i"))))
6046 (build-system dune-build-system)
6049 (modify-phases %standard-phases
6050 (add-before 'check 'fix-tests
6052 (substitute* "test/tests.ml"
6053 (("/bin/pwd") (which "pwd"))
6054 (("/bin/echo") (which "echo")))
6057 `(("ocaml-ppx-expect" ,ocaml-ppx-expect)))
6058 (home-page "https://github.com/janestreet/spawn")
6059 (synopsis "Spawning sub-processes")
6061 "Spawn is a small library exposing only one functionality: spawning sub-process.
6063 It has three main goals:
6066 @item provide missing features of Unix.create_process such as providing a
6068 @item provide better errors when a system call fails in the
6069 sub-process. For instance if a command is not found, you get a proper
6070 @code{Unix.Unix_error} exception,
6071 @item improve performances by using vfork when available. It is often
6072 claimed that nowadays fork is as fast as vfork, however in practice
6073 fork takes time proportional to the process memory while vfork is
6074 constant time. In application using a lot of memory, vfork can be
6075 thousands of times faster than fork.
6077 (license license:asl2.0)))
6079 (define-public ocaml-core
6086 (url "https://github.com/janestreet/core.git")
6087 (commit (string-append "v" version))))
6090 "0pzl8n09z4f3i7z2wq4cjxfqrr8mj6xcdp7rbg0nxap2zdhjgvrq"))))
6091 (build-system dune-build-system)
6094 ;; Require a cyclic dependency: core_extended
6097 `(("ocaml-base" ,ocaml-base)
6098 ("ocaml-configurator" ,ocaml-configurator)
6099 ("ocaml-core-kernel" ,ocaml-core-kernel)
6100 ("ocaml-ppx-assert" ,ocaml-ppx-assert)
6101 ("ocaml-ppx-jane" ,ocaml-ppx-jane)
6102 ("ocaml-sexplib" ,ocaml-sexplib)
6103 ("ocaml-spawn" ,ocaml-spawn)
6104 ("ocaml-stdio" ,ocaml-stdio)
6105 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
6106 ("ocaml-ppxlib" ,ocaml-ppxlib)))
6107 (home-page "https://github.com/janestreet/core")
6108 (synopsis "Alternative to OCaml's standard library")
6109 (description "The Core suite of libraries is an alternative to OCaml's
6110 standard library that was developed by Jane Street.")
6111 ;; Also contains parts of OCaml, relicensed to asl2.0, as permitted
6112 ;; by OCaml's license for consortium members (see THIRD-PARTY.txt).
6113 (license license:asl2.0)))
6115 (define-public ocaml-core-kernel
6117 (name "ocaml-core-kernel")
6122 (url "https://github.com/janestreet/core_kernel.git")
6123 (commit (string-append "v" version))))
6124 (file-name (git-file-name name version))
6127 "1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
6128 (build-system dune-build-system)
6130 ;; Cyclic dependency with ocaml-core
6133 `(("ocaml-base" ,ocaml-base)
6134 ("ocaml-bin-prot" ,ocaml-bin-prot)
6135 ("ocaml-configurator" ,ocaml-configurator)
6136 ("ocaml-fieldslib" ,ocaml-fieldslib)
6137 ("ocaml-jane-street-headers" ,ocaml-jane-street-headers)
6138 ("ocaml-ppx-assert" ,ocaml-ppx-assert)
6139 ("ocaml-ppx-base" ,ocaml-ppx-base)
6140 ("ocaml-ppx-hash" ,ocaml-ppx-hash)
6141 ("ocaml-ppx-inline-test" ,ocaml-ppx-inline-test)
6142 ("ocaml-ppx-jane" ,ocaml-ppx-jane)
6143 ("ocaml-ppx-sexp-conv" ,ocaml-ppx-sexp-conv)
6144 ("ocaml-ppx-sexp-message" ,ocaml-ppx-sexp-message)
6145 ("ocaml-sexplib" ,ocaml-sexplib)
6146 ("ocaml-splittable-random" ,ocaml-splittable-random)
6147 ("ocaml-stdio" ,ocaml-stdio)
6148 ("ocaml-typerep" ,ocaml-typerep)
6149 ("ocaml-variantslib" ,ocaml-variantslib)
6150 ("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
6151 (properties `((upstream-name . "core_kernel")))
6152 (home-page "https://github.com/janestreet/core_kernel")
6153 (synopsis "Portable standard library for OCaml")
6154 (description "Core is an alternative to the OCaml standard library.
6156 Core_kernel is the system-independent part of Core. It is aimed for cases when
6157 the full Core is not available, such as in Javascript.")
6159 ;; this package and parts of OCaml, relicensed by janestreet