Use buildPecl for php-xcache

This commit is contained in:
Shea Levy 2014-07-03 11:01:13 -04:00
parent 4277c05a88
commit a391b55b31
3 changed files with 25 additions and 38 deletions

View File

@ -1,33 +0,0 @@
{stdenv, fetchurl, php, autoconf, automake, libtool, m4 }:
stdenv.mkDerivation rec {
name = "php-xcache-3.0.1";
src = fetchurl {
url = http://xcache.lighttpd.net/pub/Releases/3.0.1/xcache-3.0.1.tar.bz2;
md5 = "45086010bc4f82f506c08be1c556941b";
};
preConfigure = ''
phpize
sed -i 's,^EXTENSION_DIR.*,'EXTENSION_DIR=$out/lib/php/extensions, configure
'';
configureFlags = [
"--enable-xcache"
"--enable-xcache-coverager"
"--enable-xcache-optimizer"
"--enable-xcache-assembler"
"--enable-xcache-encoder"
"--enable-xcache-decoder"
];
buildInputs = [ php autoconf automake libtool m4 ];
meta = {
description = "Fast, stable PHP opcode cacher";
homepage = http://xcache.lighttpd.net/;
license = "BSD";
};
}

View File

@ -3540,8 +3540,6 @@ let
php54 = callPackage ../development/interpreters/php/5.4.nix { }; php54 = callPackage ../development/interpreters/php/5.4.nix { };
php_xcache = callPackage ../development/libraries/php-xcache { };
picolisp = callPackage ../development/interpreters/picolisp {}; picolisp = callPackage ../development/interpreters/picolisp {};
pltScheme = racket; # just to be sure pltScheme = racket; # just to be sure

View File

@ -27,19 +27,19 @@ let self = with self; {
buildInputs = [ pkgs.cyrus_sasl ]; buildInputs = [ pkgs.cyrus_sasl ];
}; };
xdebug = buildPecl rec { xdebug = buildPecl {
name = "xdebug-2.2.5"; name = "xdebug-2.2.5";
sha256 = "0vss35da615709kdvqji8pblckfvmabmj2njjjz6h8zzvj9gximd"; sha256 = "0vss35da615709kdvqji8pblckfvmabmj2njjjz6h8zzvj9gximd";
}; };
apc = buildPecl rec { apc = buildPecl {
name = "apc-3.1.13"; name = "apc-3.1.13";
sha256 = "1gcsh9iar5qa1yzpjki9bb5rivcb6yjp45lmjmp98wlyf83vmy2y"; sha256 = "1gcsh9iar5qa1yzpjki9bb5rivcb6yjp45lmjmp98wlyf83vmy2y";
}; };
zmq = buildPecl rec { zmq = buildPecl {
name = "zmq-1.1.2"; name = "zmq-1.1.2";
sha256 = "0ccz73p8pkda3y9p9qbr3m19m0yrf7k2bvqgbaly3ibgh9bazc69"; sha256 = "0ccz73p8pkda3y9p9qbr3m19m0yrf7k2bvqgbaly3ibgh9bazc69";
@ -50,4 +50,26 @@ let self = with self; {
buildInputs = [ pkgs.pkgconfig ]; buildInputs = [ pkgs.pkgconfig ];
}; };
xcache = buildPecl rec {
name = "xcache-${version}";
version = "3.1.0";
src = pkgs.fetchurl {
url = "http://xcache.lighttpd.net/pub/Releases/${version}/${name}.tar.bz2";
md5 = "e5816d47d52be200b959bf69a673ff74";
};
configureFlags = [
"--enable-xcache"
"--enable-xcache-coverager"
"--enable-xcache-optimizer"
"--enable-xcache-assembler"
"--enable-xcache-encoder"
"--enable-xcache-decoder"
];
buildInputs = [ pkgs.m4 ];
};
}; in self }; in self