2011-04-29 21:38:32 +00:00
|
|
|
{stdenv, fetchurl, php, autoconf, automake, libtool, m4 }:
|
2011-04-29 21:01:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-05-16 14:26:54 +00:00
|
|
|
name = "php-xcache-3.0.1";
|
2011-04-29 21:01:09 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-05-16 14:26:54 +00:00
|
|
|
url = http://xcache.lighttpd.net/pub/Releases/3.0.1/xcache-3.0.1.tar.bz2;
|
|
|
|
md5 = "45086010bc4f82f506c08be1c556941b";
|
2011-04-29 21:01:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
phpize
|
|
|
|
|
|
|
|
sed -i 's,^EXTENSION_DIR.*,'EXTENSION_DIR=$out/lib/php/extensions, configure
|
|
|
|
'';
|
|
|
|
|
2011-05-24 15:23:04 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-xcache"
|
|
|
|
"--enable-xcache-coverager"
|
|
|
|
"--enable-xcache-optimizer"
|
|
|
|
"--enable-xcache-assembler"
|
|
|
|
"--enable-xcache-encoder"
|
|
|
|
"--enable-xcache-decoder"
|
|
|
|
];
|
2011-04-29 21:01:09 +00:00
|
|
|
|
2011-04-29 21:38:32 +00:00
|
|
|
buildInputs = [ php autoconf automake libtool m4 ];
|
2011-04-29 21:01:09 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Fast, stable PHP opcode cacher";
|
|
|
|
homepage = http://xcache.lighttpd.net/;
|
|
|
|
license = "BSD";
|
|
|
|
};
|
|
|
|
}
|