[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33549] [PATCH 5/6] gnu: Add php-with-bcmath.
From: |
Oleg Pykhalov |
Subject: |
[bug#33549] [PATCH 5/6] gnu: Add php-with-bcmath. |
Date: |
Thu, 29 Nov 2018 21:50:41 +0300 |
* gnu/packages/php.scm (php-with-bcmath): New variable.
---
gnu/packages/php.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/php.scm b/gnu/packages/php.scm
index a22591d377..07246b0833 100644
--- a/gnu/packages/php.scm
+++ b/gnu/packages/php.scm
@@ -48,6 +48,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
+ #:use-module (guix utils)
#:use-module ((guix licenses) #:prefix license:))
(define gd-for-php
@@ -360,3 +361,12 @@ systems, web content management systems and web
frameworks." )
license:lgpl2.1+ ;
ext/bcmath/libbcmath
license:bsd-2 ;
ext/fileinfo/libmagic
license:expat)))) ; ext/date/lib
+
+(define-public php-with-bcmath
+ (package
+ (inherit php)
+ (name "php-with-bcmath")
+ (arguments
+ (substitute-keyword-arguments (package-arguments php)
+ ((#:configure-flags flags)
+ `(cons "--enable-bcmath" ,flags))))))
--
2.19.1