diff options
author | talyz <kim.lindberger@gmail.com> | 2021-01-30 16:22:11 +0100 |
---|---|---|
committer | talyz <kim.lindberger@gmail.com> | 2021-01-30 16:41:14 +0100 |
commit | 6c32f248d098fbf89cb2e458982a2d5c01d70665 (patch) | |
tree | 984919e0b6849089722bf9ee11f6426d7db3401f /pkgs/top-level/php-packages.nix | |
parent | d6d4228b39b7bd71ea64f597359612ff9557f4f8 (diff) |
php.extensions.xmlreader: Add internal dependency on `dom`
Diffstat (limited to 'pkgs/top-level/php-packages.nix')
-rw-r--r-- | pkgs/top-level/php-packages.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix index 19feb36aa2713..932c2a867f028 100644 --- a/pkgs/top-level/php-packages.nix +++ b/pkgs/top-level/php-packages.nix @@ -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"; |