gnu: ocaml-jane-street-headers: Build only with OCaml 4.07.
[jackhill/guix/guix.git] / gnu / packages / ocaml.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
3 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
5 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
6 ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
7 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
8 ;;; Copyright © 2016, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
9 ;;; Copyright © 2016-2020 Julien Lepiller <julien@lepiller.eu>
10 ;;; Copyright © 2017 Ben Woodcroft <donttrustben@gmail.com>
11 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2018 Peter Kreye <kreyepr@gmail.com>
13 ;;; Copyright © 2018, 2019 Gabriel Hondet <gabrielhondet@gmail.com>
14 ;;; Copyright © 2018 Kei Kebreau <kkebreau@posteo.net>
15 ;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
16 ;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
17 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
18 ;;;
19 ;;; This file is part of GNU Guix.
20 ;;;
21 ;;; GNU Guix is free software; you can redistribute it and/or modify it
22 ;;; under the terms of the GNU General Public License as published by
23 ;;; the Free Software Foundation; either version 3 of the License, or (at
24 ;;; your option) any later version.
25 ;;;
26 ;;; GNU Guix is distributed in the hope that it will be useful, but
27 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
28 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 ;;; GNU General Public License for more details.
30 ;;;
31 ;;; You should have received a copy of the GNU General Public License
32 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33
34 (define-module (gnu packages ocaml)
35 #:use-module (gnu packages)
36 #:use-module (gnu packages algebra)
37 #:use-module (gnu packages autotools)
38 #:use-module (gnu packages base)
39 #:use-module (gnu packages bison)
40 #:use-module (gnu packages boost)
41 #:use-module (gnu packages compression)
42 #:use-module (gnu packages curl)
43 #:use-module (gnu packages emacs)
44 #:use-module (gnu packages emacs-xyz)
45 #:use-module (gnu packages flex)
46 #:use-module (gnu packages gcc)
47 #:use-module (gnu packages ghostscript)
48 #:use-module (gnu packages glib)
49 #:use-module (gnu packages gnome)
50 #:use-module (gnu packages gtk)
51 #:use-module (gnu packages libevent)
52 #:use-module (gnu packages libffi)
53 #:use-module (gnu packages llvm)
54 #:use-module (gnu packages m4)
55 #:use-module (gnu packages maths)
56 #:use-module (gnu packages multiprecision)
57 #:use-module (gnu packages ncurses)
58 #:use-module (gnu packages pcre)
59 #:use-module (gnu packages perl)
60 #:use-module (gnu packages pkg-config)
61 #:use-module (gnu packages protobuf)
62 #:use-module (gnu packages python)
63 #:use-module (gnu packages python-xyz)
64 #:use-module (gnu packages rsync)
65 #:use-module (gnu packages sdl)
66 #:use-module (gnu packages sqlite)
67 #:use-module (gnu packages tex)
68 #:use-module (gnu packages texinfo)
69 #:use-module (gnu packages time)
70 #:use-module (gnu packages tls)
71 #:use-module (gnu packages virtualization)
72 #:use-module (gnu packages web-browsers)
73 #:use-module (gnu packages xml)
74 #:use-module (gnu packages xorg)
75 #:use-module (guix build-system dune)
76 #:use-module (guix build-system emacs)
77 #:use-module (guix build-system gnu)
78 #:use-module (guix build-system ocaml)
79 #:use-module (guix download)
80 #:use-module (guix git-download)
81 #:use-module ((guix licenses) #:prefix license:)
82 #:use-module (guix packages)
83 #:use-module (guix svn-download)
84 #:use-module (guix utils)
85 #:use-module ((srfi srfi-1) #:hide (zip)))
86
87 ;; A shortcut for files from ocaml forge. Downloaded files are computed from
88 ;; their number, not their name.
89 (define (ocaml-forge-uri name version file-number)
90 (string-append "https://forge.ocamlcore.org/frs/download.php/"
91 (number->string file-number) "/" name "-" version
92 ".tar.gz"))
93
94 ;; Janestreet packages are found in a similar way and all need the same patch.
95 (define (janestreet-origin name version hash)
96 (origin (method url-fetch)
97 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/"
98 (version-major+minor version) "/files/"
99 name "-" version ".tar.gz"))
100 (sha256 (base32 hash))
101 (modules '((guix build utils)))
102 (snippet
103 (let ((pattern (string-append "lib/" name)))
104 `(begin
105 ;; install.ml contains an invalid reference to the ppx file and
106 ;; propagates this error to the generated META file. It
107 ;; looks for it in the "lib" directory, but it is installed in
108 ;; "lib/ocaml/site-lib/package". This substitute does not change
109 ;; this file for non ppx packages.
110 (substitute* "install.ml"
111 ((,pattern) (string-append "lib/ocaml/site-lib/" ,name)))
112 ;; The standard Makefile would try to install janestreet modules
113 ;; in OCaml's directory in the store, which is read-only.
114 (substitute* "Makefile"
115 (("--prefix")
116 "--libdir $(LIBDIR) --prefix"))
117 #t)))))
118
119 ;; They also require almost the same set of arguments
120 (define janestreet-arguments
121 `(#:use-make? #t
122 #:make-flags
123 (list (string-append "CONFIGUREFLAGS=--prefix "
124 (assoc-ref %outputs "out")
125 " --enable-tests")
126 (string-append "LIBDIR="
127 (assoc-ref %outputs "out")
128 "/lib/ocaml/site-lib")
129 ;; for ocaml-bin-prot, otherwise ignored
130 (string-append "OCAML_TOPLEVEL_PATH="
131 (assoc-ref %build-inputs "findlib")
132 "/lib/ocaml/site-lib"))
133 #:phases (modify-phases %standard-phases (delete 'configure))))
134
135 (define-public ocaml-4.09
136 (package
137 (name "ocaml")
138 (version "4.09.0")
139 (source (origin
140 (method url-fetch)
141 (uri (string-append
142 "http://caml.inria.fr/pub/distrib/ocaml-"
143 (version-major+minor version)
144 "/ocaml-" version ".tar.xz"))
145 (sha256
146 (base32
147 "1v3z5ar326f3hzvpfljg4xj8b9lmbrl53fn57yih1bkbx3gr3yzj"))))
148 (build-system gnu-build-system)
149 (native-search-paths
150 (list (search-path-specification
151 (variable "OCAMLPATH")
152 (files (list "lib/ocaml" "lib/ocaml/site-lib")))
153 (search-path-specification
154 (variable "CAML_LD_LIBRARY_PATH")
155 (files (list "lib/ocaml/site-lib/stubslibs"
156 "lib/ocaml/site-lib/stublibs")))))
157 (native-inputs
158 `(("perl" ,perl)
159 ("pkg-config" ,pkg-config)))
160 (inputs
161 `(("libx11" ,libx11)
162 ;; For libiberty, needed for objdump support.
163 ("gcc:lib" ,(canonical-package gcc) "lib")
164 ("zlib" ,zlib))) ;also needed for objdump support
165 (arguments
166 `(#:phases
167 (modify-phases %standard-phases
168 (add-after 'unpack 'patch-/bin/sh-references
169 (lambda* (#:key inputs #:allow-other-keys)
170 (let* ((sh (string-append (assoc-ref inputs "bash")
171 "/bin/sh"))
172 (quoted-sh (string-append "\"" sh "\"")))
173 (with-fluids ((%default-port-encoding #f))
174 (for-each
175 (lambda (file)
176 (substitute* file
177 (("\"/bin/sh\"")
178 (begin
179 (format (current-error-port) "\
180 patch-/bin/sh-references: ~a: changing `\"/bin/sh\"' to `~a'~%"
181 file quoted-sh)
182 quoted-sh))))
183 (find-files "." "\\.ml$"))
184 #t))))
185 (replace 'build
186 (lambda _
187 (invoke "make" "-j" (number->string (parallel-job-count))
188 "world.opt")))
189 (replace 'check
190 (lambda _
191 (with-directory-excursion "testsuite"
192 (invoke "make" "all")))))))
193 (home-page "https://ocaml.org/")
194 (synopsis "The OCaml programming language")
195 (description
196 "OCaml is a general purpose industrial-strength programming language with
197 an emphasis on expressiveness and safety. Developed for more than 20 years at
198 Inria it benefits from one of the most advanced type systems and supports
199 functional, imperative and object-oriented styles of programming.")
200 ;; The compiler is distributed under qpl1.0 with a change to choice of
201 ;; law: the license is governed by the laws of France. The library is
202 ;; distributed under lgpl2.0.
203 (license (list license:qpl license:lgpl2.0))))
204
205 (define-public ocaml-4.07
206 (package
207 (inherit ocaml-4.09)
208 (version "4.07.1")
209 (source (origin
210 (method url-fetch)
211 (uri (string-append
212 "http://caml.inria.fr/pub/distrib/ocaml-"
213 (version-major+minor version)
214 "/ocaml-" version ".tar.xz"))
215 (sha256
216 (base32
217 "1f07hgj5k45cylj1q3k5mk8yi02cwzx849b1fwnwia8xlcfqpr6z"))))
218 (arguments
219 (substitute-keyword-arguments (package-arguments ocaml-4.09)
220 ((#:phases phases)
221 `(modify-phases ,phases
222 (replace 'configure
223 (lambda* (#:key outputs #:allow-other-keys)
224 (let* ((out (assoc-ref outputs "out"))
225 (mandir (string-append out "/share/man")))
226 ;; Custom configure script doesn't recognize
227 ;; --prefix=<PREFIX> syntax (with equals sign).
228 (invoke "./configure"
229 "--prefix" out
230 "--mandir" mandir))))))))))
231
232 (define-public ocaml ocaml-4.09)
233
234 (define-public ocamlbuild
235 (package
236 (name "ocamlbuild")
237 (version "0.14.0")
238 (source
239 (origin
240 (method git-fetch)
241 (uri (git-reference
242 (url "https://github.com/ocaml/ocamlbuild")
243 (commit version)))
244 (file-name (git-file-name name version))
245 (sha256
246 (base32 "1hb5mcdz4wv7sh1pj7dq9q4fgz5h3zg7frpiya6s8zd3ypwzq0kh"))))
247 (build-system ocaml-build-system)
248 (arguments
249 `(#:make-flags
250 (list (string-append "OCAMLBUILD_PREFIX=" (assoc-ref %outputs "out"))
251 (string-append "OCAMLBUILD_BINDIR=" (assoc-ref %outputs "out")
252 "/bin")
253 (string-append "OCAMLBUILD_LIBDIR=" (assoc-ref %outputs "out")
254 "/lib/ocaml/site-lib")
255 (string-append "OCAMLBUILD_MANDIR=" (assoc-ref %outputs "out")
256 "/share/man"))
257 #:phases
258 (modify-phases %standard-phases
259 (delete 'configure))
260 ; some failures because of changes in OCaml's error message formating
261 #:tests? #f))
262 (home-page "https://github.com/ocaml/ocamlbuild")
263 (synopsis "OCaml build tool")
264 (description "OCamlbuild is a generic build tool, that has built-in rules
265 for building OCaml library and programs.")
266 (license license:lgpl2.1+)))
267
268 (define-public ocaml-extlib
269 (package
270 (name "ocaml-extlib")
271 (version "1.7.7")
272 (source (origin
273 (method url-fetch)
274 (uri (string-append "https://ygrek.org/p/release/ocaml-extlib/"
275 "extlib-" version ".tar.gz"))
276 (sha256
277 (base32
278 "1sxmzc1mx3kg62j8kbk0dxkx8mkf1rn70h542cjzrziflznap0s1"))))
279 (build-system ocaml-build-system)
280 (arguments
281 `(#:phases
282 (modify-phases %standard-phases
283 (delete 'configure))))
284 (native-inputs
285 `(("ocaml-cppo" ,ocaml-cppo)))
286 (home-page "https://github.com/ygrek/ocaml-extlib")
287 (synopsis "Complete and small extension for OCaml standard library")
288 (description "This library adds new functions to OCaml standard library
289 modules, modifies some functions in order to get better performances or
290 safety (tail-recursive) and also provides new modules which should be useful
291 for day to day programming.")
292 ;; With static-linking exception
293 (license license:lgpl2.1+)))
294
295 (define-public ocaml-cudf
296 (package
297 (name "ocaml-cudf")
298 (version "0.9")
299 (source
300 (origin
301 (method url-fetch)
302 (uri "https://gforge.inria.fr/frs/download.php/36602/cudf-0.9.tar.gz")
303 (sha256
304 (base32
305 "0771lwljqwwn3cryl0plny5a5dyyrj4z6bw66ha5n8yfbpcy8clr"))))
306 (build-system ocaml-build-system)
307 (propagated-inputs `(("ocaml-extlib" ,ocaml-extlib)))
308 (native-inputs
309 `(("perl" ,perl)
310 ("ocamlbuild" ,ocamlbuild)
311 ("ocaml-ounit" ,ocaml-ounit)))
312 (arguments
313 `(#:make-flags
314 (list
315 "all" "opt"
316 (string-append "BINDIR=" (assoc-ref %outputs "out")
317 "/bin"))
318 #:phases
319 (modify-phases %standard-phases
320 (delete 'configure))))
321 (home-page "http://www.mancoosi.org/cudf/")
322 (synopsis "CUDF library (part of the Mancoosi tools)")
323 (description "CUDF (for Common Upgradeability Description Format) is a
324 format for describing upgrade scenarios in package-based Free and Open Source
325 Software distribution.")
326 ;; With static-linking exception
327 (license license:lgpl2.1+)))
328
329 (define-public ocaml-mccs
330 (package
331 (name "ocaml-mccs")
332 (version "1.1+11")
333 (source (origin
334 (method git-fetch)
335 (uri (git-reference
336 (url "https://github.com/AltGr/ocaml-mccs")
337 (commit version)))
338 (file-name (git-file-name name version))
339 (sha256
340 (base32
341 "1gsad5cj03256i36wdjqk5pg51pyd48rpjazf0gfaakrn8lk438g"))))
342 (build-system dune-build-system)
343 (propagated-inputs `(("ocaml-cudf" ,ocaml-cudf)))
344 (home-page "https://www.i3s.unice.fr/~cpjm/misc/")
345 (synopsis "Upgrade path problem solver")
346 (description "Mccs (Multi Criteria CUDF Solver) is a CUDF problem solver.
347 Mccs take as input a CUDF problem and computes the best solution according to
348 a set of criteria. It relies on a Integer Programming solver or a
349 Pseudo Boolean solver to achieve its task. Mccs can use a wide set of
350 underlying solvers like Cplex, Gurobi, Lpsolver, Glpk, CbC, SCIP or WBO.")
351 (license (list
352 license:bsd-3
353 license:gpl3+
354 ;; With static-linking exception
355 license:lgpl2.1+))))
356
357 (define-public ocaml-dose3
358 (package
359 (name "ocaml-dose3")
360 (version "5.0.1")
361 (source (origin
362 (method url-fetch)
363 (uri "https://gforge.inria.fr/frs/download.php/file/36063/dose3-5.0.1.tar.gz")
364 (sha256
365 (base32
366 "00yvyfm4j423zqndvgc1ycnmiffaa2l9ab40cyg23pf51qmzk2jm"))
367 (patches
368 (search-patches
369 "ocaml-dose3-add-unix-dependency.patch"
370 "ocaml-dose3-Fix-for-ocaml-4.06.patch"
371 "ocaml-dose3-dont-make-printconf.patch"
372 "ocaml-dose3-Install-mli-cmx-etc.patch"))))
373 (build-system ocaml-build-system)
374 (arguments
375 `(#:configure-flags
376 (list (string-append "SHELL="
377 (assoc-ref %build-inputs "bash")
378 "/bin/sh"))
379 #:make-flags
380 (list (string-append "LIBDIR="
381 (assoc-ref %outputs "out")
382 "/lib/ocaml/site-lib"))))
383 (propagated-inputs
384 `(("ocaml-graph" ,ocaml-graph)
385 ("ocaml-cudf" ,ocaml-cudf)
386 ("ocaml-extlib" ,ocaml-extlib)
387 ("ocaml-re" ,ocaml-re)))
388 (native-inputs
389 `(("perl" ,perl)
390 ("python" ,python-2) ; for a test script
391 ("python2-pyyaml" ,python2-pyyaml) ; for a test script
392 ("ocaml-extlib" ,ocaml-extlib)
393 ("ocamlbuild" ,ocamlbuild)
394 ("ocaml-cppo" ,ocaml-cppo)))
395 (home-page "http://www.mancoosi.org/software/")
396 (synopsis "Package distribution management framework")
397 (description "Dose3 is a framework made of several OCaml libraries for
398 managing distribution packages and their dependencies. Though not tied to
399 any particular distribution, dose3 constitutes a pool of libraries which
400 enable analyzing packages coming from various distributions. Besides basic
401 functionalities for querying and setting package properties, dose3 also
402 implements algorithms for solving more complex problems such as monitoring
403 package evolutions, correct and complete dependency resolution and
404 repository-wide uninstallability checks.")
405 ;; with static-linking exception
406 (license license:lgpl2.1+)))
407
408 (define-public ocaml-opam-file-format
409 (package
410 (name "ocaml-opam-file-format")
411 (version "2.0.0")
412 (source (origin
413 (method git-fetch)
414 (uri (git-reference
415 (url "https://github.com/ocaml/opam-file-format")
416 (commit version)))
417 (file-name (git-file-name name version))
418 (sha256
419 (base32
420 "0fqb99asnair0043hhc8r158d6krv5nzvymd0xwycr5y72yrp0hv"))))
421 (build-system ocaml-build-system)
422 (arguments
423 `(#:tests? #f; No tests
424 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
425 "/lib/ocaml/site-lib"))
426 #:phases
427 (modify-phases %standard-phases
428 (delete 'configure))))
429 (home-page "https://opam.ocaml.org")
430 (synopsis "Parser and printer for the opam file syntax")
431 (description "This package contains a parser and a pretty-printer for
432 the opam file format.")
433 ;; With static-linking exception
434 (license license:lgpl2.1+)))
435
436 (define-public opam
437 (package
438 (name "opam")
439 (version "2.0.7")
440 (source (origin
441 (method git-fetch)
442 (uri (git-reference
443 (url "https://github.com/ocaml/opam")
444 (commit version)))
445 (file-name (git-file-name name version))
446 (sha256
447 (base32
448 "1p719ccn9wnzk6impsnwr809yh507h8f37dx9nn64b1hsyb5z8ax"))))
449 (build-system ocaml-build-system)
450 (arguments
451 `(#:configure-flags
452 (list (string-append "SHELL="
453 (assoc-ref %build-inputs "bash")
454 "/bin/sh"))
455
456 ;; For some reason, 'ocp-build' needs $TERM to be set.
457 #:make-flags
458 (list "TERM=screen"
459 (string-append "SHELL="
460 (assoc-ref %build-inputs "bash")
461 "/bin/sh"))
462
463 #:test-target "tests"
464
465 #:phases (modify-phases %standard-phases
466 (add-before 'build 'pre-build
467 (lambda* (#:key inputs make-flags #:allow-other-keys)
468 (let ((bash (assoc-ref inputs "bash"))
469 (bwrap (string-append (assoc-ref inputs "bubblewrap")
470 "/bin/bwrap")))
471 (substitute* "src/core/opamSystem.ml"
472 (("\"/bin/sh\"")
473 (string-append "\"" bash "/bin/sh\""))
474 (("getconf")
475 (which "getconf")))
476 ;; Use bwrap from the store directly.
477 (substitute* "src/state/shellscripts/bwrap.sh"
478 (("-v bwrap") (string-append "-v " bwrap))
479 (("exec bwrap") (string-append "exec " bwrap))
480 ;; Mount /gnu and /run/current-system in the
481 ;; isolated environment when building with opam.
482 ;; This is necessary for packages to find external
483 ;; dependencies, such as a C compiler, make, etc...
484 (("^add_sys_mounts /usr")
485 "add_sys_mounts /gnu /run/current-system /usr"))
486 (substitute* "src/client/opamInitDefaults.ml"
487 (("\"bwrap\"") (string-append "\"" bwrap "\"")))
488 ;; Generating the documentation needs write access
489 (for-each
490 (lambda (f) (chmod f #o644))
491 (find-files "doc" "."))
492 #t)))
493 (add-before 'check 'pre-check
494 (lambda _
495 ;; The "repo" test attempts to open some of these files O_WRONLY
496 ;; and fails with a bogus "OpamSystem.File_not_found" otherwise.
497 (for-each
498 (lambda (f) (chmod f #o644))
499 (find-files "tests/packages" "\\.opam$"))
500
501 (substitute* "tests/Makefile"
502 (("/usr/bin/printf")
503 (which "printf"))
504 ;; By default tests run twice: once with a "local" repository
505 ;; and once with a git repository: disable the git tests to
506 ;; avoid the dependency.
507 (("all: local git")
508 "all: local"))
509 #t)))))
510 (native-inputs
511 `(("dune" ,dune)
512 ("ocaml-cppo" ,ocaml-cppo)
513
514 ;; For tests.
515 ("openssl" ,openssl)
516 ("python" ,python-wrapper)
517 ("rsync" ,rsync)
518 ("unzip" ,unzip)
519 ("which" ,which)))
520 (inputs
521 `(("ocaml" ,ocaml)
522 ("ncurses" ,ncurses)
523 ("curl" ,curl)
524 ("bubblewrap" ,bubblewrap)))
525 (propagated-inputs
526 `(("ocaml-cmdliner" ,ocaml-cmdliner)
527 ("ocaml-dose3" ,ocaml-dose3)
528 ("ocaml-mccs" ,ocaml-mccs)
529 ("ocaml-opam-file-format" ,ocaml-opam-file-format)
530 ("ocaml-re" ,ocaml-re)))
531 (home-page "http://opam.ocamlpro.com/")
532 (synopsis "Package manager for OCaml")
533 (description
534 "OPAM is a tool to manage OCaml packages. It supports multiple
535 simultaneous compiler installations, flexible package constraints, and a
536 Git-friendly development workflow.")
537
538 ;; The 'LICENSE' file waives some requirements compared to LGPLv3.
539 (license license:lgpl3)))
540
541 (define-public camlp5
542 (package
543 (name "camlp5")
544 (version "7.13")
545 (source
546 (origin
547 (method git-fetch)
548 (uri (git-reference
549 (url "https://github.com/camlp5/camlp5")
550 (commit (string-append "rel" (string-delete #\. version)))))
551 (file-name (git-file-name name version))
552 (sha256
553 (base32 "1d9spy3f5ahixm8nxxk086kpslzva669a5scn49am0s7vx4i71kp"))))
554 (build-system gnu-build-system)
555 (inputs
556 `(("ocaml" ,ocaml)))
557 (arguments
558 `(#:tests? #f ; XXX TODO figure out how to run the tests
559 #:phases
560 (modify-phases %standard-phases
561 (replace 'configure
562 (lambda* (#:key outputs #:allow-other-keys)
563 (let* ((out (assoc-ref outputs "out"))
564 (mandir (string-append out "/share/man")))
565 ;; Custom configure script doesn't recognize
566 ;; --prefix=<PREFIX> syntax (with equals sign).
567 (invoke "./configure"
568 "--prefix" out
569 "--mandir" mandir))))
570 (add-before 'build 'fix-/bin-references
571 (lambda _
572 (substitute* "config/Makefile"
573 (("/bin/rm") "rm"))
574 #t))
575 (replace 'build
576 (lambda _
577 (invoke "make" "-j" (number->string
578 (parallel-job-count))
579 "world.opt")))
580 ;; Required for findlib to find camlp5's libraries
581 (add-after 'install 'install-meta
582 (lambda* (#:key outputs #:allow-other-keys)
583 (install-file "etc/META" (string-append (assoc-ref outputs "out")
584 "/lib/ocaml/camlp5/"))
585 #t)))))
586 (home-page "https://camlp5.github.io/")
587 (synopsis "Pre-processor Pretty Printer for OCaml")
588 (description
589 "Camlp5 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers
590 tools for syntax (Stream Parsers and Grammars) and the ability to modify the
591 concrete syntax of the language (Quotations, Syntax Extensions).")
592 ;; Most files are distributed under bsd-3, but ocaml_stuff/* is under qpl.
593 (license (list license:bsd-3 license:qpl))))
594
595 (define-public hevea
596 (package
597 (name "hevea")
598 (version "2.34")
599 (source (origin
600 (method url-fetch)
601 (uri (string-append "http://hevea.inria.fr/old/"
602 "hevea-" version ".tar.gz"))
603 (sha256
604 (base32
605 "1pzyszxw90klpcmhjqrjfc8cw6c0gm4w2blim8ydyxb6rq6qml1s"))))
606 (build-system gnu-build-system)
607 (inputs
608 `(("ocaml" ,ocaml)))
609 (native-inputs
610 `(("ocamlbuild" ,ocamlbuild)))
611 (arguments
612 `(#:tests? #f ; no test suite
613 #:make-flags (list (string-append "PREFIX=" %output))
614 #:phases (modify-phases %standard-phases
615 (delete 'configure)
616 (add-before 'build 'patch-/bin/sh
617 (lambda _
618 (substitute* "_tags"
619 (("/bin/sh") (which "sh")))
620 #t)))))
621 (home-page "http://hevea.inria.fr/")
622 (synopsis "LaTeX to HTML translator")
623 (description
624 "HeVeA is a LaTeX to HTML translator that generates modern HTML 5. It is
625 written in Objective Caml.")
626 (license license:qpl)))
627
628 (define-public ocaml-num
629 (package
630 (name "ocaml-num")
631 (version "1.1")
632 (source
633 (origin
634 (method git-fetch)
635 (uri (git-reference
636 (url "https://github.com/ocaml/num")
637 (commit (string-append "v" version))))
638 (file-name (git-file-name name version))
639 (sha256
640 (base32 "0a4mhxgs5hi81d227aygjx35696314swas0vzy3ig809jb7zq4h0"))))
641 (build-system ocaml-build-system)
642 (arguments
643 `(#:phases
644 (modify-phases %standard-phases
645 (delete 'configure)
646 (add-before 'build 'fix-makefile
647 (lambda* (#:key outputs #:allow-other-keys)
648 ;; This package supposes we install to the same directory as
649 ;; the ocaml package.
650 (substitute* "src/META"
651 (("\"\\^\"") (string-append "\"" (assoc-ref outputs "out")
652 "/lib/ocaml/site-lib\"")))
653 (substitute* "src/Makefile"
654 (("\\) \\$\\(STDLIBDIR\\)")
655 (string-append ") " (assoc-ref outputs "out")
656 "/lib/ocaml/site-lib")))
657 #t))
658 (add-after 'install 'fix-stubslib
659 (lambda* (#:key outputs #:allow-other-keys)
660 (format #t "~a~%" (find-files "." ".*.so"))
661 (let ((stubdir (string-append (assoc-ref outputs "out")
662 "/lib/ocaml/site-lib/stublibs")))
663 (delete-file stubdir)
664 (mkdir-p stubdir)
665 (install-file "src/dllnums.so" stubdir))
666 #t)))))
667 (home-page "https://github.com/ocaml/num")
668 (synopsis "Arbitrary-precision integer and rational arithmetic")
669 (description "OCaml-Num contains the legacy Num library for
670 arbitrary-precision integer and rational arithmetic that used to be part of
671 the OCaml core distribution.")
672 (license license:lgpl2.1+))); with linking exception
673
674 (define-public emacs-tuareg
675 (package
676 (name "emacs-tuareg")
677 (version "2.2.0")
678 (source
679 (origin
680 (method git-fetch)
681 (uri (git-reference
682 (url "https://github.com/ocaml/tuareg")
683 (commit version)))
684 (file-name (git-file-name name version))
685 (sha256
686 (base32 "06zxnn85fk5087iq0zxc5l5n9fz8r0367wylmynbfhc9711vccy6"))))
687 (build-system gnu-build-system)
688 (native-inputs `(("emacs" ,emacs-minimal)
689 ("opam" ,opam)))
690 (arguments
691 `(#:phases
692 (modify-phases %standard-phases
693 (add-after 'unpack 'make-git-checkout-writable
694 (lambda _
695 (for-each make-file-writable (find-files "."))
696 #t))
697 (delete 'configure)
698 (add-before 'install 'fix-install-path
699 (lambda* (#:key outputs #:allow-other-keys)
700 (substitute* "Makefile"
701 (("/emacs/site-lisp")
702 (string-append (assoc-ref %outputs "out")
703 "/share/emacs/site-lisp/")))
704 #t))
705 (add-after 'install 'post-install
706 (lambda* (#:key outputs #:allow-other-keys)
707 (symlink "tuareg.el"
708 (string-append (assoc-ref outputs "out")
709 "/share/emacs/site-lisp/"
710 "tuareg-autoloads.el"))
711 #t)))))
712 (home-page "https://github.com/ocaml/tuareg")
713 (synopsis "OCaml programming mode, REPL, debugger for Emacs")
714 (description "Tuareg helps editing OCaml code, to highlight important
715 parts of the code, to run an OCaml REPL, and to run the OCaml debugger within
716 Emacs.")
717 (license license:gpl2+)))
718
719 (define-public ocaml-menhir
720 (package
721 (name "ocaml-menhir")
722 ;; More recent versions can be built after we have dune >= 2.0
723 (version "20190626")
724 (source
725 (origin
726 (method git-fetch)
727 (uri (git-reference
728 (url "https://gitlab.inria.fr/fpottier/menhir.git")
729 (commit version)))
730 (file-name (git-file-name name version))
731 (sha256
732 (base32 "0v8av4pw6rykzb7wx54xhbsx0jhh8xyb4x0k4yrxi0w5ylkck6mb"))))
733 (build-system ocaml-build-system)
734 (inputs
735 `(("ocaml" ,ocaml)))
736 (native-inputs
737 `(("ocamlbuild" ,ocamlbuild)))
738 (arguments
739 `(#:make-flags `("USE_OCAMLFIND=true"
740 ,(string-append "PREFIX=" (assoc-ref %outputs "out")))
741 #:tests? #f ; No check target
742 #:phases
743 (modify-phases %standard-phases
744 (delete 'configure))))
745 (home-page "http://gallium.inria.fr/~fpottier/menhir/")
746 (synopsis "Parser generator")
747 (description "Menhir is a parser generator. It turns high-level grammar
748 specifications, decorated with semantic actions expressed in the OCaml
749 programming language into parsers, again expressed in OCaml. It is based on
750 Knuth’s LR(1) parser construction technique.")
751 ;; The file src/standard.mly and all files listed in src/mnehirLib.mlpack
752 ;; that have an *.ml or *.mli extension are GPL licensed. All other files
753 ;; are QPL licensed.
754 (license (list license:gpl2+ license:qpl))))
755
756 (define-public ocaml-bigarray-compat
757 (package
758 (name "ocaml-bigarray-compat")
759 (version "1.0.0")
760 (source (origin
761 (method git-fetch)
762 (uri (git-reference
763 (url "https://github.com/mirage/bigarray-compat")
764 (commit (string-append "v" version))))
765 (file-name (git-file-name name version))
766 (sha256
767 (base32
768 "06j1dwlpisxshdd0nab4n4x266gg1s1n8na16lpgw3fvcznwnimz"))))
769 (build-system dune-build-system)
770 (arguments
771 `(#:tests? #f)); no tests
772 (home-page "https://github.com/mirage/bigarray-compat")
773 (synopsis "OCaml compatibility library")
774 (description "This package contains a compatibility library for
775 @code{Stdlib.Bigarray} in OCaml.")
776 (license license:isc)))
777
778 (define-public lablgtk
779 (package
780 (name "lablgtk")
781 (version "2.18.10")
782 (source (origin
783 (method git-fetch)
784 (uri (git-reference
785 (url "https://github.com/garrigue/lablgtk")
786 (commit version)))
787 (file-name (git-file-name name version))
788 (sha256
789 (base32
790 "0w8cdfcv2wc19sd3qzj3qq77qc6rbnbynsz02gzbl15kgrvgrfxi"))))
791 (build-system gnu-build-system)
792 (native-inputs
793 `(("ocaml" ,ocaml)
794 ("findlib" ,ocaml-findlib)
795 ("pkg-config" ,pkg-config)))
796 ;; FIXME: Add inputs gtkgl-2.0, libpanelapplet-2.0, gtkspell-2.0,
797 ;; and gtk+-quartz-2.0 once available.
798 (inputs
799 `(("gtk+" ,gtk+-2)
800 ("gtksourceview" ,gtksourceview-2)
801 ("libgnomecanvas" ,libgnomecanvas)
802 ("libgnomeui" ,libgnomeui)
803 ("libglade" ,libglade)
804 ("librsvg" ,librsvg)))
805 (arguments
806 `(#:tests? #f ; no check target
807
808 ;; opt: also install cmxa files
809 #:make-flags (list "all" "opt"
810 (string-append "FINDLIBDIR="
811 (assoc-ref %outputs "out")
812 "/lib/ocaml"))
813 ;; Occasionally we would get "Error: Unbound module GtkThread" when
814 ;; compiling 'gtkThInit.ml', with 'make -j'. So build sequentially.
815 #:parallel-build? #f
816
817 #:phases
818 (modify-phases %standard-phases
819 (add-before 'install 'prepare-install
820 (lambda* (#:key inputs outputs #:allow-other-keys)
821 (let ((out (assoc-ref outputs "out"))
822 (ocaml (assoc-ref inputs "ocaml")))
823 ;; Install into the output and not the ocaml directory.
824 (mkdir-p (string-append out "/lib/ocaml"))
825 (substitute* "config.make"
826 ((ocaml) out))
827 #t))))))
828 (properties `((ocaml4.07-variant . ,(delay ocaml4.07-lablgtk))))
829 (home-page "http://lablgtk.forge.ocamlcore.org/")
830 (synopsis "GTK+ bindings for OCaml")
831 (description
832 "LablGtk is an OCaml interface to GTK+ 1.2 and 2.x. It provides
833 a strongly-typed object-oriented interface that is compatible with the
834 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
835 also provides bindings to
836 gdk-pixbuf, the GLArea widget (in combination with LablGL), gnomecanvas,
837 gnomeui, gtksourceview, gtkspell,
838 libglade (and it an generate OCaml code from .glade files),
839 libpanel, librsvg and quartz.")
840 (license license:lgpl2.1)))
841
842 (define-public ocaml4.07-lablgtk
843 (package
844 (inherit lablgtk)
845 (name "ocaml4.07-lablgtk")
846 (native-inputs
847 `(("ocaml" ,ocaml-4.07)
848 ("findlib" ,ocaml4.07-findlib)
849 ("pkg-config" ,pkg-config)))
850 (properties '())))
851
852 (define-public unison
853 (package
854 (name "unison")
855 (version "2.51.2")
856 (source (origin
857 (method git-fetch)
858 (uri (git-reference
859 (url "https://github.com/bcpierce00/unison")
860 (commit (string-append "v" version))))
861 (file-name (git-file-name name version))
862 (sha256
863 (base32
864 "1bykiyc0dc5pkw8x370qkg2kygq9pq7yqzsgczd3y13b6ivm4sdq"))
865 (patches (search-patches "unison-fix-ocaml-4.08.patch"))))
866 (build-system gnu-build-system)
867 (outputs '("out"
868 "doc")) ; 1.9 MiB of documentation
869 (native-inputs
870 `(("ocaml" ,ocaml-4.09)
871 ;; For documentation
872 ("ghostscript" ,ghostscript)
873 ("texlive" ,texlive-tiny)
874 ("hevea" ,hevea)
875 ("lynx" ,lynx)
876 ("which" ,which)))
877 (arguments
878 `(#:parallel-build? #f
879 #:parallel-tests? #f
880 #:test-target "selftest"
881 #:tests? #f ; Tests require writing to $HOME.
882 ; If some $HOME is provided, they fail with the message
883 ; "Fatal error: Skipping some tests -- remove me!"
884 #:phases
885 (modify-phases %standard-phases
886 (delete 'configure)
887 (add-before 'install 'prepare-install
888 (lambda* (#:key outputs #:allow-other-keys)
889 (let* ((out (assoc-ref outputs "out"))
890 (bin (string-append out "/bin")))
891 (mkdir-p bin)
892 (setenv "HOME" out) ; forces correct INSTALLDIR in Makefile
893 #t)))
894 (add-after 'install 'install-fsmonitor
895 (lambda* (#:key outputs #:allow-other-keys)
896 (let* ((out (assoc-ref outputs "out"))
897 (bin (string-append out "/bin")))
898 ;; 'unison-fsmonitor' is used in "unison -repeat watch" mode.
899 (install-file "src/unison-fsmonitor" bin)
900 #t)))
901 (add-after 'install 'install-doc
902 (lambda* (#:key outputs #:allow-other-keys)
903 (let ((doc (string-append (assoc-ref outputs "doc")
904 "/share/doc/unison")))
905 (mkdir-p doc)
906 ;; Remove an '\n' that prevents the doc to be generated
907 ;; correctly with newer hevea.
908 (substitute* "doc/local.tex"
909 (("----SNIP----.*") "----SNIP----"))
910 ;; This file needs write-permissions, because it's
911 ;; overwritten by 'docs' during documentation generation.
912 (chmod "src/strings.ml" #o600)
913 (invoke "make" "docs"
914 "TEXDIRECTIVES=\\\\draftfalse")
915 (for-each (lambda (f)
916 (install-file f doc))
917 (map (lambda (ext)
918 (string-append "doc/unison-manual." ext))
919 ;; Install only html documentation,
920 ;; since the build is currently
921 ;; non-reproducible with the ps, pdf,
922 ;; and dvi docs.
923 '(;; "ps" "pdf" "dvi"
924 "html")))
925 #t))))))
926 (home-page "https://www.cis.upenn.edu/~bcpierce/unison/")
927 (synopsis "File synchronizer")
928 (description
929 "Unison is a file-synchronization tool. It allows two replicas of
930 a collection of files and directories to be stored on different hosts
931 (or different disks on the same host), modified separately, and then
932 brought up to date by propagating the changes in each replica
933 to the other.")
934 (license license:gpl3+)))
935
936 (define-public ocaml-findlib
937 (package
938 (name "ocaml-findlib")
939 (version "1.8.1")
940 (source (origin
941 (method url-fetch)
942 (uri (string-append "http://download.camlcity.org/download/"
943 "findlib" "-" version ".tar.gz"))
944 (sha256
945 (base32
946 "00s3sfb02pnjmkax25pcnljcnhcggiliccfz69a72ic7gsjwz1cf"))))
947 (build-system gnu-build-system)
948 (native-inputs
949 `(("m4" ,m4)
950 ("ocaml" ,ocaml)))
951 (arguments
952 `(#:tests? #f ; no test suite
953 #:parallel-build? #f
954 #:make-flags (list "all" "opt")
955 #:phases (modify-phases %standard-phases
956 (replace
957 'configure
958 (lambda* (#:key inputs outputs #:allow-other-keys)
959 (let ((out (assoc-ref outputs "out")))
960 (invoke
961 "./configure"
962 "-bindir" (string-append out "/bin")
963 "-config" (string-append out "/etc/ocamfind.conf")
964 "-mandir" (string-append out "/share/man")
965 "-sitelib" (string-append out "/lib/ocaml/site-lib")
966 "-with-toolbox"))))
967 (replace 'install
968 (lambda* (#:key outputs #:allow-other-keys)
969 (let ((out (assoc-ref outputs "out")))
970 (invoke "make" "install"
971 (string-append "OCAML_CORE_STDLIB="
972 out "/lib/ocaml/site-lib"))))))))
973 (home-page "http://projects.camlcity.org/projects/findlib.html")
974 (synopsis "Management tool for OCaml libraries")
975 (description
976 "The \"findlib\" library provides a scheme to manage reusable software
977 components (packages), and includes tools that support this scheme. Packages
978 are collections of OCaml modules for which metainformation can be stored. The
979 packages are kept in the file system hierarchy, but with strict directory
980 structure. The library contains functions to look the directory up that
981 stores a package, to query metainformation about a package, and to retrieve
982 dependency information about multiple packages. There is also a tool that
983 allows the user to enter queries on the command-line. In order to simplify
984 compilation and linkage, there are new frontends of the various OCaml
985 compilers that can directly deal with packages.")
986 (license license:x11)))
987
988 (define-public ocaml4.07-findlib
989 (package
990 (inherit ocaml-findlib)
991 (name "ocaml4.07-findlib")
992 (native-inputs
993 `(("m4" ,m4)
994 ("ocaml" ,ocaml-4.07)))))
995
996 ;; note that some tests may hang for no obvious reason.
997 (define-public ocaml-ounit
998 (package
999 (name "ocaml-ounit")
1000 (version "2.0.8")
1001 (source (origin
1002 (method url-fetch)
1003 (uri (ocaml-forge-uri "ounit" version 1749))
1004 (sha256
1005 (base32
1006 "03ifp9hjcxg4m5j190iy373jcn4039d3vy10kmd8p4lfciwzwc1f"))))
1007 (build-system ocaml-build-system)
1008 (native-inputs
1009 `(("libxml2" ,libxml2) ; for xmllint
1010 ("ocamlbuild" ,ocamlbuild)))
1011 (arguments
1012 `(#:phases
1013 (modify-phases %standard-phases
1014 (delete 'check)))) ; tests are run during build
1015 (home-page "http://ounit.forge.ocamlcore.org")
1016 (synopsis "Unit testing framework for OCaml")
1017 (description "Unit testing framework for OCaml. It is similar to JUnit and
1018 other XUnit testing frameworks.")
1019 (license license:expat)))
1020
1021 (define-public camlzip
1022 (package
1023 (name "camlzip")
1024 (version "1.0.6")
1025 (source (origin
1026 (method url-fetch)
1027 (uri (ocaml-forge-uri name version 1616))
1028 (sha256
1029 (base32
1030 "0m6gyjw46w3qnhxfsyqyag42znl5lwargks7w7rfchr9jzwpff68"))))
1031 (build-system ocaml-build-system)
1032 (inputs
1033 `(("zlib" ,zlib)))
1034 (arguments
1035 `(#:phases
1036 (modify-phases %standard-phases
1037 (delete 'configure)
1038 (add-after 'install 'install-camlzip
1039 (lambda* (#:key outputs #:allow-other-keys)
1040 (let* ((out (assoc-ref outputs "out"))
1041 (dir (string-append out "/lib/ocaml/site-lib/camlzip")))
1042 (mkdir-p dir)
1043 (call-with-output-file (string-append dir "/META")
1044 (lambda (port)
1045 (format port "version=\"1.06\"\n")
1046 (format port "requires=\"unix\"\n")
1047 (format port "archive(byte)=\"zip.cma\"\n")
1048 (format port "archive(native)=\"zip.cmxa\"\n")
1049 (format port "archive(native,plugin)=\"zip.cmxs\"\n")
1050 (format port "directory=\"../zip\"\n")))))))
1051 #:install-target "install-findlib"
1052 #:make-flags
1053 (list "all" "allopt"
1054 (string-append "INSTALLDIR=" (assoc-ref %outputs "out")
1055 "/lib/ocaml"))))
1056 (home-page "https://github.com/xavierleroy/camlzip")
1057 (synopsis "Provides easy access to compressed files")
1058 (description "Provides easy access to compressed files in ZIP, GZIP and
1059 JAR format. It provides functions for reading from and writing to compressed
1060 files in these formats.")
1061 (license license:lgpl2.1+)))
1062
1063 (define-public ocamlmod
1064 (package
1065 (name "ocamlmod")
1066 (version "0.0.9")
1067 (source (origin
1068 (method url-fetch)
1069 (uri (ocaml-forge-uri name version 1702))
1070 (sha256
1071 (base32
1072 "0cgp9qqrq7ayyhddrmqmq1affvfqcn722qiakjq4dkywvp67h4aa"))))
1073 (build-system ocaml-build-system)
1074 (native-inputs
1075 `(("ounit" ,ocaml-ounit)
1076 ("ocamlbuild" ,ocamlbuild)))
1077 (arguments
1078 `(#:phases
1079 (modify-phases %standard-phases
1080 ;; Tests are done during build.
1081 (delete 'check))))
1082 (home-page "https://forge.ocamlcore.org/projects/ocamlmod")
1083 (synopsis "Generate modules from OCaml source files")
1084 (description "Generate modules from OCaml source files.")
1085 (license license:lgpl2.1+))) ; with an exception
1086
1087 (define-public ocaml-zarith
1088 (package
1089 (name "ocaml-zarith")
1090 (version "1.9.1")
1091 (source (origin
1092 (method git-fetch)
1093 (uri (git-reference
1094 (url "https://github.com/ocaml/Zarith")
1095 (commit (string-append "release-" version))))
1096 (file-name (git-file-name name version))
1097 (sha256
1098 (base32
1099 "0hv5ywz1q2cgn8apfz490clwk5hcynr937g2v8i13x2ax4bnv0lz"))))
1100 (build-system ocaml-build-system)
1101 (native-inputs
1102 `(("perl" ,perl)))
1103 (inputs
1104 `(("gmp" ,gmp)))
1105 (arguments
1106 `(#:tests? #f ; no test target
1107 #:phases
1108 (modify-phases %standard-phases
1109 (replace 'configure
1110 (lambda _ (invoke "./configure"))))))
1111 (home-page "https://forge.ocamlcore.org/projects/zarith/")
1112 (synopsis "Implements arbitrary-precision integers")
1113 (description "Implements arithmetic and logical operations over
1114 arbitrary-precision integers. It uses GMP to efficiently implement arithmetic
1115 over big integers. Small integers are represented as Caml unboxed integers,
1116 for speed and space economy.")
1117 (license license:lgpl2.1+))) ; with an exception
1118
1119 (define-public ocaml-frontc
1120 (package
1121 (name "ocaml-frontc")
1122 (version "3.4.2")
1123 (source (origin
1124 (method git-fetch)
1125 (uri (git-reference
1126 (url "https://github.com/BinaryAnalysisPlatform/FrontC")
1127 (commit (string-append
1128 "V_" (string-join (string-split version #\.) "_")))))
1129 (file-name (git-file-name name version))
1130 (sha256
1131 (base32
1132 "0k7jk9hkglnkk27s62xl493jyqc017gyvwqb1lyc0ywbb001s102"))))
1133 (build-system ocaml-build-system)
1134 (arguments
1135 `(#:phases
1136 (modify-phases %standard-phases
1137 (delete 'configure)
1138 (add-after 'install 'install-meta
1139 (lambda* (#:key outputs #:allow-other-keys)
1140 (let ((out (assoc-ref outputs "out")))
1141 (with-output-to-file
1142 (string-append out "/lib/ocaml/frontc/META")
1143 (lambda _
1144 (display
1145 (string-append
1146 "description = \"Parser for the C language\"
1147 version = \"" ,version "\"
1148 requires = \"unix\"
1149 archive(byte) = \"frontc.cma\"
1150 archive(native) = \"frontc.cmxa\""))))
1151 (symlink (string-append out "/lib/ocaml/frontc")
1152 (string-append out "/lib/ocaml/FrontC"))))))
1153 #:make-flags (list (string-append "PREFIX="
1154 (assoc-ref %outputs "out"))
1155 "OCAML_SITE=$(LIB_DIR)/ocaml/")))
1156 (properties `((upstream-name . "FrontC")))
1157 (home-page "https://www.irit.fr/FrontC")
1158 (synopsis "C parser and lexer library")
1159 (description "FrontC is an OCAML library providing a C parser and lexer.
1160 The result is a syntactic tree easy to process with usual OCAML tree management.
1161 It provides support for ANSI C syntax, old-C K&R style syntax and the standard
1162 GNU CC attributes. It provides also a C pretty printer as an example of use.")
1163 (license license:lgpl2.1)))
1164
1165 (define-public ocaml-qcheck
1166 (package
1167 (name "ocaml-qcheck")
1168 (version "0.12")
1169 (source
1170 (origin
1171 (method git-fetch)
1172 (uri (git-reference
1173 (url "https://github.com/c-cube/qcheck")
1174 (commit version)))
1175 (file-name (git-file-name name version))
1176 (sha256
1177 (base32 "1llnfynhlndwyjig7wrayjnds2b3mggp5lw20dwxhn2i2lkkb22m"))))
1178 (build-system dune-build-system)
1179 (arguments
1180 `(#:test-target "."
1181 #:phases
1182 (modify-phases %standard-phases
1183 (add-before 'build 'fix-deprecated
1184 (lambda _
1185 (substitute* "src/core/QCheck.ml"
1186 (("Pervasives.compare") "compare"))
1187 #t)))))
1188 (propagated-inputs
1189 `(("ocaml-alcotest" ,ocaml-alcotest)
1190 ("ocaml-ounit" ,ocaml-ounit)))
1191 (native-inputs
1192 `(("ocamlbuild" ,ocamlbuild)))
1193 (home-page "https://github.com/c-cube/qcheck")
1194 (synopsis "QuickCheck inspired property-based testing for OCaml")
1195 (description "QuickCheck inspired property-based testing for OCaml. This
1196 module checks invariants (properties of some types) over randomly
1197 generated instances of the type. It provides combinators for generating
1198 instances and printing them.")
1199 (license license:lgpl3+)))
1200
1201 (define-public ocaml-qtest
1202 (package
1203 (name "ocaml-qtest")
1204 (version "2.10.1")
1205 (source (origin
1206 (method git-fetch)
1207 (uri (git-reference
1208 (url "https://github.com/vincent-hugot/qtest/")
1209 (commit (string-append "v" version))))
1210 (file-name (git-file-name name version))
1211 (sha256
1212 (base32
1213 "0gddzan4vzs0vklsxhirdjrvx3rp7hhh2yr20vi13nq8rwkn9w29"))))
1214 (build-system dune-build-system)
1215 (arguments
1216 `(#:test-target "tests"))
1217 (propagated-inputs
1218 `(("ounit" ,ocaml-ounit)
1219 ("qcheck" ,ocaml-qcheck)))
1220 (home-page "https://github.com/vincent-hugot/qtest")
1221 (synopsis "Inline (Unit) Tests for OCaml")
1222 (description "Qtest extracts inline unit tests written using a special
1223 syntax in comments. Those tests are then run using the oUnit framework and the
1224 qcheck library. The possibilities range from trivial tests -- extremely simple
1225 to use -- to sophisticated random generation of test cases.")
1226 (license license:lgpl3+)))
1227
1228 (define-public ocaml-stringext
1229 (package
1230 (name "ocaml-stringext")
1231 (version "1.6.0")
1232 (source (origin
1233 (method git-fetch)
1234 (uri (git-reference
1235 (url "https://github.com/rgrinberg/stringext")
1236 (commit version)))
1237 (file-name (git-file-name name version))
1238 (sha256
1239 (base32
1240 "1m09cmn3vrk3gdm60fb730qsygcfyxsyv7gl9xfzck08q1x2x9qx"))))
1241 (build-system dune-build-system)
1242 (arguments
1243 `(#:test-target "."))
1244 (native-inputs
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)))
1255
1256 (define-public dune
1257 (package
1258 (name "dune")
1259 (version "1.11.3")
1260 (source (origin
1261 (method git-fetch)
1262 (uri (git-reference
1263 (url "https://github.com/ocaml/dune")
1264 (commit version)))
1265 (file-name (git-file-name name version))
1266 (sha256
1267 (base32
1268 "0l4x0x2fz135pljv88zj8y6w1ninsqw0gn1mdxzprd6wbxbyn8wr"))))
1269 (build-system ocaml-build-system)
1270 (arguments
1271 `(#:tests? #f; require odoc
1272 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1273 (string-append "LIBDIR=" (assoc-ref %outputs "out")
1274 "/lib/ocaml/site-lib"))
1275 #:phases
1276 (modify-phases %standard-phases
1277 (replace 'configure
1278 (lambda* (#:key outputs #:allow-other-keys)
1279 (invoke "./configure")
1280 #t)))))
1281 (home-page "https://github.com/ocaml/dune")
1282 (synopsis "OCaml build system")
1283 (description "Dune is a build system that was designed to simplify the
1284 release of Jane Street packages. It reads metadata from @file{dune} files
1285 following a very simple s-expression syntax.")
1286 (license license:expat)))
1287
1288 (define-public ocaml4.07-dune
1289 (package-with-ocaml4.07 dune))
1290
1291 (define-public ocaml-csexp
1292 (package
1293 (name "ocaml-csexp")
1294 (version "1.3.2")
1295 (source (origin
1296 (method git-fetch)
1297 (uri (git-reference
1298 (url "https://github.com/ocaml-dune/csexp")
1299 (commit version)))
1300 (file-name (git-file-name name version))
1301 (sha256
1302 (base32
1303 "190zppgvdjgghmrnx67ayzzk86qdjy3yn5fcrcw08wsh93384pl0"))))
1304 (build-system dune-build-system)
1305 (arguments
1306 `(#:tests? #f; FIXME: needs ppx_expect, but which version?
1307 #:phases
1308 (modify-phases %standard-phases
1309 (add-before 'build 'chmod
1310 (lambda _
1311 (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*"))
1312 #t)))))
1313 (propagated-inputs
1314 `(("dune" ,dune)
1315 ("ocaml-result" ,ocaml-result)))
1316 (home-page "https://github.com/ocaml-dune/csexp")
1317 (synopsis "Parsing and printing of S-expressions in Canonical form")
1318 (description "This library provides minimal support for Canonical
1319 S-expressions. Canonical S-expressions are a binary encoding of
1320 S-expressions that is super simple and well suited for communication
1321 between programs.
1322
1323 This library only provides a few helpers for simple applications. If
1324 you need more advanced support, such as parsing from more fancy input
1325 sources, you should consider copying the code of this library given
1326 how simple parsing S-expressions in canonical form is.
1327
1328 To avoid a dependency on a particular S-expression library, the only
1329 module of this library is parameterised by the type of S-expressions.")
1330 (license license:expat)))
1331
1332 (define-public ocaml-migrate-parsetree
1333 (package
1334 (name "ocaml-migrate-parsetree")
1335 (version "1.7.3")
1336 (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
1337 (source
1338 (origin
1339 (method git-fetch)
1340 (uri (git-reference
1341 (url (string-append home-page ".git"))
1342 (commit (string-append "v" version))))
1343 (file-name (git-file-name name version))
1344 (sha256
1345 (base32
1346 "0336vz0galjnsazbmkxjwdv1qvdqsx2rgrvp778xgq2fzasz45cx"))))
1347 (build-system dune-build-system)
1348 (arguments
1349 `(#:tests? #f))
1350 (propagated-inputs
1351 `(("ocaml-ppx-derivers" ,ocaml-ppx-derivers)
1352 ("ocamlbuild" ,ocamlbuild)
1353 ("ocaml-result" ,ocaml-result)))
1354 (properties `((upstream-name . "ocaml-migrate-parsetree")))
1355 (synopsis "OCaml parsetree converter")
1356 (description "This library converts between parsetrees of different OCaml
1357 versions. For each version, there is a snapshot of the parsetree and conversion
1358 functions to the next and/or previous version.")
1359 (license license:lgpl2.1+)))
1360
1361 (define-public ocaml-ppx-tools-versioned
1362 (package
1363 (name "ocaml-ppx-tools-versioned")
1364 (version "5.4.0")
1365 (source (origin
1366 (method git-fetch)
1367 (uri (git-reference
1368 (url "https://github.com/ocaml-ppx/ppx_tools_versioned")
1369 (commit version)))
1370 (file-name (git-file-name name version))
1371 (sha256
1372 (base32
1373 "07lnj4yzwvwyh5fhpp1dxrys4ddih15jhgqjn59pmgxinbnddi66"))))
1374 (build-system dune-build-system)
1375 (arguments
1376 `(#:test-target "."))
1377 (propagated-inputs
1378 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)))
1379 (properties `((upstream-name . "ppx_tools_versioned")))
1380 (home-page "https://github.com/let-def/ppx_tools_versioned")
1381 (synopsis "Variant of ppx_tools")
1382 (description "This package is a variant of ppx_tools based on
1383 ocaml-migrate-parsetree")
1384 (license license:expat)))
1385
1386 (define-public ocaml-bitstring
1387 (package
1388 (name "ocaml-bitstring")
1389 (version "3.1.0")
1390 (source (origin
1391 (method url-fetch)
1392 (uri (string-append "https://bitbucket.org/thanatonauts/bitstring/"
1393 "get/v" version ".tar.gz"))
1394 (file-name (string-append name "-" version ".tar.gz"))
1395 (sha256
1396 (base32
1397 "15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps"))))
1398 (build-system dune-build-system)
1399 (native-inputs
1400 `(("time" ,time)
1401 ("autoconf" ,autoconf)
1402 ("automake" ,automake)))
1403 (propagated-inputs
1404 `(("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
1405 (arguments
1406 `(#:package "bitstring"
1407 #:tests? #f)); Tests fail to build
1408 (home-page "https://github.com/xguerin/bitstring")
1409 (synopsis "Bitstrings and bitstring matching for OCaml")
1410 (description "Adds Erlang-style bitstrings and matching over bitstrings as
1411 a syntax extension and library for OCaml. You can use this module to both parse
1412 and generate binary formats, files and protocols. Bitstring handling is added
1413 as primitives to the language, making it exceptionally simple to use and very
1414 powerful.")
1415 (license license:isc)))
1416
1417 (define-public ocaml-result
1418 (package
1419 (name "ocaml-result")
1420 (version "1.5")
1421 (source (origin
1422 (method git-fetch)
1423 (uri (git-reference
1424 (url "https://github.com/janestreet/result")
1425 (commit version)))
1426 (file-name (git-file-name name version))
1427 (sha256
1428 (base32
1429 "166laj8qk7466sdl037c6cjs4ac571hglw4l5qpyll6df07h6a7q"))))
1430 (build-system dune-build-system)
1431 (arguments
1432 `(#:test-target "."))
1433 (home-page "https://github.com/janestreet/result")
1434 (synopsis "Compatibility Result module")
1435 (description "Uses the new result type defined in OCaml >= 4.03 while
1436 staying compatible with older version of OCaml should use the Result module
1437 defined in this library.")
1438 (license license:bsd-3)))
1439
1440 (define-public ocaml-topkg
1441 (package
1442 (name "ocaml-topkg")
1443 (version "1.0.0")
1444 (source (origin
1445 (method url-fetch)
1446 (uri (string-append "http://erratique.ch/software/topkg/releases/"
1447 "topkg-" version ".tbz"))
1448 (sha256
1449 (base32
1450 "1df61vw6v5bg2mys045682ggv058yqkqb67w7r2gz85crs04d5fw"))))
1451 (build-system ocaml-build-system)
1452 (native-inputs
1453 `(("opam" ,opam)
1454 ("ocamlbuild" ,ocamlbuild)))
1455 (propagated-inputs
1456 `(("result" ,ocaml-result)))
1457 (arguments
1458 `(#:tests? #f
1459 #:build-flags '("build")
1460 #:phases
1461 (modify-phases %standard-phases
1462 (delete 'configure))))
1463 (home-page "http://erratique.ch/software/topkg")
1464 (synopsis "Transitory OCaml software packager")
1465 (description "Topkg is a packager for distributing OCaml software. It
1466 provides an API to describe the files a package installs in a given build
1467 configuration and to specify information about the package's distribution,
1468 creation and publication procedures.")
1469 (license license:isc)))
1470
1471 (define-public ocaml-rresult
1472 (package
1473 (name "ocaml-rresult")
1474 (version "0.5.0")
1475 (source (origin
1476 (method url-fetch)
1477 (uri (string-append "http://erratique.ch/software/rresult/releases/"
1478 "rresult-" version ".tbz"))
1479 (sha256
1480 (base32
1481 "1xxycxhdhaq8p9vhwi93s2mlxjwgm44fcxybx5vghzgbankz9yhm"))))
1482 (build-system ocaml-build-system)
1483 (native-inputs
1484 `(("opam" ,opam)
1485 ("ocamlbuild" ,ocamlbuild)))
1486 (propagated-inputs
1487 `(("topkg" ,ocaml-topkg)))
1488 (arguments
1489 `(#:tests? #f
1490 #:build-flags '("build")
1491 #:phases
1492 (modify-phases %standard-phases
1493 (delete 'configure))))
1494 (home-page "http://erratique.ch/software/rresult")
1495 (synopsis "Result value combinators for OCaml")
1496 (description "Handle computation results and errors in an explicit and
1497 declarative manner, without resorting to exceptions. It defines combinators
1498 to operate on the result type available from OCaml 4.03 in the standard
1499 library.")
1500 (license license:isc)))
1501
1502 (define-public ocaml4.07-sqlite3
1503 (package
1504 (name "ocaml4.07-sqlite3")
1505 (version "4.4.1")
1506 (source
1507 (origin
1508 (method git-fetch)
1509 (uri (git-reference
1510 (url "https://github.com/mmottl/sqlite3-ocaml")
1511 (commit version)))
1512 (file-name (git-file-name name version))
1513 (sha256
1514 (base32
1515 "1536agm5fgcqysszhpd3kmw7lkc5n5ni7gmlyglrbvmnmrwf3av2"))))
1516 (build-system dune-build-system)
1517 (arguments
1518 `(#:ocaml ,ocaml-4.07
1519 #:findlib ,ocaml4.07-findlib
1520 #:dune ,ocaml4.07-dune))
1521 (native-inputs
1522 `(("ocaml-base" ,ocaml4.07-base)
1523 ("ocaml-stdio" ,ocaml4.07-stdio)
1524 ("pkg-config" ,pkg-config)))
1525 (inputs
1526 `(("sqlite" ,sqlite)))
1527 (home-page "https://mmottl.github.io/sqlite3-ocaml")
1528 (synopsis "SQLite3 Bindings for OCaml")
1529 (description
1530 "SQLite3-OCaml is an OCaml library with bindings to the SQLite3 client
1531 API. Sqlite3 is a self-contained, serverless, zero-configuration,
1532 transactional SQL database engine with outstanding performance for many use
1533 cases. These bindings are written in a way that enables a friendly
1534 coexistence with the old (version 2) SQLite and its OCaml wrapper
1535 @code{ocaml-sqlite}.")
1536 (license license:expat)))
1537
1538 (define-public ocaml-csv
1539 (package
1540 (name "ocaml-csv")
1541 (version "2.3")
1542 (source
1543 (origin
1544 (method git-fetch)
1545 (uri (git-reference
1546 (url "https://github.com/Chris00/ocaml-csv")
1547 (commit version)))
1548 (file-name (git-file-name name version))
1549 (sha256
1550 (base32
1551 "19k48517s8y1zb91a1312a0n94cbh5i5dixndcrqjmf87kkz61zx"))))
1552 (build-system dune-build-system)
1553 (arguments
1554 `(#:package "csv"
1555 #:test-target "."))
1556 (home-page "https://github.com/Chris00/ocaml-csv")
1557 (synopsis "Pure OCaml functions to read and write CSV")
1558 (description
1559 "@dfn{Comma separated values} (CSV) is a simple tabular format supported
1560 by all major spreadsheets. This library implements pure OCaml functions to
1561 read and write files in this format as well as some convenience functions to
1562 manipulate such data.")
1563 ;; This is LGPLv2.1 with an exception that allows packages statically-linked
1564 ;; against the library to be released under any terms.
1565 (license license:lgpl2.1)))
1566
1567 (define-public ocaml-mtime
1568 (package
1569 (name "ocaml-mtime")
1570 (version "1.1.0")
1571 (source (origin
1572 (method url-fetch)
1573 (uri (string-append "http://erratique.ch/software/mtime/releases/"
1574 "mtime-" version ".tbz"))
1575 (sha256
1576 (base32
1577 "1qb4ljwirrc3g8brh97s76rjky2cpmy7zm87y7iqd6pxix52ydk3"))))
1578 (build-system ocaml-build-system)
1579 (native-inputs
1580 `(("ocamlbuild" ,ocamlbuild)
1581 ("opam" ,opam)))
1582 (propagated-inputs
1583 `(("topkg" ,ocaml-topkg)))
1584 (arguments
1585 `(#:tests? #f
1586 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1587 #:phases
1588 (modify-phases %standard-phases
1589 (delete 'configure))))
1590 (home-page "http://erratique.ch/software/mtime")
1591 (synopsis "Monotonic wall-clock time for OCaml")
1592 (description "Access monotonic wall-clock time. It measures time
1593 spans without being subject to operating system calendar time adjustments.")
1594 (license license:isc)))
1595
1596 (define-public ocaml-cmdliner
1597 (package
1598 (name "ocaml-cmdliner")
1599 (version "1.0.3")
1600 (source (origin
1601 (method url-fetch)
1602 (uri (string-append "http://erratique.ch/software/cmdliner/releases/"
1603 "cmdliner-" version ".tbz"))
1604 (sha256
1605 (base32
1606 "0g3w4hvc1cx9x2yp5aqn6m2rl8lf9x1dn754hfq8m1sc1102lxna"))))
1607 (build-system ocaml-build-system)
1608 (inputs
1609 `(("ocaml-result" ,ocaml-result)))
1610 (native-inputs
1611 `(("ocamlbuild" ,ocamlbuild)))
1612 (arguments
1613 `(#:tests? #f
1614 #:make-flags (list (string-append "LIBDIR=" (assoc-ref %outputs "out")
1615 "/lib/ocaml/site-lib/cmdliner"))
1616 #:phases
1617 (modify-phases %standard-phases
1618 (delete 'configure)
1619 (add-before 'build 'fix-source-file-order
1620 (lambda _
1621 (substitute* "build.ml"
1622 (("Sys.readdir dir")
1623 "let a = Sys.readdir dir in Array.sort String.compare a; a"))
1624 #t)))))
1625 (home-page "http://erratique.ch/software/cmdliner")
1626 (synopsis "Declarative definition of command line interfaces for OCaml")
1627 (description "Cmdliner is a module for the declarative definition of command
1628 line interfaces. It provides a simple and compositional mechanism to convert
1629 command line arguments to OCaml values and pass them to your functions. The
1630 module automatically handles syntax errors, help messages and UNIX man page
1631 generation. It supports programs with single or multiple commands and respects
1632 most of the POSIX and GNU conventions.")
1633 (license license:bsd-3)))
1634
1635 (define-public ocaml-fmt
1636 (package
1637 (name "ocaml-fmt")
1638 (version "0.8.9")
1639 (source
1640 (origin
1641 (method url-fetch)
1642 (uri (string-append "http://erratique.ch/software/fmt/releases/fmt-"
1643 version ".tbz"))
1644 (sha256 (base32
1645 "0gkkkj4x678vxdda4xaw2dd44qjacavsvn5nx8gydfwah6pjbkxk"))))
1646 (build-system ocaml-build-system)
1647 (native-inputs
1648 `(("ocamlbuild" ,ocamlbuild)
1649 ("opam" ,opam)
1650 ("topkg" ,ocaml-topkg)))
1651 (propagated-inputs
1652 `(("cmdliner" ,ocaml-cmdliner)
1653 ("ocaml-stdlib-shims" ,ocaml-stdlib-shims)
1654 ("ocaml-uchar" ,ocaml-uchar)))
1655 (arguments `(#:tests? #f
1656 #:build-flags (list "build" "--with-base-unix" "true"
1657 "--with-cmdliner" "true")
1658 #:phases
1659 (modify-phases %standard-phases
1660 (delete 'configure))))
1661 (home-page "http://erratique.ch/software/fmt")
1662 (synopsis "OCaml Format pretty-printer combinators")
1663 (description "Fmt exposes combinators to devise Format pretty-printing
1664 functions.")
1665 (license license:isc)))
1666
1667 (define-public ocaml-astring
1668 (package
1669 (name "ocaml-astring")
1670 (version "0.8.3")
1671 (source
1672 (origin
1673 (method url-fetch)
1674 (uri (string-append "http://erratique.ch/software/astring/releases/astring-"
1675 version ".tbz"))
1676 (sha256 (base32
1677 "0ixjwc3plrljvj24za3l9gy0w30lsbggp8yh02lwrzw61ls4cri0"))))
1678 (build-system ocaml-build-system)
1679 (native-inputs
1680 `(("ocamlbuild" ,ocamlbuild)
1681 ("opam" ,opam)
1682 ("topkg" ,ocaml-topkg)))
1683 (arguments
1684 `(#:tests? #f
1685 #:build-flags (list "build")
1686 #:phases
1687 (modify-phases %standard-phases
1688 (delete 'configure))))
1689 (home-page "http://erratique.ch/software/astring")
1690 (synopsis "Alternative String module for OCaml")
1691 (description "Astring exposes an alternative String module for OCaml. This
1692 module balances minimality and expressiveness for basic, index-free, string
1693 processing and provides types and functions for substrings, string sets and
1694 string maps. The String module exposed by Astring has exception safe functions,
1695 removes deprecated and rarely used functions, alters some signatures and names,
1696 adds a few missing functions and fully exploits OCaml's newfound string
1697 immutability.")
1698 (license license:isc)))
1699
1700 (define-public ocaml-alcotest
1701 (package
1702 (name "ocaml-alcotest")
1703 (version "1.0.0")
1704 (source (origin
1705 (method url-fetch)
1706 (uri (string-append "https://github.com/mirage/alcotest/releases/"
1707 "download/" version "/alcotest-" version ".tbz"))
1708 (sha256
1709 (base32
1710 "1a43ilhwnj58pq3bi78ni46l9wh6klmmgfc93i94mvyx48bzzayx"))))
1711 (build-system dune-build-system)
1712 (arguments
1713 `(#:package "alcotest"
1714 #:test-target "."))
1715 (native-inputs
1716 `(("ocamlbuild" ,ocamlbuild)))
1717 (propagated-inputs
1718 `(("ocaml-astring" ,ocaml-astring)
1719 ("ocaml-cmdliner" ,ocaml-cmdliner)
1720 ("ocaml-fmt" ,ocaml-fmt)
1721 ("ocaml-re" ,ocaml-re)
1722 ("ocaml-stdlib-shims" ,ocaml-stdlib-shims)
1723 ("ocaml-uuidm" ,ocaml-uuidm)
1724 ("ocaml-uutf" ,ocaml-uutf)))
1725 (home-page "https://github.com/mirage/alcotest")
1726 (synopsis "Lightweight OCaml test framework")
1727 (description "Alcotest exposes simple interface to perform unit tests. It
1728 exposes a simple TESTABLE module type, a check function to assert test
1729 predicates and a run function to perform a list of unit -> unit test callbacks.
1730 Alcotest provides a quiet and colorful output where only faulty runs are fully
1731 displayed at the end of the run (with the full logs ready to inspect), with a
1732 simple (yet expressive) query language to select the tests to run.")
1733 (license license:isc)))
1734
1735 (define-public ocaml4.07-ppx-tools
1736 (package
1737 (name "ocaml4.07-ppx-tools")
1738 (version "5.1+4.06.0")
1739 (source
1740 (origin
1741 (method git-fetch)
1742 (uri (git-reference
1743 (url "https://github.com/alainfrisch/ppx_tools")
1744 (commit version)))
1745 (file-name (git-file-name name version))
1746 (sha256 (base32
1747 "1ww4cspdpgjjsgiv71s0im5yjkr3544x96wsq1vpdacq7dr7zwiw"))))
1748 (build-system ocaml-build-system)
1749 (arguments
1750 `(#:phases (modify-phases %standard-phases (delete 'configure))
1751 #:tests? #f
1752 #:ocaml ,ocaml-4.07
1753 #:findlib ,ocaml4.07-findlib))
1754 (properties `((upstream-name . "ppx_tools")))
1755 (home-page "https://github.com/alainfrisch/ppx_tools")
1756 (synopsis "Tools for authors of ppx rewriters and other syntactic tools")
1757 (description "Tools for authors of ppx rewriters and other syntactic tools.")
1758 (license license:expat)))
1759
1760 (define-public ocaml-react
1761 (package
1762 (name "ocaml-react")
1763 (version "1.2.1")
1764 (source
1765 (origin
1766 (method url-fetch)
1767 (uri (string-append "http://erratique.ch/software/react/releases/react-"
1768 version ".tbz"))
1769 (sha256 (base32
1770 "1aj8w79gdd9xnrbz7s5p8glcb4pmimi8jp9f439dqnf6ih3mqb3v"))))
1771 (build-system ocaml-build-system)
1772 (native-inputs
1773 `(("ocamlbuild" ,ocamlbuild)
1774 ("opam" ,opam)
1775 ("ocaml-topkg" ,ocaml-topkg)))
1776 (arguments
1777 `(#:tests? #f
1778 #:build-flags (list "build")
1779 #:phases
1780 (modify-phases %standard-phases
1781 (delete 'configure))))
1782 (home-page "http://erratique.ch/software/react")
1783 (synopsis "Declarative events and signals for OCaml")
1784 (description "React is an OCaml module for functional reactive programming
1785 (FRP). It provides support to program with time varying values: declarative
1786 events and signals. React doesn't define any primitive event or signal, it
1787 lets the client choose the concrete timeline.")
1788 (license license:bsd-3)))
1789
1790 (define-public ocaml-ssl
1791 (package
1792 (name "ocaml-ssl")
1793 (version "0.5.9")
1794 (source
1795 (origin
1796 (method git-fetch)
1797 (uri (git-reference
1798 (url "https://github.com/savonet/ocaml-ssl")
1799 (commit version)))
1800 (file-name (git-file-name name version))
1801 (sha256 (base32
1802 "04h02rvzrwp886n5hsx84rnc9b150iggy38g5v1x1rwz3pkdnmf0"))))
1803 (build-system dune-build-system)
1804 (arguments
1805 `(#:test-target "."))
1806 (native-inputs
1807 `(("autoconf" ,autoconf)
1808 ("automake" ,automake)
1809 ("which" ,which)))
1810 (propagated-inputs `(("openssl" ,openssl)))
1811 (home-page "https://github.com/savonet/ocaml-ssl/")
1812 (synopsis "OCaml bindings for OpenSSL")
1813 (description
1814 "OCaml-SSL is a set of bindings for OpenSSL, a library for communicating
1815 through Transport Layer Security (@dfn{TLS}) encrypted connections.")
1816 (license license:lgpl2.1)))
1817
1818 (define-public ocaml-mmap
1819 (package
1820 (name "ocaml-mmap")
1821 (version "1.1.0")
1822 (source (origin
1823 (method git-fetch)
1824 (uri (git-reference
1825 (url "https://github.com/mirage/mmap")
1826 (commit (string-append "v" version))))
1827 (file-name (git-file-name name version))
1828 (sha256
1829 (base32
1830 "1jaismy5d1bhbbanysmr2k79px0yv6ya265dri3949nha1l23i60"))))
1831 (build-system dune-build-system)
1832 (home-page "https://github.com/mirage/mmap")
1833 (synopsis "File mapping for OCaml")
1834 (description "This project provides a @command{Mmap.map_file} function
1835 for mapping files in memory. This function is the same as the
1836 @command{Unix.map_file} function added in OCaml >= 4.06.")
1837 (license (list license:qpl license:lgpl2.0))))
1838
1839 (define-public ocaml-lwt
1840 (package
1841 (name "ocaml-lwt")
1842 (version "5.1.1")
1843 (source
1844 (origin
1845 (method git-fetch)
1846 (uri (git-reference
1847 (url "https://github.com/ocsigen/lwt")
1848 (commit version)))
1849 (file-name (git-file-name name version))
1850 (sha256 (base32
1851 "1nl7rdnwfdhwcsm5zpay1nr9y5cbapd9x1qzily7zk9ab4v52m8g"))))
1852 (build-system dune-build-system)
1853 (arguments
1854 `(#:package "lwt"))
1855 (native-inputs
1856 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
1857 ("ocaml-cppo" ,ocaml-cppo)
1858 ("pkg-config" ,pkg-config)))
1859 (inputs
1860 `(("libev" ,libev)
1861 ("glib" ,glib)))
1862 (propagated-inputs
1863 `(("ocaml-mmap" ,ocaml-mmap)
1864 ("ocaml-ocplib-endian" ,ocaml-ocplib-endian)
1865 ("ocaml-result" ,ocaml-result)
1866 ("ocaml-seq" ,ocaml-seq)))
1867 (home-page "https://github.com/ocsigen/lwt")
1868 (synopsis "Cooperative threads and I/O in monadic style")
1869 (description "Lwt provides typed, composable cooperative threads. These
1870 make it easy to run normally-blocking I/O operations concurrently in a single
1871 process. Also, in many cases, Lwt threads can interact without the need for
1872 locks or other synchronization primitives.")
1873 (license license:lgpl2.1)))
1874
1875 (define-public ocaml-lwt-react
1876 (package
1877 (inherit ocaml-lwt)
1878 (name "ocaml-lwt-react")
1879 (version "1.1.3")
1880 (source (origin
1881 (method git-fetch)
1882 (uri (git-reference
1883 (url "https://github.com/ocsigen/lwt")
1884 ;; Version from opam
1885 (commit "4.3.0")))
1886 (file-name (git-file-name name version))
1887 (sha256
1888 (base32
1889 "0f7036srqz7zmnz0n164734smgkrqz78r1i35cg30x31kkr3pnn4"))))
1890 (arguments
1891 `(#:package "lwt_react"))
1892 (properties `((upstream-name . "lwt_react")))
1893 (propagated-inputs
1894 `(("ocaml-lwt" ,ocaml-lwt)
1895 ("ocaml-react" ,ocaml-react)))))
1896
1897 (define-public ocaml-lwt-log
1898 (package
1899 (name "ocaml-lwt-log")
1900 (version "1.1.1")
1901 (source (origin
1902 (method git-fetch)
1903 (uri (git-reference
1904 (url "https://github.com/aantron/lwt_log")
1905 (commit version)))
1906 (file-name (git-file-name name version))
1907 (sha256
1908 (base32
1909 "1n12i1rmn9cjn6p8yr6qn5dwbrwvym7ckr7bla04a1xnq8qlcyj7"))))
1910 (build-system dune-build-system)
1911 (arguments
1912 `(#:tests? #f)); require lwt_ppx
1913 (propagated-inputs
1914 `(("lwt" ,ocaml-lwt)))
1915 (properties `((upstream-name . "lwt_log")))
1916 (home-page "https://github.com/aantron/lwt_log")
1917 (synopsis "Logging library")
1918 (description "This package provides a deprecated logging component for
1919 ocaml lwt.")
1920 (license license:lgpl2.1)))
1921
1922 (define-public ocaml-logs
1923 (package
1924 (name "ocaml-logs")
1925 (version "0.7.0")
1926 (source (origin
1927 (method url-fetch)
1928 (uri (string-append "http://erratique.ch/software/logs/releases/"
1929 "logs-" version ".tbz"))
1930 (sha256
1931 (base32
1932 "1jnmd675wmsmdwyb5mx5b0ac66g4c6gpv5s4mrx2j6pb0wla1x46"))))
1933 (build-system ocaml-build-system)
1934 (arguments
1935 `(#:tests? #f
1936 #:build-flags (list "build" "--with-js_of_ocaml" "false")
1937 #:phases
1938 (modify-phases %standard-phases
1939 (delete 'configure))))
1940 (native-inputs
1941 `(("ocamlbuild" ,ocamlbuild)
1942 ("opam" ,opam)))
1943 (propagated-inputs
1944 `(("fmt" ,ocaml-fmt)
1945 ("lwt" ,ocaml-lwt)
1946 ("mtime" ,ocaml-mtime)
1947 ("result" ,ocaml-result)
1948 ("cmdliner" ,ocaml-cmdliner)
1949 ("topkg" ,ocaml-topkg)))
1950 (home-page "http://erratique.ch/software/logs")
1951 (synopsis "Logging infrastructure for OCaml")
1952 (description "Logs provides a logging infrastructure for OCaml. Logging is
1953 performed on sources whose reporting level can be set independently. Log
1954 message report is decoupled from logging and is handled by a reporter.")
1955 (license license:isc)))
1956
1957 (define-public ocaml-fpath
1958 (package
1959 (name "ocaml-fpath")
1960 (version "0.7.2")
1961 (source (origin
1962 (method url-fetch)
1963 (uri (string-append "http://erratique.ch/software/fpath/releases/"
1964 "fpath-" version ".tbz"))
1965 (sha256
1966 (base32
1967 "1hr05d8bpqmqcfdavn4rjk9rxr7v2zl84866f5knjifrm60sxqic"))))
1968 (build-system ocaml-build-system)
1969 (arguments
1970 `(#:tests? #f
1971 #:build-flags (list "build")
1972 #:phases
1973 (modify-phases %standard-phases
1974 (delete 'configure))))
1975 (native-inputs
1976 `(("ocamlbuild" ,ocamlbuild)
1977 ("opam" ,opam)))
1978 (propagated-inputs
1979 `(("topkg" ,ocaml-topkg)
1980 ("astring" ,ocaml-astring)))
1981 (home-page "http://erratique.ch/software/fpath")
1982 (synopsis "File system paths for OCaml")
1983 (description "Fpath is an OCaml module for handling file system paths with
1984 POSIX or Windows conventions. Fpath processes paths without accessing the
1985 file system and is independent from any system library.")
1986 (license license:isc)))
1987
1988 (define-public ocaml-bos
1989 (package
1990 (name "ocaml-bos")
1991 (version "0.2.0")
1992 (source (origin
1993 (method url-fetch)
1994 (uri (string-append "http://erratique.ch/software/bos/releases/"
1995 "bos-" version ".tbz"))
1996 (sha256
1997 (base32
1998 "1s10iqx8rgnxr5n93lf4blwirjf8nlm272yg5sipr7lsr35v49wc"))))
1999 (build-system ocaml-build-system)
2000 (arguments
2001 `(#:tests? #f
2002 #:build-flags (list "build")
2003 #:phases
2004 (modify-phases %standard-phases
2005 (delete 'configure))))
2006 (native-inputs
2007 `(("ocamlbuild" ,ocamlbuild)
2008 ("opam" ,opam)))
2009 (propagated-inputs
2010 `(("topkg" ,ocaml-topkg)
2011 ("astring" ,ocaml-astring)
2012 ("fmt" ,ocaml-fmt)
2013 ("fpath" ,ocaml-fpath)
2014 ("logs" ,ocaml-logs)
2015 ("rresult" ,ocaml-rresult)))
2016 (home-page "http://erratique.ch/software/bos")
2017 (synopsis "Basic OS interaction for OCaml")
2018 (description "Bos provides support for basic and robust interaction with
2019 the operating system in OCaml. It has functions to access the process
2020 environment, parse command line arguments, interact with the file system and
2021 run command line programs.")
2022 (license license:isc)))
2023
2024 (define-public ocaml-xmlm
2025 (package
2026 (name "ocaml-xmlm")
2027 (version "1.3.0")
2028 (source (origin
2029 (method url-fetch)
2030 (uri (string-append "http://erratique.ch/software/xmlm/releases/"
2031 "xmlm-" version ".tbz"))
2032 (sha256
2033 (base32
2034 "1rrdxg5kh9zaqmgapy9bhdqyxbbvxxib3bdfg1vhw4rrkp1z0x8n"))))
2035 (build-system ocaml-build-system)
2036 (arguments
2037 `(#:tests? #f
2038 #:build-flags (list "build")
2039 #:phases
2040 (modify-phases %standard-phases
2041 (delete 'configure))))
2042 (native-inputs
2043 `(("ocamlbuild" ,ocamlbuild)
2044 ("ocaml-topkg" ,ocaml-topkg)
2045 ("opam" ,opam)))
2046 (home-page "http://erratique.ch/software/xmlm")
2047 (synopsis "Streaming XML codec for OCaml")
2048 (description "Xmlm is a streaming codec to decode and encode the XML data
2049 format. It can process XML documents without a complete in-memory
2050 representation of the data.")
2051 (license license:isc)))
2052
2053 (define-public ocaml4.07-gen
2054 (package
2055 (name "ocaml4.07-gen")
2056 (version "0.5.2")
2057 (source (origin
2058 (method git-fetch)
2059 (uri (git-reference
2060 (url "https://github.com/c-cube/gen")
2061 (commit version)))
2062 (file-name (git-file-name name version))
2063 (sha256
2064 (base32
2065 "1h9g508rnj2j8va5nvhamzscp954vrkh0hdf4pn3d10pcfyslfg2"))))
2066 (build-system dune-build-system)
2067 (arguments
2068 `(#:tests? #f; no tests
2069 #:package "gen"
2070 #:ocaml ,ocaml-4.07
2071 #:findlib ,ocaml4.07-findlib))
2072 (propagated-inputs
2073 `(("ocaml-odoc" ,ocaml4.07-odoc)))
2074 (native-inputs
2075 `(("ocaml-qtest" ,(package-with-ocaml4.07 ocaml-qtest))
2076 ("ocaml-qcheck" ,(package-with-ocaml4.07 ocaml-qcheck))))
2077 (home-page "https://github.com/c-cube/gen/")
2078 (synopsis "Iterators for OCaml, both restartable and consumable")
2079 (description "Gen implements iterators of OCaml, that are both restartable
2080 and consumable.")
2081 (license license:bsd-2)))
2082
2083 (define-public ocaml4.07-sedlex
2084 (package
2085 (name "ocaml4.07-sedlex")
2086 (version "2.1")
2087 (source (origin
2088 (method git-fetch)
2089 (uri (git-reference
2090 (url "https://github.com/ocaml-community/sedlex")
2091 (commit (string-append "v" version))))
2092 (file-name (git-file-name name version))
2093 (sha256
2094 (base32
2095 "05f6qa8x3vhpdz1fcnpqk37fpnyyq13icqsk2gww5idjnh6kng26"))))
2096 (build-system dune-build-system)
2097 (arguments
2098 `(#:tests? #f; no tests
2099 #:package "sedlex"
2100 #:phases
2101 (modify-phases %standard-phases
2102 (add-before 'build 'copy-resources
2103 (lambda* (#:key inputs #:allow-other-keys)
2104 (with-directory-excursion "src/generator/data"
2105 (for-each
2106 (lambda (file)
2107 (copy-file (assoc-ref inputs file) file))
2108 '("DerivedCoreProperties.txt" "DerivedGeneralCategory.txt"
2109 "PropList.txt")))
2110 #t))
2111 (add-before 'build 'chmod
2112 (lambda _
2113 (for-each (lambda (file) (chmod file #o644)) (find-files "." ".*"))
2114 #t)))
2115 #:ocaml ,ocaml-4.07
2116 #:findlib ,ocaml4.07-findlib))
2117 (native-inputs
2118 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
2119 (propagated-inputs
2120 `(("ocaml-gen" ,ocaml4.07-gen)
2121 ("ocaml-ppx-tools-versioned"
2122 ,(package-with-ocaml4.07 ocaml-ppx-tools-versioned))
2123 ("ocaml-uchar" ,(package-with-ocaml4.07 ocaml-uchar))))
2124 ;; These three files are needed by src/generator/data/dune, but would be
2125 ;; downloaded using curl at build time.
2126 (inputs
2127 `(("DerivedCoreProperties.txt"
2128 ,(origin
2129 (method url-fetch)
2130 (uri "https://www.unicode.org/Public/12.1.0/ucd/DerivedCoreProperties.txt")
2131 (sha256
2132 (base32
2133 "0s6sn1yr9qmb2i6gf8dir2zpsbjv1frdfzy3i2yjylzvf637msx6"))))
2134 ("DerivedGeneralCategory.txt"
2135 ,(origin
2136 (method url-fetch)
2137 (uri "https://www.unicode.org/Public/12.1.0/ucd/extracted/DerivedGeneralCategory.txt")
2138 (sha256
2139 (base32
2140 "1rifzq9ba6c58dn0lrmcb5l5k4ksx3zsdkira3m5p6h4i2wriy3q"))))
2141 ("PropList.txt"
2142 ,(origin
2143 (method url-fetch)
2144 (uri "https://www.unicode.org/Public/12.1.0/ucd/PropList.txt")
2145 (sha256
2146 (base32
2147 "0gsb1jpj3mnqbjgbavi4l95gl6g4agq58j82km22fdfg63j3w3fk"))))))
2148 (home-page "https://www.cduce.org/download.html#side")
2149 (synopsis "Lexer generator for Unicode and OCaml")
2150 (description "Lexer generator for Unicode and OCaml.")
2151 (license license:expat)))
2152
2153 (define-public ocaml-uchar
2154 (package
2155 (name "ocaml-uchar")
2156 (version "0.0.2")
2157 (source
2158 (origin
2159 (method url-fetch)
2160 (uri (string-append "https://github.com/ocaml/uchar/releases/download/v"
2161 version "/uchar-" version ".tbz"))
2162 (sha256 (base32
2163 "1w2saw7zanf9m9ffvz2lvcxvlm118pws2x1wym526xmydhqpyfa7"))))
2164 (build-system ocaml-build-system)
2165 (arguments
2166 `(#:tests? #f
2167 #:build-flags (list "native=true" "native-dynlink=true")
2168 #:phases
2169 (modify-phases %standard-phases
2170 (delete 'configure))))
2171 (native-inputs
2172 `(("ocamlbuild" ,ocamlbuild)
2173 ("opam" ,opam)))
2174 (home-page "https://github.com/ocaml/uchar")
2175 (synopsis "Compatibility library for OCaml's Uchar module")
2176 (description "The uchar package provides a compatibility library for the
2177 `Uchar` module introduced in OCaml 4.03.")
2178 (license license:lgpl2.1)))
2179
2180 (define-public ocaml-uutf
2181 (package
2182 (name "ocaml-uutf")
2183 (version "1.0.1")
2184 (source (origin
2185 (method url-fetch)
2186 (uri (string-append "http://erratique.ch/software/uutf/releases/"
2187 "uutf-" version ".tbz"))
2188 (sha256
2189 (base32
2190 "1gp96dcggq7s84934vimxh89caaxa77lqiff1yywbwkilkkjcfqj"))))
2191 (build-system ocaml-build-system)
2192 (arguments
2193 `(#:tests? #f
2194 #:build-flags (list "build")
2195 #:phases
2196 (modify-phases %standard-phases
2197 (delete 'configure))))
2198 (native-inputs
2199 `(("ocamlbuild" ,ocamlbuild)
2200 ("opam" ,opam)
2201 ("topkg" ,ocaml-topkg)))
2202 (propagated-inputs
2203 `(("uchar" ,ocaml-uchar)
2204 ("cmdliner" ,ocaml-cmdliner)))
2205 (home-page "http://erratique.ch/software/uutf")
2206 (synopsis "Non-blocking streaming Unicode codec for OCaml")
2207 (description "Uutf is a non-blocking streaming codec to decode and encode
2208 the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. It can efficiently
2209 work character by character without blocking on IO. Decoders perform character
2210 position tracking and support newline normalization.
2211
2212 Functions are also provided to fold over the characters of UTF encoded OCaml
2213 string values and to directly encode characters in OCaml Buffer.t values.")
2214 (license license:isc)))
2215
2216 (define-public ocaml-jsonm
2217 (package
2218 (name "ocaml-jsonm")
2219 (version "1.0.1")
2220 (source (origin
2221 (method url-fetch)
2222 (uri (string-append "http://erratique.ch/software/jsonm/releases/"
2223 "jsonm-" version ".tbz"))
2224 (sha256
2225 (base32
2226 "1176dcmxb11fnw49b7yysvkjh0kpzx4s48lmdn5psq9vshp5c29w"))))
2227 (build-system ocaml-build-system)
2228 (arguments
2229 `(#:tests? #f
2230 #:build-flags (list "build")
2231 #:phases
2232 (modify-phases %standard-phases
2233 (delete 'configure))))
2234 (native-inputs
2235 `(("ocamlbuild" ,ocamlbuild)
2236 ("opam" ,opam)
2237 ("topkg" ,ocaml-topkg)))
2238 (propagated-inputs
2239 `(("uutf" ,ocaml-uutf)
2240 ("cmdliner" ,ocaml-cmdliner)))
2241 (home-page "http://erratique.ch/software/jsonm")
2242 (synopsis "Non-blocking streaming JSON codec for OCaml")
2243 (description "Jsonm is a non-blocking streaming codec to decode and encode
2244 the JSON data format. It can process JSON text without blocking on IO and
2245 without a complete in-memory representation of the data.")
2246 (license license:isc)))
2247
2248 (define-public ocaml-ocurl
2249 (package
2250 (name "ocaml-ocurl")
2251 (version "0.9.1")
2252 (source (origin
2253 (method url-fetch)
2254 (uri (string-append "http://ygrek.org.ua/p/release/ocurl/ocurl-"
2255 version ".tar.gz"))
2256 (sha256
2257 (base32
2258 "0n621cxb9012pj280c7821qqsdhypj8qy9qgrah79dkh6a8h2py6"))))
2259 (build-system ocaml-build-system)
2260 (arguments
2261 `(#:phases
2262 (modify-phases %standard-phases
2263 (add-before 'configure 'fix-/bin/sh
2264 (lambda* (#:key inputs #:allow-other-keys)
2265 (substitute* "configure"
2266 (("-/bin/sh") (string-append "-" (which "bash")))))))))
2267 (native-inputs
2268 `(("pkg-config" ,pkg-config)))
2269 (inputs `(("curl" ,curl)))
2270 (home-page "http://ocurl.forge.ocamlcore.org/")
2271 (synopsis "OCaml bindings for libcurl")
2272 (description "Client-side URL transfer library, supporting HTTP and a
2273 multitude of other network protocols (FTP/SMTP/RTSP/etc).")
2274 (license license:isc)))
2275
2276 (define-public ocaml-base64
2277 (package
2278 (name "ocaml-base64")
2279 (version "3.4.0")
2280 (source (origin
2281 (method git-fetch)
2282 (uri (git-reference
2283 (url "https://github.com/mirage/ocaml-base64")
2284 (commit (string-append "v" version))))
2285 (file-name (git-file-name name version))
2286 (sha256
2287 (base32
2288 "0aa1m1sr8p1hgc10p96mij7p22r3qcysvzy6fz2jqamfgswchgqc"))))
2289 (build-system dune-build-system)
2290 (arguments
2291 `(#:phases
2292 (modify-phases %standard-phases
2293 (add-before 'build 'fix-dune
2294 (lambda _
2295 ;; This package expects dune 2, which unbundled its configurator
2296 ;; module. We still use dune 1, so we need to let it know we need
2297 ;; its internal module.
2298 (substitute* "config/dune"
2299 (("dune-configurator") "dune.configurator"))
2300 #t)))))
2301 (native-inputs
2302 `(("ocaml-alcotest" ,ocaml-alcotest)
2303 ("ocaml-bos" ,ocaml-bos)
2304 ("ocaml-rresult" ,ocaml-rresult)))
2305 (home-page "https://github.com/mirage/ocaml-base64")
2306 (synopsis "Base64 encoding for OCaml")
2307 (description "Base64 is a group of similar binary-to-text encoding schemes
2308 that represent binary data in an ASCII string format by translating it into a
2309 radix-64 representation. It is specified in RFC 4648.")
2310 (license license:isc)))
2311
2312 (define-public ocamlify
2313 (package
2314 (name "ocamlify")
2315 (version "0.0.2")
2316 (source
2317 (origin
2318 (method url-fetch)
2319 (uri (string-append "https://download.ocamlcore.org/ocamlify/ocamlify/"
2320 version "/ocamlify-" version ".tar.gz"))
2321 (sha256
2322 (base32 "1f0fghvlbfryf5h3j4as7vcqrgfjb4c8abl5y0y5h069vs4kp5ii"))))
2323 (build-system ocaml-build-system)
2324 (arguments
2325 `(#:phases
2326 (modify-phases %standard-phases
2327 (add-after 'unpack 'disable-safe-string
2328 ;; Work around ‘Error: This expression has type string but an
2329 ;; expression was expected of type bytes’ since OCaml 4.06.
2330 (lambda _
2331 (setenv "OCAMLPARAM" "safe-string=0,_")
2332 #t))
2333 (delete 'check) ; tests are run during the build
2334 (replace 'configure
2335 (lambda* (#:key outputs #:allow-other-keys)
2336 (invoke "ocaml" "setup.ml" "-configure" "--prefix"
2337 (assoc-ref outputs "out")))))))
2338 (native-inputs
2339 `(("ocamlbuild" ,ocamlbuild)))
2340 (home-page "https://forge.ocamlcore.org/projects/ocamlify")
2341 (synopsis "Include files in OCaml code")
2342 (description "OCamlify creates OCaml source code by including
2343 whole files into OCaml string or string list. The code generated can be
2344 compiled as a standard OCaml file. It allows embedding external resources as
2345 OCaml code.")
2346 (license license:lgpl2.1+))); with the OCaml static compilation exception
2347
2348 (define-public omake
2349 (package
2350 (name "omake")
2351 (version "0.10.3")
2352 (source (origin
2353 (method url-fetch)
2354 (uri (string-append "http://download.camlcity.org/download/"
2355 "omake-" version ".tar.gz"))
2356 (sha256
2357 (base32
2358 "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz"))
2359 (patches (search-patches "omake-fix-non-determinism.patch"))))
2360 (build-system ocaml-build-system)
2361 (arguments
2362 `(#:make-flags
2363 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
2364 #:tests? #f ; no test target
2365 #:phases
2366 (modify-phases %standard-phases
2367 (add-before 'configure 'fix-makefile
2368 (lambda* (#:key outputs #:allow-other-keys)
2369 (substitute* "mk/osconfig_unix.mk"
2370 (("CC = cc") "CC = gcc")))))))
2371 (native-inputs `(("hevea" ,hevea)))
2372 (home-page "http://projects.camlcity.org/projects/omake.html")
2373 (synopsis "Build system designed for scalability and portability")
2374 (description "Similar to make utilities you may have used, but it features
2375 many additional enhancements, including:
2376
2377 @enumerate
2378 @item Support for projects spanning several directories or directory hierarchies.
2379 @item Fast, reliable, automated, scriptable dependency analysis using MD5 digests,
2380 with full support for incremental builds.
2381 @item Dependency analysis takes the command lines into account — whenever the
2382 command line used to build a target changes, the target is considered
2383 out-of-date.
2384 @item Fully scriptable, includes a library that providing support for standard
2385 tasks in C, C++, OCaml, and LaTeX projects, or a mixture thereof.
2386 @end enumerate")
2387 (license (list license:lgpl2.1 ; libmojave
2388 license:expat ; OMake scripts
2389 license:gpl2)))) ; OMake itself, with ocaml linking exception
2390 ; see LICENSE.OMake
2391
2392 (define-public ocaml-batteries
2393 (package
2394 (name "ocaml-batteries")
2395 (version "2.10.0")
2396 (source (origin
2397 (method url-fetch)
2398 (uri (string-append "https://github.com/ocaml-batteries-team/"
2399 "batteries-included/releases/download/v"
2400 version "/batteries-" version ".tar.gz"))
2401 (sha256
2402 (base32
2403 "08ghw87d56h1a6y1nnh3x2wy9xj25jqfk5sp6ma9nsyd37babb0h"))))
2404 (build-system ocaml-build-system)
2405 (native-inputs
2406 `(("ocamlbuild" ,ocamlbuild)
2407 ("qtest" ,ocaml-qtest)))
2408 (propagated-inputs
2409 `(("ocaml-num" ,ocaml-num)))
2410 (arguments
2411 `(#:phases
2412 (modify-phases %standard-phases
2413 (delete 'check) ; tests are run by the build phase
2414 (add-before 'build 'fix-nondeterminism
2415 (lambda _
2416 (substitute* "setup.ml"
2417 (("Sys.readdir dirname")
2418 "let a = Sys.readdir dirname in Array.sort String.compare a; a"))
2419 #t))
2420 (replace 'build
2421 (lambda* (#:key inputs outputs #:allow-other-keys)
2422 (let ((files
2423 (map (lambda (str)
2424 (substring str 0 (- (string-length str) 1)))
2425 (append
2426 (find-files "src" ".*.mliv")
2427 (find-files "src" ".*.mlv")
2428 (find-files "src" ".*.mlp")))))
2429 (apply invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2430 "-lflag" "-dllpath-all" files)
2431 (for-each (lambda (file)
2432 (copy-file (string-append "_build/" file) file))
2433 files))
2434 (invoke "ocamlbuild" "-no-links" "-use-ocamlfind" "-I" "num"
2435 "-lflag" "-dllpath-all" "build/mkconf.byte")
2436 (copy-file "_build/build/mkconf.byte" "build/mkconf.byte")
2437 (invoke "make" "all")
2438 #t)))))
2439 (home-page "http://batteries.forge.ocamlcore.org/")
2440 (synopsis "Development platform for the OCaml programming language")
2441 (description "Define a standard set of libraries which may be expected on
2442 every compliant installation of OCaml and organize these libraries into a
2443 hierarchy of modules.")
2444 (license license:lgpl2.1+)))
2445
2446 (define-public ocaml4.07-pcre
2447 (package
2448 (name "ocaml4.07-pcre")
2449 (version "7.4.1")
2450 (source (origin
2451 (method git-fetch)
2452 (uri (git-reference
2453 (url "https://github.com/mmottl/pcre-ocaml")
2454 (commit version)))
2455 (file-name (git-file-name name version))
2456 (sha256
2457 (base32
2458 "11sd8g668h48790lamz0riw9jgnfkaif5qdfa0akcndwa6aj07jf"))))
2459 (build-system dune-build-system)
2460 (arguments
2461 `(#:test-target "."
2462 #:ocaml ,ocaml-4.07
2463 #:findlib ,ocaml4.07-findlib
2464 #:dune ,ocaml4.07-dune))
2465 (native-inputs
2466 `(("ocaml-base" ,ocaml4.07-base)
2467 ("pcre:bin" ,pcre "bin")))
2468 (propagated-inputs `(("pcre" ,pcre)))
2469 (home-page "https://mmottl.github.io/pcre-ocaml")
2470 (synopsis "Bindings to the Perl Compatibility Regular Expressions library")
2471 (description "Pcre-ocaml offers library functions for string pattern
2472 matching and substitution, similar to the functionality offered by the Perl
2473 language.")
2474 (license license:lgpl2.1+))); with the OCaml link exception
2475
2476 (define-public ocaml4.07-expect
2477 (package
2478 (name "ocaml4.07-expect")
2479 (version "0.0.6")
2480 (source (origin
2481 (method url-fetch)
2482 (uri (ocaml-forge-uri name version 1736))
2483 (sha256
2484 (base32
2485 "098qvg9d4yrqzr5ax291y3whrpax0m3sx4gi6is0mblc96r9yqk0"))))
2486 (arguments
2487 `(#:tests? #f
2488 #:ocaml ,ocaml-4.07
2489 #:findlib ,ocaml4.07-findlib))
2490 (build-system ocaml-build-system)
2491 (native-inputs
2492 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))
2493 ("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
2494 ("ocaml-pcre" ,ocaml4.07-pcre)
2495 ("ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
2496 (propagated-inputs
2497 `(("batteries" ,(package-with-ocaml4.07 ocaml-batteries))))
2498 (home-page "https://forge.ocamlcore.org/projects/ocaml-expect/")
2499 (synopsis "Simple implementation of expect")
2500 (description "Help building unitary testing of interactive program. You
2501 can match the question using a regular expression or a timeout.")
2502 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2503
2504 (define-public ocaml-stdlib-shims
2505 (package
2506 (name "ocaml-stdlib-shims")
2507 (version "0.1.0")
2508 (source (origin
2509 (method git-fetch)
2510 (uri (git-reference
2511 (url "https://github.com/ocaml/stdlib-shims")
2512 (commit version)))
2513 (file-name (git-file-name name version))
2514 (sha256
2515 (base32
2516 "007dwywsr5285z0np6a9nr0h8iqmyzfrlx6s5xaqcwj69zabsrjm"))))
2517 (build-system dune-build-system)
2518 (home-page "https://github.com/ocaml/stdlib-shims")
2519 (synopsis "OCaml stdlib features backport to older OCaml compilers")
2520 (description "This package backports some of the new stdlib features to
2521 older compilers, such as the Stdlib module. This allows projects that require
2522 compatibility with older compiler to use these new features in their code.")
2523 ;; with ocaml-linking exception
2524 (license license:lgpl2.1+)))
2525
2526 (define-public ocaml-fileutils
2527 (package
2528 (name "ocaml-fileutils")
2529 (version "0.6.2")
2530 (source (origin
2531 (method git-fetch)
2532 (uri (git-reference
2533 (url "https://github.com/gildor478/ocaml-fileutils")
2534 (commit (string-append "v" version))))
2535 (file-name (git-file-name name version))
2536 (sha256
2537 (base32
2538 "01qf51b8pb7vyfba7y0kb7ajwj1950im25d7f59821zwsibns3d9"))))
2539 (build-system dune-build-system)
2540 (propagated-inputs
2541 `(("ocaml-stdlib-shims" ,ocaml-stdlib-shims)))
2542 (native-inputs
2543 `(("ocaml-ounit" ,ocaml-ounit)))
2544 (home-page "http://ocaml-fileutils.forge.ocamlcore.org")
2545 (synopsis "Pure OCaml functions to manipulate real file and filename")
2546 (description "Library to provide pure OCaml functions to manipulate real
2547 file (POSIX like) and filename.")
2548 (license license:lgpl2.1+))) ; with the OCaml static compilation exception
2549
2550 (define-public ocaml-oasis
2551 (package
2552 (name "ocaml-oasis")
2553 (version "0.4.11")
2554 (source (origin
2555 (method url-fetch)
2556 (uri (ocaml-forge-uri name version 1757))
2557 (sha256
2558 (base32
2559 "0bn13mzfa98dq3y0jwzzndl55mnywaxv693z6f1rlvpdykp3vdqq"))
2560 (modules '((guix build utils)))
2561 (snippet
2562 '(begin
2563 (substitute* "test/test-main/Test.ml"
2564 ;; most of these tests fail because ld cannot find crti.o, but according
2565 ;; to the log file, the environment variables {LD_,}LIBRARY_PATH
2566 ;; are set correctly when LD_LIBRARY_PATH is defined beforhand.
2567 (("TestBaseCompat.tests;") "")
2568 (("TestExamples.tests;") "")
2569 (("TestFull.tests;") "")
2570 (("TestPluginDevFiles.tests;") "")
2571 (("TestPluginInternal.tests;") "")
2572 (("TestPluginOCamlbuild.tests;") "")
2573 (("TestPluginOMake.tests;") ""))
2574 #t))))
2575 (build-system ocaml-build-system)
2576 (arguments
2577 `(#:tests? #f))
2578 (native-inputs
2579 `(("ocamlbuild" ,ocamlbuild)
2580 ("ocamlify" ,ocamlify)
2581 ("ocamlmod" ,ocamlmod)))
2582 (home-page "https://oasis.forge.ocamlcore.org")
2583 (synopsis "Integrates a configure, build, install system in OCaml projects")
2584 (description "OASIS is a tool to integrate a configure, build and install
2585 system in your OCaml projects. It helps to create standard entry points in your
2586 build system and allows external tools to analyse your project easily.")
2587 (license license:lgpl2.1+))) ; with ocaml static compilation exception
2588
2589 (define-public ocaml-js-build-tools
2590 (package
2591 (name "ocaml-js-build-tools")
2592 (version "113.33.06")
2593 (source (janestreet-origin "js-build-tools" version
2594 "0r8z4fz8iy5y6hkdlkpwf6rk4qigcr3dzyv35585xgg2ahf12zy6"))
2595 (native-inputs
2596 `(("oasis" ,ocaml-oasis)
2597 ("ocamlbuild" ,ocamlbuild)
2598 ("opam" ,opam)))
2599 (build-system ocaml-build-system)
2600 (arguments janestreet-arguments)
2601 (home-page "https://github.com/janestreet/js-build-tools")
2602 (synopsis "Collection of tools to help building Jane Street Packages")
2603 (description "This package contains tools to help building Jane Street
2604 packages, but can be used for other purposes. It contains:
2605 @enumerate
2606 @item an @command{oasis2opam-install} tool to produce a @file{.install} file
2607 from the oasis build log
2608 @item a @code{js_build_tools} ocamlbuild plugin with various goodies.
2609 @end enumerate")
2610 (license license:asl2.0)))
2611
2612 (define-public ocaml-cppo
2613 (package
2614 (name "ocaml-cppo")
2615 (version "1.6.6")
2616 (source
2617 (origin
2618 (method git-fetch)
2619 (uri (git-reference
2620 (url "https://github.com/mjambon/cppo")
2621 (commit (string-append "v" version))))
2622 (file-name (git-file-name name version))
2623 (sha256 (base32
2624 "1smcc0l6fh2n0y6bp96c69j5nw755jja99w0b206wx3yb2m4w2hs"))))
2625 (build-system dune-build-system)
2626 (arguments
2627 `(#:tests? #f
2628 #:build-flags (list "--profile" "release")))
2629 (native-inputs
2630 `(("ocamlbuild" ,ocamlbuild)))
2631 (home-page "https://github.com/mjambon/cppo")
2632 (synopsis "Equivalent of the C preprocessor for OCaml programs")
2633 (description "Cppo is an equivalent of the C preprocessor for OCaml
2634 programs. It allows the definition of simple macros and file inclusion. Cppo is:
2635 @enumerate
2636 @item more OCaml-friendly than @command{cpp}
2637 @item easy to learn without consulting a manual
2638 @item reasonably fast
2639 @item simple to install and to maintain.
2640 @end enumerate")
2641 (license license:bsd-3)))
2642
2643 (define-public ocaml-seq
2644 (package
2645 (name "ocaml-seq")
2646 (version "0.1")
2647 (source
2648 (origin
2649 (method git-fetch)
2650 (uri (git-reference
2651 (url "https://github.com/c-cube/seq")
2652 (commit version)))
2653 (file-name (git-file-name name version))
2654 (sha256
2655 (base32 "1cjpsc7q76yfgq9iyvswxgic4kfq2vcqdlmxjdjgd4lx87zvcwrv"))))
2656 (build-system ocaml-build-system)
2657 (arguments
2658 `(#:tests? #f
2659 #:phases
2660 (modify-phases %standard-phases
2661 (delete 'configure)
2662 (delete 'build)
2663 (replace 'install
2664 (lambda* (#:key outputs #:allow-other-keys)
2665 (let ((install-dir (string-append (assoc-ref outputs "out")
2666 "/lib/ocaml/site-lib/seq")))
2667 (mkdir-p install-dir)
2668 (with-output-to-file (string-append install-dir "/META")
2669 (lambda _
2670 (display "name=\"seq\"
2671 version=\"[distributed with ocaml]\"
2672 description=\"dummy package for compatibility\"
2673 requires=\"\"")))
2674 #t))))))
2675 (home-page "https://github.com/c-cube/seq")
2676 (synopsis "OCaml's standard iterator type")
2677 (description "This package is a compatibility package for OCaml's
2678 standard iterator type starting from 4.07.")
2679 (license license:lgpl2.1+)))
2680
2681 (define-public ocaml-re
2682 (package
2683 (name "ocaml-re")
2684 (version "1.9.0")
2685 (source
2686 (origin
2687 (method git-fetch)
2688 (uri (git-reference
2689 (url "https://github.com/ocaml/ocaml-re")
2690 (commit version)))
2691 (file-name (git-file-name name version))
2692 (sha256
2693 (base32 "07ycb103mr4mrkxfd63cwlsn023xvcjp0ra0k7n2gwrg0mwxmfss"))))
2694 (build-system dune-build-system)
2695 (arguments
2696 `(#:tests? #f
2697 #:build-flags (list "--profile" "release")))
2698 (propagated-inputs
2699 `(("ocaml-seq" ,ocaml-seq)))
2700 (native-inputs
2701 `(("ounit" ,ocaml-ounit)))
2702 (home-page "https://github.com/ocaml/ocaml-re/")
2703 (synopsis "Regular expression library for OCaml")
2704 (description "Pure OCaml regular expressions with:
2705 @enumerate
2706 @item Perl-style regular expressions (module Re_perl)
2707 @item Posix extended regular expressions (module Re_posix)
2708 @item Emacs-style regular expressions (module Re_emacs)
2709 @item Shell-style file globbing (module Re_glob)
2710 @item Compatibility layer for OCaml's built-in Str module (module Re_str)
2711 @end enumerate")
2712 (license license:expat)))
2713
2714 (define-public ocaml-ocplib-endian
2715 (package
2716 (name "ocaml-ocplib-endian")
2717 (version "1.0")
2718 (source (origin
2719 (method git-fetch)
2720 (uri (git-reference
2721 (url "https://github.com/OCamlPro/ocplib-endian/")
2722 (commit version)))
2723 (sha256
2724 (base32
2725 "0s1ld3kavz892b8awyxyg1mr98h2g61gy9ci5v6yb49bsii6wicw"))
2726 (file-name (git-file-name name version))))
2727 (build-system ocaml-build-system)
2728 (native-inputs
2729 `(("cppo" ,ocaml-cppo)
2730 ("ocamlbuild" ,ocamlbuild)))
2731 (home-page "https://github.com/OCamlPro/ocplib-endian")
2732 (synopsis "Optimised functions to read and write int16/32/64 from strings
2733 and bigarrays")
2734 (description "Optimised functions to read and write int16/32/64 from strings
2735 and bigarrays, based on new primitives added in version 4.01. It works on
2736 strings, bytes and bigstring (Bigarrys of chars), and provides submodules for
2737 big- and little-endian, with their unsafe counter-parts.")
2738 (license license:lgpl2.1)))
2739
2740 (define-public ocaml-cstruct
2741 (package
2742 (name "ocaml-cstruct")
2743 (version "4.0.0")
2744 (source (origin
2745 (method git-fetch)
2746 (uri (git-reference
2747 (url "https://github.com/mirage/ocaml-cstruct")
2748 (commit (string-append "v" version))))
2749 (file-name (git-file-name name version))
2750 (sha256
2751 (base32
2752 "0m4bz0digcsc8l2msfikwcbi1y371kccx6xnkwrz212mf5mp98bv"))))
2753 (build-system dune-build-system)
2754 (arguments
2755 `(#:package "cstruct"
2756 #:test-target "."))
2757 (native-inputs
2758 `(("ocaml-alcotest" ,ocaml-alcotest)))
2759 (home-page "https://github.com/mirage/ocaml-cstruct")
2760 (synopsis "Access C structures via a camlp4 extension")
2761 (description "Cstruct is a library and syntax extension to make it easier
2762 to access C-like structures directly from OCaml. It supports both reading and
2763 writing to these structures, and they are accessed via the Bigarray module.")
2764 (license license:isc)))
2765
2766 (define-public ocaml-hex
2767 (package
2768 (name "ocaml-hex")
2769 (version "1.4.0")
2770 (source (origin
2771 (method git-fetch)
2772 (uri (git-reference
2773 (url "https://github.com/mirage/ocaml-hex")
2774 (commit (string-append "v" version))))
2775 (file-name (git-file-name name version))
2776 (sha256
2777 (base32
2778 "0c8nhibcwy0ykzca4jn3gqb8ylq21ff88y82gl60wyzijr64rn0q"))))
2779 (build-system dune-build-system)
2780 (arguments
2781 `(#:test-target "."))
2782 (propagated-inputs
2783 `(("ocaml-bigarray-compat" ,ocaml-bigarray-compat)
2784 ("cstruct" ,ocaml-cstruct)))
2785 (home-page "https://github.com/mirage/ocaml-hex/")
2786 (synopsis "Minimal library providing hexadecimal converters")
2787 (description "Hex is a minimal library providing hexadecimal converters.")
2788 (license license:isc)))
2789
2790 (define-public ocaml4.07-ezjsonm
2791 (package
2792 (name "ocaml4.07-ezjsonm")
2793 (version "1.1.0")
2794 (source
2795 (origin
2796 (method git-fetch)
2797 (uri (git-reference
2798 (url "https://github.com/mirage/ezjsonm")
2799 (commit (string-append "v" version))))
2800 (file-name (git-file-name name version))
2801 (sha256
2802 (base32 "064j9pzy01p3dv947khqyn7fkjbs3jmrqsg8limb4abnlaqxxs2s"))))
2803 (build-system dune-build-system)
2804 (arguments
2805 `(#:package "ezjsonm"
2806 #:test-target "."
2807 #:ocaml ,ocaml-4.07
2808 #:findlib ,ocaml4.07-findlib))
2809 (native-inputs
2810 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))))
2811 (propagated-inputs
2812 `(("ocaml-hex" ,(package-with-ocaml4.07 ocaml-hex))
2813 ("ocaml-jsonm" ,(package-with-ocaml4.07 ocaml-jsonm))
2814 ("ocaml-sexplib" ,ocaml4.07-sexplib)))
2815 (home-page "https://github.com/mirage/ezjsonm/")
2816 (synopsis "Read and write JSON data")
2817 (description "Ezjsonm provides more convenient (but far less flexible) input
2818 and output functions that go to and from [string] values than jsonm. This avoids
2819 the need to write signal code, which is useful for quick scripts that manipulate
2820 JSON.")
2821 (license license:isc)))
2822
2823 (define-public ocaml4.07-uri
2824 (package
2825 (name "ocaml4.07-uri")
2826 (version "2.2.0")
2827 (source
2828 (origin
2829 (method git-fetch)
2830 (uri (git-reference
2831 (url "https://github.com/mirage/ocaml-uri")
2832 (commit (string-append "v" version))))
2833 (file-name (git-file-name name version))
2834 (sha256
2835 (base32 "1ppbav41mszpjcl0zi3fyg958cxyfs57i7kvha4ds9ydn89bjmrh"))))
2836 (build-system dune-build-system)
2837 (arguments
2838 `(#:test-target "."
2839 #:phases
2840 (modify-phases %standard-phases
2841 (add-before 'build 'update-deprecated
2842 (lambda _
2843 (substitute* "lib/uri.ml"
2844 (("Re.get") "Re.Group.get")))))
2845 #:ocaml ,ocaml-4.07
2846 #:findlib ,ocaml4.07-findlib))
2847 (native-inputs
2848 `(("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))
2849 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)))
2850 (propagated-inputs
2851 `(("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
2852 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
2853 ("ocaml-stringext" ,(package-with-ocaml4.07 ocaml-stringext))))
2854 (home-page "https://github.com/mirage/ocaml-uri")
2855 (synopsis "RFC3986 URI/URL parsing library")
2856 (description "OCaml-uri is a library for parsing URI/URL in the RFC3986 format.")
2857 (license license:isc)))
2858
2859 (define-public ocaml-easy-format
2860 (package
2861 (name "ocaml-easy-format")
2862 (version "1.3.2")
2863 (source (origin
2864 (method git-fetch)
2865 (uri (git-reference
2866 (url "https://github.com/mjambon/easy-format")
2867 (commit version)))
2868 (file-name (git-file-name name version))
2869 (sha256
2870 (base32
2871 "1fc95q2ypck6m6rv3kiawwilh5ac93v2hcp823mj608d5kj79xkb"))))
2872 (build-system dune-build-system)
2873 (arguments
2874 `(#:package "easy-format"
2875 #:phases
2876 (modify-phases %standard-phases
2877 (add-before 'build 'make-writable
2878 (lambda _
2879 (for-each
2880 (lambda (file)
2881 (chmod file #o644))
2882 (find-files "." "."))
2883 #t)))))
2884 (home-page "https://github.com/mjambon/easy-format")
2885 (synopsis "Interface to the Format module")
2886 (description "Easy-format is a high-level and functional interface to the
2887 Format module of the OCaml standard library.")
2888 (license license:bsd-3)))
2889
2890 (define-public ocaml4.07-piqilib
2891 (package
2892 (name "ocaml4.07-piqilib")
2893 (version "0.6.15")
2894 (source
2895 (origin
2896 (method git-fetch)
2897 (uri (git-reference
2898 (url "https://github.com/alavrik/piqi")
2899 (commit (string-append "v" version))))
2900 (file-name (git-file-name name version))
2901 (sha256
2902 (base32 "0v04hs85xv6d4ysqxyv1dik34dx49yab9shpi4x7iv19qlzl7csb"))))
2903 (build-system ocaml-build-system)
2904 (arguments
2905 `(#:phases
2906 (modify-phases %standard-phases
2907 (add-before 'configure 'fix-ocamlpath
2908 (lambda _
2909 (substitute* '("Makefile" "make/Makefile.ocaml")
2910 (("OCAMLPATH := ") "OCAMLPATH := $(OCAMLPATH):"))
2911 #t))
2912 (replace 'configure
2913 (lambda* (#:key outputs #:allow-other-keys)
2914 (let ((out (assoc-ref outputs "out")))
2915 (substitute* "make/OCamlMakefile"
2916 (("/bin/sh") (which "bash")))
2917 (invoke "./configure" "--prefix" out "--ocaml-libdir"
2918 (string-append out "/lib/ocaml/site-lib")))
2919 #t))
2920 (add-after 'build 'build-ocaml
2921 (lambda* (#:key outputs #:allow-other-keys)
2922 (invoke "make" "ocaml")
2923 #t))
2924 (add-after 'install 'install-ocaml
2925 (lambda* (#:key outputs #:allow-other-keys)
2926 (invoke "make" "ocaml-install")
2927 #t))
2928 (add-after 'install-ocaml 'link-stubs
2929 (lambda* (#:key outputs #:allow-other-keys)
2930 (let* ((out (assoc-ref outputs "out"))
2931 (stubs (string-append out "/lib/ocaml/site-lib/stubslibs"))
2932 (lib (string-append out "/lib/ocaml/site-lib/piqilib")))
2933 (mkdir-p stubs)
2934 (symlink (string-append lib "/dllpiqilib_stubs.so")
2935 (string-append stubs "/dllpiqilib_stubs.so"))
2936 #t))))
2937 #:ocaml ,ocaml-4.07
2938 #:findlib ,ocaml4.07-findlib))
2939 (native-inputs
2940 `(("which" ,which)))
2941 (propagated-inputs
2942 `(("ocaml-xmlm" ,(package-with-ocaml4.07 ocaml-xmlm))
2943 ("ocaml-sedlex" ,ocaml4.07-sedlex)
2944 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))
2945 ("ocaml-base64" ,(package-with-ocaml4.07 ocaml-base64))))
2946 (home-page "http://piqi.org")
2947 (synopsis "Data serialization and conversion library")
2948 (description "Piqilib is the common library used by the piqi command-line
2949 tool and piqi-ocaml.")
2950 (license license:asl2.0)))
2951
2952 (define-public ocaml-uuidm
2953 (package
2954 (name "ocaml-uuidm")
2955 (version "0.9.6")
2956 (source (origin
2957 (method url-fetch)
2958 (uri (string-append "http://erratique.ch/software/uuidm/"
2959 "releases/uuidm-" version ".tbz"))
2960 (sha256
2961 (base32
2962 "0hz4fdx0x16k0pw9995vkz5d1hmzz6b16wck9li399rcbfnv5jlc"))))
2963 (build-system ocaml-build-system)
2964 (arguments
2965 `(#:build-flags
2966 (list "build" "--tests" "true" "--with-cmdliner" "true")
2967 #:phases
2968 (modify-phases %standard-phases
2969 (delete 'configure))))
2970 (native-inputs
2971 `(("ocamlbuild" ,ocamlbuild)
2972 ("opam" ,opam)))
2973 (propagated-inputs
2974 `(("cmdliner" ,ocaml-cmdliner)
2975 ("topkg" ,ocaml-topkg)))
2976 (home-page "http://erratique.ch/software/uuidm")
2977 (synopsis "Universally unique identifiers for OCaml")
2978 (description "Uuidm is an OCaml module implementing 128 bits universally
2979 unique identifiers (UUIDs) version 3, 5 (named based with MD5, SHA-1 hashing)
2980 and 4 (random based) according to RFC 4122.")
2981 (license license:isc)))
2982
2983 (define-public ocaml-graph
2984 (package
2985 (name "ocaml-graph")
2986 (version "1.8.8")
2987 (source (origin
2988 (method url-fetch)
2989 (uri (string-append "http://ocamlgraph.lri.fr/download/"
2990 "ocamlgraph-" version ".tar.gz"))
2991 (sha256
2992 (base32
2993 "0m9g16wrrr86gw4fz2fazrh8nkqms0n863w7ndcvrmyafgxvxsnr"))))
2994 (build-system ocaml-build-system)
2995 (arguments
2996 `(#:install-target "install-findlib"
2997 #:tests? #f
2998 #:phases
2999 (modify-phases %standard-phases
3000 (add-before 'configure 'set-shell
3001 (lambda* (#:key inputs #:allow-other-keys)
3002 (setenv "CONFIG_SHELL" (string-append (assoc-ref inputs "bash")
3003 "/bin/sh")))))))
3004 (inputs `(("lablgtk" ,lablgtk)))
3005 (properties `((upstream-name . "ocamlgraph")))
3006 (home-page "http://ocamlgraph.lri.fr/")
3007 (synopsis "Graph library for OCaml")
3008 (description "OCamlgraph is a generic graph library for OCaml.")
3009 (license license:lgpl2.1)))
3010
3011 (define-public ocaml4.07-piqi
3012 (package
3013 (name "ocaml4.07-piqi")
3014 (version "0.7.7")
3015 (source (origin
3016 (method git-fetch)
3017 (uri (git-reference
3018 (url "https://github.com/alavrik/piqi-ocaml")
3019 (commit (string-append "v" version))))
3020 (file-name (git-file-name name version))
3021 (sha256
3022 (base32
3023 "1913jpsb8mvqi8609j4g4sm5jhg50dq0xqxgy8nmvknfryyc89nm"))))
3024 (build-system ocaml-build-system)
3025 (arguments
3026 `(#:make-flags
3027 (list (string-append "DESTDIR=" (assoc-ref %outputs "out"))
3028 (string-append "SHELL=" (assoc-ref %build-inputs "bash")
3029 "/bin/sh"))
3030 #:phases
3031 (modify-phases %standard-phases
3032 (add-after 'unpack 'make-files-writable
3033 (lambda _
3034 (for-each make-file-writable (find-files "."))
3035 #t))
3036 (delete 'configure))
3037 #:ocaml ,ocaml-4.07
3038 #:findlib ,ocaml4.07-findlib))
3039 (native-inputs
3040 `(("which" ,which)
3041 ("protobuf" ,protobuf))) ; for tests
3042 (propagated-inputs
3043 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
3044 ("ocaml-piqilib" ,ocaml4.07-piqilib)
3045 ("ocaml-stdlib-shims" ,(package-with-ocaml4.07 ocaml-stdlib-shims))))
3046 (home-page "https://github.com/alavrik/piqi-ocaml")
3047 (synopsis "Protocol serialization system for OCaml")
3048 (description "Piqi is a multi-format data serialization system for OCaml.
3049 It provides a uniform interface for serializing OCaml data structures to JSON,
3050 XML and Protocol Buffers formats.")
3051 (license license:asl2.0)))
3052
3053 (define-public bap
3054 (package
3055 (name "bap")
3056 (version "2.0.0")
3057 (home-page "https://github.com/BinaryAnalysisPlatform/bap")
3058 (source (origin
3059 (method git-fetch)
3060 (uri (git-reference
3061 (url home-page)
3062 (commit (string-append "v" version))))
3063 (file-name (git-file-name name version))
3064 (sha256
3065 (base32
3066 "0lb9xkfp67wjjqr75p6krivmjra7l5673236v9ny4gp0xi0755bk"))))
3067 (build-system ocaml-build-system)
3068 (native-inputs
3069 `(("ocaml-oasis" ,(package-with-ocaml4.07 ocaml-oasis))
3070 ("clang" ,clang-3.8)
3071 ("ocaml-ounit" ,(package-with-ocaml4.07 ocaml-ounit))))
3072 (propagated-inputs
3073 `(("camlzip" ,(package-with-ocaml4.07 camlzip))
3074 ("ocaml-bitstring" ,(package-with-ocaml4.07 ocaml-bitstring))
3075 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
3076 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
3077 ("ocaml-ezjsonm" ,ocaml4.07-ezjsonm)
3078 ("ocaml-fileutils" ,(package-with-ocaml4.07 ocaml-fileutils))
3079 ("ocaml-frontc" ,(package-with-ocaml4.07 ocaml-frontc))
3080 ("ocaml-graph" ,(package-with-ocaml4.07 ocaml-graph))
3081 ("ocaml-ocurl" ,(package-with-ocaml4.07 ocaml-ocurl))
3082 ("ocaml-piqi" ,ocaml4.07-piqi)
3083 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
3084 ("ocaml-utop" ,ocaml4.07-utop)
3085 ("ocaml-uuidm" ,(package-with-ocaml4.07 ocaml-uuidm))
3086 ("ocaml-uri" ,ocaml4.07-uri)
3087 ("ocaml-zarith" ,(package-with-ocaml4.07 ocaml-zarith))))
3088 (inputs
3089 `(("gmp" ,gmp)
3090 ("llvm" ,llvm-3.8)
3091 ("ncurses" ,ncurses)))
3092 (arguments
3093 `(#:use-make? #t
3094 #:phases
3095 (modify-phases %standard-phases
3096 (add-before 'configure 'fix-ncurses
3097 (lambda _
3098 (substitute* "oasis/llvm"
3099 (("-lcurses") "-lncurses"))
3100 #t))
3101 (replace 'configure
3102 (lambda* (#:key outputs inputs #:allow-other-keys)
3103 ;; add write for user, to prevent a failure in the install phase
3104 (for-each
3105 (lambda (file)
3106 (let ((stat (stat file)))
3107 (chmod file (+ #o200 (stat:mode stat)))))
3108 (find-files "." "."))
3109 (invoke "./configure" "--prefix"
3110 (assoc-ref outputs "out")
3111 "--libdir"
3112 (string-append
3113 (assoc-ref outputs "out")
3114 "/lib/ocaml/site-lib")
3115 "--with-llvm-version=3.8"
3116 "--with-llvm-config=llvm-config"
3117 "--enable-everything"))))
3118 #:ocaml ,ocaml-4.07
3119 #:findlib ,ocaml4.07-findlib))
3120 (synopsis "Binary Analysis Platform")
3121 (description "Binary Analysis Platform is a framework for writing program
3122 analysis tools, that target binary files. The framework consists of a plethora
3123 of libraries, plugins, and frontends. The libraries provide code reusability,
3124 the plugins facilitate extensibility, and the frontends serve as entry points.")
3125 (license license:expat)))
3126
3127 (define-public ocaml-camomile
3128 (package
3129 (name "ocaml-camomile")
3130 (version "1.0.2")
3131 (home-page "https://github.com/yoriyuki/Camomile")
3132 (source (origin
3133 (method url-fetch)
3134 (uri (string-append home-page "/releases/download/" version
3135 "/camomile-" version ".tbz"))
3136 (sha256
3137 (base32
3138 "0chn7ldqb3wyf95yhmsxxq65cif56smgz1mhhc7m0dpwmyq1k97h"))))
3139 (build-system dune-build-system)
3140 (arguments
3141 `(#:build-flags (list "--profile" "release")
3142 #:test-target "camomile-test"
3143 #:tests? #f; Tests fail, see https://github.com/yoriyuki/Camomile/issues/82
3144 #:phases
3145 (modify-phases %standard-phases
3146 (add-before 'build 'fix-usr-share
3147 (lambda* (#:key outputs #:allow-other-keys)
3148 (substitute* '("Camomile/dune" "configure.ml")
3149 (("/usr/share") (string-append (assoc-ref outputs "out") "/share")))
3150 #t)))))
3151 (synopsis "Comprehensive Unicode library")
3152 (description "Camomile is a Unicode library for OCaml. Camomile provides
3153 Unicode character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about
3154 200 encodings, collation and locale-sensitive case mappings, and more. The
3155 library is currently designed for Unicode Standard 3.2.")
3156 ;; with an exception for linked libraries to use a different license
3157 (license license:lgpl2.0+)))
3158
3159 (define-public ocaml4.07-charinfo-width
3160 (package
3161 (name "ocaml4.07-charinfo-width")
3162 (version "1.1.0")
3163 (source (origin
3164 (method url-fetch)
3165 (uri (string-append "https://bitbucket.org/zandoye/charinfo_width"
3166 "/get/" version ".tar.gz"))
3167 (file-name (string-append name "-" version ".tar.gz"))
3168 (sha256
3169 (base32
3170 "00bv4p1yqs8y0z4z07wd9w9yyv669dikp9b04dcjbwpiy2wy0086"))))
3171 (build-system dune-build-system)
3172 (arguments
3173 `(#:ocaml ,ocaml-4.07
3174 #:findlib ,ocaml4.07-findlib))
3175 (propagated-inputs
3176 `(("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
3177 ("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))))
3178 (native-inputs
3179 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
3180 (properties
3181 `((upstream-name . "charInfo_width")))
3182 (home-page "https://bitbucket.org/zandoye/charinfo_width/")
3183 (synopsis "Determine column width for a character")
3184 (description "This module is implements purely in OCaml a character width
3185 function that follows the prototype of POSIX's wcwidth.")
3186 (license license:expat)))
3187
3188 (define-public ocaml4.07-zed
3189 (package
3190 (name "ocaml4.07-zed")
3191 (version "2.0.3")
3192 (source
3193 (origin
3194 (method git-fetch)
3195 (uri (git-reference
3196 (url "https://github.com/diml/zed")
3197 (commit version)))
3198 (file-name (git-file-name name version))
3199 (sha256
3200 (base32 "0pa9awinqr0plp4b2az78dwpvh01pwaljnn5ydg8mc6hi7rmir55"))))
3201 (build-system dune-build-system)
3202 (arguments
3203 `(#:test-target "."
3204 #:ocaml ,ocaml-4.07
3205 #:findlib ,ocaml4.07-findlib))
3206 (propagated-inputs
3207 `(("ocaml-camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3208 ("ocaml-charinfo-width" ,ocaml4.07-charinfo-width)
3209 ("ocaml-react" ,(package-with-ocaml4.07 ocaml-react))))
3210 (home-page "https://github.com/diml/zed")
3211 (synopsis "Abstract engine for text editing in OCaml")
3212 (description "Zed is an abstract engine for text edition. It can be used
3213 to write text editors, edition widgets, readlines, etc. You just have to
3214 connect an engine to your inputs and rendering functions to get an editor.")
3215 (license license:bsd-3)))
3216
3217 (define-public ocaml4.07-lambda-term
3218 (package
3219 (name "ocaml4.07-lambda-term")
3220 (version "2.0.2")
3221 (source
3222 (origin
3223 (method git-fetch)
3224 (uri (git-reference
3225 (url "https://github.com/diml/lambda-term")
3226 (commit version)))
3227 (file-name (git-file-name name version))
3228 (sha256
3229 (base32 "0zcjy6fvf0d3i2ssz96asl889n3r6bplyzk7xvb2s3dkxbgcisyy"))))
3230 (build-system dune-build-system)
3231 (arguments
3232 `(#:build-flags (list "--profile" "release")
3233 #:tests? #f
3234 #:ocaml ,ocaml-4.07
3235 #:findlib ,ocaml4.07-findlib))
3236 (propagated-inputs
3237 `(("ocaml-lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3238 ("ocaml-lwt-log" ,(package-with-ocaml4.07 ocaml-lwt-log))
3239 ("ocaml-lwt-react" ,(package-with-ocaml4.07 ocaml-lwt-react))
3240 ("ocaml-zed" ,ocaml4.07-zed)))
3241 (inputs
3242 `(("libev" ,libev)))
3243 (home-page "https://github.com/diml/lambda-term")
3244 (synopsis "Terminal manipulation library for OCaml")
3245 (description "Lambda-Term is a cross-platform library for manipulating the
3246 terminal. It provides an abstraction for keys, mouse events, colors, as well as
3247 a set of widgets to write curses-like applications. The main objective of
3248 Lambda-Term is to provide a higher level functional interface to terminal
3249 manipulation than, for example, ncurses, by providing a native OCaml interface
3250 instead of bindings to a C library.")
3251 (license license:bsd-3)))
3252
3253 (define-public ocaml4.07-utop
3254 (package
3255 (name "ocaml4.07-utop")
3256 (version "2.4.3")
3257 (source
3258 (origin
3259 (method git-fetch)
3260 (uri (git-reference
3261 (url "https://github.com/ocaml-community/utop")
3262 (commit version)))
3263 (file-name (git-file-name name version))
3264 (sha256
3265 (base32 "1bl4943qpi3qy152dbdm5glhx19zsiylmn4rcxi8l66g58hikyjp"))))
3266 (build-system dune-build-system)
3267 (arguments
3268 `(#:test-target "."
3269 #:ocaml ,ocaml-4.07
3270 #:findlib ,ocaml4.07-findlib))
3271 (native-inputs
3272 `(("cppo" ,(package-with-ocaml4.07 ocaml-cppo))))
3273 (propagated-inputs
3274 `(("lambda-term" ,ocaml4.07-lambda-term)
3275 ("lwt" ,(package-with-ocaml4.07 ocaml-lwt))
3276 ("react" ,(package-with-ocaml4.07 ocaml-react))
3277 ("camomile" ,(package-with-ocaml4.07 ocaml-camomile))
3278 ("zed" ,ocaml4.07-zed)))
3279 (home-page "https://github.com/ocaml-community/utop")
3280 (synopsis "Improved interface to the OCaml toplevel")
3281 (description "UTop is an improved toplevel for OCaml. It can run in a
3282 terminal or in Emacs. It supports line editing, history, real-time and context
3283 sensitive completion, colors, and more.")
3284 (license license:bsd-3)))
3285
3286 (define-public ocaml-integers
3287 (package
3288 (name "ocaml-integers")
3289 (version "0.3.0")
3290 (home-page "https://github.com/ocamllabs/ocaml-integers")
3291 (source (origin
3292 (method url-fetch)
3293 (uri (string-append home-page
3294 "/releases/download/v0.2.2/integers-"
3295 version ".tbz"))
3296 (file-name (string-append name "-" version ".tbz"))
3297 (sha256
3298 (base32
3299 "08b1ljw88ny3l0mdq6xmffjk8anfc77igryva5jz1p6f4f746ywk"))))
3300 (build-system ocaml-build-system)
3301 (arguments
3302 `(#:tests? #f; no tests
3303 #:build-flags (list "build")
3304 #:phases
3305 (modify-phases %standard-phases
3306 (delete 'configure))))
3307 (native-inputs
3308 `(("ocamlbuild" ,ocamlbuild)))
3309 (inputs
3310 `(("topkg" ,ocaml-topkg)
3311 ("opam" ,opam)))
3312 (synopsis "Various signed and unsigned integer types for OCaml")
3313 (description "The ocaml-integers library provides a number of 8-, 16-, 32-
3314 and 64-bit signed and unsigned integer types, together with aliases such as
3315 long and size_t whose sizes depend on the host platform.")
3316 (license license:expat)))
3317
3318 (define-public ocaml-ctypes
3319 (package
3320 (name "ocaml-ctypes")
3321 (version "0.14.0")
3322 (home-page "https://github.com/ocamllabs/ocaml-ctypes")
3323 (source (origin
3324 (method git-fetch)
3325 (uri (git-reference
3326 (url home-page)
3327 (commit version)))
3328 (file-name (git-file-name name version))
3329 (sha256
3330 (base32
3331 "1b2q3h63ngf4x9qp65qwapf2dg9q0mcdah6qjm2q0c7v2p5vysv9"))))
3332 (build-system ocaml-build-system)
3333 (arguments
3334 `(#:tests? #f; require an old lwt
3335 #:make-flags
3336 (list (string-append "INSTALL_HEADERS = $(wildcard $($(PROJECT).dir)/*.h)"))
3337 #:phases
3338 (modify-phases %standard-phases
3339 (add-after 'unpack 'make-writable
3340 (lambda _
3341 (for-each
3342 (lambda (file)
3343 (let ((stat (stat file)))
3344 (chmod file (+ #o200 (stat:mode stat)))))
3345 (find-files "." "."))
3346 #t))
3347 (delete 'configure))))
3348 (native-inputs
3349 `(("pkg-config" ,pkg-config)))
3350 (inputs
3351 `(("libffi" ,libffi)
3352 ("ounit" ,ocaml-ounit)
3353 ("integers" ,ocaml-integers)
3354 ("lwt" ,ocaml-lwt)
3355 ("topkg" ,ocaml-topkg)
3356 ("opam" ,opam)))
3357 (synopsis "Library for binding to C libraries using pure OCaml")
3358 (description "Ctypes is a library for binding to C libraries using pure
3359 OCaml. The primary aim is to make writing C extensions as straightforward as
3360 possible. The core of ctypes is a set of combinators for describing the
3361 structure of C types -- numeric types, arrays, pointers, structs, unions and
3362 functions. You can use these combinators to describe the types of the
3363 functions that you want to call, then bind directly to those functions -- all
3364 without writing or generating any C!")
3365 (license license:expat)))
3366
3367 (define-public ocaml-ocb-stubblr
3368 (package
3369 (name "ocaml-ocb-stubblr")
3370 (version "0.1.1")
3371 (home-page "https://github.com/pqwy/ocb-stubblr")
3372 (source (origin
3373 (method url-fetch)
3374 (uri (string-append
3375 home-page "/releases/download/v0.1.1/ocb-stubblr-"
3376 version ".tbz"))
3377 (file-name (string-append name "-" version ".tbz"))
3378 (sha256
3379 (base32
3380 "167b7x1j21mkviq8dbaa0nmk4rps2ilvzwx02igsc2706784z72f"))))
3381 (build-system ocaml-build-system)
3382 (arguments
3383 `(#:build-flags (list "build" "--tests" "true")
3384 #:phases
3385 (modify-phases %standard-phases
3386 (delete 'configure)
3387 (add-before 'build 'fix-for-guix
3388 (lambda _
3389 (substitute* "src/ocb_stubblr.ml"
3390 ;; Do not fail when opam is not present or initialized
3391 (("error_msgf \"error running opam\"") "\"\"")
3392 ;; Guix doesn't have cc, but it has gcc
3393 (("\"cc\"") "\"gcc\""))
3394 #t)))))
3395 (inputs
3396 `(("topkg" ,ocaml-topkg)
3397 ("opam" ,opam)))
3398 (native-inputs
3399 `(("astring" ,ocaml-astring)
3400 ("ocamlbuild" ,ocamlbuild)))
3401 (synopsis "OCamlbuild plugin for C stubs")
3402 (description "Ocb-stubblr is about ten lines of code that you need to
3403 repeat over, over, over and over again if you are using ocamlbuild to build
3404 OCaml projects that contain C stubs.")
3405 (license license:isc)))
3406
3407 (define-public ocaml-tsdl
3408 (package
3409 (name "ocaml-tsdl")
3410 (version "0.9.7")
3411 (home-page "https://erratique.ch/software/tsdl")
3412 (source (origin
3413 (method url-fetch)
3414 (uri (string-append home-page "/releases/tsdl-"
3415 version ".tbz"))
3416 (file-name (string-append name "-" version ".tar.gz"))
3417 (sha256
3418 (base32
3419 "1zwv0ixkigh1gzk5n49rwvz2f2m62jdkkqg40j7dclg4gri7691f"))))
3420 (build-system ocaml-build-system)
3421 (arguments
3422 `(#:build-flags '("build")
3423 #:tests? #f; tests require a display device
3424 #:phases
3425 (modify-phases %standard-phases
3426 (delete 'configure))))
3427 (native-inputs
3428 `(("ocamlbuild" ,ocamlbuild)
3429 ("ocaml-astring" ,ocaml-astring)
3430 ("opam" ,opam)
3431 ("pkg-config" ,pkg-config)))
3432 (inputs
3433 `(("topkg" ,ocaml-topkg)
3434 ("sdl2" ,sdl2)
3435 ("integers" ,ocaml-integers)
3436 ("ctypes" ,ocaml-ctypes)))
3437 (synopsis "Thin bindings to SDL for OCaml")
3438 (description "Tsdl is an OCaml library providing thin bindings to the
3439 cross-platform SDL C library.")
3440 (license license:isc)))
3441
3442 (define-public dedukti
3443 (package
3444 (name "dedukti")
3445 (version "2.6.0")
3446 (home-page "https://deducteam.github.io/")
3447 (source
3448 (origin
3449 (method git-fetch)
3450 (uri (git-reference
3451 (url "https://github.com/deducteam/dedukti")
3452 (commit (string-append "v" version))))
3453 (file-name (git-file-name name version))
3454 (sha256
3455 (base32
3456 "0frl3diff033i4fmq304b8wbsdnc9mvlhmwd7a3zd699ng2lzbxb"))))
3457 (inputs
3458 `(("menhir" ,ocaml-menhir)))
3459 (native-inputs
3460 `(("ocamlbuild" ,ocamlbuild)))
3461 (build-system ocaml-build-system)
3462 (arguments
3463 `(#:phases
3464 (modify-phases %standard-phases
3465 (delete 'configure)
3466 (replace 'build
3467 (lambda _
3468 (invoke "make")
3469 #t))
3470 (replace 'check
3471 (lambda _
3472 (invoke "make" "tests")
3473 #t))
3474 (add-before 'install 'set-binpath
3475 ;; Change binary path in the makefile
3476 (lambda _
3477 (let ((out (assoc-ref %outputs "out")))
3478 (substitute* "GNUmakefile"
3479 (("BINDIR = (.*)$")
3480 (string-append "BINDIR = " out "/bin"))))
3481 #t))
3482 (replace 'install
3483 (lambda _
3484 (invoke "make" "install")
3485 #t)))))
3486 (synopsis "Proof-checker for the λΠ-calculus modulo theory, an extension of
3487 the λ-calculus")
3488 (description "Dedukti is a proof-checker for the λΠ-calculus modulo
3489 theory. The λΠ-calculus is an extension of the simply typed λ-calculus with
3490 dependent types. The λΠ-calculus modulo theory is itself an extension of the
3491 λΠ-calculus where the context contains variable declaration as well as rewrite
3492 rules. This system is not designed to develop proofs, but to check proofs
3493 developed in other systems. In particular, it enjoys a minimalistic syntax.")
3494 (license license:cecill-c)))
3495
3496 (define-public emacs-dedukti-mode
3497 (let ((commit "d7c3505a1046187de3c3aeb144455078d514594e"))
3498 (package
3499 (name "emacs-dedukti-mode")
3500 (version (git-version "0" "0" commit))
3501 (home-page "https://github.com/rafoo/dedukti-mode")
3502 (source (origin
3503 (method git-fetch)
3504 (uri (git-reference
3505 (url home-page)
3506 (commit commit)))
3507 (sha256
3508 (base32
3509 "1842wikq24c8rg0ac84vb1qby9ng1nssxswyyni4kq85lng5lcrp"))
3510 (file-name (git-file-name name version))))
3511 (inputs
3512 `(("dedukti" ,dedukti)))
3513 (build-system emacs-build-system)
3514 (arguments
3515 '(#:phases
3516 (modify-phases %standard-phases
3517 (add-before 'install 'patch-dkpath
3518 (lambda _
3519 (let ((dkcheck-path (which "dkcheck")))
3520 (substitute* "dedukti-mode.el"
3521 (("dedukti-path \"(.*)\"")
3522 (string-append "dedukti-path \"" dkcheck-path "\"")))))))))
3523 (synopsis "Emacs major mode for Dedukti files")
3524 (description "This package provides an Emacs major mode for editing
3525 Dedukti files.")
3526 (license license:cecill-b))))
3527
3528 (define-public emacs-flycheck-dedukti
3529 (let ((commit "3dbff5646355f39d57a3ec514f560a6b0082a1cd"))
3530 (package
3531 (name "emacs-flycheck-dedukti")
3532 (version (git-version "0" "0" commit))
3533 (home-page "https://github.com/rafoo/flycheck-dedukti")
3534 (source (origin
3535 (method git-fetch)
3536 (uri (git-reference
3537 (url home-page)
3538 (commit commit)))
3539 (sha256
3540 (base32
3541 "1ffpxnwl3wx244n44mbw81g00nhnykd0lnid29f4aw1av7w6nw8l"))
3542 (file-name (git-file-name name version))))
3543 (build-system emacs-build-system)
3544 (inputs
3545 `(("dedukti-mode" ,emacs-dedukti-mode)
3546 ("flycheck-mode" ,emacs-flycheck)))
3547 (synopsis "Flycheck integration for the dedukti language")
3548 (description "This package provides a frontend for Flycheck to perform
3549 syntax checking on dedukti files.")
3550 (license license:cecill-b))))
3551
3552 (define-public ocaml4.07-ppx-inline-test
3553 (package
3554 (name "ocaml4.07-ppx-inline-test")
3555 (version "0.12.0")
3556 (home-page "https://github.com/janestreet/ppx_inline_test")
3557 (source
3558 (origin
3559 (method git-fetch)
3560 (uri (git-reference
3561 (url (string-append home-page ".git"))
3562 (commit (string-append "v" version))))
3563 (file-name (git-file-name name version))
3564 (sha256
3565 (base32
3566 "0nyz411zim94pzbxm2l2v2l9jishcxwvxhh142792g2s18r4vn50"))))
3567 (build-system dune-build-system)
3568 (arguments
3569 ;see home page README for further information
3570 `(#:tests? #f
3571 #:ocaml ,ocaml-4.07
3572 #:findlib ,ocaml4.07-findlib))
3573 (inputs
3574 `(("ocaml-base" ,ocaml4.07-base)
3575 ("ocaml-migrate-parsetree"
3576 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
3577 ("ocaml-compiler-libs" ,ocaml4.07-compiler-libs)
3578 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)
3579 ("ocaml-stdio" ,ocaml4.07-stdio)
3580 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
3581 (properties `((upstream-name . "ppx_inline_test")))
3582 (synopsis "Syntax extension for writing in-line tests in ocaml code")
3583 (description "This package contains a syntax extension for writing
3584 in-line tests in ocaml code. It is part of Jane Street's PPX rewriters
3585 collection.")
3586 (license license:expat)))
3587
3588 (define-public ocaml-bindlib
3589 (package
3590 (name "ocaml-bindlib")
3591 (version "5.0.1")
3592 (source
3593 (origin
3594 (method git-fetch)
3595 (uri (git-reference
3596 (url "https://github.com/rlepigre/ocaml-bindlib")
3597 (commit (string-append "ocaml-bindlib_" version))))
3598 (file-name (git-file-name name version))
3599 (sha256
3600 (base32
3601 "1f8kr81w8vsi4gv61xn1qbc6zrzkjp8l9ix0942vjh4gjxc74v75"))))
3602 (build-system ocaml-build-system)
3603 (arguments
3604 `(#:tests? #f ;no tests
3605 #:use-make? #t
3606 #:phases
3607 (modify-phases %standard-phases
3608 (delete 'configure)
3609 (replace 'build
3610 (lambda _
3611 (invoke "make")))
3612 (replace 'install
3613 (lambda _
3614 (invoke "make" "install"))))))
3615 (native-inputs
3616 `(("ocamlbuild" ,ocamlbuild)
3617 ("ocaml-findlib" ,ocaml-findlib)))
3618 (home-page "https://rlepigre.github.io/ocaml-bindlib/")
3619 (synopsis "OCaml Bindlib library for bound variables")
3620 (description "Bindlib is a library allowing the manipulation of data
3621 structures with bound variables. It is particularly useful when writing ASTs
3622 for programming languages, but also for manipulating terms of the λ-calculus
3623 or quantified formulas.")
3624 (license license:gpl3+)))
3625
3626 (define-public ocaml4.07-earley
3627 (package
3628 (name "ocaml4.07-earley")
3629 (version "2.0.0")
3630 (home-page "https://github.com/rlepigre/ocaml-earley")
3631 (source
3632 (origin
3633 (method git-fetch)
3634 (uri (git-reference
3635 (url (string-append home-page ".git"))
3636 (commit version)))
3637 (file-name (git-file-name name version))
3638 (sha256
3639 (base32
3640 "18k7bi7krc4bvqnhijz1q0pfr0nfahghfjifci8rh1q4i5zd0xz5"))))
3641 (build-system dune-build-system)
3642 (arguments
3643 `(#:test-target "."
3644 #:ocaml ,ocaml-4.07
3645 #:findlib ,ocaml4.07-findlib))
3646 (synopsis "Parsing library based on Earley Algorithm")
3647 (description "Earley is a parser combinator library base on Earley's
3648 algorithm. It is intended to be used in conjunction with an OCaml syntax
3649 extension which allows the definition of parsers inside the language. There
3650 is also support for writing OCaml syntax extensions in a camlp4 style.")
3651 (license license:cecill-b)))
3652
3653 (define-public ocaml-timed
3654 (package
3655 (name "ocaml-timed")
3656 (version "1.0")
3657 (home-page "https://github.com/rlepigre/ocaml-timed")
3658 (source (origin
3659 (method git-fetch)
3660 (uri (git-reference
3661 (url (string-append home-page ".git"))
3662 (commit (string-append name "_" version))))
3663 (sha256
3664 (base32
3665 "0hfxz710faxy5yk97bkfnw87r732jcxxhmjppwrbfdb6pd0wks96"))
3666 (file-name (git-file-name name version))))
3667 (build-system ocaml-build-system)
3668 (arguments
3669 '(#:phases
3670 (modify-phases %standard-phases
3671 (delete 'configure)
3672 (replace 'build
3673 (lambda _
3674 (invoke "make")))
3675 (replace 'install
3676 (lambda _
3677 (invoke "make" "install")))
3678 (replace 'check
3679 (lambda _
3680 (invoke "make" "tests"))))))
3681 (synopsis "Timed references for imperative state")
3682 (description "Timed references for imperative state. This module provides
3683 an alternative type for references (or mutable cells) supporting undo/redo
3684 operations. In particular, an abstract notion of time is used to capture the
3685 state of the references at any given point, so that it can be restored. Note
3686 that usual reference operations only have a constant time / memory overhead
3687 (compared to those of the standard library).
3688
3689 Moreover, we provide an alternative implementation based on the references
3690 of the standard library (Pervasives module). However, it is less efficient
3691 than the first one.")
3692 (license license:expat)))
3693
3694 (define-public ocaml-biniou
3695 (package
3696 (name "ocaml-biniou")
3697 (version "1.2.1")
3698 (home-page "https://github.com/mjambon/biniou")
3699 (source
3700 (origin
3701 (method git-fetch)
3702 (uri (git-reference
3703 (url (string-append home-page ".git"))
3704 (commit version)))
3705 (file-name (git-file-name name version))
3706 (sha256
3707 (base32
3708 "0x2kiy809n1j0yf32l7hj102y628jp5jdrkbi3z7ld8jq04h1790"))))
3709 (build-system dune-build-system)
3710 (arguments
3711 `(#:phases
3712 (modify-phases %standard-phases
3713 (add-before 'build 'make-writable
3714 (lambda _
3715 (for-each
3716 (lambda (file)
3717 (chmod file #o644))
3718 (find-files "." "."))
3719 #t)))))
3720 (inputs
3721 `(("ocaml-easy-format" ,ocaml-easy-format)))
3722 (native-inputs
3723 `(("which" ,which)))
3724 (synopsis "Data format designed for speed, safety, ease of use and backward
3725 compatibility")
3726 (description "Biniou (pronounced \"be new\" is a binary data format
3727 designed for speed, safety, ease of use and backward compatibility as
3728 protocols evolve. Biniou is vastly equivalent to JSON in terms of
3729 functionality but allows implementations several times faster (4 times faster
3730 than yojson), with 25-35% space savings.")
3731 (license license:bsd-3)))
3732
3733 (define-public ocaml-yojson
3734 (package
3735 (name "ocaml-yojson")
3736 (version "1.7.0")
3737 (home-page "https://github.com/ocaml-community/yojson")
3738 (source
3739 (origin
3740 (method git-fetch)
3741 (uri (git-reference
3742 (url (string-append home-page ".git"))
3743 (commit version)))
3744 (file-name (git-file-name name version))
3745 (sha256
3746 (base32
3747 "0zncsw8bgbkh1pfvfc7nh628hfj84lgx6jwhp9ashj3z1z0w3xjn"))))
3748 (build-system dune-build-system)
3749 (arguments
3750 `(#:test-target "."))
3751 (inputs
3752 `(("ocaml-biniou" ,ocaml-biniou)
3753 ("ocaml-easy-format" ,ocaml-easy-format)))
3754 (native-inputs
3755 `(("ocaml-alcotest" ,ocaml-alcotest)
3756 ("ocaml-cppo" ,ocaml-cppo)))
3757 (synopsis "Low-level JSON library for OCaml")
3758 (description "Yojson is an optimized parsing and printing library for the
3759 JSON format. It addresses a few shortcomings of json-wheel including 2x
3760 speedup, polymorphic variants and optional syntax for tuples and variants.
3761 @code{ydump} is a pretty printing command-line program provided with the
3762 yojson package. The program @code{atdgen} can be used to derive OCaml-JSON
3763 serializers and deserializers from type definitions.")
3764 (license license:bsd-3)))
3765
3766 (define-public ocaml-craml
3767 (package
3768 (name "ocaml-craml")
3769 (version "1.0.0")
3770 (home-page "https://github.com/realworldocaml/craml")
3771 (source
3772 (origin
3773 (method git-fetch)
3774 (uri (git-reference
3775 (url (string-append home-page ".git"))
3776 (commit version)))
3777 (file-name (git-file-name name version))
3778 (sha256
3779 (base32
3780 "197xjp4vmzdymf2ndinw271ihpf45h04mx8gqj8ypspxdr5fj1a5"))))
3781 (build-system dune-build-system)
3782 (inputs
3783 `(("ocaml-fmt" ,ocaml-fmt)
3784 ("ocaml-astring" ,ocaml-astring)
3785 ("ocaml-logs" ,ocaml-logs)
3786 ("ocaml-cmdliner" ,ocaml-cmdliner)))
3787 (synopsis
3788 "CRAM-testing framework for testing command line applications")
3789 (description "CRAM is a is functional testing framework for command line
3790 applications. @code{craml} is freely inspired by the
3791 Mercurial's @code{https://www.selenic.com/blog/?p=663, unified test
3792 format}. @code{craml} is released as a single binary (called @code{craml}).")
3793 (license license:isc)))
3794
3795 (define-public ocaml4.07-merlin
3796 (package
3797 (name "ocaml4.07-merlin")
3798 (version "3.2.2")
3799 (home-page "https://ocaml.github.io/merlin/")
3800 (source
3801 (origin
3802 (method git-fetch)
3803 (uri (git-reference
3804 (url "https://github.com/ocaml/merlin")
3805 (commit (string-append "v" version))))
3806 (file-name (git-file-name name version))
3807 (sha256
3808 (base32
3809 "15ssgmwdxylbwhld9p1cq8x6kadxyhll5bfyf11dddj6cldna3hb"))))
3810 (build-system dune-build-system)
3811 (inputs
3812 `(("ocaml-biniou" ,(package-with-ocaml4.07 ocaml-biniou))
3813 ("ocaml-yojson" ,(package-with-ocaml4.07 ocaml-yojson))
3814 ("ocaml-easy-format" ,(package-with-ocaml4.07 ocaml-easy-format))))
3815 (native-inputs
3816 `(("ocaml-findlib" ,ocaml-findlib)))
3817 (arguments
3818 `(#:package "merlin"
3819 #:tests? #f ;; Errors in tests in version 3.2.2
3820 #:ocaml ,ocaml-4.07
3821 #:findlib ,ocaml4.07-findlib))
3822 (synopsis "Context sensitive completion for OCaml in Vim and Emacs")
3823 (description "Merlin is an editor service that provides modern IDE
3824 features for OCaml. Emacs and Vim support is provided out-of-the-box.
3825 External contributors added support for Visual Studio Code, Sublime Text and
3826 Atom.")
3827 (license license:expat)))
3828
3829 (define-public ocaml4.07-gsl
3830 (package
3831 (name "ocaml4.07-gsl")
3832 (version "1.24.0")
3833 (source
3834 (origin
3835 (method url-fetch)
3836 (uri
3837 (string-append
3838 "https://github.com/mmottl/gsl-ocaml/releases/download/"
3839 version "/gsl-" version ".tbz"))
3840 (sha256
3841 (base32
3842 "1l5zkkkg8sglsihrbf10ivq9s8xzl1y6ag89i4jqpnmi4m43fy34"))))
3843 (build-system dune-build-system)
3844 (arguments
3845 `(#:test-target "."
3846 #:phases
3847 (modify-phases %standard-phases
3848 (add-after 'unpack 'fix-gsl-directory
3849 (lambda* (#:key inputs #:allow-other-keys)
3850 (substitute* "src/config/discover.ml"
3851 (("/usr") (assoc-ref inputs "gsl")))
3852 #t)))
3853 #:ocaml ,ocaml-4.07
3854 #:findlib ,ocaml4.07-findlib
3855 #:dune ,ocaml4.07-dune))
3856 (inputs
3857 `(("gsl" ,gsl)))
3858 (propagated-inputs
3859 `(("ocaml-base" ,ocaml4.07-base)
3860 ("ocaml-stdio" ,ocaml4.07-stdio)))
3861 (home-page "https://mmottl.github.io/gsl-ocaml")
3862 (synopsis "Bindings to the GNU Scientific Library")
3863 (description
3864 "GSL-OCaml is an interface to the @dfn{GNU scientific library} (GSL) for
3865 the OCaml language.")
3866 (license license:gpl3+)))
3867
3868 (define-public ocaml4.07-gsl-1
3869 (package
3870 (inherit ocaml4.07-gsl)
3871 (version "1.19.3")
3872 (source (origin
3873 (method url-fetch)
3874 (uri (string-append "https://github.com/mmottl/gsl-ocaml"
3875 "/releases/download/v"
3876 version "/gsl-ocaml-" version ".tar.gz"))
3877 (sha256
3878 (base32
3879 "0nzp43hp8pbjqkrxnwp5lgjrabxayf61h18fjaydi0s5faq6f3xh"))))
3880 (build-system ocaml-build-system)
3881 (inputs
3882 `(("gsl" ,gsl)))
3883 (native-inputs
3884 `(("ocamlbuild" ,(package-with-ocaml4.07 ocamlbuild))))
3885 (arguments
3886 `(#:ocaml ,ocaml-4.07
3887 #:findlib ,ocaml4.07-findlib))
3888 (propagated-inputs '())))
3889
3890 (define-public cubicle
3891 (package
3892 (name "cubicle")
3893 (version "1.1.2")
3894 (source (origin
3895 (method url-fetch)
3896 (uri (string-append "http://cubicle.lri.fr/cubicle-"
3897 version ".tar.gz"))
3898 (sha256
3899 (base32
3900 "10kk80jdmpdvql88sdjsh7vqzlpaphd8vip2lp47aarxjkwjlz1q"))))
3901 (build-system gnu-build-system)
3902 (native-inputs
3903 `(("automake" ,automake)
3904 ("ocaml" ,ocaml)
3905 ("which" ,(@@ (gnu packages base) which))))
3906 (propagated-inputs
3907 `(("ocaml-num" ,ocaml-num)
3908 ("z3" ,z3)))
3909 (arguments
3910 `(#:configure-flags (list "--with-z3")
3911 #:make-flags (list "QUIET=")
3912 #:tests? #f
3913 #:phases
3914 (modify-phases %standard-phases
3915 (add-before 'configure 'configure-for-release
3916 (lambda _
3917 (substitute* "Makefile.in"
3918 (("SVNREV=") "#SVNREV="))
3919 #t))
3920 (add-before 'configure 'fix-/bin/sh
3921 (lambda _
3922 (substitute* "configure"
3923 (("-/bin/sh") (string-append "-" (which "sh"))))
3924 #t))
3925 (add-before 'configure 'fix-smt-z3wrapper.ml
3926 (lambda _
3927 (substitute* "Makefile.in"
3928 (("\\\\n") ""))
3929 #t))
3930 (add-before 'configure 'fix-ocaml-num
3931 (lambda* (#:key inputs #:allow-other-keys)
3932 (substitute* "Makefile.in"
3933 (("= \\$\\(FUNCTORYLIB\\)")
3934 (string-append "= -I "
3935 (assoc-ref inputs "ocaml-num")
3936 "/lib/ocaml/site-lib"
3937 " $(FUNCTORYLIB)")))
3938 #t)))))
3939 (home-page "http://cubicle.lri.fr/")
3940 (synopsis "Model checker for array-based systems")
3941 (description "Cubicle is a model checker for verifying safety properties
3942 of array-based systems. This is a syntactically restricted class of
3943 parametrized transition systems with states represented as arrays indexed by
3944 an arbitrary number of processes. Cache coherence protocols and mutual
3945 exclusion algorithms are typical examples of such systems.")
3946 (license license:asl2.0)))
3947
3948 (define-public ocaml4.07-sexplib0
3949 (package
3950 (name "ocaml4.07-sexplib0")
3951 (version "0.11.0")
3952 (home-page "https://github.com/janestreet/sexplib0")
3953 (source
3954 (origin
3955 (method git-fetch)
3956 (uri (git-reference
3957 (url (string-append home-page ".git"))
3958 (commit (string-append "v" version))))
3959 (file-name (git-file-name name version))
3960 (sha256
3961 (base32
3962 "07v3ggyss7xhfv14bjk1n87sr42iqwj4cgjiv2lcdfkqk49i2bmi"))))
3963 (build-system dune-build-system)
3964 (arguments
3965 `(#:tests? #f ;no tests
3966 #:ocaml ,ocaml-4.07
3967 #:findlib ,ocaml4.07-findlib))
3968 (synopsis "Library containing the definition of S-expressions and some
3969 base converters")
3970 (description "Part of Jane Street's Core library The Core suite of
3971 libraries is an industrial strength alternative to OCaml's standard library
3972 that was developed by Jane Street, the largest industrial user of OCaml.")
3973 (license license:expat)))
3974
3975 (define-public ocaml4.07-parsexp
3976 (package
3977 (name "ocaml4.07-parsexp")
3978 (version "0.11.0")
3979 (home-page "https://github.com/janestreet/parsexp")
3980 (source
3981 (origin
3982 (method git-fetch)
3983 (uri (git-reference
3984 (url (string-append home-page ".git"))
3985 (commit (string-append "v" version))))
3986 (file-name (git-file-name name version))
3987 (sha256
3988 (base32
3989 "1nyq23s5igd8cf3n4qxprjvhbmb6ighb3fy5mw7hxl0mdgsw5fvz"))))
3990 (build-system dune-build-system)
3991 (arguments
3992 `(#:ocaml ,ocaml-4.07
3993 #:findlib ,ocaml4.07-findlib))
3994 (inputs
3995 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
3996 (synopsis "S-expression parsing library")
3997 (description
3998 "This library provides generic parsers for parsing S-expressions from
3999 strings or other medium.
4000
4001 The library is focused on performances but still provide full generic
4002 parsers that can be used with strings, bigstrings, lexing buffers,
4003 character streams or any other sources effortlessly.
4004
4005 It provides three different class of parsers:
4006 @itemize
4007 @item
4008 the normal parsers, producing [Sexp.t] or [Sexp.t list] values
4009 @item
4010 the parsers with positions, building compact position sequences so
4011 that one can recover original positions in order to report properly
4012 located errors at little cost
4013 @item
4014 the Concrete Syntax Tree parsers, produce values of type
4015 @code{Parsexp.Cst.t} which record the concrete layout of the s-expression
4016 syntax, including comments
4017 @end itemize
4018
4019 This library is portable and doesn't provide IO functions. To read
4020 s-expressions from files or other external sources, you should use
4021 parsexp_io.")
4022 (license license:expat)))
4023
4024 (define-public ocaml4.07-sexplib
4025 (package
4026 (name "ocaml4.07-sexplib")
4027 (version "0.11.0")
4028 (home-page "https://github.com/janestreet/sexplib")
4029 (source
4030 (origin
4031 (method git-fetch)
4032 (uri (git-reference
4033 (url (string-append home-page ".git"))
4034 (commit (string-append "v" version))))
4035 (file-name (git-file-name name version))
4036 (sha256
4037 (base32
4038 "1qfl0m04rpcjvc4yw1hzh6r16jpwmap0sa9ax6zjji67dz4szpyb"))))
4039 (build-system dune-build-system)
4040 (arguments
4041 `(#:ocaml ,ocaml-4.07
4042 #:findlib ,ocaml4.07-findlib))
4043 (propagated-inputs
4044 `(("ocaml-num" ,(package-with-ocaml4.07 ocaml-num))
4045 ("ocaml-parsexp" ,ocaml4.07-parsexp)
4046 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4047 (synopsis
4048 "Library for serializing OCaml values to and from S-expressions")
4049 (description
4050 "This package is part of Jane Street's Core library. Sexplib contains
4051 functionality for parsing and pretty-printing s-expressions.")
4052 (license license:expat)))
4053
4054 (define-public ocaml4.07-base
4055 (package
4056 (name "ocaml4.07-base")
4057 (version "0.11.1")
4058 (home-page "https://github.com/janestreet/base")
4059 (source
4060 (origin
4061 (method git-fetch)
4062 (uri (git-reference
4063 (url (string-append home-page ".git"))
4064 (commit (string-append "v" version))))
4065 (file-name (git-file-name name version))
4066 (sha256
4067 (base32
4068 "0j6xb4265jr41vw4fjzak6yr8s30qrnzapnc6rl1dxy8bjai0nir"))))
4069 (build-system dune-build-system)
4070 (propagated-inputs
4071 `(("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4072 (arguments
4073 `(#:phases
4074 (modify-phases %standard-phases
4075 (replace 'build
4076 ;; make warnings non fatal (jbuilder behaviour)
4077 (lambda _
4078 (invoke "dune" "build" "@install" "--profile=release"))))
4079 #:ocaml ,ocaml-4.07
4080 #:findlib ,ocaml4.07-findlib))
4081 (synopsis
4082 "Full standard library replacement for OCaml")
4083 (description
4084 "Base is a complete and portable alternative to the OCaml standard
4085 library. It provides all standard functionalities one would expect
4086 from a language standard library. It uses consistent conventions
4087 across all of its module.
4088
4089 Base aims to be usable in any context. As a result system dependent
4090 features such as I/O are not offered by Base. They are instead
4091 provided by companion libraries such as
4092 @url{https://github.com/janestreet/stdio, ocaml-stdio}.")
4093 (license license:expat)))
4094
4095 (define-public ocaml4.07-compiler-libs
4096 (package
4097 (name "ocaml4.07-compiler-libs")
4098 (version "0.11.0")
4099 (home-page "https://github.com/janestreet/ocaml-compiler-libs")
4100 (source
4101 (origin
4102 (method git-fetch)
4103 (uri (git-reference
4104 (url (string-append home-page ".git"))
4105 (commit (string-append "v" version))))
4106 (file-name (git-file-name name version))
4107 (sha256
4108 (base32
4109 "03jds7bszh8wwpfwxb3dg0gyr1j1872wxwx1xqhry5ir0i84bg0s"))))
4110 (build-system dune-build-system)
4111 (arguments
4112 `(#:tests? #f ;no tests
4113 #:ocaml ,ocaml-4.07
4114 #:findlib ,ocaml4.07-findlib
4115 #:dune ,ocaml4.07-dune))
4116 (properties `((upstream-name . "ocaml-compiler-libs")))
4117 (synopsis "Compiler libraries repackaged")
4118 (description "This package simply repackages the OCaml compiler libraries
4119 so they don't expose everything at toplevel. For instance, @code{Ast_helper}
4120 is now @code{Ocaml_common.Ast_helper}.")
4121 (license license:expat)))
4122
4123 (define-public ocaml4.07-stdio
4124 (package
4125 (name "ocaml4.07-stdio")
4126 (version "0.11.0")
4127 (home-page "https://github.com/janestreet/stdio")
4128 (source
4129 (origin
4130 (method git-fetch)
4131 (uri (git-reference
4132 (url (string-append home-page ".git"))
4133 (commit (string-append "v" version))))
4134 (file-name (git-file-name name version))
4135 (sha256
4136 (base32
4137 "1facajqhvq34g2wrg368y0ajxd6lrj5b3lyzyj0jhdmraxajjcwn"))))
4138 (build-system dune-build-system)
4139 (propagated-inputs
4140 `(("ocaml-base" ,ocaml4.07-base)
4141 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4142 (arguments
4143 `(#:tests? #f ;no tests
4144 #:ocaml ,ocaml-4.07
4145 #:findlib ,ocaml4.07-findlib))
4146 (synopsis "Standard IO library for OCaml")
4147 (description
4148 "Stdio implements simple input/output functionalities for OCaml. It
4149 re-exports the input/output functions of the OCaml standard libraries using
4150 a more consistent API.")
4151 (license license:expat)))
4152
4153 (define-public ocaml-ppx-derivers
4154 (package
4155 (name "ocaml-ppx-derivers")
4156 (version "1.2.1")
4157 (home-page
4158 "https://github.com/ocaml-ppx/ppx_derivers")
4159 (source
4160 (origin
4161 (method git-fetch)
4162 (uri (git-reference
4163 (url (string-append home-page ".git"))
4164 (commit version)))
4165 (file-name (git-file-name name version))
4166 (sha256
4167 (base32
4168 "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"))))
4169 (build-system dune-build-system)
4170 (arguments
4171 '(#:tests? #f)) ;no tests
4172 (properties `((upstream-name . "ppx_derivers")))
4173 (synopsis "Shared @code{@@deriving} plugin registry")
4174 (description
4175 "Ppx_derivers is a tiny package whose sole purpose is to allow
4176 ppx_deriving and ppx_type_conv to inter-operate gracefully when linked
4177 as part of the same ocaml-migrate-parsetree driver.")
4178 (license license:bsd-3)))
4179
4180 (define-public ocaml4.07-ppxlib
4181 (package
4182 (name "ocaml4.07-ppxlib")
4183 (version "0.6.0")
4184 (home-page "https://github.com/ocaml-ppx/ppxlib")
4185 (source
4186 (origin
4187 (method git-fetch)
4188 (uri (git-reference
4189 (url (string-append home-page ".git"))
4190 (commit version)))
4191 (file-name (git-file-name name version))
4192 (sha256
4193 (base32
4194 "0my9x7sxb329h0lzshppdaawiyfbaw6g5f41yiy7bhl071rnlvbv"))))
4195 (build-system dune-build-system)
4196 (propagated-inputs
4197 `(("ocaml-base" ,ocaml4.07-base)
4198 ("ocaml-compiler-libs" ,ocaml4.07-compiler-libs)
4199 ("ocaml-migrate-parsetree"
4200 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4201 ("ocaml-ppx-derivers" ,(package-with-ocaml4.07 ocaml-ppx-derivers))
4202 ("ocaml-stdio" ,ocaml4.07-stdio)
4203 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
4204 ("ocaml-sexplib0" ,ocaml4.07-sexplib0)))
4205 (arguments
4206 `(#:phases
4207 (modify-phases %standard-phases
4208 (add-before 'check 'set-topfind
4209 (lambda* (#:key inputs #:allow-other-keys)
4210 ;; add the line #directory ".." at the top of each file
4211 ;; using #use "topfind";; to be able to find topfind
4212 (let* ((findlib-path (assoc-ref inputs "findlib"))
4213 (findlib-libdir
4214 (string-append findlib-path "/lib/ocaml/site-lib")))
4215 (substitute* '("test/base/test.ml"
4216 "test/code_path/test.ml"
4217 "test/deriving/test.ml"
4218 "test/driver/attributes/test.ml"
4219 "test/driver/non-compressible-suffix/test.ml"
4220 "test/driver/transformations/test.ml")
4221 (("#use \"topfind\";;" all)
4222 (string-append "#directory \"" findlib-libdir "\"\n"
4223 all))))
4224 #t)))
4225 #:ocaml ,ocaml-4.07
4226 #:findlib ,ocaml4.07-findlib))
4227 (synopsis
4228 "Base library and tools for ppx rewriters")
4229 (description
4230 "A comprehensive toolbox for ppx development. It features:
4231 @itemize
4232 @item an OCaml AST / parser / pretty-printer snapshot, to create a full frontend
4233 independent of the version of OCaml;
4234 @item a library for library for ppx rewriters in general, and type-driven code
4235 generators in particular;
4236 @item
4237 a feature-full driver for OCaml AST transformers;
4238 @item a quotation mechanism allowing to write values representing the
4239 OCaml AST in the OCaml syntax;
4240 @item a generator of open recursion classes from type definitions.
4241 @end itemize")
4242 (license license:expat)))
4243
4244 (define-public ocaml4.07-ppx-compare
4245 (package
4246 (name "ocaml4.07-ppx-compare")
4247 (version "0.11.1")
4248 (source (origin
4249 (method git-fetch)
4250 (uri (git-reference
4251 (url "https://github.com/janestreet/ppx_compare")
4252 (commit (string-append "v" version))))
4253 (file-name (git-file-name name version))
4254 (sha256
4255 (base32
4256 "06bq4m1bsm4jlx4g7wh5m99qky7xm4c2g52kaz6pv25hdn5agi2m"))))
4257 (build-system dune-build-system)
4258 (propagated-inputs
4259 `(("ocaml-base" ,ocaml4.07-base)
4260 ("ocaml-migrate-parsetree"
4261 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4262 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4263 (arguments
4264 `(#:ocaml ,ocaml-4.07
4265 #:findlib ,ocaml4.07-findlib))
4266 (properties `((upstream-name . "ppx_compare")))
4267 (home-page "https://github.com/janestreet/ppx_compare")
4268 (synopsis "Generation of comparison functions from types")
4269 (description "Generation of fast comparison functions from type expressions
4270 and definitions. Ppx_compare is a ppx rewriter that derives comparison functions
4271 from type representations. The scaffolded functions are usually much faster
4272 than ocaml's Pervasives.compare. Scaffolding functions also gives you more
4273 flexibility by allowing you to override them for a specific type and more safety
4274 by making sure that you only compare comparable values.")
4275 (license license:asl2.0)))
4276
4277 (define-public ocaml4.07-fieldslib
4278 (package
4279 (name "ocaml4.07-fieldslib")
4280 (version "0.11.0")
4281 (source (origin
4282 (method url-fetch)
4283 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4284 (version-major+minor version) "/files/"
4285 "fieldslib-v" version ".tar.gz"))
4286 (sha256
4287 (base32
4288 "12948pzxrl360lybm9fzyvplgcl87zjbn4m3sk1aw75zk85p1388"))))
4289 (build-system dune-build-system)
4290 (arguments
4291 ;; No tests
4292 `(#:tests? #f
4293 #:ocaml ,ocaml-4.07
4294 #:findlib ,ocaml4.07-findlib))
4295 (propagated-inputs
4296 `(("ocaml-base" ,ocaml4.07-base)
4297 ("ocaml-migrate-parsetree"
4298 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4299 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4300 (properties `((upstream-name . "fieldslib")))
4301 (home-page "https://github.com/janestreet/fieldslib")
4302 (synopsis "Syntax extension to record fields")
4303 (description "Syntax extension to define first class values representing
4304 record fields, to get and set record fields, iterate and fold over all fields
4305 of a record and create new record values.")
4306 (license license:asl2.0)))
4307
4308 (define-public ocaml4.07-variantslib
4309 (package
4310 (name "ocaml4.07-variantslib")
4311 (version "0.11.0")
4312 (source (origin
4313 (method url-fetch)
4314 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4315 (version-major+minor version)
4316 "/files/variantslib-v" version ".tar.gz"))
4317 (sha256
4318 (base32
4319 "1hsdwmkslvk4cznqr4lyyiy7vvk5spil226k0z2in26fxq6y0hf3"))))
4320 (build-system dune-build-system)
4321 (arguments
4322 ;; No tests
4323 `(#:tests? #f
4324 #:ocaml ,ocaml-4.07
4325 #:findlib ,ocaml4.07-findlib))
4326 (propagated-inputs
4327 `(("ocaml-base" ,ocaml4.07-base)
4328 ("ocaml-migrate-parsetree"
4329 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4330 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4331 (properties `((upstream-name . "variantslib")))
4332 (home-page "https://github.com/janestreet/variantslib")
4333 (synopsis "OCaml variants as first class values")
4334 (description "The Core suite of libraries is an alternative to OCaml's
4335 standard library.")
4336 (license license:asl2.0)))
4337
4338 (define-public ocaml4.07-ppx-fields-conv
4339 (package
4340 (name "ocaml4.07-ppx-fields-conv")
4341 (version "0.11.0")
4342 (source (origin
4343 (method url-fetch)
4344 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4345 (version-major+minor version)
4346 "/files/ppx_fields_conv-v" version ".tar.gz"))
4347 (sha256
4348 (base32
4349 "07zrd3qky2ppbfl55gpm90rvqa5860xgwcsvihrjmkrw6d0jirkc"))))
4350 (build-system dune-build-system)
4351 (propagated-inputs
4352 `(("ocaml-base" ,ocaml4.07-base)
4353 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
4354 ("ocaml-migrate-parsetree"
4355 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4356 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4357 (arguments
4358 `(#:ocaml ,ocaml-4.07
4359 #:findlib ,ocaml4.07-findlib))
4360 (properties `((upstream-name . "ppx_fields_conv")))
4361 (home-page "https://github.com/janestreet/ppx_fields_conv")
4362 (synopsis "Generation of accessor and iteration functions for ocaml records")
4363 (description "Ppx_fields_conv is a ppx rewriter that can be used to define
4364 first class values representing record fields, and additional routines, to get
4365 and set record fields, iterate and fold over all fields of a record and create
4366 new record values.")
4367 (license license:asl2.0)))
4368
4369 (define-public ocaml4.07-ppx-sexp-conv
4370 (package
4371 (name "ocaml4.07-ppx-sexp-conv")
4372 (version "0.11.2")
4373 (source (origin
4374 (method git-fetch)
4375 (uri (git-reference
4376 (url "https://github.com/janestreet/ppx_sexp_conv")
4377 (commit (string-append "v" version))))
4378 (file-name (git-file-name name version))
4379 (sha256
4380 (base32
4381 "0pqwnqy1xp309wvdcaax4lg02yk64lq2w03mbgfvf6ps5ry4gis9"))))
4382 (build-system dune-build-system)
4383 (propagated-inputs
4384 `(("ocaml-base" ,ocaml4.07-base)
4385 ("ocaml-migrate-parsetree"
4386 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4387 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4388 (arguments
4389 `(#:ocaml ,ocaml-4.07
4390 #:findlib ,ocaml4.07-findlib))
4391 (properties `((upstream-name . "ppx_sexp_conv")))
4392 (home-page "https://github.com/janestreet/ppx_sexp_conv")
4393 (synopsis "Generation of S-expression conversion functions from type definitions")
4394 (description "This package generates S-expression conversion functions from type
4395 definitions.")
4396 (license license:asl2.0)))
4397
4398 (define-public ocaml4.07-ppx-variants-conv
4399 (package
4400 (name "ocaml4.07-ppx-variants-conv")
4401 (version "0.11.1")
4402 (source (origin
4403 (method git-fetch)
4404 (uri (git-reference
4405 (url "https://github.com/janestreet/ppx_variants_conv")
4406 (commit (string-append "v" version))))
4407 (file-name (git-file-name name version))
4408 (sha256
4409 (base32
4410 "1yc0gsds5m2nv39zga8nnrca2n75rkqy5dz4xj1635ybz20hhbjd"))))
4411 (build-system dune-build-system)
4412 (propagated-inputs
4413 `(("ocaml-base" ,ocaml4.07-base)
4414 ("ocaml-variantslib" ,ocaml4.07-variantslib)
4415 ("ocaml-migrate-parsetree"
4416 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4417 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4418 (arguments
4419 `(#:ocaml ,ocaml-4.07
4420 #:findlib ,ocaml4.07-findlib))
4421 (properties
4422 `((upstream-name . "ppx_variants_conv")))
4423 (home-page
4424 "https://github.com/janestreet/ppx_variants_conv")
4425 (synopsis "Generation of accessor and iteration functions for OCaml variant types")
4426 (description
4427 "This package generates accessors and iteration functions for OCaml
4428 variant types.")
4429 (license license:asl2.0)))
4430
4431 (define-public ocaml4.07-ppx-custom-printf
4432 (package
4433 (name "ocaml4.07-ppx-custom-printf")
4434 (version "0.11.0")
4435 (source (origin
4436 (method url-fetch)
4437 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4438 (version-major+minor version)
4439 "/files/ppx_custom_printf-v" version ".tar.gz"))
4440 (sha256
4441 (base32
4442 "11b73smf3g3bpd9lg014pr4rx285nk9mnk6g6464ph51jv0sqzhj"))))
4443 (build-system dune-build-system)
4444 (propagated-inputs
4445 `(("ocaml-base" ,ocaml4.07-base)
4446 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4447 ("ocaml-migrate-parsetree"
4448 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4449 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4450 (arguments
4451 `(#:ocaml ,ocaml-4.07
4452 #:findlib ,ocaml4.07-findlib))
4453 (properties `((upstream-name . "ppx_custom_printf")))
4454 (home-page "https://github.com/janestreet/ppx_custom_printf")
4455 (synopsis "Printf-style format-strings for user-defined string conversion")
4456 (description "Extensions to printf-style format-strings for user-defined
4457 string conversion.")
4458 (license license:asl2.0)))
4459
4460 (define-public ocaml4.07-bin-prot
4461 (package
4462 (name "ocaml4.07-bin-prot")
4463 (version "0.11.0")
4464 (source (origin
4465 (method url-fetch)
4466 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4467 (version-major+minor version)
4468 "/files/bin_prot-v" version ".tar.gz"))
4469 (sha256
4470 (base32
4471 "1rsd91gx36prj4whi76nsiz1bzpgal9nzyw3pxdz1alv4ilk2il6"))))
4472 (build-system dune-build-system)
4473 (inputs
4474 `(("ocaml-base" ,ocaml4.07-base)
4475 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4476 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4477 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4478 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4479 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4480 ("ocaml-migrate-parsetree"
4481 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
4482 (arguments
4483 `(#:ocaml ,ocaml-4.07
4484 #:findlib ,ocaml4.07-findlib))
4485 (properties `((upstream-name . "bin_prot")))
4486 (home-page "https://github.com/janestreet/bin_prot")
4487 (synopsis "Binary protocol generator")
4488 (description "This library contains functionality for reading and writing
4489 OCaml-values in a type-safe binary protocol. It is extremely efficient,
4490 typically supporting type-safe marshalling and unmarshalling of even highly
4491 structured values at speeds sufficient to saturate a gigabit connection. The
4492 protocol is also heavily optimized for size, making it ideal for long-term
4493 storage of large amounts of data.")
4494 (license (list
4495 license:asl2.0
4496 license:bsd-3))))
4497
4498 (define-public ocaml-octavius
4499 (package
4500 (name "ocaml-octavius")
4501 (version "1.2.2")
4502 (source (origin
4503 (method git-fetch)
4504 (uri (git-reference
4505 (url "https://github.com/ocaml-doc/octavius")
4506 (commit (string-append "v" version))))
4507 (file-name (git-file-name name version))
4508 (sha256
4509 (base32
4510 "1c5m51xcn2jv42kjjpklr6g63sgx1k885wfdp1yr4wrmiaj9cbpx"))))
4511 (build-system dune-build-system)
4512 (arguments
4513 `(#:phases
4514 (modify-phases %standard-phases
4515 (add-before 'build 'make-writable
4516 (lambda _
4517 (for-each (lambda (file)
4518 (chmod file #o644))
4519 (find-files "." "."))
4520 #t)))))
4521 (properties `((upstream-name . "octavius")))
4522 (home-page "https://github.com/ocaml-doc/octavius")
4523 (synopsis "Ocamldoc comment syntax parser")
4524 (description "Octavius is a library to parse the `ocamldoc` comment syntax.")
4525 (license license:isc)))
4526
4527 (define-public ocaml4.07-ppx-hash
4528 (package
4529 (name "ocaml4.07-ppx-hash")
4530 (version "0.11.1")
4531 (source (origin
4532 (method git-fetch)
4533 (uri (git-reference
4534 (url "https://github.com/janestreet/ppx_hash")
4535 (commit (string-append "v" version))))
4536 (file-name (git-file-name name version))
4537 (sha256
4538 (base32
4539 "1p0ic6aijxlrdggpmycj12q3cy9xksbq2vq727215maz4snvlf5p"))))
4540 (build-system dune-build-system)
4541 (propagated-inputs
4542 `(("ocaml-base" ,ocaml4.07-base)
4543 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4544 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4545 ("ocaml-migrate-parsetree"
4546 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4547 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4548 (arguments
4549 `(#:ocaml ,ocaml-4.07
4550 #:findlib ,ocaml4.07-findlib))
4551 (properties `((upstream-name . "ppx_hash")))
4552 (home-page "https://github.com/janestreet/ppx_hash")
4553 (synopsis "Generation of hash functions from type expressions and definitions")
4554 (description "This package is a collection of ppx rewriters that generate
4555 hash functions from type exrpessions and definitions.")
4556 (license license:asl2.0)))
4557
4558 (define-public ocaml4.07-ppx-enumerate
4559 (package
4560 (name "ocaml4.07-ppx-enumerate")
4561 (version "0.11.1")
4562 (source (origin
4563 (method git-fetch)
4564 (uri (git-reference
4565 (url "https://github.com/janestreet/ppx_enumerate")
4566 (commit (string-append "v" version))))
4567 (file-name (git-file-name name version))
4568 (sha256
4569 (base32
4570 "0spx9k1v7vjjb6sigbfs69yndgq76v114jhxvzjmffw7q989cyhr"))))
4571 (build-system dune-build-system)
4572 (arguments
4573 `(#:tests? #f; no test suite
4574 #:ocaml ,ocaml-4.07
4575 #:findlib ,ocaml4.07-findlib))
4576 (propagated-inputs
4577 `(("ocaml-base" ,ocaml4.07-base)
4578 ("ocaml-migrate-parsetree"
4579 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4580 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4581 (properties `((upstream-name . "ppx_enumerate")))
4582 (home-page "https://github.com/janestreet/ppx_enumerate")
4583 (synopsis "Generate a list containing all values of a finite type")
4584 (description "Ppx_enumerate is a ppx rewriter which generates a definition
4585 for the list of all values of a type (for a type which only has finitely
4586 many values).")
4587 (license license:asl2.0)))
4588
4589 (define-public ocaml4.07-ppx-bench
4590 (package
4591 (name "ocaml4.07-ppx-bench")
4592 (version "0.11.0")
4593 (source (origin
4594 (method url-fetch)
4595 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4596 (version-major+minor version)
4597 "/files/ppx_bench-v" version ".tar.gz"))
4598 (sha256
4599 (base32
4600 "0ys4pblbcjbk9dn073rqiwm7r6rc7fah03j7riklkwnb5n44andl"))))
4601 (build-system dune-build-system)
4602 (arguments
4603 ;; No tests
4604 `(#:tests? #f
4605 #:ocaml ,ocaml-4.07
4606 #:findlib ,ocaml4.07-findlib))
4607 (propagated-inputs
4608 `(("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
4609 ("ocaml-migrate-parsetree"
4610 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4611 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4612 (properties `((upstream-name . "ppx_bench")))
4613 (home-page "https://github.com/janestreet/ppx_bench")
4614 (synopsis "Syntax extension for writing in-line benchmarks in ocaml code")
4615 (description "Syntax extension for writing in-line benchmarks in ocaml code.")
4616 (license license:asl2.0)))
4617
4618 (define-public ocaml4.07-ppx-here
4619 (package
4620 (name "ocaml4.07-ppx-here")
4621 (version "0.11.0")
4622 (source (origin
4623 (method url-fetch)
4624 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4625 (version-major+minor version)
4626 "/files/ppx_here-v" version ".tar.gz"))
4627 (sha256
4628 (base32
4629 "0wxcak3ay4jpigm3pfdcpr65qw4hxfa8whhkryhcd8gy71x056z5"))))
4630 (build-system dune-build-system)
4631 (arguments
4632 ;; broken tests
4633 `(#:tests? #f
4634 #:ocaml ,ocaml-4.07
4635 #:findlib ,ocaml4.07-findlib))
4636 (propagated-inputs
4637 `(("ocaml-base" ,ocaml4.07-base)
4638 ("ocaml-migrate-parsetree"
4639 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4640 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4641 (properties `((upstream-name . "ppx_here")))
4642 (home-page "https://github.com/janestreet/ppx_here")
4643 (synopsis "Expands [%here] into its location")
4644 (description
4645 "Part of the Jane Street's PPX rewriters collection.")
4646 (license license:asl2.0)))
4647
4648 (define-public ocaml4.07-typerep
4649 (package
4650 (name "ocaml4.07-typerep")
4651 (version "0.11.0")
4652 (source (origin
4653 (method url-fetch)
4654 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4655 (version-major+minor version)
4656 "/files/typerep-v" version ".tar.gz"))
4657 (sha256
4658 (base32
4659 "1zi7hy0prpgzqhr4lkacr04wvlvbp21jfbdfvffhrm6cd400rb5v"))))
4660 (build-system dune-build-system)
4661 (arguments
4662 `(#:tests? #f
4663 #:ocaml ,ocaml-4.07
4664 #:findlib ,ocaml4.07-findlib))
4665 (propagated-inputs `(("ocaml-base" ,ocaml4.07-base)))
4666 (home-page "https://github.com/janestreet/typerep")
4667 (synopsis "Typerep is a library for runtime types")
4668 (description "Typerep is a library for runtime types.")
4669 (license license:asl2.0)))
4670
4671 (define-public ocaml4.07-ppx-sexp-value
4672 (package
4673 (name "ocaml4.07-ppx-sexp-value")
4674 (version "0.11.0")
4675 (source (origin
4676 (method url-fetch)
4677 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4678 (version-major+minor version)
4679 "/files/ppx_sexp_value-v" version ".tar.gz"))
4680 (sha256
4681 (base32
4682 "1xnalfrln6k5khsyxvxkg6v32q8fpr4cqamsjqfih29jdv486xrs"))))
4683 (build-system dune-build-system)
4684 (arguments
4685 `(#:ocaml ,ocaml-4.07
4686 #:findlib ,ocaml4.07-findlib))
4687 (propagated-inputs
4688 `(("ocaml-base" ,ocaml4.07-base)
4689 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4690 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4691 ("ocaml-migrate-parsetree"
4692 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4693 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4694 (properties `((upstream-name . "ppx_sexp_value")))
4695 (home-page "https://github.com/janestreet/ppx_sexp_value")
4696 (synopsis "Simplify building s-expressions from ocaml values")
4697 (description "A ppx rewriter that simplifies building s-expressions from
4698 ocaml values.")
4699 (license license:asl2.0)))
4700
4701 (define-public ocaml4.07-ppx-sexp-message
4702 (package
4703 (name "ocaml4.07-ppx-sexp-message")
4704 (version "0.11.0")
4705 (source (origin
4706 (method url-fetch)
4707 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4708 (version-major+minor version)
4709 "/files/ppx_sexp_message-v" version ".tar.gz"))
4710 (sha256
4711 (base32
4712 "1yh440za0w9cvrbxbmqacir8715kdaw6sw24ys9xj80av9nqpiw7"))))
4713 (build-system dune-build-system)
4714 (arguments
4715 `(#:ocaml ,ocaml-4.07
4716 #:findlib ,ocaml4.07-findlib))
4717 (propagated-inputs
4718 `(("ocaml-base" ,ocaml4.07-base)
4719 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4720 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4721 ("ocaml-migrate-parsetree"
4722 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4723 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4724 (properties `((upstream-name . "ppx_sexp_message")))
4725 (home-page "https://github.com/janestreet/ppx_sexp_message")
4726 (synopsis "A ppx rewriter for easy construction of s-expressions")
4727 (description "Ppx_sexp_message aims to ease the creation of s-expressions
4728 in OCaml. This is mainly motivated by writing error and debugging messages,
4729 where one needs to construct a s-expression based on various element of the
4730 context such as function arguments.")
4731 (license license:asl2.0)))
4732
4733 (define-public ocaml4.07-ppx-pipebang
4734 (package
4735 (name "ocaml4.07-ppx-pipebang")
4736 (version "0.11.0")
4737 (source (origin
4738 (method url-fetch)
4739 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4740 (version-major+minor version)
4741 "/files/ppx_pipebang-v" version ".tar.gz"))
4742 (sha256
4743 (base32
4744 "1wrrzlb4kdvkkcmzi01fw25jar38r2jlnyn0i6pn4z0lq4gpm9m0"))))
4745 (build-system dune-build-system)
4746 (arguments
4747 ;; No tests
4748 `(#:tests? #f
4749 #:ocaml ,ocaml-4.07
4750 #:findlib ,ocaml4.07-findlib))
4751 (propagated-inputs
4752 `(("ocaml-migrate-parsetree"
4753 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4754 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4755 (properties `((upstream-name . "ppx_pipebang")))
4756 (home-page "https://github.com/janestreet/ppx_pipebang")
4757 (synopsis "Inline reverse application operators `|>` and `|!`")
4758 (description "A ppx rewriter that inlines reverse application operators
4759 @code{|>} and @code{|!}.")
4760 (license license:asl2.0)))
4761
4762 (define-public ocaml4.07-ppx-optional
4763 (package
4764 (name "ocaml4.07-ppx-optional")
4765 (version "0.11.0")
4766 (source (origin
4767 (method url-fetch)
4768 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4769 (version-major+minor version)
4770 "/files/ppx_optional-v" version ".tar.gz"))
4771 (sha256
4772 (base32
4773 "1z8z2bga95k2vksljljfglg10vygkjd24kn1b37sk4z3nmp47x0h"))))
4774 (build-system dune-build-system)
4775 (arguments
4776 ;; No tests
4777 `(#:tests? #f
4778 #:ocaml ,ocaml-4.07
4779 #:findlib ,ocaml4.07-findlib))
4780 (propagated-inputs
4781 `(("ocaml-base" ,ocaml4.07-base)
4782 ("ocaml-migrate-parsetree"
4783 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4784 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4785 (properties `((upstream-name . "ppx_optional")))
4786 (home-page "https://github.com/janestreet/ppx_optional")
4787 (synopsis "Pattern matching on flat options")
4788 (description
4789 "A ppx rewriter that rewrites simple match statements with an if then
4790 else expression.")
4791 (license license:asl2.0)))
4792
4793 (define-public ocaml4.07-ppx-optcomp
4794 (package
4795 (name "ocaml4.07-ppx-optcomp")
4796 (version "0.11.0")
4797 (source (origin
4798 (method url-fetch)
4799 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4800 (version-major+minor version)
4801 "/files/ppx_optcomp-v" version ".tar.gz"))
4802 (sha256
4803 (base32
4804 "1bb52p2j2h4s9f06vrcpla80rj93jinnzq6jzilapyx9q068929i"))))
4805 (build-system dune-build-system)
4806 (arguments
4807 `(#:ocaml ,ocaml-4.07
4808 #:findlib ,ocaml4.07-findlib))
4809 (propagated-inputs
4810 `(("ocaml-base" ,ocaml4.07-base)
4811 ("ocaml-stdio" ,ocaml4.07-stdio)
4812 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4813 (properties `((upstream-name . "ppx_optcomp")))
4814 (home-page "https://github.com/janestreet/ppx_optcomp")
4815 (synopsis "Optional compilation for OCaml")
4816 (description "Ppx_optcomp stands for Optional Compilation. It is a tool
4817 used to handle optional compilations of pieces of code depending of the word
4818 size, the version of the compiler, ...")
4819 (license license:asl2.0)))
4820
4821 (define-public ocaml4.07-ppx-let
4822 (package
4823 (name "ocaml4.07-ppx-let")
4824 (version "0.11.0")
4825 (source (origin
4826 (method url-fetch)
4827 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4828 (version-major+minor version)
4829 "/files/ppx_let-v" version ".tar.gz"))
4830 (sha256
4831 (base32
4832 "1wdfw6w4xbg97a35yg6bif9gggxniy9ddnrjfw1a0inkl2yamxkj"))))
4833 (build-system dune-build-system)
4834 (arguments
4835 `(#:ocaml ,ocaml-4.07
4836 #:findlib ,ocaml4.07-findlib))
4837 (propagated-inputs
4838 `(("ocaml-base" ,ocaml4.07-base)
4839 ("ocaml-migrate-parsetree"
4840 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4841 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4842 (properties `((upstream-name . "ppx_let")))
4843 (home-page "https://github.com/janestreet/ppx_let")
4844 (synopsis "Monadic let-bindings")
4845 (description "A ppx rewriter for monadic and applicative let bindings,
4846 match expressions, and if expressions.")
4847 (license license:asl2.0)))
4848
4849 (define-public ocaml4.07-ppx-fail
4850 (package
4851 (name "ocaml4.07-ppx-fail")
4852 (version "0.11.0")
4853 (source (origin
4854 (method url-fetch)
4855 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4856 (version-major+minor version)
4857 "/files/ppx_fail-v" version ".tar.gz"))
4858 (sha256
4859 (base32
4860 "07plqsvljiwvngggfypwq55g46s5my55y45mvlmalrxyppzr03s8"))))
4861 (build-system dune-build-system)
4862 (arguments
4863 `(#:ocaml ,ocaml-4.07
4864 #:findlib ,ocaml4.07-findlib))
4865 (propagated-inputs
4866 `(("ocaml-base" ,ocaml4.07-base)
4867 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4868 ("ocaml-migrate-parsetree"
4869 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4870 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4871 (properties `((upstream-name . "ppx_fail")))
4872 (home-page "https://github.com/janestreet/ppx_fail")
4873 (synopsis "Add location to calls to failwiths")
4874 (description "Syntax extension that makes [failwiths] always include a
4875 position.")
4876 (license license:asl2.0)))
4877
4878 (define-public ocaml4.07-ppx-assert
4879 (package
4880 (name "ocaml4.07-ppx-assert")
4881 (version "0.11.0")
4882 (source (origin
4883 (method url-fetch)
4884 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4885 (version-major+minor version)
4886 "/files/ppx_assert-v" version ".tar.gz"))
4887 (sha256
4888 (base32
4889 "17kd311n0l9f72gblf9kv8i5rghr106w37x4f0m5qwh6nlgl0j9k"))))
4890 (build-system dune-build-system)
4891 (arguments
4892 `(#:ocaml ,ocaml-4.07
4893 #:findlib ,ocaml4.07-findlib))
4894 (propagated-inputs
4895 `(("ocaml-base" ,ocaml4.07-base)
4896 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4897 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4898 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4899 ("ocaml-migrate-parsetree"
4900 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4901 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4902 (properties `((upstream-name . "ppx_assert")))
4903 (home-page "https://github.com/janestreet/ppx_assert")
4904 (synopsis "Assert-like extension nodes that raise useful errors on failure")
4905 (description "This package contains assert-like extension nodes that raise
4906 useful errors on failure.")
4907 (license license:asl2.0)))
4908
4909 (define-public ocaml4.07-ppx-expect
4910 (package
4911 (name "ocaml4.07-ppx-expect")
4912 (version "0.12.0")
4913 (source (origin
4914 (method git-fetch)
4915 (uri (git-reference
4916 (url "https://github.com/janestreet/ppx_expect")
4917 (commit (string-append "v" version))))
4918 (file-name (git-file-name name version))
4919 (sha256
4920 (base32
4921 "1wawsbjfkri4sw52n8xqrzihxc3xfpdicv3ahz83a1rsn4lb8j5q"))))
4922 (build-system dune-build-system)
4923 (arguments
4924 `(#:ocaml ,ocaml-4.07
4925 #:findlib ,ocaml4.07-findlib))
4926 (propagated-inputs
4927 `(("ocaml-base" ,ocaml4.07-base)
4928 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
4929 ("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
4930 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
4931 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
4932 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
4933 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
4934 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
4935 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
4936 ("ocaml-stdio" ,ocaml4.07-stdio)
4937 ("ocaml-migrate-parsetree"
4938 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4939 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)
4940 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))))
4941 (properties `((upstream-name . "ppx_expect")))
4942 (home-page "https://github.com/janestreet/ppx_expect")
4943 (synopsis "Cram like framework for OCaml")
4944 (description "Expect-test is a framework for writing tests in OCaml, similar
4945 to Cram. Expect-tests mimics the existing inline tests framework with the
4946 @code{let%expect_test} construct. The body of an expect-test can contain
4947 output-generating code, interleaved with @code{%expect} extension expressions
4948 to denote the expected output.")
4949 (license license:asl2.0)))
4950
4951 (define-public ocaml4.07-ppx-js-style
4952 (package
4953 (name "ocaml4.07-ppx-js-style")
4954 (version "0.11.0")
4955 (source (origin
4956 (method url-fetch)
4957 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
4958 (version-major+minor version)
4959 "/files/ppx_js_style-v" version ".tar.gz"))
4960 (sha256
4961 (base32
4962 "0z3fc55jdjhhsblla6z4fqc13kljpcz29q79rvs5h2vsraqrldr2"))))
4963 (build-system dune-build-system)
4964 (arguments
4965 ;; No tests
4966 `(#:tests? #f
4967 #:ocaml ,ocaml-4.07
4968 #:findlib ,ocaml4.07-findlib))
4969 (propagated-inputs
4970 `(("ocaml-base" ,ocaml4.07-base)
4971 ("ocaml-migrate-parsetree"
4972 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
4973 ("ocaml-octavius" ,(package-with-ocaml4.07 ocaml-octavius))
4974 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
4975 (properties `((upstream-name . "ppx_js_style")))
4976 (home-page "https://github.com/janestreet/ppx_js_style")
4977 (synopsis "Code style checker for Jane Street Packages")
4978 (description "This package is a no-op ppx rewriter. It is used as a
4979 @code{lint} tool to enforce some coding conventions across all Jane Street
4980 packages.")
4981 (license license:asl2.0)))
4982
4983 (define-public ocaml4.07-ppx-typerep-conv
4984 (package
4985 (name "ocaml4.07-ppx-typerep-conv")
4986 (version "0.11.1")
4987 (source (origin
4988 (method git-fetch)
4989 (uri (git-reference
4990 (url "https://github.com/janestreet/ppx_typerep_conv")
4991 (commit (string-append "v" version))))
4992 (file-name (git-file-name name version))
4993 (sha256
4994 (base32
4995 "0a13dpfrrg0rsm8qni1bh7pqcda30l70z8r6yzi5a64bmwk7g5ah"))))
4996 (build-system dune-build-system)
4997 (arguments
4998 `(#:test-target "."
4999 #:ocaml ,ocaml-4.07
5000 #:findlib ,ocaml4.07-findlib))
5001 (propagated-inputs
5002 `(("ocaml-base" ,ocaml4.07-base)
5003 ("ocaml-typerep" ,ocaml4.07-typerep)
5004 ("ocaml-migrate-parsetree"
5005 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5006 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5007 (properties `((upstream-name . "ppx_typerep_conv")))
5008 (home-page "https://github.com/janestreet/ppx_typerep_conv")
5009 (synopsis "Generation of runtime types from type declarations")
5010 (description "This package can automatically generate runtime types
5011 from type definitions.")
5012 (license license:asl2.0)))
5013
5014 (define-public ocaml4.07-ppx-base
5015 (package
5016 (name "ocaml4.07-ppx-base")
5017 (version "0.11.0")
5018 (source (origin
5019 (method url-fetch)
5020 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5021 (version-major+minor version)
5022 "/files/ppx_base-v" version ".tar.gz"))
5023 (sha256
5024 (base32
5025 "0aq206pg330jmj7lhcagiiwm3a0b3gsqm801m8ajd4ysyw7idkym"))))
5026 (build-system dune-build-system)
5027 (arguments
5028 `(#:test-target "."
5029 #:ocaml ,ocaml-4.07
5030 #:findlib ,ocaml4.07-findlib))
5031 (propagated-inputs
5032 `(("ocaml-ppx-compare" ,ocaml4.07-ppx-compare)
5033 ("ocaml-ppx-enumerate" ,ocaml4.07-ppx-enumerate)
5034 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
5035 ("ocaml-ppx-js-style" ,ocaml4.07-ppx-js-style)
5036 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5037 ("ocaml-migrate-parsetree"
5038 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5039 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5040 (properties `((upstream-name . "ppx_base")))
5041 (home-page "https://github.com/janestreet/ppx_base")
5042 (synopsis "Base set of ppx rewriters")
5043 (description "Ppx_base is the set of ppx rewriters used for Base.
5044
5045 Note that Base doesn't need ppx to build, it is only used as a
5046 verification tool.")
5047 (license license:asl2.0)))
5048
5049 (define-public ocaml4.07-ppx-bin-prot
5050 (package
5051 (name "ocaml4.07-ppx-bin-prot")
5052 (version "0.11.1")
5053 (source (origin
5054 (method git-fetch)
5055 (uri (git-reference
5056 (url "https://github.com/janestreet/ppx_bin_prot")
5057 (commit (string-append "v" version))))
5058 (file-name (git-file-name name version))
5059 (sha256
5060 (base32
5061 "1h60i75bzvhna1axyn662gyrzhh441l79vl142d235i5x31dmnkz"))))
5062 (build-system dune-build-system)
5063 (arguments
5064 ;; Cyclic dependency with ocaml-ppx-jane
5065 `(#:tests? #f
5066 #:ocaml ,ocaml-4.07
5067 #:findlib ,ocaml4.07-findlib))
5068 (propagated-inputs
5069 `(("ocaml-base" ,ocaml4.07-base)
5070 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
5071 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5072 ("ocaml-migrate-parsetree"
5073 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5074 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5075 (properties `((upstream-name . "ppx_bin_prot")))
5076 (home-page "https://github.com/janestreet/ppx_bin_prot")
5077 (synopsis "Generation of bin_prot readers and writers from types")
5078 (description "Generation of binary serialization and deserialization
5079 functions from type definitions.")
5080 (license license:asl2.0)))
5081
5082 (define-public ocaml4.07-ppx-jane
5083 (package
5084 (name "ocaml4.07-ppx-jane")
5085 (version "0.11.0")
5086 (source (origin
5087 (method url-fetch)
5088 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5089 (version-major+minor version)
5090 "/files/ppx_jane-v" version ".tar.gz"))
5091 (sha256
5092 (base32
5093 "0lgppkw3aixrfnixihrsz2ipafv8fpvkdpy3pw8n0r615gg8x8la"))))
5094 (build-system dune-build-system)
5095 (arguments
5096 `(#:test-target "."
5097 #:ocaml ,ocaml-4.07
5098 #:findlib ,ocaml4.07-findlib))
5099 (propagated-inputs
5100 `(("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5101 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5102 ("ocaml-ppx-bench" ,ocaml4.07-ppx-bench)
5103 ("ocaml-ppx-bin-prot" ,ocaml4.07-ppx-bin-prot)
5104 ("ocaml-ppx-custom-printf" ,ocaml4.07-ppx-custom-printf)
5105 ("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)
5106 ("ocaml-ppx-fail" ,ocaml4.07-ppx-fail)
5107 ("ocaml-ppx-fields-conv" ,ocaml4.07-ppx-fields-conv)
5108 ("ocaml-ppx-here" ,ocaml4.07-ppx-here)
5109 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5110 ("ocaml-ppx-let" ,ocaml4.07-ppx-let)
5111 ("ocaml-ppx-optcomp" ,ocaml4.07-ppx-optcomp)
5112 ("ocaml-ppx-optional" ,ocaml4.07-ppx-optional)
5113 ("ocaml-ppx-pipebang" ,ocaml4.07-ppx-pipebang)
5114 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5115 ("ocaml-ppx-sexp-value" ,ocaml4.07-ppx-sexp-value)
5116 ("ocaml-ppx-typerep-conv" ,ocaml4.07-ppx-typerep-conv)
5117 ("ocaml-ppx-variants-conv" ,ocaml4.07-ppx-variants-conv)
5118 ("ocaml-migrate-parsetree"
5119 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5120 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5121 (properties `((upstream-name . "ppx_jane")))
5122 (home-page "https://github.com/janestreet/ppx_jane")
5123 (synopsis "Standard Jane Street ppx rewriters")
5124 (description "This package installs a ppx-jane executable, which is a ppx
5125 driver including all standard Jane Street ppx rewriters.")
5126 (license license:asl2.0)))
5127
5128 (define-public ocaml4.07-splittable-random
5129 (package
5130 (name "ocaml4.07-splittable-random")
5131 (version "0.11.0")
5132 (source (origin
5133 (method url-fetch)
5134 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5135 (version-major+minor version)
5136 "/files/splittable_random-v" version ".tar.gz"))
5137 (sha256
5138 (base32
5139 "0l1wbd881mymlnpzlq5q53mmdz3g5d7qjhyc7lfaq1x0iaccn5lc"))))
5140 (build-system dune-build-system)
5141 (arguments
5142 `(#:ocaml ,ocaml-4.07
5143 #:findlib ,ocaml4.07-findlib))
5144 (propagated-inputs
5145 `(("ocaml-base" ,ocaml4.07-base)
5146 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5147 ("ocaml-migrate-parsetree"
5148 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5149 (properties `((upstream-name . "splittable_random")))
5150 (home-page "https://github.com/janestreet/splittable_random")
5151 (synopsis "PRNG that can be split into independent streams")
5152 (description "This package provides a splittable
5153 @acronym{PRNG,pseudo-random number generator} functions like a PRNG that can
5154 be used as a stream of random values; it can also be split to produce a
5155 second, independent stream of random values.
5156
5157 This library implements a splittable pseudo-random number generator that sacrifices
5158 cryptographic-quality randomness in favor of performance.")
5159 (license license:asl2.0)))
5160
5161 (define-public ocaml4.07-jane-street-headers
5162 (package
5163 (name "ocaml4.07-jane-street-headers")
5164 (version "0.11.0")
5165 (source (origin
5166 (method url-fetch)
5167 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5168 (version-major+minor version)
5169 "/files/jane-street-headers-v" version ".tar.gz"))
5170 (sha256
5171 (base32
5172 "0afhzm08l9v883fhpqqh2lmy7az609pxif40bp7x1sk8c0yszqsh"))))
5173 (build-system dune-build-system)
5174 (arguments
5175 `(#:test-target "."
5176 #:ocaml ,ocaml-4.07
5177 #:findlib ,ocaml4.07-findlib
5178 #:dune ,ocaml4.07-dune))
5179 (home-page "https://github.com/janestreet/jane-street-headers")
5180 (synopsis "Jane Street C header files")
5181 (description "This package provides C header files shared between the
5182 various Jane Street packages.")
5183 (license license:asl2.0)))
5184
5185 (define-public ocaml4.07-configurator
5186 (package
5187 (name "ocaml4.07-configurator")
5188 (version "0.11.0")
5189 (source (origin
5190 (method url-fetch)
5191 (uri (string-append "https://ocaml.janestreet.com/ocaml-core/v"
5192 (version-major+minor version)
5193 "/files/configurator-v" version ".tar.gz"))
5194 (sha256
5195 (base32
5196 "0kwgi3sh92v4n242dk5hgpwd85zzgnczgbkqi0q0kr6m93zgbf7p"))))
5197 (build-system dune-build-system)
5198 (arguments
5199 ;; No tests
5200 `(#:tests? #f
5201 #:ocaml ,ocaml-4.07
5202 #:findlib ,ocaml4.07-findlib))
5203 (propagated-inputs
5204 `(("ocaml-base" ,ocaml4.07-base)
5205 ("ocaml-stdio" ,ocaml4.07-stdio)))
5206 (home-page "https://github.com/janestreet/configurator")
5207 (synopsis "Helper library for gathering system configuration")
5208 (description "Configurator is a small library that helps writing OCaml
5209 scripts that test features available on the system, in order to generate config.h
5210 files for instance.
5211
5212 Configurator allows one to:
5213 @itemize
5214 @item test if a C program compiles
5215 @item query pkg-config
5216 @item import #define from OCaml header files
5217 @item generate config.h file
5218 @end itemize")
5219 (license license:asl2.0)))
5220
5221 (define-public ocaml4.07-spawn
5222 (package
5223 (name "ocaml4.07-spawn")
5224 (version "0.13.0")
5225 (source (origin
5226 (method git-fetch)
5227 (uri (git-reference
5228 (url "https://github.com/janestreet/spawn")
5229 (commit (string-append "v" version))))
5230 (file-name (git-file-name name version))
5231 (sha256
5232 (base32
5233 "1w003k1kw1lmyiqlk58gkxx8rac7dchiqlz6ah7aj7bh49b36ppf"))))
5234 (build-system dune-build-system)
5235 (arguments
5236 `(#:phases
5237 (modify-phases %standard-phases
5238 (add-before 'check 'fix-tests
5239 (lambda _
5240 (substitute* "test/tests.ml"
5241 (("/bin/pwd") (which "pwd"))
5242 (("/bin/echo") (which "echo")))
5243 #t)))
5244 #:ocaml ,ocaml-4.07
5245 #:findlib ,ocaml4.07-findlib))
5246 (native-inputs
5247 `(("ocaml-ppx-expect" ,ocaml4.07-ppx-expect)))
5248 (home-page "https://github.com/janestreet/spawn")
5249 (synopsis "Spawning sub-processes")
5250 (description
5251 "Spawn is a small library exposing only one functionality: spawning sub-process.
5252
5253 It has three main goals:
5254
5255 @itemize
5256 @item provide missing features of Unix.create_process such as providing a
5257 working directory,
5258 @item provide better errors when a system call fails in the
5259 sub-process. For instance if a command is not found, you get a proper
5260 @code{Unix.Unix_error} exception,
5261 @item improve performances by using vfork when available. It is often
5262 claimed that nowadays fork is as fast as vfork, however in practice
5263 fork takes time proportional to the process memory while vfork is
5264 constant time. In application using a lot of memory, vfork can be
5265 thousands of times faster than fork.
5266 @end itemize")
5267 (license license:asl2.0)))
5268
5269 (define-public ocaml4.07-core
5270 (package
5271 (name "ocaml4.07-core")
5272 (version "0.11.3")
5273 (source (origin
5274 (method git-fetch)
5275 (uri (git-reference
5276 (url "https://github.com/janestreet/core")
5277 (commit (string-append "v" version))))
5278 (file-name (git-file-name name version))
5279 (sha256
5280 (base32
5281 "0pzl8n09z4f3i7z2wq4cjxfqrr8mj6xcdp7rbg0nxap2zdhjgvrq"))))
5282 (build-system dune-build-system)
5283 (arguments
5284 `(#:package "core"
5285 #:tests? #f; Require a cyclic dependency: core_extended
5286 #:ocaml ,ocaml-4.07
5287 #:findlib ,ocaml4.07-findlib))
5288 (propagated-inputs
5289 `(("ocaml-base" ,ocaml4.07-base)
5290 ("ocaml-configurator" ,ocaml4.07-configurator)
5291 ("ocaml-core-kernel" ,ocaml4.07-core-kernel)
5292 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5293 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5294 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5295 ("ocaml-spawn" ,ocaml4.07-spawn)
5296 ("ocaml-stdio" ,ocaml4.07-stdio)
5297 ("ocaml-migrate-parsetree"
5298 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))
5299 ("ocaml-ppxlib" ,ocaml4.07-ppxlib)))
5300 (home-page "https://github.com/janestreet/core")
5301 (synopsis "Alternative to OCaml's standard library")
5302 (description "The Core suite of libraries is an alternative to OCaml's
5303 standard library that was developed by Jane Street.")
5304 ;; Also contains parts of OCaml, relicensed to asl2.0, as permitted
5305 ;; by OCaml's license for consortium members (see THIRD-PARTY.txt).
5306 (license license:asl2.0)))
5307
5308 (define-public ocaml4.07-core-kernel
5309 (package
5310 (name "ocaml4.07-core-kernel")
5311 (version "0.11.1")
5312 (source (origin
5313 (method git-fetch)
5314 (uri (git-reference
5315 (url "https://github.com/janestreet/core_kernel")
5316 (commit (string-append "v" version))))
5317 (file-name (git-file-name name version))
5318 (sha256
5319 (base32
5320 "1dg7ygy7i64c5gaakb1cp1b26p9ks81vbxmb8fd7jff2q60j2z2g"))))
5321 (build-system dune-build-system)
5322 (arguments
5323 ;; Cyclic dependency with ocaml-core
5324 `(#:tests? #f
5325 #:ocaml ,ocaml-4.07
5326 #:findlib ,ocaml4.07-findlib))
5327 (propagated-inputs
5328 `(("ocaml-base" ,ocaml4.07-base)
5329 ("ocaml-bin-prot" ,ocaml4.07-bin-prot)
5330 ("ocaml-configurator" ,ocaml4.07-configurator)
5331 ("ocaml-fieldslib" ,ocaml4.07-fieldslib)
5332 ("ocaml-jane-street-headers" ,ocaml4.07-jane-street-headers)
5333 ("ocaml-ppx-assert" ,ocaml4.07-ppx-assert)
5334 ("ocaml-ppx-base" ,ocaml4.07-ppx-base)
5335 ("ocaml-ppx-hash" ,ocaml4.07-ppx-hash)
5336 ("ocaml-ppx-inline-test" ,ocaml4.07-ppx-inline-test)
5337 ("ocaml-ppx-jane" ,ocaml4.07-ppx-jane)
5338 ("ocaml-ppx-sexp-conv" ,ocaml4.07-ppx-sexp-conv)
5339 ("ocaml-ppx-sexp-message" ,ocaml4.07-ppx-sexp-message)
5340 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5341 ("ocaml-splittable-random" ,ocaml4.07-splittable-random)
5342 ("ocaml-stdio" ,ocaml4.07-stdio)
5343 ("ocaml-typerep" ,ocaml4.07-typerep)
5344 ("ocaml-variantslib" ,ocaml4.07-variantslib)
5345 ("ocaml-migrate-parsetree"
5346 ,(package-with-ocaml4.07 ocaml-migrate-parsetree))))
5347 (properties `((upstream-name . "core_kernel")))
5348 (home-page "https://github.com/janestreet/core_kernel")
5349 (synopsis "Portable standard library for OCaml")
5350 (description "Core is an alternative to the OCaml standard library.
5351
5352 Core_kernel is the system-independent part of Core. It is aimed for cases when
5353 the full Core is not available, such as in Javascript.")
5354 (license (list
5355 ;; this package and parts of OCaml, relicensed by janestreet
5356 license:asl2.0
5357 ;; MLton and sjs
5358 license:expat))))
5359
5360 (define-public ocaml-markup
5361 (package
5362 (name "ocaml-markup")
5363 (version "0.8.2")
5364 (home-page "https://github.com/aantron/markup.ml")
5365 (source
5366 (origin
5367 (method git-fetch)
5368 (uri (git-reference
5369 (url (string-append home-page ".git"))
5370 (commit version)))
5371 (file-name (git-file-name name version))
5372 (sha256
5373 (base32
5374 "13zcrwzjmifniv3bvjbkd2ah8wwa3ld75bxh1d8hrzdvfxzh9szn"))))
5375 (build-system dune-build-system)
5376 (arguments
5377 `(#:package "markup"))
5378 (inputs
5379 `(("libev" ,libev)))
5380 (propagated-inputs
5381 `(("ocaml-bisect-ppx" ,ocaml-bisect-ppx)
5382 ("ocaml-uchar" ,ocaml-uchar)
5383 ("ocaml-uutf" ,ocaml-uutf)
5384 ("ocaml-lwt" ,ocaml-lwt)))
5385 (native-inputs
5386 `(("ocaml-ounit" ,ocaml-ounit)
5387 ("pkg-config" ,pkg-config)))
5388 (synopsis "Error-recovering functional HTML5 and XML parsers and writers")
5389 (description "Markup.ml provides an HTML parser and an XML parser. The
5390 parsers are wrapped in a simple interface: they are functions that transform
5391 byte streams to parsing signal streams. Streams can be manipulated in various
5392 ways, such as processing by fold, filter, and map, assembly into DOM tree
5393 structures, or serialization back to HTML or XML.
5394
5395 Both parsers are based on their respective standards. The HTML parser, in
5396 particular, is based on the state machines defined in HTML5.
5397
5398 The parsers are error-recovering by default, and accept fragments. This makes
5399 it very easy to get a best-effort parse of some input. The parsers can,
5400 however, be easily configured to be strict, and to accept only full documents.
5401
5402 Apart from this, the parsers are streaming (do not build up a document in
5403 memory), non-blocking (can be used with threading libraries), lazy (do not
5404 consume input unless the signal stream is being read), and process the input in
5405 a single pass. They automatically detect the character encoding of the input
5406 stream, and convert everything to UTF-8.")
5407 (license license:bsd-3)))
5408
5409 (define-public ocaml-tyxml
5410 (package
5411 (name "ocaml-tyxml")
5412 (version "4.3.0")
5413 (source
5414 (origin
5415 (method git-fetch)
5416 (uri (git-reference
5417 (url "https://github.com/ocsigen/tyxml")
5418 (commit version)))
5419 (file-name (git-file-name name version))
5420 (sha256
5421 (base32
5422 "0wv19xipkj8l2sks1h53105ywbjwk7q93fb7b8al4a2g9wr109c0"))))
5423 (build-system dune-build-system)
5424 (inputs
5425 `(("ocaml-re" ,ocaml-re)
5426 ("ocaml-seq" ,ocaml-seq)
5427 ("ocaml-uutf" ,ocaml-uutf)
5428 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5429 ("ocaml-markup" ,ocaml-markup)))
5430 (native-inputs
5431 `(("ocaml-alcotest" ,ocaml-alcotest)))
5432 (arguments `(#:package "tyxml"))
5433 (home-page "https://github.com/ocsigen/tyxml/")
5434 (synopsis "TyXML is a library for building correct HTML and SVG documents")
5435 (description "TyXML provides a set of convenient combinators that uses the
5436 OCaml type system to ensure the validity of the generated documents. TyXML can
5437 be used with any representation of HTML and SVG: the textual one, provided
5438 directly by this package, or DOM trees (@code{js_of_ocaml-tyxml}) virtual DOM
5439 (@code{virtual-dom}) and reactive or replicated trees (@code{eliom}). You can
5440 also create your own representation and use it to instantiate a new set of
5441 combinators.")
5442 (license license:lgpl2.1)))
5443
5444 (define-public ocaml-bisect-ppx
5445 (package
5446 (name "ocaml-bisect-ppx")
5447 (version "1.4.2")
5448 (source
5449 (origin
5450 (method git-fetch)
5451 (uri (git-reference
5452 (url "https://github.com/aantron/bisect_ppx")
5453 (commit version)))
5454 (file-name (git-file-name name version))
5455 (sha256
5456 (base32
5457 "0900vli5kw7s5kdam0n4cqsfsfqb7mdb3azn3i55595gilg1vyn8"))))
5458 (build-system dune-build-system)
5459 (propagated-inputs
5460 `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
5461 ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
5462 ("ocaml-ounit" ,ocaml-ounit)))
5463 (arguments
5464 `(#:phases
5465 (modify-phases %standard-phases
5466 (add-before 'build 'fix-deprecated
5467 (lambda _
5468 ;; Fixed upstream in 22dd1ad9a0c9629f60599c22d82c6488394d6d32, but
5469 ;; not in a release yet.
5470 (substitute* "src/ppx/instrument.ml"
5471 (("module Ast = Ast_405")
5472 "module Ast = Migrate_parsetree.Ast_405
5473 module Ast_405 = Ast"))
5474 #t)))))
5475 (home-page "https://github.com/aantron/bisect_ppx")
5476 (synopsis "Code coverage for OCaml")
5477 (description "Bisect_ppx helps you test thoroughly. It is a small
5478 preprocessor that inserts instrumentation at places in your code, such as
5479 if-then-else and match expressions. After you run tests, Bisect_ppx gives a
5480 nice HTML report showing which places were visited and which were missed.
5481
5482 Usage is simple - add package bisect_ppx when building tests, run your tests,
5483 then run the Bisect_ppx report tool on the generated visitation files.")
5484 (license license:mpl2.0)))
5485
5486 (define-public ocaml4.07-odoc
5487 (package
5488 (name "ocaml4.07-odoc")
5489 (version "1.4.2")
5490 (source
5491 (origin
5492 (method git-fetch)
5493 (uri (git-reference
5494 (url "https://github.com/ocaml/odoc")
5495 (commit version)))
5496 (file-name (git-file-name name version))
5497 (sha256
5498 (base32 "0rvhx139jx6wmlfz355mja6mk03x4swq1xxvk5ky6jzhalq3cf5i"))))
5499 (build-system dune-build-system)
5500 (arguments
5501 `(#:ocaml ,ocaml-4.07
5502 #:findlib ,ocaml4.07-findlib
5503 #:dune ,ocaml4.07-dune))
5504 (inputs
5505 `(("ocaml-alcotest" ,(package-with-ocaml4.07 ocaml-alcotest))
5506 ("ocaml-markup" ,(package-with-ocaml4.07 ocaml-markup))
5507 ("ocaml-sexplib" ,ocaml4.07-sexplib)
5508 ("ocaml-re" ,(package-with-ocaml4.07 ocaml-re))
5509 ("ocaml-uutf" ,(package-with-ocaml4.07 ocaml-uutf))))
5510 (native-inputs
5511 `(("ocaml-astring" ,(package-with-ocaml4.07 ocaml-astring))
5512 ("ocaml-cmdliner" ,(package-with-ocaml4.07 ocaml-cmdliner))
5513 ("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
5514 ("ocaml-fpath" ,(package-with-ocaml4.07 ocaml-fpath))
5515 ("ocaml-result" ,(package-with-ocaml4.07 ocaml-result))
5516 ("ocaml-tyxml" ,(package-with-ocaml4.07 ocaml-tyxml))
5517 ("ocaml-bisect-ppx" ,(package-with-ocaml4.07 ocaml-bisect-ppx))))
5518 (home-page "https://github.com/ocaml/odoc")
5519 (synopsis "OCaml documentation generator")
5520 (description "Odoc is a documentation generator for OCaml. It reads
5521 @emph{doc comments}, delimited with @code{(** ... *)}, and outputs
5522 @acronym{HTML}.
5523
5524 Text inside doc comments is marked up in ocamldoc syntax. Odoc's main
5525 advantage over ocamldoc is an accurate cross-referencer, which handles the
5526 complexity of the OCaml module system.")
5527 (license license:isc)))
5528
5529 (define-public ocaml4.07-fftw3
5530 (package
5531 (name "ocaml4.07-fftw3")
5532 (version "0.8.4")
5533 (source
5534 (origin
5535 (method git-fetch)
5536 (uri (git-reference
5537 (url "https://github.com/Chris00/fftw-ocaml")
5538 (commit version)))
5539 (file-name (git-file-name name version))
5540 (sha256
5541 (base32
5542 "0l66yagjkwdcib6q55wd8wiap50vi23qiahkghlvm28z7nvbclfk"))))
5543 (build-system dune-build-system)
5544 (arguments
5545 `(#:tests? #t
5546 #:test-target "tests"
5547 #:ocaml ,ocaml-4.07
5548 #:findlib ,ocaml4.07-findlib
5549 #:dune ,ocaml4.07-dune))
5550 (propagated-inputs
5551 `(("fftw" ,fftw)
5552 ("fftwf" ,fftwf)))
5553 (native-inputs
5554 `(("ocaml-cppo" ,(package-with-ocaml4.07 ocaml-cppo))
5555 ("ocaml-lacaml" ,ocaml4.07-lacaml)))
5556 (home-page
5557 "https://github.com/Chris00/fftw-ocaml")
5558 (synopsis
5559 "Bindings to FFTW3")
5560 (description
5561 "Bindings providing OCaml support for the seminal Fast Fourier Transform
5562 library FFTW.")
5563 (license license:lgpl2.1))) ; with static linking exception.
5564
5565 (define-public ocaml4.07-lacaml
5566 (package
5567 (name "ocaml4.07-lacaml")
5568 (version "11.0.5")
5569 (source
5570 (origin
5571 (method git-fetch)
5572 (uri (git-reference
5573 (url "https://github.com/mmottl/lacaml")
5574 (commit version)))
5575 (file-name (git-file-name name version))
5576 (sha256
5577 (base32
5578 "180yb79a3qgx067qcpm50q12hrimjygf06rgkzbish9d1zfm670c"))))
5579 (build-system dune-build-system)
5580 (arguments
5581 `(#:tests? #f ; No test target.
5582 #:ocaml ,ocaml-4.07
5583 #:findlib ,ocaml4.07-findlib
5584 #:dune ,ocaml4.07-dune))
5585 (native-inputs
5586 `(("openblas" ,openblas)
5587 ("lapack" ,lapack)
5588 ("ocaml-base" ,ocaml4.07-base)
5589 ("ocaml-stdio" ,ocaml4.07-stdio)))
5590 (home-page "https://mmottl.github.io/lacaml/")
5591 (synopsis
5592 "OCaml-bindings to BLAS and LAPACK")
5593 (description
5594 "Lacaml interfaces the BLAS-library (Basic Linear Algebra Subroutines) and
5595 LAPACK-library (Linear Algebra routines). It also contains many additional
5596 convenience functions for vectors and matrices.")
5597 (license license:lgpl2.1)))
5598
5599 (define-public ocaml-cairo2
5600 (package
5601 (name "ocaml-cairo2")
5602 (version "0.6.1")
5603 (source (origin
5604 (method git-fetch)
5605 (uri (git-reference
5606 (url "https://github.com/Chris00/ocaml-cairo")
5607 (commit version)))
5608 (file-name (git-file-name name version))
5609 (sha256
5610 (base32
5611 "0wzysis9fa850s68qh8vrvqc6svgllhwra3kzll2ibv0wmdqrich"))))
5612 (build-system dune-build-system)
5613 (arguments
5614 `(#:test-target "tests"))
5615 (inputs
5616 `(("cairo" ,cairo)
5617 ("gtk+-2" ,gtk+-2)
5618 ("lablgtk" ,lablgtk)))
5619 (native-inputs
5620 `(("pkg-config" ,pkg-config)))
5621 (home-page "https://github.com/Chris00/ocaml-cairo")
5622 (synopsis "Binding to Cairo, a 2D Vector Graphics Library")
5623 (description "Ocaml-cairo2 is a binding to Cairo, a 2D graphics library
5624 with support for multiple output devices. Currently supported output targets
5625 include the X Window System, Quartz, Win32, image buffers, PostScript, PDF,
5626 and SVG file output.")
5627 (license license:lgpl3+)))
5628
5629 (define-public lablgtk3
5630 (package
5631 (name "lablgtk")
5632 (version "3.0.beta8")
5633 (source (origin
5634 (method git-fetch)
5635 (uri (git-reference
5636 (url "https://github.com/garrigue/lablgtk")
5637 (commit version)))
5638 (file-name (git-file-name name version))
5639 (sha256
5640 (base32
5641 "08pgwnia240i2rw1rbgiahg673kwa7b6bvhsg3z4b47xr5sh9pvz"))))
5642 (build-system dune-build-system)
5643 (arguments
5644 `(#:tests? #t
5645 #:test-target "."
5646 #:phases
5647 (modify-phases %standard-phases
5648 (add-before 'build 'make-writable
5649 (lambda _
5650 (for-each (lambda (file)
5651 (chmod file #o644))
5652 (find-files "." "."))
5653 #t)))))
5654 (propagated-inputs
5655 `(("ocaml-cairo2" ,ocaml-cairo2)))
5656 (inputs
5657 `(("camlp5" ,camlp5)
5658 ("gtk+" ,gtk+)
5659 ("gtksourceview-3" ,gtksourceview-3)
5660 ("gtkspell3" ,gtkspell3)))
5661 (native-inputs
5662 `(("pkg-config" ,pkg-config)))
5663 (home-page "https://github.com/garrigue/lablgtk")
5664 (synopsis "OCaml interface to GTK+3")
5665 (description "LablGtk is an OCaml interface to GTK+ 1.2, 2.x and 3.x. It
5666 provides a strongly-typed object-oriented interface that is compatible with the
5667 dynamic typing of GTK+. Most widgets and methods are available. LablGtk
5668 also provides bindings to gdk-pixbuf, the GLArea widget (in combination with
5669 LablGL), gnomecanvas, gnomeui, gtksourceview, gtkspell, libglade (and it can
5670 generate OCaml code from .glade files), libpanel, librsvg and quartz.")
5671 ;; Version 2 only, with linking exception.
5672 (license license:lgpl2.0)))