summary refs log tree commit diff
path: root/pkgs/top-level/php-packages.nix
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2019-08-03 17:23:14 +0300
committerIzorkin <izorkin@elven.pw>2019-08-03 17:23:14 +0300
commit39da057b4c55a6dad3dae0e38352ee8ae501e9f0 (patch)
treef37f610ea78bc2c329e677f466f54f57f7edbe85 /pkgs/top-level/php-packages.nix
parentb864d2dc29a043c2a9842a1c53791a29783f9413 (diff)
downloadnixpkgs-39da057b4c55a6dad3dae0e38352ee8ae501e9f0.tar
nixpkgs-39da057b4c55a6dad3dae0e38352ee8ae501e9f0.tar.gz
nixpkgs-39da057b4c55a6dad3dae0e38352ee8ae501e9f0.tar.bz2
nixpkgs-39da057b4c55a6dad3dae0e38352ee8ae501e9f0.tar.lz
nixpkgs-39da057b4c55a6dad3dae0e38352ee8ae501e9f0.tar.xz
nixpkgs-39da057b4c55a6dad3dae0e38352ee8ae501e9f0.tar.zst
nixpkgs-39da057b4c55a6dad3dae0e38352ee8ae501e9f0.zip
phpPackages.pthreads: init at 3.2.0-dev
Diffstat (limited to 'pkgs/top-level/php-packages.nix')
-rw-r--r--pkgs/top-level/php-packages.nix18
1 files changed, 17 insertions, 1 deletions
diff --git a/pkgs/top-level/php-packages.nix b/pkgs/top-level/php-packages.nix
index 2d23c51398a..79a17acd46a 100644
--- a/pkgs/top-level/php-packages.nix
+++ b/pkgs/top-level/php-packages.nix
@@ -493,7 +493,9 @@ let
     };
   };
 
-  pthreads = assert (pkgs.config.php.zts or false); assert !isPhp73; buildPecl rec {
+  pthreads = if isPhp73 then pthreads32-dev else pthreads32;
+
+  pthreads32 = assert (pkgs.config.php.zts or false); assert !isPhp73; buildPecl rec {
     version = "3.2.0";
     pname = "pthreads";
 
@@ -507,6 +509,20 @@ let
     buildInputs = with pkgs; [ pcre.dev ];
   };
 
+  pthreads32-dev = assert (pkgs.config.php.zts or false); assert isPhp73; buildPecl rec {
+    version = "3.2.0-dev";
+    pname = "pthreads";
+
+    src = pkgs.fetchFromGitHub {
+      owner = "krakjoe";
+      repo = "pthreads";
+      rev = "4d1c2483ceb459ea4284db4eb06646d5715e7154";
+      sha256 = "07kdxypy0bgggrfav2h1ccbv67lllbvpa3s3zsaqci0gq4fyi830";
+    };
+
+    buildInputs = with pkgs; [ pcre2.dev ];
+  };
+
   redis = buildPecl rec {
     version = "4.3.0";
     pname = "redis";