Commit Graph

485 Commits

Author SHA1 Message Date
Pol Dellaiera
cdfd5b47fc
php.packages.phing: init at 2.17.1 2022-02-24 21:08:05 +01:00
Pol Dellaiera
96983152e7
php81: 8.1.2 -> 8.1.3 2022-02-20 11:07:32 +01:00
Pol Dellaiera
b94195fc84
phpExtensions.ds: init at 1.4.0 2022-01-26 22:16:26 +01:00
Pol Dellaiera
6794a2c3f6
php81: 8.1.1 -> 8.1.2 2022-01-23 18:23:57 +01:00
Elis Hirwing
e3a7c62565
Merge pull request #147411 from drupol/php/php-8.1.0
php: Init at 8.1.1
2021-12-21 12:33:07 +01:00
Stéphan Kochen
2dbf96e7cc
php81Extensions.tokenizer: fix build
(cherry picked from commit cf7f4c058e822ee8eeaa2120c45f04b5b460a5db)
2021-12-21 10:13:10 +01:00
ajs124
4e9870ffa2
php80Extensions.xmlreader: fix build
(cherry picked from commit cede244af9)
2021-12-20 15:51:00 +01:00
Konrad Borowski
0af523ae77 phpExtensions: skip performance sensitive tests 2021-12-15 20:55:31 +01:00
ajs124
cede244af9 php80Extensions.xmlreader: fix build 2021-11-25 18:18:21 +01:00
taikx4
9571ac967f
phpExtensions.gnupg: init at 1.5.0 2021-11-23 20:06:39 +01:00
Eduard Bopp
637be68d8f phpExtensions.amqp: init at 1.11.0beta 2021-10-08 18:10:44 +02:00
ajs124
4c424870e6 phpPackages.dom: drop patch
does not apply to to 7.4.21 and 8.0.8 anymore
2021-07-01 14:07:39 +02:00
Aaron Andersen
485d0fc973 php: expose mkExtension 2021-06-29 07:38:12 -04:00
Elis Hirwing
94d07b7492
php: Run nixpkgs-fmt on all php related files 2021-06-26 20:07:56 +02:00
Zhaofeng Li
1f007dd009 Use lib.meta.availableOn for optional Valgrind dependency 2021-06-12 23:17:13 -07:00
Elis Hirwing
fb644190a0
php: Drop package composer1
Composer2 has been stable for some time now.
2021-06-04 09:27:04 +02:00
Elis Hirwing
be7451bc14
php: Drop extensions (pcs, v8, v8js, zmq, pthreads)
They have been marked as broken for a long time so they shouldn't be
used by anyone really.

They don't build in any of the supported versions.
2021-06-04 09:26:57 +02:00
Elis Hirwing
68eb5305ac
php: Drop PHP 7.3 support
PHP 7.3 won't be supported by upstream for the entire life cycle of
the 21.11 release.

Also drop the pcre' alias since it isn't needed anymore since we don't
need different pcre versions anymore.
2021-06-04 09:26:54 +02:00
Sandro
bc64755cfa
Merge pull request #124603 from mjsir911/msirabella/peclCheck
php.buildPecl: Add checkPhase
2021-06-01 16:34:42 +02:00
Sandro
3850fdb330
Merge pull request #120699 from NorfairKing/package-php-snuffleupagus
php.extensions.snuffleupagus: init at 0.7.0
2021-06-01 15:47:53 +02:00
Tom Sydney Kerckhove
52248df095 php.extensions.snuffleupagus: init at 0.7.0 2021-05-31 16:15:02 +02:00
Marco Sirabella
3a66432f26
php.buildPecl: Add checkPhase
Also update phpPackages' to use NO_INTERACTION
2021-05-27 12:19:14 -04:00
Maximilian Bosch
53951c0c14
phpExtensions.dom: fix build
ZHF #122042
2021-05-23 21:26:27 +02:00
Jan Tojnar
024243bac4
php74.extensions.iconv: fix error signalling
The configure script checks whether iconv supports errno. Unfortunately, on PHP < 8, the test program includes $PHP_ICONV_H_PATH, which defaults to FHS path so it fails to build:

	conftest.c:13:10: fatal error: /usr/include/iconv.h: No such file or directory
	   13 | #include </usr/include/iconv.h>
	      |          ^~~~~~~~~~~~~~~~~~~~~~

