about summary refs log tree commit diff
path: root/pkgs/build-support/build-pecl.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/build-pecl.nix')
-rw-r--r--pkgs/build-support/build-pecl.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/build-support/build-pecl.nix b/pkgs/build-support/build-pecl.nix
new file mode 100644
index 000000000000..d84497e8019c
--- /dev/null
+++ b/pkgs/build-support/build-pecl.nix
@@ -0,0 +1,9 @@
+{ stdenv, php, autoreconfHook }:
+
+args: stdenv.mkDerivation (args // {
+  buildInputs = [ php autoreconfHook ] ++ args.buildInputs or [];
+
+  makeFlags = [ "EXTENSION_DIR=$(out)/lib/php/extensions" ] ++ args.makeFlags or [];
+
+  autoreconfPhase = "phpize";
+})