gnu: Add ocaml4.07-re.

* gnu/packages/ocaml.scm (ocaml4.07-re): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Julien Lepiller 2021-10-23 15:22:11 +02:00 committed by Efraim Flashner
parent 9bbbac6783
commit 8000fc4fa0
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3353,6 +3353,7 @@ (define-public ocaml-re
`(("ocaml-seq" ,ocaml-seq)))
(native-inputs
`(("ounit" ,ocaml-ounit)))
(properties `((ocaml4.07-variant . ,(delay ocaml4.07-re))))
(home-page "https://github.com/ocaml/ocaml-re/")
(synopsis "Regular expression library for OCaml")
(description "Pure OCaml regular expressions with:
@ -3365,6 +3366,19 @@ (define-public ocaml-re
@end enumerate")
(license license:expat)))
(define-public ocaml4.07-re
(package-with-ocaml4.07
(package
(inherit ocaml-re)
(arguments
`(#:test-target "."
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-dune-version
(lambda _
(delete-file "dune-project"))))))
(properties '()))))
(define-public ocaml-ocplib-endian
(package
(name "ocaml-ocplib-endian")