summary refs log tree commit diff
diff options
context:
space:
mode:
authorLongrin Wischnewski <robberer@freakmail.de>2015-01-06 12:08:47 +0000
committerLongrin Wischnewski <robberer@freakmail.de>2015-01-06 12:08:47 +0000
commitef3a755c1f39a3ddb3bac7ab7c28efb9ac6cb315 (patch)
tree3b1a32861a43a97445e6581036868361be895e5c
parent9b81769950b6d0221643c7b0758d894f7742a62a (diff)
downloadnixpkgs-ef3a755c1f39a3ddb3bac7ab7c28efb9ac6cb315.tar
nixpkgs-ef3a755c1f39a3ddb3bac7ab7c28efb9ac6cb315.tar.gz
nixpkgs-ef3a755c1f39a3ddb3bac7ab7c28efb9ac6cb315.tar.bz2
nixpkgs-ef3a755c1f39a3ddb3bac7ab7c28efb9ac6cb315.tar.lz
nixpkgs-ef3a755c1f39a3ddb3bac7ab7c28efb9ac6cb315.tar.xz
nixpkgs-ef3a755c1f39a3ddb3bac7ab7c28efb9ac6cb315.tar.zst
nixpkgs-ef3a755c1f39a3ddb3bac7ab7c28efb9ac6cb315.zip
php: add optional ZTS support and new PECL module pthreads
-rw-r--r--pkgs/development/interpreters/php/5.4.nix5
-rw-r--r--pkgs/top-level/php-packages.nix8
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/php/5.4.nix b/pkgs/development/interpreters/php/5.4.nix
index a5fbac680f9..1945fc007c4 100644
--- a/pkgs/development/interpreters/php/5.4.nix
+++ b/pkgs/development/interpreters/php/5.4.nix
@@ -185,6 +185,10 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
         buildInputs = [freetds];
       };
 
+      zts = {
+        configureFlags = ["--enable-maintainer-zts"];
+      };
+
       /*
          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.
@@ -224,6 +228,7 @@ composableDerivation.composableDerivation {} ( fixed : let inherit (fixed.fixed)
     ftpSupport = config.php.ftp or true;
     fpmSupport = config.php.fpm or true;
     mssqlSupport = config.php.mssql or (!stdenv.isDarwin);
+    ztsSupport = config.php.zts or false;
   };
 
   configurePhase = ''
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix
index ab5057010a3..6ed73b75156 100644
--- a/pkgs/top-level/php-packages.nix
+++ b/pkgs/top-level/php-packages.nix
@@ -78,4 +78,12 @@ let self = with self; {
 
     buildInputs = [ pkgs.m4 ];
   };
+
+  pthreads = assert pkgs.config.php.zts or false; buildPecl {
+    #pthreads requires a build of PHP with ZTS (Zend Thread Safety) enabled
+    #--enable-maintainer-zts or --enable-zts on Windows
+    name = "pthreads-2.0.10";
+    sha256 = "1xlcb1b1g10jd0xhm3c01a06yqpb5qln47pd1k522138324qvpwb";
+  };
+
 }; in self