That causes the feature check to report a false negative, leading PHP to use a degraded code that returns PHP_ICONV_ERR_UNKNOWN when error occurs, breaking granular error handling in applications.

To prevent this, let’s just include <iconv.h>.

PHP 8 just uses include path so the detection works there: 7bd1d70341
2021-05-23 00:10:02 +02:00
Aaron Andersen
1c5c5be21b php.packages.deployer: init at 6.8.0 2021-05-05 08:38:28 -04:00
talyz
30cae53dbb
v8: 7.4.255 -> 8.4.255 2021-03-29 15:25:17 +02:00
Robert Scott
96390f4286
Merge pull request #115487 from stephank/fix-darwin-php
php80: fix on darwin
2021-03-14 17:58:44 +00:00
Elis Hirwing
7b44695658
php.extensions.swoole: init at 4.6.4 2021-03-11 18:17:45 +01:00
Stéphan Kochen
da049ba377 php80: fix on darwin 2021-03-10 11:57:29 +01:00
Sandro Jäckel
af32607630
php-packages: cleanup 2021-03-08 02:01:14 +01:00
Jan Tojnar
3f4d4ee05a
Merge pull request #114210 from jtojnar/fix-optionals
top-level/php-packages: fix types
2021-03-06 22:13:01 +01:00
Maximilian Bosch
8c26eaa144
Revert "php: Add php package versions to extensions/packages pnames"
This reverts commit a081dcf86d.
2021-03-04 15:26:36 +01:00
Elis Hirwing
a081dcf86d
php: Add php package versions to extensions/packages pnames 2021-02-27 21:57:02 +01:00
Elis Hirwing
ad990d49aa
php.packages.composer2: deinit package since main package is updated 2021-02-27 12:27:18 +01:00
Elis Hirwing
89dacdd7a5
php.packages.composer1: init at 1.10.15 2021-02-27 12:26:38 +01:00
Jan Tojnar
22bf2d0331
top-level/php-packages: fix types
Passing list to `optional` wraps it in another list but we just want to return it as is.

Let’s just use `optionals` everywhere as that is much more predictable and makes such mistakes obvious.
2021-02-24 08:26:36 +01:00
Elis Hirwing
173edd9547
Merge pull request #112360 from helsinki-systems/fix/php-xls-xmlrpc
phpExtensions80: fix xls, disable xmlrpc
2021-02-10 10:35:21 +01:00
Aaron Andersen
159f0efe20
Merge pull request #111515 from aanderse/libsmbclient-php
php.extensions.smbclient: init at 1.0.4
2021-02-09 07:37:54 -05:00
Aaron Andersen
dd147bbc64 php.extensions.smbclient: init at 1.0.4 2021-02-08 23:15:12 -05:00
ajs124
b8c532e061 phpExtensions.xsl: fix build against php80 by disabling tests
they succeed on 7.3 and 7.4, but not 8.0
2021-02-08 16:07:25 +01:00
ajs124
220356309e phpExtensions.xmlrpc: disable on 8.0, as it was unbundeled in that release 2021-02-08 16:07:24 +01:00
talyz
6c32f248d0
php.extensions.xmlreader: Add internal dependency on dom 2021-01-30 16:41:14 +01:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Jörg Thalheim
2af38d76fe
phpPackags.gettext: configureFlags should be a list 2021-01-12 13:10:35 +01:00
Elis Hirwing
58d897e812
Merge pull request #108904 from aanderse/php-oci8
php80.extensions.oci8: 2.2.0 -> 3.0.1
2021-01-10 14:23:09 +01:00
Aaron Andersen
b929911380 php80.extensions.oci8: 2.2.0 -> 3.0.1 2021-01-09 20:10:04 -05:00
Elis Hirwing
b305e4dd7e
Merge pull request #108666 from helsinki-systems/upd/php
php: 7.3.25 -> 7.3.26, 7.4.13 -> 7.4.14, 8.0.0 -> 8.0.1
2021-01-09 14:35:55 +01:00
ajs124
0f04df98a2 php80Extensions.opcache: drop patch
does not apply anymore and it compiles without it now
2021-01-08 01:29:07 +01:00
Aaron Andersen
b5707ce9c0 php.extensions.pdlib: init at 1.0.2 2020-12-28 18:38:50 -05:00
Jan Tojnar
7e8b2b7e98
phpPackages: convert to scope
This will make it easier to make overridable.

