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