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