Had to rename `packages` attribute to `tools` in `php-packages.nix` because `packages` is shadowed by `makeScope`.
2020-12-15 17:57:40 +01:00
Soner Sayakci
4cd8412880
php80: init at 8.0.0 2020-12-01 11:54:42 +01:00
Elis Hirwing
3d31818f1a
php: Drop usage of isPhp73 and isPhp74
These variables have bad names that doesn't really make full sense
2020-10-11 20:10:58 +02:00
Elis Hirwing
6d0abdd9c1
phpExtensions.yaml: Move to separate directory 2020-10-11 20:00:38 +02:00
Elis Hirwing
e810b999eb
phpExtensions.xdebug: Move to separate directory 2020-10-11 19:58:03 +02:00
Elis Hirwing
a004e2ca68
phpExtensions.sqlsrv: Move to separate directory 2020-10-11 19:55:31 +02:00
Elis Hirwing
f5a4a96fad
phpExtensions.redis: Move to separate directory 2020-10-11 19:53:07 +02:00
Elis Hirwing
80ba7d0c87
phpExtensions.rdkafka: Move to separate directory 2020-10-11 19:49:28 +02:00
Elis Hirwing
b27b297c56
php73Extensions.pthreads: Move to separate directory 2020-10-11 19:45:22 +02:00
Elis Hirwing
63e150560b
phpExtensions.protobuf: Move to separate directory 2020-10-11 19:39:34 +02:00
Elis Hirwing
58c1014f5a
phpExtensions.pinba: Move to separate directory 2020-10-11 19:37:31 +02:00
Elis Hirwing
d5ea4254a4
phpExtensions.php_excel: Move to separate directory 2020-10-11 19:32:05 +02:00
Elis Hirwing
fd6db7224b
phpExtensions.pdo_sqlsrv: Move to separate directory 2020-10-11 19:24:04 +02:00
Elis Hirwing
98bc2f4da6
phpExtensions.pcov: Move to separate directory 2020-10-11 19:19:01 +02:00
Elis Hirwing
1f00056a36
phpExtensions.oci8: Move to separate directory 2020-10-11 19:16:59 +02:00
Elis Hirwing
4cae064b2c
phpExtensions.mongodb: Move to separate directory 2020-10-11 19:14:22 +02:00
Elis Hirwing
77224fd8e7
phpExtensions.memcached: Move to separate directory 2020-10-11 19:10:24 +02:00
Elis Hirwing
df08b0fc00
phpExtensions.maxminddb: Move to separate directory 2020-10-11 19:05:50 +02:00
Elis Hirwing
f8180fed9a
phpExtensions.mailparse: Move to separate directory 2020-10-11 19:00:38 +02:00
Elis Hirwing
ba173b438a
phpExtensions.imagick: Move to separate directory 2020-10-11 18:57:01 +02:00
Elis Hirwing
6be3b07411
phpExtensions.igbinary: Move to separate directory 2020-10-11 18:56:56 +02:00
Elis Hirwing
ad0965029d
phpExtensions.event: Move to separate directory 2020-10-11 18:56:53 +02:00
Elis Hirwing
649fdcdc4a
phpExtensions.couchbase: Move to separate directory 2020-10-11 18:56:50 +02:00
Elis Hirwing
021c6fee67
phpExtensions.ast: Move to separate directory 2020-10-11 18:56:47 +02:00
Elis Hirwing
bf5ca6bbf3
phpExtensions.apcu_bc: Move to separate directory 2020-10-11 18:56:44 +02:00
Elis Hirwing
0fc9ac20fe
phpExtensions.apcu: Move to separate directory 2020-10-11 18:56:40 +02:00
Elis Hirwing
13c197085f
phpPackages.psysh: Move to separate directory and be version specific 2020-10-11 17:04:31 +02:00
Elis Hirwing
8473816508
phpPackages.psalm: Move to separate directory 2020-10-11 17:04:28 +02:00
Elis Hirwing
2defaa83c0
phpPackages.phpstan: Move to separate directory 2020-10-11 17:04:25 +02:00
Elis Hirwing
b3f36d7cd7
phpPackages.phpmd: Move to separate directory 2020-10-11 17:04:22 +02:00
Elis Hirwing
9055c588c2
phpPackages.phpcs: Move to separate directory 2020-10-11 17:04:15 +02:00
Elis Hirwing
c8f859fd57
phpPackages.phpcbf: Move to separate directory 2020-10-11 17:04:09 +02:00
Elis Hirwing
5d0cc8d156
phpPackages.php-parallel-lint: Move to separate directory 2020-10-11 17:04:02 +02:00
Elis Hirwing
47aa265985
phpPackages.php-cs-fixer: Move to separate directory 2020-10-11 17:03:54 +02:00
Elis Hirwing
e9a9b9ba82
phpPackages.composer2: Move to separate directory 2020-10-11 17:03:46 +02:00
Elis Hirwing
a149fe969c
phpPackages.composer: Move to separate directory 2020-10-11 17:03:40 +02:00
Elis Hirwing
5c8e29da49
phpPackages.box: Move to separate directory 2020-10-11 17:03:34 +02:00
Jan Tojnar
956a43990e
phpExtensions.blackfire: init at 1.40.0 2020-10-07 10:44:54 +02:00
Elis Hirwing
b560e89848
php.extensions.maxminddb: 1.6.0 -> 1.7.0 2020-10-03 08:30:42 +02:00
Elis Hirwing
f832fead74
Merge pull request #99417 from shyim/composer2
init phpPackages.composer2: init at 2.0.0-RC1
2020-10-03 08:13:14 +02:00
Elis Hirwing
260940576a
Merge pull request #99413 from shyim/update-phpstan
phpPackages.phpstan: 0.12.32 -> 0.12.48
2020-10-03 08:10:36 +02:00
Elis Hirwing
6eed5763f4
Merge pull request #99415 from shyim/update-php-cs-fixer
phpPackages.php-cs-fixer: 2.16.3 -> 2.16.4
2020-10-03 08:10:17 +02:00
Soner Sayakci
579657bbef
init phpPackages.composer2: init at 2.0.0-RC1 2020-10-02 22:13:52 +02:00
Soner Sayakci
537ecc7a98
phpPackages.composer: 1.10.8 -> 1.10.13 2020-10-02 22:09:41 +02:00
Soner Sayakci
2fb3644ad7
phpPackages.php-cs-fixer: 2.16.3 -> 2.16.4 2020-10-02 22:03:38 +02:00
Soner Sayakci
9ba6c73c50
phpPackages.phpstan: 0.12.32 -> 0.12.48 2020-10-02 21:29:39 +02:00
Maximilian Bosch
cecc4ce361
php.extensions.{mongodb,intl}: switch back to icu64
See https://hydra.nixos.org/build/124676672
Introduced by 4afdb415d2
Closes #94798
2020-08-06 18:25:00 +02:00
Maximilian Bosch
5b38c1d1f2
Merge pull request #92953 from etu/phpstan-update
php.packages.phpstan: 0.12.25 -> 0.12.32
2020-07-17 16:10:39 +02:00
Elis Hirwing
6973a00b58
php.packages.composer: 1.10.6 -> 1.10.8
Changelogs:
- https://github.com/composer/composer/releases/tag/1.10.7
- https://github.com/composer/composer/releases/tag/1.10.8
2020-07-11 20:44:44 +02:00
Elis Hirwing
7e56f6b80e
php.packages.phpstan: 0.12.25 -> 0.12.32
Changelogs:
- https://github.com/phpstan/phpstan/releases/tag/0.12.26
- https://github.com/phpstan/phpstan/releases/tag/0.12.27
- https://github.com/phpstan/phpstan/releases/tag/0.12.29
- https://github.com/phpstan/phpstan/releases/tag/0.12.30
- https://github.com/phpstan/phpstan/releases/tag/0.12.31
- https://github.com/phpstan/phpstan/releases/tag/0.12.32
2020-07-11 20:41:31 +02:00
Elis Hirwing
49316cca66
php74: 7.4.7 -> 7.4.8
Changelog: https://www.php.net/ChangeLog-7.php#7.4.8
2020-07-11 15:07:44 +02:00
Maximilian Bosch
af064a0e12
php7{2,3}: fix darwin build
* Backported patches from `php-7.4` which fixes the env for all
  `gettext` and `zlib` tests.
