File tree 3 files changed +97
-69
lines changed
3 files changed +97
-69
lines changed Original file line number Diff line number Diff line change 147
147
rm ext/dom/tests/bug43364.phpt
148
148
'' )
149
149
150
- ( lib . optionalString ( lib . versionOlder prev . php . version "8.1 " && lib . versionAtLeast prev . php . version "7.1" ) ''
150
+ ( lib . optionalString ( lib . versionOlder prev . php . version "8.4 " && lib . versionAtLeast prev . php . version "7.1" ) ''
151
151
# Removing tests failing with libxml2 (2.11.4) > 2.10.4
152
152
rm ext/dom/tests/DOMDocument_loadXML_error2.phpt
153
153
rm ext/dom/tests/DOMDocument_load_error2.phpt
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 137
137
138
138
generic = "${ nixpkgs } /pkgs/development/interpreters/php/generic.nix" ;
139
139
mkPhp = args : prev . callPackage generic ( _mkArgs args ) ;
140
+
141
+ base-master = prev . callPackage generic ( _mkArgs {
142
+ version =
143
+ let
144
+ configureFile = "${ php-src } /configure.ac" ;
145
+
146
+ extractVersionFromConfigureAc =
147
+ configureText :
148
+
149
+ let
150
+ match = builtins . match ".*AC_INIT\\ (\\ [PHP],\\ [([^]-]+)(-dev)?].*" configureText ;
151
+ in
152
+ if match != null
153
+ then builtins . head match
154
+ else null ;
155
+
156
+ extractVersionFromConfigureAcPre74 =
157
+ configureText :
158
+
159
+ let
160
+ match = builtins . match ".*PHP_MAJOR_VERSION=([0-9]+)\n PHP_MINOR_VERSION=([0-9]+)\n PHP_RELEASE_VERSION=([0-9]+)\n .*" configureText ;
161
+ in
162
+ if match != null
163
+ then prev . lib . concatMapStringsSep "." builtins . toString match
164
+ else null ;
165
+
166
+ version =
167
+ let
168
+ configureText = builtins . readFile configureFile ;
169
+ version = extractVersionFromConfigureAc configureText ;
170
+ versionPre74 = extractVersionFromConfigureAcPre74 configureText ;
171
+
172
+ versionCandidates = prev . lib . optionals ( builtins . pathExists configureFile ) [
173
+ version
174
+ versionPre74
175
+ ] ;
176
+ in
177
+ prev . lib . findFirst ( version : version != null ) "0.0.0+unknown" versionCandidates ;
178
+ in
179
+ "${ version } .pre+date=${ php-src . lastModifiedDate } " ;
180
+ hash = null ;
181
+
182
+ phpAttrsOverrides = attrs : {
183
+ src = php-src ;
184
+ configureFlags = attrs . configureFlags ++ [
185
+ # install-pear-nozlib.phar (normally shipped in tarball) would need to be downloaded.
186
+ "--without-pear"
187
+ ] ;
188
+ } ;
189
+ } ) ;
140
190
in
141
191
{
142
192
php56 = import ./php/5.6.nix { inherit prev mkPhp ; } ;
165
215
inherit packageOverrides ;
166
216
} ;
167
217
168
- php-master = import ./php/php-master.nix { inherit prev mkPhp ; } ;
218
+ php-master = base-master . withExtensions ( { all , ... } :
219
+ with all ; [
220
+ bcmath
221
+ calendar
222
+ curl
223
+ ctype
224
+ dom
225
+ exif
226
+ fileinfo
227
+ filter
228
+ ftp
229
+ gd
230
+ gettext
231
+ gmp
232
+ iconv
233
+ imap
234
+ intl
235
+ ldap
236
+ mbstring
237
+ mysqli
238
+ mysqlnd
239
+ opcache
240
+ openssl
241
+ pcntl
242
+ pdo
243
+ pdo_mysql
244
+ pdo_odbc
245
+ pdo_pgsql
246
+ pdo_sqlite
247
+ pgsql
248
+ posix
249
+ readline
250
+ session
251
+ simplexml
252
+ sockets
253
+ soap
254
+ sodium
255
+ sysvsem
256
+ sqlite3
257
+ tokenizer
258
+ xmlreader
259
+ xmlwriter
260
+ zip
261
+ zlib
262
+ ]
263
+ ) ;
169
264
}
You can’t perform that action at this time.
0 commit comments