diff options
author | Izorkin <izorkin@elven.pw> | 2018-12-14 10:40:34 +0300 |
---|---|---|
committer | Izorkin <izorkin@elven.pw> | 2018-12-14 10:47:46 +0300 |
commit | bd850ff624df240d5447dfab18ce215d97993e70 (patch) | |
tree | 1ebe71b9f795346e6ba06a8124e894f100199856 /pkgs/development/interpreters/php/default.nix | |
parent | 0288d43a2d148061850a93cf841d5f1cbb96c89c (diff) | |
download | nixpkgs-bd850ff624df240d5447dfab18ce215d97993e70.tar nixpkgs-bd850ff624df240d5447dfab18ce215d97993e70.tar.gz nixpkgs-bd850ff624df240d5447dfab18ce215d97993e70.tar.bz2 nixpkgs-bd850ff624df240d5447dfab18ce215d97993e70.tar.lz nixpkgs-bd850ff624df240d5447dfab18ce215d97993e70.tar.xz nixpkgs-bd850ff624df240d5447dfab18ce215d97993e70.tar.zst nixpkgs-bd850ff624df240d5447dfab18ce215d97993e70.zip |
php: fix build without libxml2Support
Diffstat (limited to 'pkgs/development/interpreters/php/default.nix')
-rw-r--r-- | pkgs/development/interpreters/php/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/php/default.nix b/pkgs/development/interpreters/php/default.nix index f1e0128abb9..24bfb4f6a80 100644 --- a/pkgs/development/interpreters/php/default.nix +++ b/pkgs/development/interpreters/php/default.nix @@ -32,7 +32,7 @@ let , pdo_pgsqlSupport ? config.php.pdo_pgsql or true , readlineSupport ? config.php.readline or true , sqliteSupport ? config.php.sqlite or true - , soapSupport ? config.php.soap or true + , soapSupport ? (config.php.soap or true) && (libxml2Support) , zlibSupport ? config.php.zlib or true , opensslSupport ? config.php.openssl or true , mbstringSupport ? config.php.mbstring or true @@ -127,6 +127,15 @@ let ++ optional curlSupport "--with-curl=${curl.dev}" ++ optional zlibSupport "--with-zlib=${zlib.dev}" ++ optional libxml2Support "--with-libxml-dir=${libxml2.dev}" + ++ optional (!libxml2Support) [ + "--disable-dom" + "--disable-libxml" + "--disable-simplexml" + "--disable-xml" + "--disable-xmlreader" + "--disable-xmlwriter" + "--without-pear" + ] ++ optional pcntlSupport "--enable-pcntl" ++ optional readlineSupport "--with-readline=${readline.dev}" ++ optional sqliteSupport "--with-pdo-sqlite=${sqlite.dev}" |