summary refs log tree commit diff
path: root/pkgs/development/interpreters/php/5.3.nix
diff options
context:
space:
mode:
authorbbenoist <return_0@live.com>2013-02-12 21:23:24 +0100
committerbbenoist <return_0@live.com>2013-02-12 21:23:24 +0100
commit99934eb36378d22d793cc86103544278a25922f6 (patch)
tree078d299d5a62ad47696acec2566d122015f59cd5 /pkgs/development/interpreters/php/5.3.nix
parent8fd5fcbda5dd87966265813c08ab19d28bb9723a (diff)
downloadnixpkgs-99934eb36378d22d793cc86103544278a25922f6.tar
nixpkgs-99934eb36378d22d793cc86103544278a25922f6.tar.gz
nixpkgs-99934eb36378d22d793cc86103544278a25922f6.tar.bz2
nixpkgs-99934eb36378d22d793cc86103544278a25922f6.tar.lz
nixpkgs-99934eb36378d22d793cc86103544278a25922f6.tar.xz
nixpkgs-99934eb36378d22d793cc86103544278a25922f6.tar.zst
nixpkgs-99934eb36378d22d793cc86103544278a25922f6.zip
php: Add zip and optional bz2 support
Use the overload bz2 = true to enable bz2 support for php.
zip support is enabled by default as it doesn't require any library.
Diffstat (limited to 'pkgs/development/interpreters/php/5.3.nix')
-rw-r--r--pkgs/development/interpreters/php/5.3.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/php/5.3.nix b/pkgs/development/interpreters/php/5.3.nix
index 7d51a74020f..7a243e88971 100644
--- a/pkgs/development/interpreters/php/5.3.nix
+++ b/pkgs/development/interpreters/php/5.3.nix
@@ -1,7 +1,7 @@
 { stdenv, fetchurl, composableDerivation, autoconf, automake, flex, bison
 , apacheHttpd, mysql, libxml2, readline, zlib, curl, gd, postgresql, gettext
 , openssl, pkgconfig, sqlite, config, libiconv, libjpeg, libpng, freetype
-, libxslt, libmcrypt }:
+, libxslt, libmcrypt, bzip2 }:
 
 let
   libmcryptOverride = libmcrypt.override { disablePosixThreads = true; };
@@ -125,6 +125,15 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
         buildInputs = [libmcryptOverride];
       };
 
+      bz2 = {
+        configureFlags = ["--with-bz2=${bzip2}"];
+        buildInputs = [bzip2];
+      };
+
+      zip = {
+        configureFlags = ["--enable-zip"];
+      };
+
       /*
          php is build within this derivation in order to add the xdebug lines to the php.ini.
          So both Apache and command line php both use xdebug without having to configure anything.
@@ -158,6 +167,8 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
     gdSupport = config.php.gd or true;
     xslSupport = config.php.xsl or false;
     mcryptSupport = config.php.mcrypt or false;
+    bz2Support = config.php.bz2 or false;
+    zipSupport = config.php.zip or true;
   };
 
   configurePhase = ''