Merge pull request #111317 from talyz/php-xmlreader-dom

php.extensions.xmlreader: Add internal dependency on `dom`
This commit is contained in:
Aaron Andersen 2021-02-01 08:12:26 -05:00 committed by GitHub
commit 28bbe671a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -501,7 +501,9 @@ lib.makeScope pkgs.newScope (self: with self; {
doCheck = false; }
{ name = "xmlreader";
buildInputs = [ libxml2 ];
configureFlags = [ "--enable-xmlreader CFLAGS=-I../.." ]
internalDeps = [ php.extensions.dom ];
NIX_CFLAGS_COMPILE = [ "-I../.." "-DHAVE_DOM" ];
configureFlags = [ "--enable-xmlreader" ]
# Required to build on darwin.
++ lib.optional (lib.versionOlder php.version "7.4") [ "--with-libxml-dir=${libxml2.dev}" ]; }
{ name = "xmlrpc";