summary refs log tree commit diff
path: root/pkgs/build-support/build-pecl.nix
diff options
context:
space:
mode:
authortalyz <kim.lindberger@gmail.com>2020-05-02 23:13:53 +0200
committertalyz <kim.lindberger@gmail.com>2020-05-09 23:38:21 +0200
commit9f09253e521bbddabd6a7faf5803fffceba7b03c (patch)
tree2a21efb2ad301b148f8c4a0f435be00b5c4bdb2c /pkgs/build-support/build-pecl.nix
parentd373d80b1207d52621961b16aa4a3438e4f98167 (diff)
downloadnixpkgs-9f09253e521bbddabd6a7faf5803fffceba7b03c.tar
nixpkgs-9f09253e521bbddabd6a7faf5803fffceba7b03c.tar.gz
nixpkgs-9f09253e521bbddabd6a7faf5803fffceba7b03c.tar.bz2
nixpkgs-9f09253e521bbddabd6a7faf5803fffceba7b03c.tar.lz
nixpkgs-9f09253e521bbddabd6a7faf5803fffceba7b03c.tar.xz
nixpkgs-9f09253e521bbddabd6a7faf5803fffceba7b03c.tar.zst
nixpkgs-9f09253e521bbddabd6a7faf5803fffceba7b03c.zip
php.buildPecl: Allow PECLs to depend on other PECLs
Some PECLs depend on other PECLs and, like internal PHP extension
dependencies, need to be loaded in the correct order. This makes this
possible by adding the argument "peclDeps" to buildPecl, which adds
the extension to buildInputs and is treated the same way as
internalDeps when the extension config is generated.
Diffstat (limited to 'pkgs/build-support/build-pecl.nix')
-rw-r--r--pkgs/build-support/build-pecl.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/build-pecl.nix b/pkgs/build-support/build-pecl.nix
index f43205f24c5..d75d3cf943a 100644
--- a/pkgs/build-support/build-pecl.nix
+++ b/pkgs/build-support/build-pecl.nix
@@ -3,6 +3,7 @@
 { pname
 , version
 , internalDeps ? []
+, peclDeps ? []
 , buildInputs ? []
 , nativeBuildInputs ? []
 , postPhpize ? ""
@@ -16,11 +17,12 @@
 
 stdenv.mkDerivation (args // {
   name = "php-${pname}-${version}";
+  extensionName = pname;
 
   inherit src;
 
   nativeBuildInputs = [ autoreconfHook re2c ] ++ nativeBuildInputs;
-  buildInputs = [ php ] ++ buildInputs;
+  buildInputs = [ php ] ++ peclDeps ++ buildInputs;
 
   makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ makeFlags;