aboutsummaryrefslogtreecommitdiff
path: root/pkgs/build-support/build-pecl.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-03-24 08:37:36 -0400
committerShea Levy <shea@shealevy.com>2014-03-24 08:37:36 -0400
commitd4c711ee1d1080179958fb2cb9553d73acf4b2af (patch)
tree569ee9d26ec08aff911f8824d9f4deffcca13979 /pkgs/build-support/build-pecl.nix
parentfa5a583098f493fb6503967dc384cb7c5e82ee86 (diff)
Add memcache php module
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";
+})