* Setting `--with-libxml-dir` is still needed for versions 7.2 and 7.3.
2020-06-25 22:29:23 +02:00
Maximilian Bosch
30e812c6c0
php7{2,3}: intl: fix aarch64 build 2020-06-25 18:27:57 +02:00
talyz
2e0d4a8b39
php.extensions.mysqlnd: Fix compression support
HAVE_ZLIB has to be defined in mysqlnd.h for compression support to be
turned on, but the configure script doesn't actually define it even
when zlib is available.
2020-06-02 15:37:19 +02:00
talyz
5db5b25c63
php.extensions: Apply patches from the php source root by default 2020-06-02 15:37:14 +02:00
Kim Lindberger
79a8a52920
Merge pull request #87941 from etu/composer-update
php.packages.composer: 1.10.5 -> 1.10.6
2020-05-16 22:08:11 +02:00
Kim Lindberger
f79fe9334d
Merge pull request #87956 from etu/phpstan-update
php.packages.phpstan: 0.12.19 -> 0.12.25
2020-05-16 22:07:29 +02:00
Elis Hirwing
e683f5cbfa
php.extensions.rdkafka: init at 4.0.3 2020-05-16 18:51:40 +02:00
Elis Hirwing
a807dfe1e3
php.packages.phpstan: 0.12.19 -> 0.12.25
Changelogs:
 - https://github.com/phpstan/phpstan/releases/tag/0.12.20
 - https://github.com/phpstan/phpstan/releases/tag/0.12.21
 - https://github.com/phpstan/phpstan/releases/tag/0.12.22
 - https://github.com/phpstan/phpstan/releases/tag/0.12.23
 - https://github.com/phpstan/phpstan/releases/tag/0.12.24
 - https://github.com/phpstan/phpstan/releases/tag/0.12.25
