summary refs log tree commit diff
path: root/gnu/packages/textutils.scm
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-07-12 16:59:56 +0200
committerMarius Bakke <mbakke@fastmail.com>2018-07-12 17:21:17 +0200
commitd5019f9ca750aa2bd49048c5462d9eac220b0644 (patch)
tree75598b5359f5dde081d8dccdd17a52b4e49f423b /gnu/packages/textutils.scm
parentfa25b268dc63d5da457da79169054f287e65e710 (diff)
downloadguix-d5019f9ca750aa2bd49048c5462d9eac220b0644.tar.gz
gnu: php: Build with an older oniguruma.
* gnu/packages/textutils.scm (oniguruma-5): New public variable.
* gnu/packages/php.scm (php)[inputs]: Change ONIGURUMA to ONIGURUMA-5.
Diffstat (limited to 'gnu/packages/textutils.scm')
-rw-r--r--gnu/packages/textutils.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 9cf324ba15..355683df8a 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -355,6 +355,20 @@ characteristic of this library is that different character encoding for every
 regular expression object can be specified.")
     (license license:bsd-2)))
 
+;; PHP < 7.3.0 requires this old version.  Remove once no longer needed.
+(define-public oniguruma-5
+  (package
+    (inherit oniguruma)
+    (version "5.9.6")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/kkos/"
+                                  "oniguruma/releases/download/v" version
+                                  "/onig-" version ".tar.gz"))
+              (sha256
+               (base32
+                "19s79vsclqn170mw0ajwv7j37qsbn4f1yjz3yavnhvva6c820r6m"))))))
+
 (define-public antiword
   (package
     (name "antiword")