2020-05-16 18:20:30 +02:00
Elis Hirwing
d42a58ffaa
php.packages.composer: 1.10.5 -> 1.10.6
Changelog: https://github.com/composer/composer/releases/tag/1.10.6
2020-05-16 14:47:00 +02:00
Colby Cellador
3a768184f4
phpPackages: phpmd (#87387)
php.packages.phpmd: init at 2.8.2
2020-05-11 08:59:43 +02:00
talyz
fa4c995d0e
php.extensions.couchbase: Fix build and runtime loading
The couchbase extension depends on the igbinary PECL which needs to be
loaded and loaded prior to it. It also seems like the pcs extension
isn't actually needed - it at least builds and loads without it. Since
the pcs extension dependency was the reason couchbase didn't build on
PHP 7.4 it now does, so let's unmark it broken.
2020-05-09 23:38:45 +02:00
talyz
2f1f359692
php.extensions.pcs: Mark broken in 7.3, add tokenizer dependency
The pcs extension fails to load at runtime with PHP 7.3, so let's mark
it broken from 7.3 onwards. It also depends on the tokenizer internal
extension.
2020-05-09 23:38:39 +02:00
talyz
295fc2996d
php.extensions.apcu_bc: Fix runtime loading
Fix an issue brought up in #86463, where the apcu_bc extension isn't
loaded correctly since it produces a .so with a different name than
the extension name. Also, the apcu extension has to be loaded and
loaded prior to loading this extension.
2020-05-09 23:38:32 +02:00
Aaron Andersen
88979ff3aa php.extensions.pdo_sqlsrv: 5.8.0 -> 5.8.1 2020-05-03 07:00:46 -04:00
Aaron Andersen
4e55ea04e8 php.extensions.sqlsrv: 5.8.0 -> 5.8.1 2020-05-03 07:00:25 -04:00
Maximilian Bosch
43a4f128bd
Merge pull request #86396 from etu/php-upstream-extensions-meta
php.extensions: Add descriptions, homepage and license to all upstream extensions
2020-05-01 14:26:51 +02:00
Elis Hirwing
0482656c4a
php.packages.psysh: 0.9.12 -> 0.10.3
Changelogs:
 - https://github.com/bobthecow/psysh/releases/tag/v0.10.0
 - https://github.com/bobthecow/psysh/releases/tag/v0.10.1
 - https://github.com/bobthecow/psysh/releases/tag/v0.10.2
 - https://github.com/bobthecow/psysh/releases/tag/v0.10.3
2020-04-30 13:39:41 +02:00
Elis Hirwing
c8b773b25d
php.packages.psalm: 3.9.3 -> 3.11.2
Changelogs:
 - https://github.com/vimeo/psalm/releases/tag/3.9.4
 - https://github.com/vimeo/psalm/releases/tag/3.9.5
 - https://github.com/vimeo/psalm/releases/tag/3.10.0
 - https://github.com/vimeo/psalm/releases/tag/3.10.1
 - https://github.com/vimeo/psalm/releases/tag/3.11.1
 - https://github.com/vimeo/psalm/releases/tag/3.11.2
2020-04-30 13:36:15 +02:00
Elis Hirwing
88f94e8ba9
php.packages.phpstan: 0.12.18 -> 0.12.19
Changelog: https://github.com/phpstan/phpstan/releases/tag/0.12.19
2020-04-30 13:34:17 +02:00
Elis Hirwing
9c161f0ea2
php.packages.phpcs: 3.5.4 -> 3.5.5
Changelog:
https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.5.5
2020-04-30 13:33:20 +02:00
Elis Hirwing
4610b24fd7
php.packages.phpcbf: 3.5.4 -> 3.5.5
Changelog:
https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.5.5
2020-04-30 13:31:56 +02:00
Elis Hirwing
3a2173b514
php.packages.php-cs-fixer: 2.16.1 -> 2.16.3
Changelogs:
 - https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/tag/v2.16.2
 - https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/tag/v2.16.3
2020-04-30 13:29:36 +02:00
Elis Hirwing
4d6ea7350c
php.packages.composer: 1.9.3 -> 1.10.5
Changelogs:
 - https://github.com/composer/composer/releases/tag/1.10.0
 - https://github.com/composer/composer/releases/tag/1.10.1
 - https://github.com/composer/composer/releases/tag/1.10.2
 - https://github.com/composer/composer/releases/tag/1.10.3
 - https://github.com/composer/composer/releases/tag/1.10.4
 - https://github.com/composer/composer/releases/tag/1.10.5
2020-04-30 13:28:19 +02:00
Elis Hirwing
56562a3036
php.extensions: Add descriptions, homepage and license to all upstream extensions 2020-04-30 13:20:27 +02:00
Elis Hirwing
0b04a477a1
php.packages: Add php maintainer team to all packages 2020-04-29 20:15:47 +02:00
Elis Hirwing
ed12b30bee
php.extensions: Add php maintainer team to all extensions 2020-04-29 20:15:03 +02:00
talyz
2535cdfe91
php: Unify the usage of the php package in php-packages.nix
Instead of using two different php packages in php-packages.nix, one
wrapper and one unwrapped, simply use the wrapper and use its
"unwrapped" attribute when necessary. Also, get rid of the packages
and extensions attributes from the base package, since they're no
longer needed.
2020-04-29 13:59:29 +02:00
Kim Lindberger
3dbfa915ab
Merge pull request #85226 from etu/update-phpstan
php.packages.phpstan: 0.12.14 -> 0.12.18
2020-04-14 16:39:56 +02:00
Elis Hirwing
1b1d292d3c
php.packages.phpstan: 0.12.14 -> 0.12.18
Changelog: https://github.com/phpstan/phpstan/releases/tag/0.12.18

Also switch to phpWithExtensions because it complained about missing
extensions when running the binary.
2020-04-14 15:22:13 +02:00
Elis Hirwing
83c9620ac6
php.packages.phpcs: 3.5.3 -> 3.5.4
Changelog:
https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.5.4

Also switch to phpWithExtensions because it complained about missing
extensions when running the binary.
2020-04-14 15:15:32 +02:00
Elis Hirwing
2e71139235
php.packages.phpcbf: 3.5.3 -> 3.5.4
Changelog:
https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/3.5.4

Also switch to phpWithExtensions because it complained about missing
extensions when running the binary.
2020-04-14 15:14:26 +02:00
talyz
d85bf2f5b7
php.extensions.pdo_mysql: Set default socket location
Set the default socket location to match the one used by the MySQL
module, so PHP programs using pdo_mysql don't have to specify this
themselves.
2020-04-11 14:27:06 +02:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Elis Hirwing
8d2e5d5cd6
php.extensions.pthreads: Reintroduce pthreads for php72 and php73 2020-04-05 16:46:24 +02:00
Elis Hirwing
102aac631b
php.extensions.pinba: Reintroduce pinba for php72, php73 and php74 2020-04-05 16:46:11 +02:00
talyz
b5c59cebc6
php: Document withExtensions + general improvements 2020-04-05 16:46:05 +02:00
Elis Hirwing
a2099156ec
php: split php.packages to php.packages and php.extensions
So now we have only packages for human interaction in php.packages and
only extensions in php.extensions. With this php.packages.exts have
been merged into the same attribute set as all the other extensions to
make it flat and nice.

The nextcloud module have been updated to reflect this change as well
as the documentation.
2020-04-05 16:45:17 +02:00
talyz
fe4d173cb2
php.packages: Fix and clean up external extensions
Fix extensions that were broken by the extension refactoring and
remove pthreads and pinba, which had asserts which broke evaluation,
were in need of refactoring and of dubious value.
2020-04-05 16:44:37 +02:00
talyz
90dcab948c
php.packages: Use derivations for internalDeps in mkExtension
Make mkExtension put headers in the dev output and use them, instead of
a different part of the current source tree, when referring to another
extension by using internalDeps.

This means external extensions can be built against the internal ones.
2020-04-05 16:44:01 +02:00
talyz
b1106a1851
phpPackages: Move phpPackages to php.packages
This means php packages can now refer to other php packages by looking
them up in the php.packages attribute and gets rid of the internal
recursive set previously defined in php-packages.nix. This also means
that in applications where previously both the php package and the
corresponding version of the phpPackages package set had to be
specified, the php package will now suffice.

This also adds the phpWithExtensions parameter to the
php-packages.nix, which can be used by extensions that need a fully
featured PHP executable.
2020-04-05 16:43:50 +02:00
talyz
14bfb844d6
php: Make mkExtension pass on additional args to mkDerivation 2020-04-05 16:43:43 +02:00
talyz
8924a7de3d
php: Make buildEnv recursive + take extension deps into account
A slight rewrite of buildEnv which:

1. Makes buildEnv recursively add itself to its output, so that it can
   be accessed from any php derivation.

2. Orders the extension text strings according to their internalDeps
   attribute - dependencies have to be put before dependants in the
   php.ini or they will fail to load due to missing symbols.
2020-04-03 10:11:15 +02:00
talyz
6c810c235d
phpPackages.exts: Run tests by default
The tests for many of the extensions run just fine, for some a small
portion fail. This runs the tests by default and disables the tests
extensions with any failing tests.
2020-04-03 10:11:14 +02:00
talyz
282337799b
php: Build an even slimmer base
This moves yet more extensions from the base build to
phpPackages.ext. Some of the extensions are a bit quirky and need
patching for this to work, most notably mysqlnd and opcache.

Two new parameters are introduced for mkExtension - internalDeps and
postPhpize. internalDeps is used to specify which other internal
extensions the current extension depends on, in order to provide them
at build time. postPhpize is for when patches and quirks need to be
applied after running phpize.

Patch notes:

- For opcache, older versions of PHP have a bug where header files are
  included in the wrong order.

- For mysqlnd, the config.h is never included, so we include it in the
  main header file, mysqlnd.h. Also, the configure script doesn't add
  the necessary library link flags, so we add them to the variable
  configure should have added them to.
2020-04-03 10:11:13 +02:00
Elis Hirwing
da8ca2be2f
phpPackages.exts.gmp: Enable on darwin 2020-04-03 10:11:12 +02:00
Elis Hirwing
cb1dd640ff
phpPackages.exts: Drop uneeded extensions 2020-03-29 11:07:03 +02:00
Elis Hirwing
1f5af3c606
phpPackages.exts: Mark if extensions are zend extensions or not 2020-03-15 19:34:28 +01:00
Elis Hirwing
c61d907f81
phpPackages.exts.pdo_odbc: init for all versions of php 2020-03-15 19:34:11 +01:00
Elis Hirwing
e0b1b9d556
phpPackages.exts: Add extensions 2020-03-14 21:53:59 +01:00
Elis Hirwing
387d52106a
phpPackages.exts: Add alias so we have the right pcre lib 2020-03-14 20:30:28 +01:00